/* ESAC Academy Website (static) - generated draft */
:root {
  --esac-navy: #2a485e;
  /* sampled from brand artwork */
  --esac-navy-2: #1e3f54;
  --esac-gold: #b08a2e;
  --esac-ink: #0f172a;
  --esac-muted: #475569;
  --esac-bg: #f7f8fb;
  --esac-card: #ffffff;
  --esac-border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --max: 1120px;
  --primary: #0a3d62;
  --accent: #00b4d8;
  --bg: #ffffff;
  --card: #ffffff;
  --text: #1e2937;
  --gray: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --error: #b91c1c;
  --error-bg: #fee2e2;
  --error-border: #fecaca;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--esac-ink);
  background: var(--esac-bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

p {
  margin: 0 0 1rem
}

ul {
  margin: 0;
  padding-left: 1.2rem
}

li {
  margin: .35rem 0
}

.container {
  width: min(100%, calc(var(--max) + 2rem));
  margin: 0 auto;
  padding: 0 1rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: .75rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 248, 251, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, .7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 220px;
}

.brand img {
  height: 70px;
}

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

.brand .brand-text strong {
  font-size: .95rem;
  letter-spacing: .2px
}

.brand .brand-text span {
  font-size: .78rem;
  color: var(--esac-muted)
}

.nav-toggle {
  display: none;
  border: 1px solid var(--esac-border);
  background: #fff;
  border-radius: 12px;
  padding: .55rem .7rem;
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px
}

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

.nav a {
  color: var(--esac-ink);
  font-size: .93rem;
  padding: .4rem .55rem;
  border-radius: 10px;
}

.nav a:hover {
  text-decoration: none;
}

.nav a[aria-current="page"] {
  background: #fff;
  border: 1px solid var(--esac-border);
  text-decoration: none;
}

.nav .cta {
  background: var(--esac-navy);
  color: #fff;
  padding: .55rem .9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 12px 24px rgba(42, 72, 94, .15);
  text-decoration: none;
}

.nav .cta:hover {
  filter: brightness(1.03);
  text-decoration: none
}

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 3rem;
  overflow: hidden;
  background: #0b1620;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/esacbanner.png") center/cover no-repeat;
  transform: scale(1.02);
}

.hero .container {
  position: relative
}

.hero h1 {
  margin: 0 0 .75rem;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  letter-spacing: .3px;
}

.hero p {
  max-width: 52ch;
  color: rgba(255, 255, 255, .88);
  font-size: 1.05rem;
}

.hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.4rem;
}

.hero .badge {
  background: white;
}

.hero .card strong {
  color: #0f172a;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border-radius: 14px;
  padding: .75rem 1rem;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--esac-gold);
  color: #fff;
}

.btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.02)
}

.btn-secondary {
  background: rgba(255, 255, 255, .10);
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
}

.btn-secondary:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, .14)
}

/* Secondary button for light backgrounds */
.btn-outline {
  background: #fff;
  color: var(--esac-navy);
  border: 1px solid rgba(42, 72, 94, .24);
}

.btn-outline:hover {
  text-decoration: none;
  background: rgba(42, 72, 94, .04);
}

/* Sections */
.section {
  padding: 3.2rem 0
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: 1.6rem;
}

.section-title h2 {
  margin: 0;
  font-size: 1.75rem
}

.section-title p {
  margin: 0;
  color: var(--esac-muted)
}

.grid {
  display: grid;
  gap: 1.1rem;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

@media (max-width: 900px) {
  .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width: 620px) {

  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr
  }
}

/* Cards */
.card {
  background: var(--esac-card);
  border: 1px solid var(--esac-border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

.card h3 {
  margin: .2rem 0 .55rem;
  font-size: 1.05rem
}

.card p {
  color: var(--esac-muted)
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  color: var(--esac-navy);
  background: rgba(42, 72, 94, .08);
  border: 1px solid rgba(42, 72, 94, .16);
  padding: .28rem .55rem;
  border-radius: 999px;
  font-weight: 600;
}

.kpi {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.kpi strong {
  font-size: 1.25rem
}

.kpi span {
  font-size: .9rem;
  color: var(--esac-muted)
}

.split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.4rem;
  align-items: end;
}

/* Full width card */
.full-row {
  width: 100%;
  margin-bottom: 1.5rem;
}

/* Bottom split */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: center;
}

/* Image fix */
.media img {
  width: 100%;
  height: auto;
  display: block;
}
.mission-cards {
  padding: 27px 1.1rem;
}
.about-note{
  font-size: 15px;
}
/* Responsive */
@media (max-width: 768px) {
  .split-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr
  }
}

/* Media cards */
.media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--esac-border);
  background: #fff;
  box-shadow: var(--shadow);
}

.media img {
  width: 100%
}

/* Details / accordion */
details {
  background: #fff;
  border: 1px solid var(--esac-border);
  border-radius: var(--radius);
  padding: .9rem 1rem;
}

details+details {
  margin-top: .8rem
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 800;
}

summary::-webkit-details-marker {
  display: none
}

summary .muted {
  font-weight: 600;
  color: var(--esac-muted);
  font-size: .92rem;
}

details[open] {
  box-shadow: var(--shadow)
}

details .details-body {
  margin-top: .85rem;
  color: var(--esac-muted)
}

details .details-body h4 {
  color: var(--esac-ink);
  margin: 1rem 0 .4rem
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr
  }
}

.gallery a {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--esac-border);
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.gallery a:hover {
  transform: translateY(-2px);
  transition: .15s ease;
  text-decoration: none
}

/* Callout */
.callout {
  background: linear-gradient(135deg, rgba(42, 72, 94, .12), rgba(176, 138, 46, .12));
  border: 1px solid rgba(42, 72, 94, .18);
  border-radius: 20px;
  padding: 1.25rem;
}

.callout h3 {
  margin: .2rem 0 .4rem
}

.callout p {
  margin: 0;
  color: var(--esac-muted)
}

/* Footer */
.site-footer {
  padding: 2.2rem 0;
  background: #0b1620;
  color: rgba(255, 255, 255, .85);
  margin-top: 2rem;
}

.site-footer a {
  color: #fff
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr
  }
}

.footer-title {
  color: #fff;
  font-weight: 800;
  margin: .2rem 0 .7rem
}

.small {
  font-size: .9rem;
  color: rgba(255, 255, 255, .75)
}

.hr {
  height: 1px;
  background: rgba(255, 255, 255, .10);
  margin: 1.2rem 0
}

/* Modal (lightbox) */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  z-index: 2000;
}

.modal.open {
  display: flex
}

.modal-inner {
  max-width: min(1100px, 100%);
  max-height: 86vh;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 35px 80px rgba(0, 0, 0, .35);
  background: #000;
}

.modal-inner img {
  max-height: 86vh;
  width: auto;
  margin: auto
}

.modal-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  padding: .6rem .75rem;
  border-radius: 999px;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .nav {
    gap: 10px;
  }
}

/* Responsive nav */
@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex
  }

  .nav {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 4.3rem;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    background: #fff;
    border: 1px solid var(--esac-border);
    border-radius: 16px;
    padding: .55rem;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.open {
    display: flex
  }

  .nav a {
    padding: .75rem .9rem
  }

  .nav .cta {
    text-align: center
  }
}

/* Utility */
.note {
  font-size: .92rem;
  color: var(--esac-muted);
}


/* Page hero */
.page-hero {
  --hero-img: url("../img/about-esac.png");
  position: relative;
  padding: 8rem 2.2rem;
  background: #0b1620;
  color: #fff;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 1;
  background: linear-gradient(rgb(0 0 0 / 42%), rgb(0 0 0 / 49%)),
    var(--hero-img, url("../img/about-esac.png")) center / cover no-repeat;
  transition: none;
}

.page-hero .container {
  position: relative
}

.page-hero h1 {
  margin: .2rem 0 .6rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem)
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .86);
  max-width: 70ch
}


.page-hero.training {
  --hero-img: url("../img/clusters_overview.webp");
}

.page-hero.approvals {
  --hero-img: url("../img/approvals.webp");
}

.page-hero.facility {
  --hero-img: url("../img/facility2.webp");
}

.page-hero.contact {
  --hero-img: url("../img/team.jpeg");
  padding: 8rem 2.2rem;
}

.page-hero.contact::before {
  opacity: 0.60;
}

.login_banner {
  --hero-img: url("../img/academy_login.png") !important;
}

.verify_banner {
  --hero-img: url("../img/academy_verify(1).png") !important;
}

.coroporate_banner {
  --hero-img: url("../img/academy_corporate.png") !important;
}

.cluster_banner {
  --hero-img: url("../img/academy_clusters.png") !important;
}

.shedule_banner {
  --hero-img: url("../img/academy_schedule.png") !important;
}

.about_banner {
  --hero-img: url("../img/academy_about.png") !important;
}

.courses_banner {
  --hero-img: url("../img/academy_cources.png") !important;
}


/* ---------------------------------------------------
   ESAC Academy - Catalogue & Navigation extensions
   (Clusters / Courses / Schedule / Careers)
--------------------------------------------------- */

/* Dropdown (Clusters) */
.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: 1px solid transparent;
  font: inherit;
  color: var(--esac-ink);
  font-size: .93rem;
  padding: .4rem .55rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.dropbtn:hover {
  background: rgba(255, 255, 255, .6);
  border-color: rgba(229, 231, 235, .9);
}

.dropdown-content {
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  min-width: 320px;
  background: #fff;
  border: 1px solid var(--esac-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: .55rem;
  display: none;
  z-index: 2000;
  top: 37px;
}

.dropdown-content a {
  display: block;
  padding: .6rem .75rem;
  border-radius: 12px;
  font-size: .92rem;
}

.dropdown-content a:hover {
  background: rgba(42, 72, 94, .06);
  text-decoration: none;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Banner hero (for catalogue pages) */
.banner-hero {
  --hero-img: url("../img/cover.webp");
  position: relative;
  padding: 8rem 2.2rem;
  background: #0b1620;
  color: #fff;
  overflow: hidden;
}

.banner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 22, 32, .92) 0%, rgba(11, 22, 32, .55) 55%, rgba(11, 22, 32, .22) 100%),
    var(--hero-img) center/cover no-repeat;
}

.banner-hero .container {
  position: relative;
}

.banner-hero h1 {
  margin: .2rem 0 .55rem;
  font-size: clamp(1.9rem, 3.1vw, 2.6rem);
}

.banner-hero p {
  margin: .6rem 0 0;
  color: rgba(255, 255, 255, .86);
  max-width: 70ch;
}

.breadcrumbs {
  font-size: .92rem;
  color: rgba(255, 255, 255, .75);
}

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

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Search */
.search-panel {
  padding: 1.5rem 0;
}

.search-bar {
  display: flex;
  gap: .6rem;
  background: #fff;
  border: 1px solid var(--esac-border);
  border-radius: 16px;
  padding: .55rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: .8rem .9rem;
  background: transparent;
}

.search-bar button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: none;
  border-radius: 14px;
  padding: .8rem 1rem;
  background: var(--esac-gold);
  font-weight: 800;
  cursor: pointer;
}

.search-bar button svg {
  width: 20px;
  height: 20px;
}

.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .9rem;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chip {
  border: 1px solid var(--esac-border);
  background: #fff;
  padding: .45rem .75rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: .86rem;
}

.chip.active {
  background: rgba(42, 72, 94, .10);
  border-color: rgba(42, 72, 94, .26);
}

/* Clusters grid */
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .cluster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.cluster-tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--esac-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
  text-decoration: none;
}

.cluster-tile:hover {
  transform: translateY(-2px);
  transition: .15s ease;
  text-decoration: none;
}

.cluster-thumb {
  height: 150px;
  overflow: hidden;
  background: #0b1620;
}

.cluster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cluster-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.cluster-pill {
  align-self: flex-start;
  font-size: .78rem;
  font-weight: 900;
  background: rgba(42, 72, 94, .08);
  color: var(--esac-navy);
  border: 1px solid rgba(42, 72, 94, .16);
  padding: .28rem .55rem;
  border-radius: 999px;
}

.cluster-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.cluster-stats {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--esac-muted);
  font-weight: 800;
}

.cluster-stats strong {
  color: var(--esac-ink);
}

.cluster-divider {
  width: 1px;
  height: 16px;
  background: var(--esac-border);
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.logo-badge {
  font-size: .78rem;
  font-weight: 900;
  color: var(--esac-muted);
  border: 1px solid var(--esac-border);
  padding: .18rem .45rem;
  border-radius: 10px;
  background: #fff;
}

/* Courses */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.course-card {
  background: #fff;
  border: 1px solid var(--esac-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

.course-thumb {
  position: relative;
  height: 175px;
  overflow: hidden;
  background: #0b1620;
}

.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-code {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--esac-navy);
  color: #fff;
  font-weight: 900;
  font-size: .78rem;
  padding: .35rem .6rem;
  border-top-right-radius: 14px;
}

.course-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.course-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.course-meta {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  color: var(--esac-muted);
  font-size: .9rem;
}

.meta-row {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
}

.meta-row svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  opacity: .8;
  flex: 0 0 auto;
}

.meta-sep {
  opacity: .45;
}

.course-actions {
  margin-top: auto;
  display: flex;
  gap: .6rem;
  padding: 0 1rem 1rem;
}

.btn-red {
  background: #b80c0c;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  padding: .6rem .85rem;
  font-weight: 900;
  font-size: .9rem;
}

.btn-blue {
  background: #0b5bd3;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  padding: .6rem .85rem;
  font-weight: 900;
  font-size: .9rem;
}

.btn-red:hover,
.btn-blue:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

/* Schedule table */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--esac-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

.table th,
.table td {
  padding: .85rem .8rem;
  border-bottom: 1px solid var(--esac-border);
  text-align: left;
  font-size: .92rem;
  vertical-align: top;
}

.table th {
  background: rgba(42, 72, 94, .06);
  font-weight: 900;
}

.table tr:last-child td {
  border-bottom: none;
}

.table .actions {
  white-space: nowrap;
}

/* Careers */
.job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.job-card {
  background: #fff;
  border: 1px solid var(--esac-border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

.job-card h3 {
  margin: .2rem 0 .45rem;
  font-size: 1.05rem;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .6rem 0;
}

.job-meta span {
  font-size: .78rem;
  font-weight: 900;
  color: var(--esac-muted);
  border: 1px solid var(--esac-border);
  background: #fff;
  padding: .22rem .55rem;
  border-radius: 999px;
}

@media (min-width: 991px) and (max-width: 1100px) {
  .nav {
    gap: 6px;
  }

  .brand {
    gap: 5px;
  }

  .brand img {
    height: 50px;
  }

  .brand .brand-text span {
    font-size: 11px;
    color: var(--esac-muted);
  }
}

@media (min-width: 920px) and (max-width: 991px) {
  .brand {
    gap: 5px;
  }

  .brand img {
    height: 50px;
  }

  .nav a {
    padding: .4rem 8px;
    font-size: 13px;
  }

  .dropbtn {
    padding: .4rem .55rem;
  }

  .nav {
    gap: 7px;
  }

  .brand .brand-text span {
    font-size: 10px;
  }
}

/* Mobile dropdown behaviour */
@media (max-width: 920px) {
  .dropdown-content {
    position: static;
    min-width: auto;
    box-shadow: none;
    border: none;
    padding: 0;
    display: none;
    margin-top: .15rem;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }

  .dropbtn {
    width: 100%;
    justify-content: space-between;
    padding: .75rem .9rem;
    border-radius: 12px;
  }

  .dropdown-content a {
    padding: .7rem .9rem;
    border-radius: 12px;
  }
}

/* ---------------------------------------------------
   Course Details Page
--------------------------------------------------- */

.course-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 900px) {
  .course-layout {
    grid-template-columns: 1fr;
  }
}

.course-sidebar {
  position: sticky;
  top: 5.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 900px) {
  .course-sidebar {
    position: static;
  }
}

.toc-links {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: .75rem;
}

.toc-links a {
  display: block;
  padding: .55rem .65rem;
  border-radius: 12px;
  border: 1px solid var(--esac-border);
  background: #fff;
  font-weight: 900;
  font-size: .9rem;
  text-decoration: none;
}

.toc-links a:hover {
  background: rgba(42, 72, 94, .06);
  text-decoration: none;
}

.course-section {
  scroll-margin-top: 6.2rem;
}

.course-section h2 {
  margin: .25rem 0 .75rem;
  font-size: 1.25rem;
}

.course-kv {
  list-style: none;
  margin: .65rem 0 0;
  padding: 0;
}

.course-kv li {
  margin: .45rem 0;
}

.day-outline details {
  padding: .85rem 1rem;
}

.day-outline details summary {
  font-weight: 900;
}

.day-outline details+details {
  margin-top: .7rem;
}

/* 26-3-26 */
._gr_certificate .form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 20px;
}

._gr_certificate .form-group {
  display: flex;
  flex-direction: column;
}

._gr_certificate .label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.95rem;
}

._gr_certificate .input,
._gr_certificate .select {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s;
}

._gr_certificate .input:focus,
._gr_certificate .select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.1);
  outline: none;
}

._gr_certificate .select {
  background: white;
  cursor: pointer;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230a3d62' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* Messages */
._gr_certificate .error-msg {
  margin-top: 25px;
  padding: 16px 22px;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: 10px;
  color: var(--error);
  font-size: 0.97rem;
  display: none;
  animation: slideIn 0.3s ease;
}

/* Result */
._gr_certificate .result {
  margin-top: 35px;
  padding: 30px;
  background: #f0fdf4;
  border: 2px solid #d1fae5;
  border-radius: 14px;
  display: none;
  animation: slideIn 0.3s ease;
}

._gr_certificate .result.show {
  display: block;
}

._gr_certificate .success-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

._gr_certificate .success-header i {
  font-size: 2.4rem;
  color: var(--success);
}

._gr_certificate .success-header div {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--success);
}

._gr_certificate .kv-grid {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px 30px;
  padding: 14px 0;
  border-bottom: 1px solid #d1fae5;
  align-items: center;
}

._gr_certificate .kv-label {
  color: var(--gray);
  font-weight: 500;
}

._gr_certificate .kv-value {
  font-weight: 600;
  color: var(--text);
}

._gr_certificate .result-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #d1fae5;
}

._gr_certificate #certificateDisplay {
  display: none !important;
}

/* Certificate */
._gr_certificate .certificate-container {
  background: white;
  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  padding: 60px;
  border: 3px solid var(--primary);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(10, 61, 98, 0.2);
  text-align: center;
  display: none;
}

._gr_certificate .certificate-container.show {
  display: block;
}

._gr_certificate .certificate-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
}

._gr_certificate .certificate-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  ._gr_certificate .form-row {
    grid-template-columns: 1fr;
  }

  ._gr_certificate .kv-grid {
    grid-template-columns: 1fr;
  }

  ._gr_certificate .certificate-container {
    padding: 40px 30px;
  }

  ._gr_certificate .certificate-title {
    font-size: 2rem;
  }

  ._gr_certificate .certificate-details {
    grid-template-columns: 1fr;
  }
}