/* =========================================================
   RBC Counselling Consultancy — Design System
   Color palette: Medical trust (navy) + warm action (gold)
   ========================================================= */

:root {
  --navy-900: #0a1f44;
  --navy-800: #0f2d5e;
  --navy-700: #143d7a;
  --navy-600: #1d4e9b;
  --navy-500: #2b65c4;
  --navy-50:  #eef4ff;

  --gold-600: #d97706;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-50:  #fff8e6;

  --green-600: #059669;
  --green-500: #10b981;
  --red-600:   #dc2626;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;

  --white:   #ffffff;
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 31, 68, 0.12);
  --shadow-xl: 0 24px 60px rgba(10, 31, 68, 0.18);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-800); }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: var(--navy-900); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }

p { color: var(--ink-700); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--gold-500); color: var(--navy-900);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover {
  background: var(--gold-600); color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}
.btn-secondary {
  background: var(--white); color: var(--navy-700);
  border-color: var(--navy-700);
}
.btn-secondary:hover {
  background: var(--navy-700); color: var(--white);
}
.btn-ghost {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-whatsapp { background: var(--green-500); color: var(--white); }
.btn-whatsapp:hover { background: var(--green-600); color: var(--white); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-200);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; max-width: 1200px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 1.15rem; color: var(--navy-900);
}
.logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: var(--gold-400);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.logo-text { line-height: 1.1; }
.logo-text small { display: block; font-size: 0.7rem; font-weight: 500; color: var(--ink-500); letter-spacing: 0.05em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--ink-700); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--navy-700); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone { color: var(--navy-800); font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy-800); }

@media (max-width: 880px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; gap: 18px; border-bottom: 1px solid var(--ink-200); box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-phone { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 80px 0 100px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; bottom: -150px; left: -150px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 101, 196, 0.3) 0%, transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245, 158, 11, 0.15); color: var(--gold-400);
  padding: 8px 16px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 700; margin-bottom: 20px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--gold-400); }
.hero p.lead { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.hero-trust span { display: flex; align-items: center; gap: 6px; }
.hero-trust .check { color: var(--gold-400); font-weight: 800; }
.hero-image {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4 / 3;
  background: var(--navy-700);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-badge {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 20px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-md);
}
.hero-image-badge .icon { font-size: 1.8rem; }
.hero-image-badge strong { display: block; color: var(--navy-900); font-size: 0.95rem; }
.hero-image-badge small { color: var(--ink-500); font-size: 0.8rem; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 60px 0 80px; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--ink-50);
  padding: 32px 0;
  border-bottom: 1px solid var(--ink-200);
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center;
}
.trust-stat .num {
  font-size: 2rem; font-weight: 900; color: var(--navy-800);
  display: block; line-height: 1;
}
.trust-stat .label {
  color: var(--ink-500); font-size: 0.9rem; margin-top: 6px;
  display: block; font-weight: 500;
}
@media (max-width: 640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

/* ---------- Section base ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-head .eyebrow {
  display: inline-block; color: var(--gold-600); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; }

/* ---------- Course cards ---------- */
.courses { background: var(--white); }
.courses-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.course-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.25s ease;
  position: relative; overflow: hidden;
}
.course-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy-700), var(--navy-500));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--navy-500); }
.course-card:hover::before { transform: scaleX(1); }
.course-icon {
  width: 64px; height: 64px;
  background: var(--navy-50); color: var(--navy-700);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 16px;
}
.course-card h3 { margin-bottom: 8px; color: var(--navy-900); }
.course-card .full-name { font-size: 0.85rem; color: var(--ink-500); margin-bottom: 12px; min-height: 2.5em; }
.course-card .duration {
  display: inline-block; background: var(--gold-50); color: var(--gold-600);
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 700;
}

/* ---------- Why us ---------- */
.why { background: var(--ink-50); }
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.why-card {
  background: var(--white);
  padding: 32px 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--ink-200);
}
.why-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--white);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.why-card h3 { margin-bottom: 8px; }
.why-card p { color: var(--ink-500); font-size: 0.95rem; }

/* ---------- Featured colleges preview ---------- */
.featured-colleges { background: var(--white); }
.featured-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px;
}
.featured-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px; border-radius: var(--radius);
  background: var(--ink-50); border: 1px solid var(--ink-200);
  transition: all 0.2s ease;
}
.featured-card:hover { background: var(--white); border-color: var(--navy-500); box-shadow: var(--shadow-md); }
.featured-num {
  flex: 0 0 40px; height: 40px; border-radius: 50%;
  background: var(--navy-700); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
}
.featured-card h4 { font-size: 0.95rem; color: var(--navy-900); margin-bottom: 4px; }
.featured-card p { font-size: 0.8rem; color: var(--ink-500); line-height: 1.4; }
.featured-cta { text-align: center; margin-top: 40px; }

/* ---------- Process ---------- */
.process { background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%); color: var(--white); }
.process .section-head h2 { color: var(--white); }
.process .section-head p { color: rgba(255, 255, 255, 0.7); }
.process .section-head .eyebrow { color: var(--gold-400); }
.process-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px;
  position: relative;
}
.process-step {
  text-align: center; padding: 20px;
  position: relative;
}
.process-num {
  width: 64px; height: 64px;
  background: var(--gold-500); color: var(--navy-900);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900;
  margin: 0 auto 16px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}
.process-step h3 { color: var(--white); margin-bottom: 8px; }
.process-step p { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; }

/* ---------- CTA / Contact ---------- */
.cta {
  background: var(--gold-50);
  padding: 70px 0;
}
.cta-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.cta-card h2 { margin-bottom: 12px; }
.cta-card p { color: var(--ink-500); margin-bottom: 24px; }
.cta-info { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.cta-info-row { display: flex; align-items: center; gap: 12px; color: var(--ink-700); }
.cta-info-row .ic {
  width: 40px; height: 40px;
  background: var(--navy-50); color: var(--navy-700);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex: 0 0 40px;
}
.cta-info-row strong { display: block; color: var(--navy-900); }
.cta-info-row small { color: var(--ink-500); font-size: 0.8rem; }
.cta-form { display: flex; flex-direction: column; gap: 14px; }
.cta-form input, .cta-form select, .cta-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--ink-200); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem;
  background: var(--white); color: var(--ink-900);
  transition: border-color 0.2s ease;
}
.cta-form input:focus, .cta-form select:focus, .cta-form textarea:focus {
  outline: none; border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(43, 101, 196, 0.15);
}
.cta-form textarea { min-height: 100px; resize: vertical; }
.cta-form button { width: 100%; justify-content: center; }
.cta-form-status {
  text-align: center; padding: 10px;
  border-radius: var(--radius-sm); font-size: 0.9rem;
  display: none;
}
.cta-form-status.success { display: block; background: #d1fae5; color: var(--green-600); }

@media (max-width: 880px) {
  .cta-card { grid-template-columns: 1fr; gap: 30px; padding: 32px 24px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  color: var(--white); font-size: 1rem; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.footer ul a:hover { color: var(--gold-400); }
.footer .logo { color: var(--white); margin-bottom: 16px; }
.footer .logo-text small { color: rgba(255, 255, 255, 0.5); }
.footer-about p { font-size: 0.9rem; line-height: 1.7; color: rgba(255, 255, 255, 0.65); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.5); }
.footer-bottom a:hover { color: var(--gold-400); }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Floating WhatsApp button ---------- */
.float-whatsapp {
  position: fixed; bottom: 24px; right: 24px; z-index: 99;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green-500); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; text-decoration: none;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
  transition: all 0.2s ease;
  animation: pulse 2s infinite;
}
.float-whatsapp:hover { background: var(--green-600); color: var(--white); transform: scale(1.1); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5); }
  50%      { box-shadow: 0 8px 24px rgba(16, 185, 129, 0.8), 0 0 0 8px rgba(16, 185, 129, 0.2); }
}

/* ---------- Colleges page ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 60px 0 50px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255, 255, 255, 0.8); max-width: 600px; margin: 14px auto 0; }

.tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin: 0 auto 40px; max-width: 700px;
}
.tab {
  background: var(--white); color: var(--ink-700);
  border: 1px solid var(--ink-200);
  padding: 12px 24px; border-radius: 100px;
  font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s ease;
}
.tab:hover { border-color: var(--navy-500); }
.tab.active { background: var(--navy-700); color: var(--white); border-color: var(--navy-700); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.college-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px;
}
.college-item {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: all 0.2s ease;
}
.college-item:hover { box-shadow: var(--shadow-md); border-color: var(--navy-500); transform: translateY(-2px); }
.college-item .num {
  flex: 0 0 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.college-item .info h4 { font-size: 1rem; color: var(--navy-900); margin-bottom: 6px; line-height: 1.3; }
.college-item .info p { font-size: 0.85rem; color: var(--ink-500); line-height: 1.5; }
.college-item .info .package {
  display: inline-block; margin-top: 8px;
  background: var(--gold-50); color: var(--gold-600);
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
