:root {
  --bg: #0f7685;
  --text: #14213d;
  --brand: #ff8a00;
  --brand-dark: #e06a00;
  --accent: #ff9f2e;
  --card: #ffffff;
  --border: #dbe3f3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

.container {
  width: min(1080px, 92%);
  margin: 0 auto;
}

.topbar {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: 0.65rem 0;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.topbar button {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.45rem 0.7rem;
}

.topbar-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.985);
  border-bottom: 1px solid #d3def7;
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 16px rgba(10, 31, 100, 0.06);
}

.nav-row {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.brand-mark {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #d0dcf5;
  background: #fff;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #4b5f99;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
}

.nav-toggle-btn {
  display: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--brand-dark);
  background: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link,
.nav-dropdown summary {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.52rem 0.7rem;
  border-radius: 8px;
  list-style: none;
  cursor: pointer;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "▾";
  font-size: 0.72rem;
  color: #5a6aa1;
  transition: transform 0.18s ease;
}

.nav-link:hover,
.nav-dropdown summary:hover {
  background: #edf2ff;
  color: var(--brand);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 220px;
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid #d5dff6;
  background: #fff;
  box-shadow: 0 16px 34px rgba(7, 25, 79, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1),
    visibility 0.18s ease;
  z-index: 10;
}

.dropdown-menu a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 0.52rem 0.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: #edf2ff;
  color: var(--brand);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown[open] .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav-dropdown:hover summary::after,
.nav-dropdown[open] summary::after,
.nav-dropdown:focus-within summary::after {
  transform: rotate(180deg);
}

.nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  box-shadow: 0 8px 16px rgba(8, 29, 97, 0.2);
}

.hero {
  padding: 2.2rem 0 1.7rem;
  background: transparent;
}

.hero-with-image {
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  margin-top: 0;
}

.hero-overlay {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 1.1rem;
}

.hero-banner {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0 0.5rem;
}

.hero-pill-row span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #14306f;
  border: 1px solid #c8d5f5;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  background: #f5f8ff;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.75rem 0 0.95rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  border: 1px solid var(--brand);
  box-shadow: 0 8px 18px rgba(13, 44, 141, 0.18);
}

.cta-outline {
  background: #fff;
  color: var(--brand);
  border-color: #bfccee;
  box-shadow: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 1.2rem;
}

.stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.stats article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  border-top: 3px solid #b9caef;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(13, 44, 141, 0.08);
}

.talk-card {
  align-self: start;
}

.expert-phones {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0 0.95rem;
}

.expert-phones a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid #c9d6f4;
  background: #f7f9ff;
  color: var(--brand-dark);
  font-weight: 700;
}

.talk-enquire-btn {
  width: 100%;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.85rem, 2.8vw, 2.7rem);
}

h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  margin-bottom: 1rem;
}

h2::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

form {
  display: grid;
  gap: 0.65rem;
}

label {
  font-size: 0.9rem;
  display: grid;
  gap: 0.35rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  min-height: 44px;
  width: 100%;
}

button {
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  min-height: 44px;
  cursor: pointer;
}

button:hover {
  background: var(--brand-dark);
}

form button {
  width: 100%;
}

.section {
  padding: 2.2rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.06);
}

.section-kicker {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
}

.impact-strip-wrap {
  padding-top: 0;
}

.impact-strip {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.impact-strip article {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  box-shadow: 0 8px 20px rgba(13, 44, 141, 0.06);
}

.impact-value {
  margin: 0 0 0.35rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.offers {
  display: grid;
  gap: 0.6rem;
  padding-left: 1rem;
}

.course-grid {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.2rem;
}

.carousel-shell {
  position: relative;
}

.carousel-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 40px;
  min-height: 40px;
  border-radius: 999px;
  padding: 0;
  z-index: 2;
  background: linear-gradient(180deg, var(--accent), #f17200);
  box-shadow: 0 8px 18px rgba(255, 138, 0, 0.28);
}

.carousel-arrow.is-hidden {
  display: none;
}

#courses-prev,
#gallery-prev {
  left: -14px;
}

#courses-next,
#gallery-next {
  right: -14px;
}

.course-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  flex: 0 0 calc((100% - 1.8rem) / 3);
  min-width: 240px;
  scroll-snap-align: start;
}

.course-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.65rem;
  cursor: zoom-in;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  box-shadow: 0 8px 24px rgba(10, 31, 100, 0.06);
}

.info-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.65rem;
}

/* Faculty: capped card width + square frame so wide layouts don't turn photos into a short strip */
#faculty-list {
  justify-items: center;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

#faculty-list .faculty-card {
  max-width: 280px;
  width: 100%;
}

#faculty-list .faculty-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  background: #e8eef7;
}

.rich-description p {
  margin: 0.45rem 0;
}

.rich-description ol,
.rich-description ul {
  margin: 0.45rem 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.rich-description li p {
  margin: 0.2rem 0;
}

.steps-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  border-left: 4px solid #b9caef;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  font-weight: 700;
  padding: 0.8rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.faq-item p {
  margin: 0;
  padding: 0 0.8rem 0.85rem;
  border-top: 1px solid #e5ecfb;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.gallery-grid {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.2rem;
}

.gallery-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 calc((100% - 1.8rem) / 3);
  min-width: 240px;
  scroll-snap-align: start;
}

.gallery-item img,
.gallery-item video.gallery-item__media {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  background: #0f172a;
}

.gallery-item video.gallery-item__media {
  cursor: pointer;
}

.gallery-item p {
  margin: 0;
  padding: 0.6rem 0.75rem;
}

.gallery-item__badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #c026d3, #7c3aed);
  border-radius: 4px;
  vertical-align: middle;
}

.footer {
  border-top: 1px solid #c7d5f2;
  padding: 1rem 0;
  background: rgba(244, 248, 255, 0.97);
}

.footer a {
  color: var(--brand-dark);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-social-block {
  margin-top: 0.35rem;
}

.footer-social-heading {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6b8a;
}

.footer-social,
.topbar-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.topbar-social {
  opacity: 0.98;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, filter 0.18s ease;
}

.social-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.social-btn__icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.social-btn--topbar {
  width: 2.1rem;
  height: 2.1rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.social-btn--topbar .social-btn__icon {
  width: 1.05rem;
  height: 1.05rem;
}

.social-btn--topbar:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.footer-social .social-btn {
  width: 2.65rem;
  height: 2.65rem;
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(15, 40, 80, 0.2);
}

.footer-social .social-btn__icon {
  width: 1.3rem;
  height: 1.3rem;
}

.footer-social .social-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 22px rgba(15, 40, 80, 0.28);
  filter: brightness(1.06);
}

.footer-social .social-btn:focus-visible {
  outline-color: var(--brand-dark, #1f4ed8);
}

.social-btn--instagram {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 75%, #515bd4 100%);
}

.social-btn--facebook {
  background: #1877f2;
}

.social-btn--youtube {
  background: #ff0000;
}

.form-hint {
  margin: -0.25rem 0 0.5rem;
  font-size: 0.82rem;
  color: #5a6b8a;
  line-height: 1.35;
}

.status {
  min-height: 1.25rem;
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
}

.admin-auth-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 0.55rem;
  font-size: 0.9rem;
  vertical-align: top;
}

.thumb {
  width: 80px;
  height: 55px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  background: #0f172a;
}

.auth-card {
  max-width: 460px;
}

.hero-preview-img {
  width: min(100%, 540px);
  max-height: 240px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: none;
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 1rem 2.75rem;
}

.image-modal.open {
  display: flex;
}

.enquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 16, 48, 0.56);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.enquiry-modal.open {
  display: flex;
}

.enquiry-modal-card {
  position: relative;
  width: min(92vw, 560px);
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d8e2f7;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 22px 44px rgba(7, 25, 79, 0.24);
}

.enquiry-close-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 38px;
  min-height: 38px;
  border-radius: 999px;
  padding: 0;
}

.enquiry-modal-phones {
  grid-template-columns: 1fr 1fr;
}

.modal-figure {
  margin: 0;
  max-width: min(92vw, 1100px);
  max-height: 90vh;
  display: grid;
  gap: 0.55rem;
}

.modal-figure img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.modal-video {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #000;
}

.modal-video[hidden] {
  display: none !important;
}

.modal-figure figcaption {
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 42px;
  min-height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  min-height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.modal-nav-left {
  left: 0.85rem;
}

.modal-nav-right {
  right: 0.85rem;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .nav-row {
    min-height: 64px;
    padding: 0.55rem 0;
  }

  .nav-toggle-btn {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 26px rgba(10, 31, 100, 0.1);
    padding: 0.65rem 4%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-link,
  .nav-dropdown summary {
    width: 100%;
    padding: 0.65rem 0.55rem;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: 1px solid #e3eaf8;
    margin-top: 0.2rem;
    margin-bottom: 0.45rem;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-dropdown[open] .dropdown-menu {
    display: block;
  }

  .topbar-row,
  .footer-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .impact-strip {
    grid-template-columns: 1fr;
  }

  .enquiry-modal-phones {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: 94%;
  }

  .hero {
    padding: 1.25rem 0;
  }

  .section {
    padding: 0.75rem 0 1.5rem;
  }

  .card {
    padding: 0.85rem;
  }

  h1 {
    font-size: 1.45rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .course-grid,
  .gallery-grid {
    gap: 0.75rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-pill-row span {
    font-size: 0.74rem;
  }

  .carousel-arrow {
    width: 34px;
    min-height: 34px;
  }

  #courses-prev,
  #gallery-prev {
    left: -6px;
  }

  #courses-next,
  #gallery-next {
    right: -6px;
  }

  .course-item,
  .gallery-item {
    flex-basis: calc((100% - 0.75rem) / 2);
  }

  .gallery-item img,
  .gallery-item video.gallery-item__media {
    height: 190px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .brand-logo-img {
    width: 44px;
    height: 44px;
  }

  .brand-text small {
    display: none;
  }

  .nav-link,
  .nav-dropdown summary,
  .dropdown-menu a {
    font-size: 0.9rem;
  }

  table {
    min-width: 640px;
  }

  th,
  td {
    font-size: 0.84rem;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .course-item,
  .gallery-item {
    flex-basis: 100%;
  }

  .image-modal {
    padding: 0.75rem 2.25rem;
  }

  .modal-nav-left {
    left: 0.45rem;
  }

  .modal-nav-right {
    right: 0.45rem;
  }

  .gallery-item img,
  .gallery-item video.gallery-item__media {
    height: 170px;
  }
}
