/* ===== Reset ===== */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  background: #fff;
}

/* Reserve gutter only on the RIGHT so header never sits under the scrollbar */
html {
  scrollbar-gutter: stable;              /* key fix: no left padding, keeps right gutter */
  scrollbar-width: thin;                 /* Firefox */
  scrollbar-color: #f28c28 transparent;  /* Firefox: thumb, track */
}

/* ===== Scrollbar (Chrome/Edge/Safari) ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #f28c28; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #d97a22; }

/* ===== Navbar ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;            /* instead of 100vw (prevents overlap with scrollbar) */
  background: #0f2746; /* brand navy */
  z-index: 1000;       /* above hero */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 20px;
}

.logo img { height: 50px; }

/* desktop links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}
.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.nav-links li a:hover { color: #f28c28; }

/* hamburger only on mobile */
.hamburger { display: none; }

/* ===== Hero ===== */
:root { --nav-h: 60px; }

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);   /* push below fixed header */
  width: 100%;                /* avoid 100vw */
  background: url('synergy-hero.png') no-repeat top center / cover;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-overlay {
  margin-left: 5%;
  max-width: 600px;
  color: #fff;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

.hero-overlay h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.hero-overlay p {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.cta-btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  background: #f28c28;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.3s ease;
}
.cta-btn:hover { background: #d97a22; }

/* Position the hero button */
.hero-btn {
  position: absolute;
  left: 8%;     /* adjust horizontally */
  top: 80%;  /* adjust vertically */
  z-index: 3;
}

/* Mobile overrides */
@media (max-width: 768px) {
  .hero-btn {
    position: absolute;
      left: 8%;     /* adjust horizontally */
      top: 40%;  /* adjust vertically */
      z-index: 3;
  }
}


/* ===== Sections ===== */
.section { padding: 60px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0f2746;
  margin-bottom: 8px;
  text-align: center;
}
.section-subtitle { text-align: center; color: #445; margin-bottom: 32px; }
.section-courses { padding-top: 40px; }  /* reduce gap below hero */

/* ===== Courses Grid ===== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 992px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .courses-grid { grid-template-columns: 1fr; }
}

/* ===== Course Card ===== */
.course-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(15, 39, 70, 0.08);
  border: 1px solid rgba(15, 39, 70, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Button inside course card */
.course-card .btn {
  margin-top: auto;   /* pushes button down */
  align-self: stretch; /* make button full width */
  text-align: center;
}


.course-card .badge {
  align-self: flex-start;
  background: #0f2746;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.course-card h3 {
  color: #0f2746;
  font-size: 1.25rem;
  margin: 0;
}
.course-card .features { list-style: none; padding-left: 0; }
.course-card .features li {
  padding-left: 26px;
  margin: 8px 0;
  position: relative;
}
.course-card .features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #f28c28;
  font-weight: 700;
}
.course-card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.course-card .chips {
  background: rgba(242,140,40,0.1);
  color: #8a4d0f;
  border: 1px solid rgba(242,140,40,0.35);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
}
.btn-primary {
  background: #f28c28;
  color: #fff;
  transition: filter 0.25s ease, transform 0.15s ease;
}
.btn-primary:hover { filter: brightness(0.95); transform: translateY(-1px); }

/* ===== MOBILE FIXES (replace your existing @media (max-width: 768px) hero rules) ===== */
@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  header { z-index: 1100; }
  .navbar { padding: 6px 14px; }
  .logo img { height: 42px; }

  .hamburger { display: block; font-size: 1.8rem; color: #fff; cursor: pointer; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    right: 0;
    background: #0f2746;
    flex-direction: column;
    width: 220px;
    display: none;
    padding: 10px 0;
    z-index: 1200;
  }
  .nav-links.active { display: flex; }
  .nav-links li a { padding: 10px 16px; }
/* Desktop / default */
.hero {
  min-height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
  width: 100%;
  background: url('synergy-hero.png') no-repeat top center / cover; /* desktop image */
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Mobile: use portrait hero and size by aspect ratio */
@media (max-width: 768px) {
  .hero {
    min-height: auto;            /* don't force full viewport */
    height: auto;
    margin-top: var(--nav-h);
    aspect-ratio: 11 / 16;        /* portrait layout */
    width: 100%;
    background: url('synergy-hero-mobile.png') no-repeat top left / cover;
    background-color: #0f2746;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 14px;
  }
}


  .hero-overlay {
    margin: 0 16px;
    max-width: 92%;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
  }
  .hero-overlay h1 { font-size: 1.9rem; line-height: 1.2; margin-bottom: 10px; }
  .hero-overlay p  { font-size: 1rem;  margin-bottom: 14px; }
  .cta-btn { padding: 0.7rem 1.1rem; font-size: 0.95rem; border-radius: 8px; }

  .section { padding: 44px 0; }
  .section-courses { padding-top: 28px; }
}

/* Tiny phones */
@media (max-width: 380px) {
  .hero-overlay h1 { font-size: 1.7rem; }
  .hero-overlay p  { font-size: 0.95rem; }
}

/* ===== Method Section ===== */
/* ===== Method Section ===== */
.section-method {
  background: #f9fbfd;
  padding: 60px 0;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 32px;
}

.method-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(15,39,70,0.06);
  border: 1px solid rgba(15,39,70,0.08);
}
.method-card .icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}
.method-card h3 {
  color: #0f2746;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

/* Motto Highlight */
.motto-box {
  margin-top: 50px;
  text-align: center;
  background: #0f2746;
  color: #fff;
  padding: 28px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15,39,70,0.12);
}

.motto-sanskrit {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f28c28;
  margin-bottom: 10px;
  font-family: 'Noto Serif Devanagari', serif; /* optional, for Sanskrit */
}

.motto-meaning {
  font-size: 1rem;
  line-height: 1.5;
  color: #e4eaf2;
}
@media (max-width: 768px) {
  .method-grid { grid-template-columns: 1fr; }
}


/* ===== Why Us Section ===== */
.section-whyus {
  background: #ffffff;
  padding: 70px 0;
}

.whyus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 32px;
}

@media (max-width: 992px) {
  .whyus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .whyus-grid { grid-template-columns: 1fr; }
}

.whyus-card {
  background: #f9fbfd;
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(15, 39, 70, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whyus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(15, 39, 70, 0.1);
}

.whyus-card .icon-circle {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #0f2746;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}

.whyus-card h3 {
  color: #0f2746;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.whyus-card p {
  color: #445;
  font-size: 1rem;
  line-height: 1.5;
}


/* ===== Faculty Section ===== */
/* Faculty Section */
.section-faculty {
  background: #f9f9f9;
  padding: 40px 0;  /* reduced from 60px */
  text-align: center;
}

.faculty-logo img {
  margin: 0 auto 12px;   /* center + reduced gap */
  display: block;
}

.section-faculty .section-title {
  margin-bottom: 6px;    /* reduced gap */
}

.section-faculty .section-subtitle {
  margin-bottom: 24px;   /* reduced gap before grid */
  font-size: 1rem;
  color: #555;
}

/* Faculty Grid */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 20px; /* reduced gap */
}

.faculty-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(15, 39, 70, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faculty-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 39, 70, 0.12);
}

.faculty-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 12px;
}

.faculty-card h3 {
  color: #0f2746;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.faculty-card .subject {
  font-weight: 600;
  color: #f28c28;
  margin-bottom: 8px;
}

.faculty-card .bio {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.4;
}

/* Responsive Faculty Grid */
@media (max-width: 992px) {
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .faculty-grid { grid-template-columns: 1fr; }
}



/* ===== Fees Section ===== */
.section-fees {
  background: #ffffff;
  padding: 60px 0;
}

.fees-table-wrap {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15,39,70,0.08);
  overflow: hidden;
  border: 1px solid rgba(15,39,70,0.06);
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.fees-table thead th {
  background: #0f2746;
  color: #fff;
  text-align: left;
  padding: 14px 18px;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}

.fees-table tbody td {
  padding: 14px 18px;
  border-top: 1px solid rgba(15,39,70,0.06);
  color: #1a2a3a;
}

.fees-table tbody tr:nth-child(even) td {
  background: #f9fbfd;
}

.fees-table td.fee {
  font-weight: 800;
  color: #0f2746;
}

.fees-table td.emi {
  font-weight: 700;
  color: #f28c28;
}

/* Notes + CTA */
.fees-notes {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.fees-notes ul {
  margin: 0;
  padding-left: 18px;
  color: #445;
}
.fees-cta {
  margin-left: auto;
}

/* Mobile: table -> stacked cards */
@media (max-width: 768px) {
  .section-fees { padding: 44px 0; }

  .fees-table thead {
    display: none; /* hide header on mobile */
  }

  .fees-table,
  .fees-table tbody,
  .fees-table tr,
  .fees-table td {
    display: block;
    width: 100%;
  }

  .fees-table tr {
    border-top: 1px solid rgba(15,39,70,0.08);
    padding: 12px 0;
  }

  .fees-table td {
    border: none;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }

  .fees-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #0f2746;
  }

  .fees-cta {
    width: 100%;
    text-align: center;
  }
}

/* ===== Contact Section ===== */
.section-contact {
  background: #0f2746; /* navy */
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.contact-logo img {
  height: 80px;
  margin-bottom: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
}

.contact-card {
  background: #fff;
  color: #0f2746;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.contact-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

.contact-card a {
  color: #0f2746;
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  color: #f28c28;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}


.contact-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.call-link, .whatsapp-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.call-link {
  background: #0f2746;
  color: #fff !important;
}
.call-link:hover {
  background: #f28c28;
}

.whatsapp-link {
  background: #25d366; /* WhatsApp green */
  color: #fff !important;
}
.whatsapp-link:hover {
  background: #1da851;
}


.faculty-card img {
  width: 100%;
  max-width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 14px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
