/* ================================================================
   BANMABFAB SCHOOL — Premium Blue & Gold Edition
   สำหรับใช้กับ index_new.php + navbar_new.php (sidebar layout)
   ================================================================ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* palette */
  --clr-forest:  #0F2C5A;
  --clr-leaf:    #1D5FBE;
  --clr-mint:    #5BA4F5;
  --clr-mist:    #EBF3FF;
  --clr-gold:    #F5C030;
  --clr-gold-lt: #FEF6DC;
  --clr-white:   #FFFFFF;
  --clr-text:    #111827;
  --clr-muted:   #4B6A8F;
  --clr-border:  #D6E6F8;

  /* type */
  --ff-display: 'Pridi', sans-serif;
  --ff-body:    'Anuphan', sans-serif;

  /* radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 999px;

  /* shadows — richer, layered */
  --shadow-sm: 0 1px 3px rgba(15,44,90,.06), 0 1px 2px rgba(15,44,90,.04);
  --shadow-md: 0 4px 20px rgba(15,44,90,.10), 0 1px 4px rgba(15,44,90,.06);
  --shadow-lg: 0 16px 56px rgba(15,44,90,.16), 0 4px 16px rgba(15,44,90,.08);
  --shadow-glow: 0 0 0 3px rgba(91,164,245,.22);

  /* motion */
  --transition: .28s cubic-bezier(.4,0,.2,1);
  --spring:     .4s  cubic-bezier(.34,1.56,.64,1);
}

/* ── RESET ───────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--ff-body);
  background: #F2F7FF;
  color: var(--clr-text);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--clr-leaf); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-mint); }
ul { list-style: none; }

/* ── SIDEBAR ─────────────────────────────────────────────────── */
#header {
  position: fixed;
  inset: 0 auto 0 0;
  width: 70px;
  background: linear-gradient(180deg, #0A1F45 0%, #0F2C5A 100%);
  z-index: 997;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 24px;
  transition: width var(--transition);
  overflow: hidden;
  box-shadow: 4px 0 32px rgba(10,31,69,.35);
}

#header:hover { width: 222px; }

/* subtle noise texture on sidebar */
#header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M0 0h20v20H0zm20 20h20v20H20z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.header-toggle {
  display: none;
  color: var(--clr-white);
  font-size: 21px;
  cursor: pointer;
  position: fixed;
  top: 14px; left: 14px;
  z-index: 999;
  background: var(--clr-forest);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

#navmenu { width: 100%; flex: 1; position: relative; z-index: 1; }
#navmenu ul { padding: 4px 0; }

#navmenu ul li a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 23px;
  color: rgba(255,255,255,.52);
  font-family: var(--ff-body);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: .01em;
  transition: color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

/* animated left indicator */
#navmenu ul li a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--clr-gold), var(--clr-mint));
  border-radius: 0 2px 2px 0;
  transition: height var(--transition);
}

/* ripple highlight on hover */
#navmenu ul li a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(91,164,245,.12), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.navicon {
  font-size: 19px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  transition: color var(--transition), transform var(--spring);
}

#navmenu ul li a span {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .22s ease, transform .22s ease;
}

#header:hover #navmenu ul li a span {
  opacity: 1;
  transform: translateX(0);
}

#navmenu ul li a:hover,
#navmenu ul li a.active {
  color: var(--clr-white);
}

#navmenu ul li a:hover::after { opacity: 1; }
#navmenu ul li a.active { background: rgba(255,255,255,.07); }
#navmenu ul li a.active::after { opacity: 1; }

#navmenu ul li a:hover::before,
#navmenu ul li a.active::before { height: 26px; }

#navmenu ul li a:hover .navicon { color: var(--clr-mint); transform: scale(1.18); }
#navmenu ul li a.active .navicon { color: var(--clr-gold); }

/* ── MAIN OFFSET ──────────────────────────────────────────────── */
.main { margin-left: 70px; }

/* ── HERO ─────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--clr-forest);
  isolation: isolate;
}

/* hero photo */
#hero > img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .18;
  transform: scale(1.05);
  transition: transform 14s ease;
  will-change: transform;
}
#hero:hover > img { transform: scale(1); }

/* deep multi-layer overlay */
#hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 75% 65% at 18% 52%, rgba(29,95,190,.55) 0%, transparent 65%),
    linear-gradient(170deg,
      rgba(10,31,69,.15) 0%,
      rgba(15,44,90,.88) 55%,
      rgba(10,26,58,.97) 100%);
}

/* ambient gold orb */
#hero::after {
  content: '';
  position: absolute;
  top: -5%; right: 3%;
  width: 480px; height: 480px;
  background: radial-gradient(circle,
    rgba(245,192,48,.15) 0%,
    rgba(91,164,245,.08) 45%,
    transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: orb 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes orb {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-28px, 44px) scale(1.14); }
}

/* animated shimmer lines */
#hero .hero-lines {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
#hero .hero-lines::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom,
    transparent, rgba(245,192,48,.35) 40%,
    rgba(91,164,245,.3) 65%, transparent);
  animation: shimmer 5s ease-in-out infinite alternate;
  transform: translateX(-160px) rotate(-8deg);
}
#hero .hero-lines::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom,
    transparent, rgba(91,164,245,.25) 50%, transparent);
  animation: shimmer 7s ease-in-out infinite alternate-reverse;
  transform: translateX(120px) rotate(6deg);
}

@keyframes shimmer {
  from { opacity: .3; }
  to   { opacity: 1; }
}

#hero .container { position: relative; z-index: 2; }

#hero h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: -.04em;
  line-height: 1.06;
  margin-bottom: 14px;
}

/* gold accent rule before heading */
#hero h2::before {
  content: '';
  display: block;
  width: 44px; height: 4px;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-mint));
  border-radius: 2px;
  margin-bottom: 20px;
}

#hero p {
  font-size: 1.08rem;
  color: rgba(255,255,255,.58);
  margin-bottom: 28px;
  min-height: 1.7em;
}

.typed  { color: var(--clr-mint); }
.typed-cursor { color: var(--clr-gold); }

/* social */
.social-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--clr-white);
  font-size: 16px;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.social-links a:hover {
  background: var(--clr-leaf);
  border-color: var(--clr-leaf);
  color: var(--clr-white);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 22px rgba(29,95,190,.45);
}

/* hero calendar card — glassmorphism */
.hero-calendar {
  margin-top: 30px;
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255,255,255,.16);
  border-top: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  max-width: 400px;
  color: var(--clr-white);
  box-shadow: 0 12px 40px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform var(--transition), box-shadow var(--transition);
}
.hero-calendar:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 52px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12);
}

.hero-calendar .cal-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--clr-mint);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-calendar .cal-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.12);
}

.hero-calendar .cal-date {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-gold);
  line-height: 1.2;
  margin-bottom: 5px;
  text-shadow: 0 0 24px rgba(245,192,48,.3);
}

.hero-calendar .cal-name {
  font-size: .94rem;
  color: rgba(255,255,255,.82);
  line-height: 1.5;
}
.hero-calendar .cal-name a { color: rgba(255,255,255,.88); }
.hero-calendar .cal-name a:hover { color: var(--clr-gold); }

.cal-status-running, .cal-status-coming {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 3px 12px;
  border-radius: var(--radius-xl);
  margin-bottom: 8px;
}
.cal-status-running {
  background: rgba(91,164,245,.2);
  color: #A5CFFF;
  border: 1px solid rgba(91,164,245,.25);
}
.cal-status-coming {
  background: rgba(245,192,48,.18);
  color: var(--clr-gold);
  border: 1px solid rgba(245,192,48,.22);
}

/* ── SECTIONS ─────────────────────────────────────────────────── */
section { padding: 80px 0; }

.section-title { text-align: center; margin-bottom: 54px; }

.section-title h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--clr-forest);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-title h2::after {
  content: '';
  width: 44px; height: 3px;
  background: linear-gradient(90deg, var(--clr-leaf), var(--clr-gold));
  border-radius: 2px;
}

.section-title p { color: var(--clr-muted); font-size: .96rem; margin-top: 14px; }

/* ── STATS — floating card ────────────────────────────────────── */
#stats {
  background: transparent;
  padding: 0;
  margin-top: -68px;
  position: relative;
  z-index: 10;
}

#stats .container {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 38px 32px;
  border: 1px solid rgba(214,230,248,.6);
}

.stats-item { text-align: center; }

.stats-item span.purecounter {
  font-family: var(--ff-display);
  font-size: 2.9rem;
  font-weight: 700;
  color: var(--clr-forest);
  display: block;
  line-height: 1;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--clr-leaf), var(--clr-mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-item p {
  color: var(--clr-muted);
  font-size: .82rem;
  margin-top: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
}

#stats .col-lg-3 > a,
#stats .col-lg-3 > i {
  font-size: 2rem;
  color: var(--clr-mint);
  display: block;
  text-align: center;
  margin-bottom: 10px;
  transition: transform var(--spring);
}
#stats .col-lg-3:hover > a,
#stats .col-lg-3:hover > i { transform: scale(1.18); }

#stats .col-lg-3 {
  border-right: 1px solid var(--clr-border);
  transition: background var(--transition);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
}
#stats .col-lg-3:hover { background: var(--clr-mist); }
#stats .col-lg-3:last-child { border-right: none; }

/* ── ABOUT ────────────────────────────────────────────────────── */
#about { background: var(--clr-white); }

#about .content h2 {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--clr-forest);
  margin-bottom: 18px;
}

#about .content ul {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

#about .content ul li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .88rem;
  color: var(--clr-text);
  padding: 11px 15px;
  background: var(--clr-mist);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--clr-mint);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
#about .content ul li:hover {
  border-left-color: var(--clr-gold);
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

#about .content ul li i { color: var(--clr-leaf); flex-shrink: 0; margin-top: 2px; }
#about .content ul li strong { color: var(--clr-forest); font-weight: 600; margin-right: 4px; }

#about .img-fluid {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform .6s ease, box-shadow .6s ease;
}
#about .img-fluid:hover {
  transform: scale(1.025) translateY(-4px);
  box-shadow: 0 28px 64px rgba(15,44,90,.2);
}

/* ── NEWS / RESUME ────────────────────────────────────────────── */
#resume { background: var(--clr-mist); }

.resume-title {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-forest);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--clr-border);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* colored accent block before title */
.resume-title::before {
  content: '';
  width: 4px; height: 20px;
  background: linear-gradient(to bottom, var(--clr-leaf), var(--clr-mint));
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
}

.resume-item {
  padding: 16px 18px;
  background: var(--clr-white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid rgba(214,230,248,.8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.resume-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--clr-mint);
  transform: translateY(-2px);
}

.resume-item h4 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--clr-forest);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.45;
  margin-bottom: 5px;
}
.resume-item h4 a {
  color: var(--clr-forest);
  flex: 1;
  min-width: 0;
  transition: color var(--transition);
}
.resume-item h4 a:hover { color: var(--clr-leaf); }

.resume-item h5 {
  font-size: .76rem;
  color: var(--clr-muted);
  font-weight: 400;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.resume-item p { font-size: .84rem; color: var(--clr-muted); margin: 0; line-height: 1.6; }

/* badge pills */
.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 11px;
  border-radius: var(--radius-xl);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-news  { background: #DBEAFE; color: #1D4ED8; }
.badge-proc  { background: #FCE7F3; color: #9D174D; }
.badge-other { background: var(--clr-gold-lt); color: #92400E; }
.badge-new   { background: var(--clr-gold); color: #1a1a1a; }

.news-link { color: var(--clr-forest); }
.news-link:hover { color: var(--clr-leaf); }

/* ── JOURNALS ─────────────────────────────────────────────────── */
#journals { background: var(--clr-white); }

/* ── SKILLS / ATTENDANCE ──────────────────────────────────────── */
#skills {
  background: linear-gradient(160deg, #08193A 0%, #0F2C5A 55%, #142F6A 100%);
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
}

/* decorative circles */
#skills::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,164,245,.12), transparent 65%);
  pointer-events: none;
}
#skills::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,192,48,.1), transparent 65%);
  pointer-events: none;
}

#skills .container { position: relative; z-index: 1; }
#skills .section-title h2 { color: var(--clr-white); }
#skills .section-title h2::after { background: linear-gradient(90deg, var(--clr-gold), var(--clr-mint)); }
#skills .section-title p { color: rgba(255,255,255,.58); }

.progress { margin-bottom: 20px; }

.progress h5 {
  font-size: .86rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  margin-bottom: 8px;
}

.skill { display: flex; justify-content: space-between; align-items: center; }
.skill span:first-child { color: rgba(255,255,255,.72); }

.val {
  font-family: var(--ff-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--clr-gold);
  text-shadow: 0 0 16px rgba(245,192,48,.4);
}

.progress-bar-wrap {
  height: 7px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 6px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-mint), var(--clr-gold));
  border-radius: var(--radius-xl);
  transition: width 1.4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 10px rgba(91,164,245,.4);
}

/* ── TESTIMONIALS / CLASS STATS ───────────────────────────────── */
#testimonials { background: #F4F8FF; }

.testimonial-item {
  background: var(--clr-white);
  border: 1px solid rgba(214,230,248,.7);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
}

.testimonial-content h3 {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-forest);
  margin-bottom: 2px;
}

.testimonial-content h4 {
  font-size: .78rem;
  color: var(--clr-mint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 16px;
}

.testimonial-content .stars i { color: var(--clr-gold); font-size: 13px; }

/* table */
.status table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.status th {
  background: var(--clr-forest);
  color: var(--clr-white);
  padding: 9px 10px;
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.status td {
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text);
  line-height: 1.4;
}
.status tr:nth-child(even) td { background: var(--clr-mist); }
.status tr:last-child td {
  background: var(--clr-gold-lt);
  font-weight: 700;
  color: var(--clr-forest);
  border-bottom: none;
}

/* ── SERVICES / PORTFOLIO ─────────────────────────────────────── */
#services { background: var(--clr-white); }
#portfolio { background: var(--clr-mist); }

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.portfolio-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.portfolio-item:hover img { transform: scale(1.08); }

.portfolio-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10,31,69,.92) 0%,
    rgba(10,31,69,.45) 45%,
    transparent 68%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
}
.portfolio-item:hover .portfolio-info { opacity: 1; }

.portfolio-info h4 {
  font-family: var(--ff-display);
  font-size: .96rem;
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: 3px;
  transform: translateY(8px);
  transition: transform var(--transition);
}
.portfolio-item:hover .portfolio-info h4 { transform: translateY(0); }

.portfolio-info p { color: rgba(255,255,255,.7); font-size: .78rem; margin: 0; }

.portfolio-info a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--clr-white);
  font-size: 14px;
  margin-top: 10px; margin-right: 6px;
  transition: background var(--transition), transform var(--spring);
}
.portfolio-info a:hover {
  background: var(--clr-leaf);
  color: var(--clr-white);
  transform: scale(1.12);
}

/* ── CONTACT ──────────────────────────────────────────────────── */
#contact {
  background: linear-gradient(160deg, #08193A 0%, #0F2C5A 100%);
  color: var(--clr-white);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: -100px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,164,245,.1), transparent 65%);
  pointer-events: none;
}

#contact .section-title h2 { color: var(--clr-white); }
#contact .section-title h2::after { background: linear-gradient(90deg, var(--clr-gold), var(--clr-mint)); }
#contact .section-title p { color: rgba(255,255,255,.6); }

.info-item {
  display: flex;
  gap: 15px;
  padding: 17px 20px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.info-item:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(91,164,245,.35);
  transform: translateX(4px);
}

.info-item > i {
  color: var(--clr-mint);
  font-size: 21px;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  margin-top: 2px;
}

.info-item h3 {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--clr-mint);
  margin-bottom: 4px;
}

.info-item p, .info-item a {
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  line-height: 1.5;
}
.info-item a:hover { color: var(--clr-gold); }

/* contact form */
.contact-form .form-control {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  color: var(--clr-white);
  padding: 13px 17px;
  font-family: var(--ff-body);
  font-size: .9rem;
  width: 100%;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.contact-form .form-control::placeholder { color: rgba(255,255,255,.35); }
.contact-form .form-control:focus {
  outline: none;
  border-color: var(--clr-mint);
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 3px rgba(91,164,245,.18);
}
textarea.form-control { resize: vertical; }

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn-school {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: var(--radius-xl);
  font-family: var(--ff-body);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  letter-spacing: .01em;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* shimmer effect on button hover */
.btn-school::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .5s ease;
}
.btn-school:hover::after { transform: translateX(100%); }

.btn-school-primary {
  background: linear-gradient(135deg, var(--clr-leaf), #1A72E8);
  color: var(--clr-white);
  box-shadow: 0 4px 18px rgba(29,95,190,.38), 0 1px 3px rgba(0,0,0,.1);
}
.btn-school-primary:hover {
  background: linear-gradient(135deg, #1756B0, var(--clr-leaf));
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29,95,190,.5), 0 2px 6px rgba(0,0,0,.1);
}

.btn-school-gold {
  background: linear-gradient(135deg, var(--clr-gold), #EFAF20);
  color: #1a1a1a;
  box-shadow: 0 4px 18px rgba(245,192,48,.4);
}
.btn-school-gold:hover {
  background: linear-gradient(135deg, #EBA818, var(--clr-gold));
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,192,48,.55);
}

.btn-school-outline {
  background: transparent;
  color: var(--clr-white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-school-outline:hover {
  background: rgba(255,255,255,.09);
  border-color: var(--clr-mint);
  color: var(--clr-mint);
}

.btn-school-sm { padding: 6px 16px; font-size: .79rem; }

/* ── FOOTER ───────────────────────────────────────────────────── */
#footer {
  background: #080F1E;
  color: rgba(255,255,255,.62);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255,255,255,.06);
}

#footer strong { color: var(--clr-white); font-weight: 600; }

#footer a {
  color: rgba(255,255,255,.5);
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  transition: color var(--transition), padding-left var(--transition);
}
#footer a:hover { color: var(--clr-mint); padding-left: 5px; }

.text-mint { color: var(--clr-mint); }

.copyright, .credits {
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  margin-top: 8px;
}
.sitename { color: var(--clr-mint); }

/* ── SCROLL TOP ───────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-leaf), var(--clr-mint));
  color: var(--clr-white);
  font-size: 20px;
  z-index: 999;
  box-shadow: 0 6px 24px rgba(29,95,190,.45);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-top.active { opacity: 1; visibility: visible; }
.scroll-top:hover {
  color: var(--clr-white);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 32px rgba(29,95,190,.55);
}

/* ── AOS ──────────────────────────────────────────────────────── */
[data-aos] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos][data-aos-delay="100"].aos-animate { transition-delay: .1s; }
[data-aos][data-aos-delay="200"].aos-animate { transition-delay: .2s; }

/* ── SWIPER ───────────────────────────────────────────────────── */
.swiper-pagination-bullet {
  width: 7px; height: 7px;
  background: var(--clr-border);
  opacity: 1;
  transition: all var(--transition);
}
.swiper-pagination-bullet-active {
  background: var(--clr-leaf);
  width: 22px;
  border-radius: var(--radius-xl);
}

/* ── UTILITY ──────────────────────────────────────────────────── */
.text-gold        { color: var(--clr-gold); }
.text-forest      { color: var(--clr-forest); }
.text-muted-custom { color: var(--clr-muted); }
.bg-mist          { background: var(--clr-mist); }
.bg-white-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-border);
}

/* glightbox */
.glightbox-clean .gclose { background: var(--clr-forest); }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .main { margin-left: 70px; }
}

@media (max-width: 768px) {
  #header { width: 0; overflow: hidden; }
  #header.header-mobile-open { width: 222px; }
  .header-toggle { display: inline-flex; }
  .main { margin-left: 0; }
  #hero h2 { font-size: 2.2rem; }
  #hero h2::before { width: 30px; height: 3px; }
  section { padding: 56px 0; }
  #stats { margin-top: 0; }
  #stats .col-lg-3 { border-right: none; border-bottom: 1px solid var(--clr-border); padding-bottom: 22px; }
  #stats .col-lg-3:last-child { border-bottom: none; }
  .testimonial-item { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}