/* Fortune Academy – Premier Coaching Institute */
:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-muted: #334155;
  --gold: #c9a227;
  --gold-light: #e5c558;
  --gold-muted: #b8860b;
  --white: #ffffff;
  --off-white: #f8fafc;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--navy);
  line-height: 1.6;
  min-height: 100vh;
}

/* Navigation */
.nav {
  background: rgba(15, 23, 42, 0.84);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
}

.nav-brand {
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--navy-light);
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    padding: 1rem;
  }
  .nav-links.open { display: flex; }
}

/* Hero – Professional carousel header */
.hero {
  background: radial-gradient(circle at top left, #1f2937 0, var(--navy) 40%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4rem 1.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(201,162,39,0.18) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(148,163,184,0.22) 0, transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-carousel {
  background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(15,23,42,0.65));
  border-radius: 24px;
  padding: 2.5rem 2.25rem 2.75rem;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.35);
  position: relative;
  overflow: hidden;
}

.hero-slide {
  display: none;
  align-items: center;
  gap: 2.5rem;
  min-height: 260px;
}

.hero-slide.active {
  display: flex;
}

.hero-media {
  flex: 0 0 48%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.hero-photo-frame {
  width: 100%;
  max-width: 480px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.hero-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  width: 100%;
  max-width: 480px;
}

.hero-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.hero-video {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.hero-photo.small {
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
}

.hero-logo {
  width: 340px;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45));
  border-radius: 12px;
}

.hero-logo.overlay-logo {
  width: 180px;
  margin-top: -60px;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.hero-logo.small {
  width: 360px;
}

.hero-badge {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-highlight {
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
}

.hero-highlight span {
  display: inline-block;
}

.hero-copy {
  flex: 1;
  text-align: left;
}

.hero-tagline {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 750;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero .gold {
  color: var(--gold);
}

.hero-sub {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 1.6rem;
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy);
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 14px 35px rgba(201, 162, 39, 0.55);
}

.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(201, 162, 39, 0.7);
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: rgba(226, 232, 240, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  background: rgba(15, 23, 42, 0.7);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.hero-secondary:hover {
  background: rgba(30, 64, 175, 0.8);
  border-color: rgba(191, 219, 254, 0.9);
  color: #e5f2ff;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-arrow {
  border: none;
  background: rgba(15, 23, 42, 0.8);
  color: rgba(226, 232, 240, 0.9);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: background 0.15s, transform 0.1s;
}

.hero-arrow:hover {
  background: rgba(30, 64, 175, 0.95);
  transform: translateY(-1px);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.65);
  cursor: pointer;
  transition: width 0.15s, background 0.15s;
}

.hero-dot.active {
  width: 22px;
  background: var(--gold);
}

@media (max-width: 900px) {
  .hero-carousel {
    padding: 2.1rem 1.75rem 2.4rem;
  }
  .hero-slide {
    flex-direction: column;
    text-align: center;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-media {
    flex-basis: auto;
  }
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 3rem 1.25rem 3.5rem;
  }
  .hero-carousel {
    padding: 1.75rem 1.4rem 2rem;
    border-radius: 18px;
  }
  .hero-logo {
    width: 260px;
  }
  .hero-tagline {
    font-size: 0.8rem;
  }
  .hero-sub {
    font-size: 0.95rem;
  }
}

/* Chatbot */
.chatbot {
  position: fixed;
  bottom: 1.1rem;
  right: 1.1rem;
  z-index: 120;
}

.chatbot-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.chatbot-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.4);
  background: var(--gold-light);
}

.chatbot-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  max-height: 420px;
  background: #0b1220;
  color: #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-window.open {
  display: flex;
}

.chatbot-header {
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #1f2937, #020617);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.chatbot-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.chatbot-subtitle {
  font-size: 0.8rem;
  color: #9ca3af;
}

.chatbot-close {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 1.2rem;
  cursor: pointer;
}

.chatbot-messages {
  padding: 0.75rem 0.75rem 0.5rem;
  flex: 1;
  overflow-y: auto;
  font-size: 0.85rem;
}

.chatbot-message {
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  margin-bottom: 0.45rem;
  max-width: 86%;
  line-height: 1.5;
}

.chatbot-message.bot {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.chatbot-message.user {
  background: #16a34a;
  color: #ecfdf5;
  margin-left: auto;
}

.chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.75rem 0.55rem;
}

.chatbot-quick button {
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: #020617;
  color: #e5e7eb;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
}

.chatbot-quick button:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.chatbot-input-row {
  display: flex;
  padding: 0.55rem 0.6rem 0.6rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  gap: 0.4rem;
}

.chatbot-input-row input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  background: #020617;
  color: #e5e7eb;
}

.chatbot-input-row input:focus {
  outline: none;
  border-color: var(--gold);
}

.chatbot-input-row button {
  border-radius: 999px;
  border: none;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 480px) {
  .chatbot-window {
    width: 280px;
  }
}

/* Section common */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-title {
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--navy-muted);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Hook / Intro */
.intro {
  text-align: center;
  padding: 2.5rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.intro p {
  font-size: 1.1rem;
  color: var(--navy-muted);
  line-height: 1.8;
}

/* Courses */
.courses {
  background: var(--white);
  box-shadow: var(--shadow);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: var(--off-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.course-card:hover {
  border-color: var(--gold-muted);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.course-card h3 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.course-card .tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.course-card p {
  color: var(--navy-muted);
  font-size: 0.95rem;
}

/* Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}

.why-card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  color: var(--navy-muted);
  font-size: 0.95rem;
}

.why-icon {
  width: 48px;
  height: 48px;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

/* Faculty */
.faculty {
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.faculty-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
}

.faculty-card .avatar {
  width: 80px;
  height: 80px;
  background: var(--navy-light);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.faculty-card h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.faculty-card .qual {
  font-size: 0.85rem;
  color: var(--gold-muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.faculty-card p {
  font-size: 0.9rem;
  color: var(--navy-muted);
}

/* Results / Toppers */
.results {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 1.5rem;
}

.results .section-title { color: var(--white); }
.results .section-subtitle { color: rgba(255,255,255,0.8); }

.topper-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.topper-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--navy-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.topper-card .photo {
  width: 72px;
  height: 72px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.topper-card h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.topper-card .exam {
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.topper-card .score {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Inquiry Form */
.inquiry {
  background: var(--white);
  box-shadow: var(--shadow);
}

.inquiry-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.inquiry form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.inquiry input,
.inquiry select,
.inquiry textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.inquiry input:focus,
.inquiry select:focus,
.inquiry textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.inquiry button {
  width: 100%;
  padding: 0.9rem;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.inquiry button:hover {
  background: var(--gold-muted);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--navy);
}

.form-success.show { display: block; }
.inquiry form.hide { display: none; }

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: var(--gold-light);
  text-decoration: none;
}

/* Sticky CTA – Call / WhatsApp */
.sticky-cta {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 99;
}

.sticky-cta a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}

.sticky-cta a:hover { transform: scale(1.05); }

.sticky-cta .call {
  background: var(--navy);
  color: var(--white);
}

.sticky-cta .whatsapp {
  background: #25d366;
  color: var(--white);
}

@media (max-width: 480px) {
  .sticky-cta {
    flex-direction: column;
    align-items: flex-end;
  }
  .sticky-cta a span:not(.icon) { display: none; }
}
