:root {
  --bg-main: #F9FAFB;
  --bg-soft: #F1F5F9;
  --bg-white: #FFFFFF;
  --bg-dark: #020617;

  --text-main: #0F172A;
  --text-secondary: #334155;
  --text-muted: #475569;

  --text-light: #E5E7EB;
  --text-light-strong: #F8FAFC;

  --border-light: #E5E7EB;
  --accent: #1E293B;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
}

/* CONTAINERS */
.container {
  width: 65%;
  max-width: 1280px;
  margin: auto;
}

.narrow {
  max-width: 900px;
}

/* NAVBAR */
.navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  width: 75%;
  max-width: 1280px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-size: 20px;
  font-weight: 600;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
}

nav a.active,
nav a:hover {
  color: var(--text-main);
  border-bottom: 2px solid var(--accent);
}

/* HERO */
.hero {
  position: relative;
  height: 90vh;
  background: url("../images/hero-study.png") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.68);
}

.hero-content {
  position: relative;
  color: var(--text-light-strong);
  padding-top: 140px;
}

.hero h1 {
  font-size: 46px;
  font-weight: 600;
}

.tagline {
  font-size: 20px;
  margin-top: 8px;
  color: var(--text-light);
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 32px;
  color: var(--text-light);
}

/* BUTTONS */
.btn-primary {
  background: var(--bg-white);
  color: var(--accent);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary {
  border: 2px solid var(--bg-white);
  color: var(--bg-white);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  margin-left: 12px;
  white-space: nowrap;
}

/* SECTIONS */
.section {
  padding: 50px 0;
}

.section.light {
  background: var(--bg-white);
}

.section.soft {
  background: var(--bg-soft);
}

.section.dark {
  background: linear-gradient(
    180deg,
    #020617 0%,
    #020617 70%,
    #01040f 100%
  );
  color: var(--text-light);
}

.section h2 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 22px;
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.section.dark h2 {
  color: var(--text-light-strong);
}

.section.dark p {
  color: var(--text-light);
}


/* GRID */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 44px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* FACILITIES */
.facility-list {
  list-style: none;
  margin-top: 20px;
}

.facility-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* TIMINGS */
.timing {
  margin: 6px 0;
}

.highlight {
  font-weight: 600;
}

/* FOOTER */
.footer {
  background: #020617;
  color: #CBD5E1;
  padding: 44px 0;
  text-align: center;
  border-top: 1px solid #1E293B;
}

.footer p {
  margin-bottom: 8px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .container,
  .nav-container {
    width: 90%;
  }

  /* nav ul {
    display: none;
  } */

  .hero {
    height: 70vh;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .hero-buttons a {
    text-align: center;
  }
}



/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
}

.gallery-item p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
}
/* GALLERY end */


/* ==============================
   MOBILE MENU (ACCESSIBLE)
================================ */

/* ==============================
   MOBILE MENU – FIXED VERSION
================================ */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-main);
}

/* Mobile only */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    display: none;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
      gap: 10px;
  }

/* nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
} */

  nav li {
    border-top: 1px solid var(--border-light);
  }

  nav a {
    display: block;
    padding: 14px 20px;
    color: var(--text-main);
  }
}


/* Mobile Menu End */


/* FACILITIES – IMAGE LAYOUT */

.facility-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.facility-row.reverse {
  grid-template-columns: 1fr 1fr;
}

.facility-text h2 {
  margin-bottom: 14px;
}

.facility-image img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  object-fit: cover;
}

/* Mobile */
@media (max-width: 768px) {
  .facility-row {
    grid-template-columns: 1fr;
  }

  .facility-row,
  .facility-row.reverse {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .facility-image img {
    width: 100%;
    height: auto;
  }

  .facility-text {
    order: 1;
  }

  .facility-image {
    order: 2;
  }
}
/* FACILITIES – IMAGE LAYOUT END */



/* STUDY TIMINGS GRID */

.timing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.timing-box {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
}

.timing-box strong {
  display: block;
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.timing-box span {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Empty placeholder (visual balance only) */
.timing-box.empty {
  background: transparent;
  border: none;
}

/* Full-width row */
.timing-box.full {
  grid-column: 1 / -1;
  background: var(--bg-white);
  border: 2px solid var(--accent);
}

/* Contact note centered */
.contact-note {
  text-align: center;
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-secondary);
}
