﻿:root{
  --assetpoint-public-logo-url: url("/assetpoint/uploads/uploads/logo_scit.webp");
  --assetpoint-public-logo-focus: center center;
  --bg: #f7f7f7;
  --bg-soft: #fafafa;
  --surface: #ffffff;
  --surface-2: #fbfbfb;
  --surface-3: #f3f3f3;

  --text: #171717;
  --text-strong: #111111;
  --muted: #666666;
  --muted-2: #838383;

  --line: #e5e5e5;
  --line-strong: #d4d4d4;

  --primary: #111111;
  --primary-2: #242424;
  --primary-soft: #f3f3f3;

  --accent: #f28c28;
  --accent-soft: #fff3e4;

  --success: #0f8a6d;
  --danger: #c43c3c;

  --shadow-sm: 0 8px 18px rgba(17, 17, 17, .06);
  --shadow-md: 0 18px 40px rgba(17, 17, 17, .08);
  --shadow-lg: 0 24px 64px rgba(17, 17, 17, .12);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --max: 1240px;
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}

html, body{
  min-height: 100%;
}

body{
  margin: 0;
  font-family: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #fbfbfb 0%, #f7f7f7 45%, #f2f2f2 100%);
  line-height: 1.55;
  position: relative;
}

body::before{
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: min(68vh, 760px);
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17,17,17,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,.035) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.24) 0%, rgba(0,0,0,.12) 48%, transparent 100%);
  opacity: .45;
}

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

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

button, input, select{
  font: inherit;
}

button{
  border: 0;
  background: none;
}

.skip-link{
  position: absolute;
  left: 16px;
  top: -50px;
  z-index: 999;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: top .2s ease;
}
.skip-link:focus{
  top: 12px;
}

.muted{ color: var(--muted); }
.small{ font-size: 12px; }

.empty{
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--muted);
}

.section-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- TOPBAR ---------- */
.topbar{
  background: linear-gradient(90deg, #111111, #1d1d1d 55%, #242424);
  color: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(242,140,40,.18);
}

.topbar-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left,
.topbar-right{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-badge{
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(242,140,40,.14);
  border: 1px solid rgba(242,140,40,.28);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
}

.topbar-text{
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.86);
}

.topbar-link{
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.86);
  transition: opacity .15s ease, color .15s ease;
}
.topbar-link:hover{
  color: #fff;
  opacity: 1;
}

/* ---------- HEADER ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(17,17,17,.08);
  box-shadow: 0 10px 24px rgba(17,17,17,.05);
}

.header-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr auto;
  align-items: center;
  gap: 14px;
}

.header-left{
  min-width: 0;
}

.header-center{
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.header-right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo{
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f4f4f4);
  border: 1px solid rgba(17,17,17,.08);
  box-shadow:
    0 10px 22px rgba(17,17,17,.08),
    inset 0 1px 0 rgba(255,255,255,.95);
  flex: 0 0 60px;
  padding: 5px;
}
.brand-logo::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
  pointer-events: none;
}
.brand-logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.brand-text{
  min-width: 0;
}

.brand-title{
  font-size: 18px;
  font-weight: 950;
  color: var(--text-strong);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub{
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
}

.main-nav{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.main-nav-link{
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 800;
  transition: background .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
}
.main-nav-link:hover{
  background: var(--accent-soft);
  color: var(--text-strong);
  border-color: rgba(242,140,40,.24);
  transform: translateY(-1px);
}

.nav-toggle{
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  padding: 11px 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span{
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-strong);
}

.mobile-nav{
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.98);
}

.mobile-nav[aria-hidden="false"]{
  display: block;
}

.mobile-nav-menu{
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link{
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 800;
  color: var(--text);
}

.mobile-nav-link-primary{
  background: linear-gradient(135deg, var(--accent), #f59f45);
  border-color: transparent;
  color: #171717;
}

/* ---------- PAGE ---------- */
.page{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 16px 28px;
}

body.modal-open{
  overflow: hidden;
}

/* ---------- BUTTONS ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover{
  transform: translateY(-1px);
}
.btn:active{
  transform: translateY(0);
}

.btn-outline{
  color: var(--text-strong);
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover{
  background: var(--accent-soft);
  border-color: var(--accent);
}

.btn-primary{
  color: #171717;
  background: linear-gradient(135deg, var(--accent), #f59f45);
  box-shadow: 0 14px 32px rgba(242,140,40,.20);
  border: 1px solid rgba(242,140,40,.22);
}
.btn-login-desktop{
  min-height: 42px;
  padding: 8px 13px;
  font-size: 11.5px;
  letter-spacing: .01em;
}
.btn-primary:hover{
  background: linear-gradient(135deg, #ea7b10, #f28c28);
}

.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(17,17,17,.08);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 800;
}

.site-meta-icon{
  width:14px;
  height:14px;
  flex:0 0 auto;
  color:currentColor;
}

.pill{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9b4f06;
  border: 1px solid rgba(242,140,40,.32);
  font-size: 12px;
  font-weight: 900;
}

/* ---------- HERO ---------- */
.hero{
  margin-top: 8px;
}

.hero-shell{
  width: 100%;
}

.hero-slider{
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(17,17,17,.08);
  background: #111111;
  box-shadow: var(--shadow-lg);
  min-height: 500px;
}

.hero-loading{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--muted);
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(6px);
}

.hero-track{
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .45s ease;
}

.hero-slide{
  position: relative;
  min-width: 100%;
  min-height: 500px;
}

.hero-slide.is-clickable{
  cursor: pointer;
}

.hero-slide.is-clickable:hover .hero-box,
.hero-slide.is-clickable:focus-visible .hero-box{
  transform: translateY(-2px);
  border-color: rgba(242,140,40,.38);
  box-shadow: 0 28px 62px rgba(0,0,0,.28);
}

.hero-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17,17,17,.88) 0%, rgba(17,17,17,.72) 40%, rgba(17,17,17,.26) 100%),
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.28));
}

.hero-bg-fallback{
  background:
    linear-gradient(135deg, #181818, #111111),
    linear-gradient(90deg, rgba(242,140,40,.12) 0%, transparent 40%);
  background-blend-mode: normal;
}
.hero-bg-fallback::after{
  background:
    linear-gradient(90deg, rgba(17,17,17,.86) 0%, rgba(17,17,17,.64) 45%, rgba(17,17,17,.24) 100%);
}

.hero-content{
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 34px;
}

.hero-box{
  max-width: 720px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(24,24,24,.88), rgba(17,17,17,.82));
  border: 1px solid rgba(255,255,255,.12);
  border-left: 4px solid var(--accent);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 56px rgba(0,0,0,.20);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hero-kicker{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 800;
}

.badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(242,140,40,.14);
  border: 1px solid rgba(242,140,40,.30);
  color: #fff7ee;
  font-size: 12px;
  font-weight: 900;
}

.hero-title{
  margin: 12px 0 10px;
  color: #fff;
  font-size: 38px;
  font-weight: 950;
  line-height: 1.18;
  letter-spacing: .2px;
}

.hero-desc{
  margin: 0 0 16px;
  color: rgba(255,255,255,.90);
  font-size: 15px;
  line-height: 1.65;
}

.hero-cta{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-nav{
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(17,17,17,.62);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 24px;
  backdrop-filter: blur(8px);
}
.hero-nav:hover{
  background: rgba(26,26,26,.82);
}
.hero-prev{ left: 14px; }
.hero-next{ right: 14px; }

.hero-dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dotbtn{
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.34);
  cursor: pointer;
}
.dotbtn.active{
  background: var(--accent);
}

.hero-note{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 4px 0;
}

/* ---------- QUICK LINKS ---------- */
.quick-links,
.quick-link-card,
.quick-link-icon,
.quick-link-title,
.quick-link-sub{
  display: none !important;
}

/* ---------- INTRO ---------- */
.intro-panel{
  margin-top: 18px;
}

.intro-panel-inner{
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,247,247,.98)),
    #fff;
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: var(--shadow-md);
}

.intro-title{
  margin: 0 0 12px;
  color: var(--text-strong);
  font-size: 34px;
  font-weight: 950;
  line-height: 1.18;
}

.intro-desc{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.intro-side{
  display: flex;
}

.intro-highlight{
  width: 100%;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f6f6f6, #ffffff);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  position: relative;
}
.intro-highlight::before{
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 38px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.intro-highlight-title{
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 950;
  margin: 14px 0 8px;
}

.intro-highlight-desc{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
}

/* ---------- SECTIONS ---------- */
.section{
  margin-top: 30px;
}

.section-secondary{
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(250,250,250,.98), rgba(255,255,255,.98));
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: var(--shadow-sm);
}

.section-support{
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(17,17,17,.05);
}

.section-support .section-title{
  font-size: 22px;
}

.section-support .section-kicker{
  font-size: 11px;
}

#teachersSection{
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,248,248,.98)),
    #fff;
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: var(--shadow-md);
}
#teachersSection::before{
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 170px;
  height: 170px;
  background-image: var(--assetpoint-public-logo-url);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 110%;
  opacity: .04;
  pointer-events: none;
  filter: grayscale(8%);
}
#teachersSection::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(17,17,17,.03), transparent 24%),
    radial-gradient(420px 180px at right bottom, rgba(242,140,40,.06), transparent 60%);
  pointer-events: none;
}

#teachersSection > *{
  position: relative;
  z-index: 1;
}

.section-head{
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-head-left{
  min-width: 0;
  position: relative;
  padding-top: 14px;
}

.section-head-left::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.section-title{
  margin: 0;
  color: var(--text-strong);
  font-size: 26px;
  font-weight: 950;
  line-height: 1.2;
}

.section-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section-actions-wrap{
  justify-content: flex-end;
  align-items: end;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- TEACHERS ---------- */
.teacher-strip{
  display: flex;
  gap: 16px;
  overflow: auto;
  padding: 8px 2px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}
.teacher-strip::-webkit-scrollbar{
  height: 10px;
}
.teacher-strip::-webkit-scrollbar-thumb{
  background: rgba(17,17,17,.18);
  border-radius: 999px;
}

.teacher-card{
  flex: 0 0 auto;
  min-width: 180px;
  max-width: 180px;
  padding: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f7f7f7);
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: 0 16px 34px rgba(17,17,17,.08);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}
.teacher-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(17,17,17,.14);
  border-color: rgba(242,140,40,.26);
}
.teacher-card.active{
  border-color: rgba(242,140,40,.52);
  box-shadow: 0 26px 48px rgba(242,140,40,.14);
  background: linear-gradient(180deg, #ffffff, #fff8ef);
}

.teacher-photo{
  width: 180px;
  height: 210px;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f7f7f7, #ececec);
}

.teacher-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-photo-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.00) 35%, rgba(17,17,17,.18) 100%);
  pointer-events: none;
}

.teacher-body{
  padding: 14px 12px 16px;
  text-align: center;
}

.teacher-name{
  margin: 0;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.4;
}

.teacher-pos{
  margin-top: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.teacher-detail-card{
  display: none !important;
}

/* ---------- FORM FIELD ---------- */
.field{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.field-label{
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.select{
  min-width: 280px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow-sm);
}
.select:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(242,140,40,.14);
}

.schedule-toolbar-public{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: min(320px, 100%);
}

.schedule-status-public{
  max-width: 360px;
  text-align: right;
  line-height: 1.5;
}

/* ---------- SCHEDULE ---------- */
.schedule-card{
  overflow: auto;
  border-radius: 26px;
  border: 1px solid rgba(17,17,17,.08);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.schedule-grid{
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) repeat(7, minmax(140px, 1fr));
  min-width: 1180px;
}

.sgh{
  padding: 14px 12px;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 950;
  background: linear-gradient(180deg, #f8f8f8, #efefef);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sgh:last-child{ border-right: 0; }

.sgh-teacher{
  background: linear-gradient(180deg, #efefef, #e7e7e7);
  color: var(--text-strong);
  position: sticky;
  left: 0;
  z-index: 3;
}

.sgc{
  min-height: 120px;
  padding: 14px 12px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sgc:last-child{ border-right: 0; }

.schedule-grid > :nth-child(8n){
  border-right: 0;
}

.sgc-teacher{
  background: linear-gradient(180deg, #fafafa, #f2f2f2);
  position: sticky;
  left: 0;
  z-index: 2;
}

.sg-teacher-name{
  color: var(--text-strong);
  font-weight: 950;
  margin-bottom: 6px;
}

.sg-teacher-hint{
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.sg-items{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sg-item{
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f6f6f6);
}

.sg-title{
  color: var(--text-strong);
  font-weight: 950;
  margin-bottom: 4px;
  line-height: 1.35;
}

.sg-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

/* ---------- ACTIVITIES ---------- */
.activity-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.activity-card{
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(17,17,17,.08);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.activity-card:hover{
  transform: translateY(-3px);
  border-color: rgba(242,140,40,.24);
  box-shadow: 0 22px 46px rgba(17,17,17,.12);
}

.activity-thumb{
  position: relative;
  height: 210px;
  background: linear-gradient(180deg, #f5f5f5, #ebebeb);
  overflow: hidden;
}

.activity-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.thumb-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(17,17,17,.24));
}

.thumb-fallback{
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.activity-body{
  padding: 14px 14px 16px;
}

.activity-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.activity-badge{
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--text-strong);
  border: 1px solid rgba(242,140,40,.18);
  font-size: 11px;
  font-weight: 900;
}

.activity-date{
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.activity-title{
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.3;
}

.activity-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.activity-desc{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  min-height: 66px;
}

.activity-cta{
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.linkish{
  color: var(--accent);
  font-weight: 900;
}

/* ---------- DOWNLOADS ---------- */
.download-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(17,17,17,.08);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.dl-card:hover{
  transform: translateY(-2px);
  border-color: rgba(242,140,40,.24);
  box-shadow: 0 18px 34px rgba(17,17,17,.08);
}

.dl-left{
  min-width: 0;
}

.dl-title{
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.35;
  margin-bottom: 3px;
}

.dl-sub{
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  word-break: break-word;
}

/* ---------- FOOTER ---------- */
.site-footer{
  margin-top: 34px;
  padding: 26px 0 8px;
  border-top: 1px solid rgba(17,17,17,.08);
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
  padding-bottom: 16px;
  position: relative;
}

.footer-col{
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #171717, #111111);
  border: 1px solid rgba(242,140,40,.12);
  box-shadow: var(--shadow-sm);
}

.footer-title{
  color: #ffffff;
  font-weight: 950;
  margin-bottom: 10px;
}

.footer-text{
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.7;
}

.footer-links{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a{
  color: #ffd2a5;
  font-size: 14px;
  font-weight: 800;
}

.footer-bottom{
  padding: 10px 0 0;
}

/* ---------- MODAL ---------- */
.modal{
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 12, 12, .52);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal[aria-hidden="true"]{
  display: none;
}

.modal-card{
  width: min(1020px, 96vw);
  overflow: hidden;
  max-height: calc(100dvh - 32px);
  border-radius: 28px;
  border: 1px solid rgba(17,17,17,.10);
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(17, 17, 17, .22);
  display: flex;
  flex-direction: column;
}

.modal-head{
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #f7f7f7, #efefef);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
  flex: 0 0 auto;
}

.modal-head-title{
  min-width: 0;
  flex: 1 1 280px;
}

.modal-body{
  padding: 14px 16px 18px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-grid{
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: start;
}

/* ---------- TEACHER MODAL ---------- */
.teacher-modal{
  width: min(980px, 96vw);
}

.teacher-modal-head{
  align-items: start;
  background:
    linear-gradient(135deg, #1a1a1a 0%, #111111 100%);
  border-bottom: 0;
  color: #fff;
}

.teacher-modal-head::after{
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(242,140,40,.05));
}

.teacher-modal-head .btn-outline{
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.20);
  color: #fff;
  box-shadow: none;
}
.teacher-modal-head .btn-outline:hover{
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.30);
}

.teacher-modal-title-wrap{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.teacher-modal-title-wrap .badge{
  width: fit-content;
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.20);
  color: #fff;
}

.teacher-modal-headline{
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.3;
}

.teacher-modal-grid{
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.teacher-visual-panel{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.teacher-modal-nav{
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.teacher-modal-nav .btn{
  min-width: 150px;
}

.teacher-info-panel{
  padding: 0;
}

.teacher-info-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.teacher-info-badge{
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff3e4, #fff9f1);
  border: 1px solid rgba(242,140,40,.20);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 900;
}

.teacher-info-count{
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.teacher-info-name{
  margin-bottom: 12px;
  font-size: 28px;
  line-height: 1.2;
}

.teacher-info-meta{
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff, #f6f6f6);
  border-color: rgba(17,17,17,.08);
}

.teacher-info-block{
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7f7f7);
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: 0 8px 16px rgba(17, 17, 17, .04);
}

.teacher-bio-box{
  margin-bottom: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--text);
}

.teacher-modal-note{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #faf7f2;
  border: 1px dashed rgba(242,140,40,.28);
  line-height: 1.65;
}

.teacher-modal-note strong{
  color: var(--text-strong);
}

.info-subtitle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #171717;
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
}

/* ---------- GALLERY ---------- */
.gallery{
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f3f3f3, #ebebeb);
}

.gallery-track{
  display: flex;
  height: 100%;
  transition: transform .42s ease;
}

.gallery-slide{
  min-width: 100%;
  height: 430px;
  display: grid;
  place-items: center;
  background: #efefef;
}

.gallery-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-empty{
  color: var(--muted);
  font-weight: 900;
}

.gallery-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(17,17,17,.08);
  color: var(--text-strong);
  display: grid;
  place-items: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-nav:hover{
  background: #fff;
}
.gallery-prev{ left: 12px; }
.gallery-next{ right: 12px; }

.gallery-dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.gallery-dots .dotbtn{
  background: rgba(17,17,17,.24);
}
.gallery-dots .dotbtn.active{
  background: var(--accent);
}

/* ---------- Teacher modal image fix ---------- */
#tView{
  width: 100%;
  max-width: 380px;
  min-height: 280px;
  height: min(480px, 48vh);
  max-height: 480px;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: 0 16px 34px rgba(17, 17, 17, .08);
}

#tView .gallery-track{
  height: 100%;
}

#tView .gallery-slide{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
  background: #ffffff;
}

#tView .gallery-slide img{
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

/* ---------- INFO ---------- */
.info{
  padding: 4px 6px 6px;
}

.info-title{
  margin: 0 0 12px;
  color: var(--text-strong);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.28;
}

.info-meta{
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #faf7f2, #f2f2f2);
  border: 1px solid var(--line);
}

.meta-row{
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.info-desc{
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.info-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

/* ---------- TEACHER MINI SCHEDULE ---------- */
.mini-schedule{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.mini-day{
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(17,17,17,.08);
  background: linear-gradient(180deg, #ffffff, #f6f6f6);
}

.mini-day-name{
  margin-bottom: 8px;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 950;
}

.mini-items{
  display: grid;
  gap: 8px;
}

.mini-item{
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(17,17,17,.08);
  background: linear-gradient(180deg, #ffffff, #f5f5f5);
}

.mini-item-title{
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.mini-item-meta{
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.mini-more{
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.mini-day-empty{
  color: var(--muted);
  font-weight: 800;
}

/* ---------- MOBILE SCHEDULE SUMMARY ---------- */
.schedule-mobile-card{
  display: none;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(17,17,17,.08);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.schedule-mobile-summary{
  display: grid;
  gap: 6px;
}

.schedule-mobile-kicker{
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.schedule-mobile-title{
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.4;
}

.schedule-mobile-note{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.schedule-mobile-open{
  width: fit-content;
}

.schedule-overview-modal{
  width: min(1120px, 96vw);
}

.schedule-overview-headline{
  color: var(--text-strong);
  font-size: 26px;
  font-weight: 950;
  line-height: 1.28;
}

.schedule-overview-subtitle{
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.schedule-overview-note{
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.schedule-overview-wrap{
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(17,17,17,.08);
  background: linear-gradient(180deg, #fafafa, #f2f2f2);
}

.schedule-overview-wrap .schedule-grid{
  min-width: 1120px;
}

.schedule-overview-wrap .sgh-teacher,
.schedule-overview-wrap .sgc-teacher{
  position: static;
}

/* ---------- TOAST ---------- */
.toast-wrap{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 140;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast{
  max-width: 340px;
  padding: 11px 13px;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  color: var(--text-strong);
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: var(--shadow-md);
  font-weight: 900;
}

.toast.err{
  border-color: rgba(196,60,60,.22);
  color: var(--danger);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1180px){
  .quick-links{
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-panel-inner{
    grid-template-columns: 1fr;
  }

  .activity-grid{
    grid-template-columns: repeat(2, 1fr);
  }

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

  .brand-title{
    white-space: normal;
  }
}

@media (min-width: 981px) and (max-width: 1280px){
  .header-inner{
    padding: 12px 14px;
    gap: 8px;
  }

  .brand-logo{
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 16px;
  }

  .brand-logo img{
    border-radius: 11px;
  }

  .brand-title{
    font-size: 17px;
  }

  .brand-sub{
    display: none;
  }

  .main-nav-link{
    padding: 8px 8px;
    font-size: 12px;
  }

  .btn-login-desktop{
    padding: 8px 10px;
    font-size: 11px;
  }
}

@media (min-width: 981px) and (max-width: 1120px){
  .brand-title{
    font-size: 16px;
  }

  .main-nav-link{
    padding: 7px 6px;
    font-size: 11px;
  }

  .btn-login-desktop{
    padding: 7px 9px;
    font-size: 11px;
  }
}

@media (max-width: 980px){
  .topbar-right{
    display: none;
  }

  .header-inner{
    grid-template-columns: 1fr auto;
  }

  .header-center{
    display: none;
  }

  .btn-login-desktop{
    display: none;
  }

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

  .hero-slider,
  .hero-slide,
  .hero-content{
    min-height: 420px;
  }

  .hero-title{
    font-size: 30px;
  }

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

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

  .gallery{
    min-height: 340px;
  }

  .gallery-slide{
    height: 340px;
  }

  .brand-logo{
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 16px;
  }

  .brand-logo img{
    border-radius: 11px;
  }

  #teachersSection::before{
    width: 145px;
    height: 145px;
    opacity: .05;
  }

  .teacher-card{
    min-width: 156px;
    max-width: 156px;
  }

  .teacher-photo{
    width: 156px;
    height: 180px;
  }

  .teacher-modal-headline{
    font-size: 20px;
  }

  #tView{
    max-width: 360px;
    min-height: 450px;
    max-height: 450px;
  }
}

@media (max-width: 720px){
  .page{
    padding-top: 16px;
  }

  .topbar-inner{
    padding: 10px 14px;
  }

  .header-inner{
    padding: 12px 14px;
  }

  .brand{
    gap: 10px;
  }

  .brand-logo{
    width: 48px;
    height: 48px;
    border-radius: 15px;
    flex-basis: 48px;
    padding: 4px;
  }

  .brand-logo img{
    border-radius: 10px;
  }

  .brand-title{
    font-size: 17px;
  }

  .brand-sub{
    font-size: 11px;
  }

  .hero-slider,
  .hero-slide,
  .hero-content{
    min-height: 360px;
  }

  .hero-content{
    padding: 18px;
    align-items: end;
  }

  .hero-box{
    width: 100%;
    padding: 16px;
    border-radius: 20px;
  }

  .hero-title{
    margin: 10px 0 0;
    font-size: 24px;
  }

  .hero-desc{
    display: none;
  }

  .hero-nav{
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .quick-links{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quick-link-card{
    padding: 16px;
  }

  .intro-panel-inner{
    padding: 18px;
    border-radius: 22px;
  }

  .intro-title{
    font-size: 26px;
  }

  .section-title{
    font-size: 22px;
  }

  .section-head{
    align-items: start;
    flex-direction: column;
  }

  .field{
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .select{
    min-width: 100%;
    width: 100%;
  }

  #teachersSection{
    padding: 18px;
    border-radius: 22px;
  }

  #teachersSection::before{
    width: 110px;
    height: 110px;
    right: 6px;
    bottom: 6px;
    opacity: .045;
  }

  .teacher-strip{
    gap: 12px;
  }

  .teacher-card{
    min-width: 134px;
    max-width: 134px;
    border-radius: 18px;
  }

  .teacher-photo{
    width: 134px;
    height: 156px;
  }

  .teacher-body{
    padding: 10px 8px 12px;
  }

  .teacher-name{
    font-size: 13px;
  }

  .teacher-pos{
    font-size: 11px;
  }

  .schedule-card{
    overflow-x: auto;
  }

  .schedule-grid{
    min-width: 1120px;
  }

  .activity-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .activity-thumb{
    height: 190px;
  }

  .dl-card{
    align-items: start;
    flex-direction: column;
  }

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

  .modal{
    padding: 8px;
    align-items: flex-start;
  }

  .modal-card{
    width: min(100%, 100%);
    max-height: calc(100dvh - 16px);
    border-radius: 22px;
  }

  .teacher-modal{
    width: min(100%, 100%);
  }

  .modal-head,
  .modal-body{
    padding: 12px;
  }

  .teacher-modal-headline{
    font-size: 18px;
  }

  .gallery{
    min-height: 260px;
    border-radius: 18px;
  }

  .gallery-slide{
    height: 260px;
  }

  .gallery-nav{
    width: 38px;
    height: 38px;
  }

  #tView{
    max-width: 100%;
    min-height: 240px;
    height: min(320px, 34vh);
    max-height: 320px;
  }

  #tView .gallery-slide{
    padding: 6px;
  }

  .teacher-modal-nav{
    flex-direction: column;
  }

  .teacher-modal-nav .btn{
    width: 100%;
    min-width: 0;
  }

  .schedule-toolbar-public{
    width: 100%;
    align-items: stretch;
  }

  .schedule-toolbar-public .btn{
    width: 100%;
  }

  .schedule-status-public{
    max-width: none;
    text-align: left;
  }

  .teacher-info-top{
    align-items: start;
    flex-direction: column;
  }

  .teacher-info-name{
    font-size: 24px;
  }

  .schedule-mobile-card{
    display: grid;
  }

  .schedule-mobile-open{
    width: 100%;
  }

  .schedule-card{
    display: none;
  }

  .schedule-overview-headline{
    font-size: 22px;
  }

  .schedule-overview-wrap .schedule-grid{
    min-width: 980px;
  }

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

@media (max-width: 480px){
  .topbar-badge{
    font-size: 10px;
  }

  .topbar-text{
    font-size: 12px;
  }

  .brand-title{
    font-size: 16px;
  }

  .hero-title{
    font-size: 22px;
  }

  .hero-note{
    align-items: start;
    flex-direction: column;
  }

  .btn,
  .select{
    min-height: 42px;
  }

  .section-title{
    font-size: 20px;
  }

  .info-title{
    font-size: 20px;
  }

  .teacher-card{
    min-width: 120px;
    max-width: 120px;
  }

  .teacher-photo{
    width: 120px;
    height: 140px;
  }

  #tView{
    max-width: 100%;
    min-height: 220px;
    height: min(260px, 32vh);
    max-height: 260px;
  }

  .schedule-mobile-title{
    font-size: 16px;
  }

  .schedule-mobile-note{
    font-size: 12px;
  }

  .schedule-overview-headline{
    font-size: 18px;
  }

  .schedule-overview-wrap .schedule-grid{
    min-width: 910px;
  }

  .mini-schedule{
    grid-template-columns: 1fr;
  }
}

/* ---------- HOME STRUCTURE REFINEMENT ---------- */
.main-nav-link[aria-current="page"]{
  background: var(--accent-soft);
  color: var(--text-strong);
  border-color: rgba(242,140,40,.24);
}

.mobile-nav-link[aria-current="page"]{
  border-color: rgba(242,140,40,.24);
  background: linear-gradient(180deg, #fff8f1, #ffffff);
  color: var(--text-strong);
}

.intro-panel{
  margin-top: 26px;
}

.intro-panel-inner{
  align-items: stretch;
}

.intro-copy{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intro-lead{
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900;
  line-height: 1.55;
}

.intro-cta-row{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.intro-highlight-grid{
  display: grid;
  gap: 14px;
}

.intro-highlight{
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,248,248,.98));
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: 0 12px 26px rgba(17,17,17,.07);
  position: relative;
}

.intro-highlight::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 22px 0 0 22px;
  background: linear-gradient(180deg, var(--accent), #f7b15a);
}

.intro-highlight-title{
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 950;
}

.intro-highlight-desc{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

#teachersSection::before{
  content: none;
  display: none;
}

.teacher-card{
  display: grid;
  grid-template-rows: 210px 1fr;
  align-items: stretch;
}

.teacher-body{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 132px;
  gap: 6px;
}

.teacher-name{
  min-height: 42px;
}

.teacher-pos{
  margin-top: auto;
  max-width: 100%;
}

.site-footer{
  margin-top: 42px;
  padding: 34px 0 10px;
  border-top: 1px solid rgba(17,17,17,.08);
}

.footer-grid{
  grid-template-columns: 1.25fr .95fr 1.2fr;
  gap: 20px;
}

.footer-col{
  min-height: 100%;
}

.footer-title{
  position: relative;
  padding-top: 14px;
  margin-bottom: 14px;
}

.footer-title::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.footer-links a{
  display: inline-flex;
  width: fit-content;
}

.footer-contact{
  display: grid;
  gap: 14px;
}

.footer-contact strong{
  color: #ffffff;
}

.footer-contact a{
  color: #ffd2a5;
  font-weight: 800;
}

.page-inner{
  padding-bottom: 32px;
}

.subhero{
  margin-top: 26px;
  padding: 28px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(17,17,17,.96), rgba(24,24,24,.92)),
    #151515;
  border: 1px solid rgba(242,140,40,.16);
  box-shadow: 0 24px 44px rgba(17,17,17,.14);
  color: rgba(255,255,255,.94);
  position: relative;
  overflow: hidden;
}

.subhero::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(242,140,40,.08) 0 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(rgba(242,140,40,.06) 0 1px, transparent 1px) 0 0 / 26px 26px;
  opacity: .22;
  pointer-events: none;
}

.subhero-grid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 20px;
  align-items: center;
}

.subhero-copy{
  min-width: 0;
}

.subhero-title{
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.18;
}

.subhero-desc{
  margin: 0;
  max-width: 820px;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.72;
}

.subhero-card{
  position: relative;
  z-index: 1;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}

.subhero-card-title{
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
}

.subhero-card-text{
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: 14px;
  line-height: 1.7;
}

.page-section{
  margin-top: 32px;
}

.page-callout{
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(17,17,17,.08);
  background: linear-gradient(180deg, #ffffff, #f8f8f8);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
}

.program-point-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.program-point-card,
.program-card{
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8f8f8);
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: var(--shadow-sm);
}

.program-point-card h3,
.program-card h3{
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 17px;
  line-height: 1.45;
}

.program-point-card p,
.program-card p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.program-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.program-card{
  position: relative;
  overflow: hidden;
}

.program-card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #f7b15a);
}

.program-card-index{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 950;
}

.schedule-directory{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.schedule-teacher-card{
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8f8f8);
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: var(--shadow-sm);
}

.schedule-teacher-top{
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.schedule-teacher-photo{
  width: 92px;
  height: 108px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, #f4f4f4, #e9e9e9);
  border: 1px solid rgba(17,17,17,.08);
}

.schedule-teacher-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.schedule-teacher-photo-fallback{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.activity-meta span{
  display:inline-flex;
  align-items:center;
  gap:5px;
}

.schedule-teacher-name{
  color: var(--text-strong);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.4;
}

.schedule-teacher-position,
.schedule-teacher-count{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.schedule-slot-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.schedule-slot{
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid rgba(17,17,17,.08);
}

.schedule-slot:first-child{
  border-top: 0;
  padding-top: 0;
}

.schedule-slot-day{
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 900;
}

.schedule-slot-time{
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 900;
}

.schedule-slot-title{
  margin-top: 2px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.schedule-slot-sub{
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.schedule-slot-empty{
  grid-template-columns: 1fr;
  color: var(--muted);
  font-size: 13px;
}

.doc-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.doc-card{
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8f8f8);
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-card-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.doc-badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
}

.doc-card-title{
  margin: 0;
  color: var(--text-strong);
  font-size: 17px;
  line-height: 1.45;
}

.doc-meta{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
}

.doc-actions{
  margin-top: auto;
  padding-top: 6px;
}

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

  .program-point-grid{
    grid-template-columns: 1fr;
  }
}

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

  .intro-cta-row{
    flex-direction: column;
    align-items: stretch;
  }

  .intro-cta-row .btn{
    width: 100%;
  }

  .teacher-card{
    grid-template-rows: 180px 1fr;
  }

  .teacher-photo{
    width: 156px;
    height: 180px;
  }

  .teacher-body{
    min-height: 118px;
  }

  .subhero{
    padding: 22px;
  }

  .schedule-teacher-top{
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .schedule-teacher-photo{
    width: 76px;
    height: 92px;
  }

  .schedule-slot{
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

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

  .intro-highlight{
    padding: 16px;
  }

  .teacher-card{
    grid-template-rows: 140px 1fr;
  }

  .teacher-photo{
    width: 120px;
    height: 140px;
  }

  .teacher-body{
    min-height: 108px;
  }

  .subhero-title{
    font-size: 26px;
  }

  .page-callout{
    padding: 18px;
  }
}

/* ---------- PUBLIC SITE THEME REFINEMENT 2026-05 ---------- */
:root{
  --bg: #0c1320;
  --bg-soft: #111a2c;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --surface-3: #edf2f8;

  --text: #192334;
  --text-strong: #0f172a;
  --muted: #5d6778;
  --muted-2: #7a8598;

  --line: #d9e1ec;
  --line-strong: #c5cfdd;

  --primary: #0b1322;
  --primary-2: #111c31;
  --primary-soft: #eef3fb;

  --accent: #f28c28;
  --accent-2: #f2c94c;
  --accent-soft: #fff3d9;

  --shadow-sm: 0 10px 24px rgba(5, 12, 24, .08);
  --shadow-md: 0 18px 42px rgba(5, 12, 24, .12);
  --shadow-lg: 0 28px 68px rgba(5, 12, 24, .18);
}

body{
  background:
    linear-gradient(180deg, #08111d 0%, #0d1626 42%, #111b2d 100%);
}

body::before{
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.48) 0%, rgba(0,0,0,.20) 42%, transparent 100%);
  opacity: .2;
}

.site-header{
  background: rgba(7, 13, 24, .86);
  border-bottom: 1px solid rgba(242, 140, 40, .12);
  box-shadow: 0 16px 34px rgba(2, 8, 18, .22);
}

.brand-logo{
  background: linear-gradient(180deg, #fefefe, #eef2f7);
  border-color: rgba(255,255,255,.08);
}

.brand-title{
  color: #ffffff;
}

.brand-sub{
  color: var(--accent-2);
}

.main-nav-link{
  color: rgba(255,255,255,.84);
}

.main-nav-link:hover,
.main-nav-link[aria-current="page"]{
  background: rgba(255,255,255,.08);
  color: #ffffff;
  border-color: rgba(242, 201, 76, .28);
}

.mobile-nav{
  background: rgba(9, 16, 29, .98);
  border-top-color: rgba(255,255,255,.08);
}

.mobile-nav-link{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
  color: #ffffff;
}

.mobile-nav-link[aria-current="page"]{
  background: rgba(255,255,255,.08);
  border-color: rgba(242, 201, 76, .28);
  color: #ffffff;
}

.mobile-nav-link-primary{
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #17120a;
}

.nav-toggle{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  box-shadow: none;
}

.nav-toggle span{
  background: #ffffff;
}

.btn-primary{
  color: #1b1306;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: rgba(242, 201, 76, .22);
  box-shadow: 0 14px 34px rgba(242, 140, 40, .18);
}

.btn-primary:hover{
  background: linear-gradient(135deg, #f0bf3c, #ee7f17);
}

.btn-outline:hover{
  background: rgba(242, 201, 76, .10);
  border-color: rgba(242, 201, 76, .34);
}

.pill{
  background: rgba(242, 201, 76, .12);
  border-color: rgba(242, 201, 76, .26);
  color: #80500f;
}

.badge{
  background: rgba(242, 201, 76, .16);
  border-color: rgba(242, 201, 76, .24);
  color: #fff9eb;
}

.hero-slider{
  background: #0b1322;
  border-color: rgba(255,255,255,.08);
  box-shadow: 0 28px 68px rgba(3, 8, 17, .34);
}

.hero-bg::after{
  background:
    linear-gradient(90deg, rgba(7,12,22,.92) 0%, rgba(10,17,31,.76) 42%, rgba(13,22,39,.24) 100%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.30));
}

.hero-bg-fallback{
  background:
    linear-gradient(135deg, #08111d, #101a2d),
    linear-gradient(90deg, rgba(242,201,76,.08) 0%, transparent 44%);
}

.hero-box{
  background: linear-gradient(180deg, rgba(10,17,31,.92), rgba(8,13,24,.88));
  border: 1px solid rgba(255,255,255,.10);
  border-left: 4px solid var(--accent-2);
  box-shadow: 0 28px 62px rgba(0,0,0,.28);
}

.hero-slide.is-clickable:hover .hero-box,
.hero-slide.is-clickable:focus-visible .hero-box{
  border-color: rgba(242, 201, 76, .30);
  border-left-color: var(--accent);
}

.hero-note .muted,
.hero > .muted{
  color: rgba(255,255,255,.74);
}

.intro-panel-inner,
#teachersSection,
.section-secondary,
.page-callout,
.program-point-card,
.program-card,
.schedule-teacher-card,
.doc-card,
.schedule-mobile-card{
  border-color: rgba(15,23,42,.08);
  box-shadow: 0 18px 42px rgba(7, 12, 24, .10);
}

.intro-panel-inner,
#teachersSection,
.page-callout,
.program-point-card,
.program-card,
.schedule-teacher-card,
.doc-card{
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
}

.intro-highlight,
.teacher-card,
.activity-card{
  border-color: rgba(15,23,42,.08);
}

.teacher-card{
  background: linear-gradient(180deg, #132038, #0f172a);
  border-color: rgba(242, 201, 76, .12);
  box-shadow: 0 20px 40px rgba(4, 10, 20, .22);
}

.teacher-card:hover{
  border-color: rgba(242, 201, 76, .34);
  box-shadow: 0 26px 48px rgba(4, 10, 20, .28);
}

.teacher-card.active{
  background: linear-gradient(180deg, #162540, #111b31);
  border-color: rgba(242, 140, 40, .42);
  box-shadow: 0 28px 52px rgba(242, 140, 40, .14);
}

.teacher-photo{
  background: linear-gradient(180deg, #1a2841, #10192c);
}

.teacher-body{
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
}

.teacher-name{
  color: #f8fafc;
}

.teacher-pos{
  color: rgba(255,255,255,.76);
}

.activity-card{
  background: linear-gradient(180deg, #132038, #0f172a);
  border-color: rgba(242, 201, 76, .12);
  box-shadow: 0 22px 46px rgba(4, 10, 20, .24);
}

.activity-card:hover{
  border-color: rgba(242, 201, 76, .34);
  box-shadow: 0 28px 54px rgba(4, 10, 20, .30);
}

.activity-thumb{
  background: linear-gradient(180deg, #16243b, #0e1728);
}

.thumb-overlay{
  background: linear-gradient(180deg, rgba(11,19,34,.06), rgba(4,10,18,.34));
}

.activity-body{
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00));
}

.activity-badge{
  background: rgba(242, 201, 76, .12);
  color: #fff2c2;
  border-color: rgba(242, 201, 76, .16);
}

.activity-date,
.activity-meta,
.activity-desc{
  color: rgba(255,255,255,.74);
}

.activity-title{
  color: #f8fafc;
}

.intro-highlight::before,
.section-head-left::before,
.program-card::before,
.footer-title::before{
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.subhero{
  background:
    linear-gradient(135deg, rgba(8,17,31,.96), rgba(12,22,39,.94)),
    #0c1320;
  border-color: rgba(242, 201, 76, .16);
  box-shadow: 0 24px 52px rgba(3, 8, 17, .24);
}

.subhero::before{
  background:
    linear-gradient(90deg, rgba(242,201,76,.09) 0 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(rgba(255,255,255,.05) 0 1px, transparent 1px) 0 0 / 26px 26px;
  opacity: .18;
}

.subhero-card{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.10);
}

.site-footer{
  margin: 56px calc(50% - 50vw) 0;
  padding: 0;
  border-top: 1px solid rgba(242, 201, 76, .12);
  background:
    linear-gradient(180deg, #070d17 0%, #0b1320 100%);
}

.footer-grid{
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 16px 18px;
  grid-template-columns: minmax(320px, 1.15fr) minmax(200px, .82fr) minmax(180px, .58fr);
  gap: 18px;
}

.footer-grid-refined{
  align-items: start;
}

.footer-col{
  min-width: 0;
}

.footer-col-contact{
  display: grid;
  gap: 14px;
}

.footer-brand{
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-logo{
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 16px;
  padding: 5px;
  background: linear-gradient(180deg, #ffffff, #eef2f7);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 12px 24px rgba(0,0,0,.20);
}

.footer-brand-copy{
  display: grid;
  gap: 4px;
}

.footer-brand-link{
  display: inline-flex;
  width: fit-content;
  color: rgba(255,255,255,.84);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(242, 201, 76, .36);
  transition: color .15s ease, border-color .15s ease;
}

.footer-brand-link:hover{
  color: #ffffff;
  border-color: rgba(242, 201, 76, .72);
}

.footer-brand-title{
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.3;
}

.footer-brand-sub{
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-title{
  color: #ffffff;
}

.footer-text,
.footer-mini-copy{
  color: rgba(255,255,255,.72);
}

.footer-contact-list{
  display: grid;
  gap: 10px;
}

.footer-contact-item{
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.footer-contact-item strong{
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
}

.footer-contact-item span,
.footer-contact-item a{
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.6;
}

.footer-contact-item a{
  font-weight: 800;
  color: #ffe0aa;
  word-break: break-word;
}

.footer-col-menu{
  display: grid;
  gap: 10px;
}

.footer-links{
  display: grid;
  gap: 8px;
}

.footer-links a{
  color: rgba(255,255,255,.80);
  font-size: 13px;
}

.footer-links a:hover{
  color: #ffffff;
}

.footer-col-meta{
  display: grid;
  align-content: end;
  gap: 8px;
  padding-top: 14px;
}

.footer-mini-title{
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.4;
}

.footer-mini-copy{
  font-size: 12px;
  line-height: 1.6;
}

.footer-bottom{
  display: none;
}

.modal{
  background: rgba(4, 10, 18, .72);
  backdrop-filter: blur(10px);
}

.activity-modal{
  width: min(1080px, 96vw);
  border-color: rgba(15,23,42,.12);
  box-shadow: 0 34px 86px rgba(2, 8, 18, .34);
}

.activity-modal-head{
  background: linear-gradient(135deg, #0b1322 0%, #13203a 100%);
  border-bottom: 0;
  color: #ffffff;
  padding: 18px 20px;
}

.activity-modal-head::after{
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.activity-modal-head .btn-outline{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.18);
  color: #ffffff;
  box-shadow: none;
}

.activity-modal-head .btn-outline:hover{
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.26);
}

.activity-modal-title-wrap{
  display: grid;
  gap: 10px;
}

.activity-modal-headline{
  color: #ffffff;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 950;
  line-height: 1.24;
}

.activity-modal-subtitle{
  color: rgba(255,255,255,.74);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.activity-modal .modal-body{
  padding: 18px 20px 20px;
}

.activity-modal-grid{
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, .9fr);
  gap: 22px;
}

.activity-gallery-panel{
  display: grid;
  gap: 12px;
}

.activity-modal .gallery{
  min-height: 420px;
  border-radius: 24px;
  border: 1px solid rgba(17,23,42,.12);
  background: linear-gradient(180deg, #0b1322, #121d32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.activity-modal .gallery-slide{
  height: 420px;
  padding: 12px;
}

.activity-modal .gallery-slide img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
}

.activity-modal .gallery-empty{
  color: rgba(255,255,255,.66);
}

.activity-gallery-caption{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
  border: 1px solid rgba(15,23,42,.08);
}

.activity-gallery-count{
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 900;
}

.activity-info-panel{
  display: grid;
  gap: 16px;
}

.activity-meta-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.activity-meta-card{
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 10px 24px rgba(7, 12, 24, .06);
}

.activity-meta-label{
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.activity-meta-value{
  margin-top: 6px;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}

.activity-detail-copy{
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f4f7fb);
  border: 1px solid rgba(15,23,42,.08);
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.activity-note{
  margin-top: 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,243,217,.58);
  border: 1px dashed rgba(242,140,40,.26);
  line-height: 1.7;
}

.activity-modal .gallery-nav{
  background: rgba(8, 13, 24, .70);
  border-color: rgba(255,255,255,.12);
}

.activity-modal .gallery-nav:hover{
  background: rgba(13, 22, 39, .88);
}

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

  .footer-col-meta{
    grid-column: 1 / -1;
    padding-top: 0;
  }
}

@media (max-width: 980px){
  .site-header{
    background: rgba(7, 13, 24, .94);
  }

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

  .activity-modal .gallery,
  .activity-modal .gallery-slide{
    min-height: 360px;
    height: 360px;
  }
}

@media (max-width: 760px){
  .footer-grid{
    grid-template-columns: 1fr;
    padding: 32px 16px 22px;
  }

  .footer-brand{
    align-items: flex-start;
  }

  .footer-brand-logo{
    width: 64px;
    height: 64px;
  }

  .footer-col-meta{
    padding-top: 0;
  }

  .activity-modal .modal-body{
    padding: 14px;
  }

  .activity-modal-head{
    padding: 16px 14px;
  }

  .activity-meta-grid{
    grid-template-columns: 1fr;
  }

  .activity-gallery-caption{
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px){
  .activity-modal .gallery,
  .activity-modal .gallery-slide{
    min-height: 280px;
    height: 280px;
  }

  .activity-modal-headline{
    font-size: 22px;
  }

  .footer-contact-item{
    padding: 12px 14px;
  }
}

/* ---------- VISUAL BALANCE POLISH ---------- */
.intro-panel-inner{
  background:
    linear-gradient(135deg, rgba(10, 18, 32, .96), rgba(13, 22, 39, .92)),
    #0d1627;
  border-color: rgba(242, 201, 76, .12);
  box-shadow: 0 24px 52px rgba(3, 8, 17, .24);
}

.intro-title,
.intro-lead{
  color: #f8fafc;
}

.intro-desc{
  color: rgba(226, 232, 240, .76);
}

.intro-cta-row .btn-outline{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: #f8fafc;
  box-shadow: none;
}

.intro-cta-row .btn-outline:hover{
  background: rgba(242, 201, 76, .12);
  border-color: rgba(242, 201, 76, .28);
  color: #ffffff;
}

.intro-highlight{
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 14px 28px rgba(3, 8, 17, .16);
}

.intro-highlight-title{
  color: #f8fafc;
}

.intro-highlight-desc{
  color: rgba(226, 232, 240, .72);
}

#teachersSection{
  background:
    linear-gradient(135deg, rgba(10, 18, 32, .97), rgba(12, 20, 35, .94)),
    #0c1627;
  border-color: rgba(242, 201, 76, .12);
  box-shadow: 0 24px 52px rgba(3, 8, 17, .24);
}

#teachersSection .section-title,
#teachersSection .muted,
#teachersSection .small{
  color: #f8fafc;
}

#teachersSection .section-actions .btn-outline{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: #f8fafc;
  box-shadow: none;
}

#teachersSection .section-actions .btn-outline:hover{
  background: rgba(242, 201, 76, .12);
  border-color: rgba(242, 201, 76, .30);
}

@media (min-width: 981px){
  .site-footer{
    margin-top: 42px;
  }

  .footer-grid{
    padding: 20px 16px 14px;
    grid-template-columns: minmax(480px, 1.4fr) minmax(240px, .78fr) minmax(170px, .46fr);
    gap: 24px;
  }

  .footer-grid-refined > .footer-col{
    align-self: start;
    padding: 4px 0 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .footer-col-contact{
    gap: 10px;
  }

  .footer-brand{
    gap: 10px;
  }

  .footer-brand-logo{
    width: 48px;
    height: 48px;
    padding: 4px;
    border-radius: 14px;
  }

  .footer-brand-title{
    font-size: 17px;
  }

  .footer-contact-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }

  .footer-contact-item:first-child,
  .footer-contact-item:last-child{
    grid-column: 1 / -1;
  }

  .footer-contact-item{
    padding: 9px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.035);
  }

  .footer-col-menu{
    gap: 8px;
  }

  .footer-links{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }

  .footer-col-meta{
    align-content: start;
    padding-top: 6px;
  }
}

/* ---------- FROSTED CARD + ORDERED FOOTER REFINEMENT ---------- */
.intro-panel-inner{
  background:
    linear-gradient(135deg, rgba(255,255,255,.84), rgba(250,252,255,.78));
  border-color: rgba(255,255,255,.34);
  box-shadow: 0 22px 44px rgba(3, 8, 17, .18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.intro-title,
.intro-lead{
  color: var(--text-strong);
}

.intro-desc{
  color: rgba(23, 23, 23, .74);
}

.intro-cta-row .btn-outline{
  background: rgba(255,255,255,.66);
  border-color: rgba(15,23,42,.12);
  color: var(--text-strong);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}

.intro-cta-row .btn-outline:hover{
  background: rgba(255,255,255,.78);
  border-color: rgba(242, 140, 40, .24);
  color: var(--text-strong);
}

.intro-highlight{
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(246,248,252,.74));
  border-color: rgba(255,255,255,.40);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.intro-highlight-title{
  color: var(--text-strong);
}

.intro-highlight-desc{
  color: rgba(23, 23, 23, .72);
}

.teacher-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(245,248,252,.76));
  border-color: rgba(255,255,255,.34);
  box-shadow: 0 18px 38px rgba(4, 10, 20, .16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.teacher-card:hover{
  border-color: rgba(242, 140, 40, .30);
  box-shadow: 0 24px 44px rgba(4, 10, 20, .18);
}

.teacher-card.active{
  background:
    linear-gradient(180deg, rgba(255,250,241,.90), rgba(248,244,235,.82));
  border-color: rgba(242, 140, 40, .42);
  box-shadow: 0 26px 48px rgba(242, 140, 40, .12);
}

.teacher-photo{
  background: linear-gradient(180deg, rgba(235,239,245,.92), rgba(220,226,236,.84));
}

.teacher-body{
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
}

.teacher-name{
  color: var(--text-strong);
}

.teacher-pos{
  color: rgba(23, 23, 23, .72);
}

.activity-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.84), rgba(245,248,252,.76));
  border-color: rgba(255,255,255,.34);
  box-shadow: 0 20px 42px rgba(4, 10, 20, .16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.activity-card:hover{
  border-color: rgba(242, 201, 76, .36);
  box-shadow: 0 24px 48px rgba(4, 10, 20, .18);
}

.activity-thumb{
  background: linear-gradient(180deg, rgba(229,235,244,.94), rgba(216,223,234,.84));
}

.thumb-overlay{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(11,19,34,.18));
}

.activity-body{
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
}

.activity-badge{
  background: rgba(242, 201, 76, .14);
  color: var(--text-strong);
  border-color: rgba(242, 201, 76, .18);
}

.activity-date,
.activity-meta,
.activity-desc{
  color: rgba(23, 23, 23, .72);
}

.activity-title{
  color: var(--text-strong);
}

.footer-col-meta{
  display: none !important;
}

.footer-bottom-refined{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.72);
  flex-wrap: wrap;
}

.footer-bottom-title{
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.footer-bottom-sub,
.footer-bottom-copy{
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

@media (min-width: 981px){
  .footer-grid{
    padding: 18px 16px 12px;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .9fr);
    gap: 28px;
  }

  .footer-grid-refined > .footer-col{
    padding: 0;
  }

  .footer-col-contact{
    gap: 12px;
  }

  .footer-contact-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }

  .footer-contact-item:first-child,
  .footer-contact-item:last-child{
    grid-column: 1 / -1;
  }

  .footer-links{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }
}

@media (max-width: 760px){
  .footer-bottom-refined{
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 16px 18px;
  }
}

/* ---------- FINAL VISUAL POLISH ---------- */
.intro-panel-inner{
  background:
    linear-gradient(135deg, rgba(255,255,255,.74), rgba(250,252,255,.66));
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 16px 32px rgba(3, 8, 17, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.intro-highlight{
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,249,253,.64));
  border-color: rgba(255,255,255,.34);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#teachersSection{
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.06)),
    #0c1627;
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 18px 36px rgba(3, 8, 17, .18);
}

.teacher-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,249,253,.64));
  border-color: rgba(255,255,255,.34);
  box-shadow: 0 14px 30px rgba(4, 10, 20, .12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.teacher-card:hover{
  border-color: rgba(242, 140, 40, .26);
  box-shadow: 0 18px 34px rgba(4, 10, 20, .14);
}

.teacher-card.active{
  background:
    linear-gradient(180deg, rgba(255,252,246,.78), rgba(248,245,238,.68));
  border-color: rgba(242, 140, 40, .36);
  box-shadow: 0 20px 36px rgba(242, 140, 40, .10);
}

.teacher-photo{
  background: linear-gradient(180deg, rgba(235,239,245,.88), rgba(224,230,239,.76));
}

.teacher-body{
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
}

.activity-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(247,249,253,.64));
  border-color: rgba(255,255,255,.34);
  box-shadow: 0 16px 34px rgba(4, 10, 20, .12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.activity-card:hover{
  border-color: rgba(242, 201, 76, .30);
  box-shadow: 0 18px 38px rgba(4, 10, 20, .14);
}

.activity-thumb{
  background: linear-gradient(180deg, rgba(229,235,244,.90), rgba(220,226,236,.76));
}

.thumb-overlay{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(11,19,34,.12));
}

.activity-body{
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
}

@media (min-width: 981px){
  .footer-grid{
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 16px 10px;
    gap: 14px;
  }

  .footer-col-contact{
    max-width: none;
  }
}

.footer-bottom-refined{
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.footer-bottom-menu-block{
  display: grid;
  gap: 8px;
  justify-items: center;
  width: 100%;
}

.footer-bottom-menu-label{
  color: rgba(255,255,255,.60);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-bottom-nav{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  width: 100%;
}

.footer-bottom-nav a{
  color: rgba(255,255,255,.84);
  font-size: 13px;
  font-weight: 800;
  transition: color .15s ease;
}

.footer-bottom-nav a:hover{
  color: #ffffff;
}

.footer-bottom-meta{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 2px;
}

@media (max-width: 760px){
  .footer-bottom-refined{
    justify-items: start;
    text-align: left;
  }

  .footer-bottom-menu-block{
    justify-items: start;
  }

  .footer-bottom-nav,
  .footer-bottom-meta{
    justify-content: flex-start;
  }
}

/* ---------- ACTUAL VISUAL FIX ---------- */
.intro-panel-inner,
#teachersSection{
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.06)),
    #0c1627;
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 18px 36px rgba(3, 8, 17, .18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.intro-title,
.intro-lead{
  color: #f8fafc;
}

.intro-desc{
  color: rgba(226, 232, 240, .76);
}

.intro-cta-row .btn-outline{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: #f8fafc;
  box-shadow: none;
}

.intro-cta-row .btn-outline:hover{
  background: rgba(242, 201, 76, .12);
  border-color: rgba(242, 201, 76, .28);
  color: #ffffff;
}

.intro-highlight,
.teacher-card,
.activity-card,
.program-point-card,
.program-card,
.schedule-teacher-card,
.doc-card,
.subhero-card,
.page-callout{
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 14px 30px rgba(4, 10, 20, .12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.intro-highlight,
.teacher-card,
.activity-card,
.program-point-card,
.program-card,
.schedule-teacher-card,
.doc-card,
.subhero-card,
.page-callout{
  background:
    linear-gradient(180deg, rgba(255,255,255,.74), rgba(247,249,253,.66));
}

.teacher-card.active{
  background:
    linear-gradient(180deg, rgba(255,252,246,.80), rgba(248,245,238,.70));
}

.footer-bottom-refined{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px 24px;
  padding: 14px 16px 18px;
}

.footer-bottom-meta{
  justify-content: center;
  gap: 10px 24px;
  padding-top: 0;
}

@media (max-width: 760px){
  .footer-bottom-refined,
  .footer-bottom-meta{
    justify-content: flex-start;
    text-align: left;
  }
}

/* ---------- FINAL VISUAL FIX + ABOUT PAGE ---------- */
.intro-panel-inner,
#teachersSection,
.subhero,
.section-secondary{
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.10)),
    #0c1627;
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 22px 42px rgba(3, 8, 17, .22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.intro-title,
.intro-lead,
.page-section .section-title,
#activitiesSection .section-title,
.section-secondary .section-title{
  color: #f8fafc;
}

.intro-desc,
.page-section .section-head .muted,
.page-section .section-head .small,
#activitiesSection .section-actions .muted{
  color: rgba(226, 232, 240, .82);
}

.intro-highlight,
.teacher-card,
.activity-card,
.program-point-card,
.program-card,
.schedule-teacher-card,
.doc-card,
.subhero-card,
.page-callout,
.about-value-card,
.about-mission-card,
.about-history-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(247,249,253,.74));
  border-color: rgba(255,255,255,.34);
  box-shadow: 0 18px 34px rgba(4, 10, 20, .14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.intro-highlight-title,
.program-point-card h3,
.program-card h3,
.subhero-card-title,
.schedule-teacher-name,
.doc-card-title,
.about-value-title,
.about-mission-card h3,
.about-history-title{
  color: #172033;
}

.intro-highlight-desc,
.teacher-pos,
.teacher-bio,
.activity-date,
.activity-meta,
.activity-desc,
.program-point-card p,
.program-card p,
.subhero-card-text,
.schedule-teacher-position,
.schedule-teacher-count,
.schedule-slot-sub,
.doc-meta,
.page-callout,
.about-value-body,
.about-mission-list,
.about-history-body,
.about-history-body p,
.about-history-body li{
  color: rgba(23, 32, 51, .84);
}

.intro-cta-row .btn-outline{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  color: #f8fafc;
}

.intro-cta-row .btn-outline:hover{
  background: rgba(242, 201, 76, .14);
  border-color: rgba(242, 201, 76, .34);
  color: #ffffff;
}

.teacher-card.active{
  background:
    linear-gradient(180deg, rgba(255,252,246,.86), rgba(248,245,238,.76));
  border-color: rgba(242, 140, 40, .40);
  box-shadow: 0 20px 36px rgba(242, 140, 40, .12);
}

.teacher-body,
.activity-body{
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
}

.subhero-card-title,
.subhero-card-text{
  color: #172033;
}

.subhero-card-text{
  color: rgba(23, 32, 51, .82);
}

.about-value-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.about-value-card,
.about-mission-card,
.about-history-card{
  padding: 22px 24px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.about-value-card::before,
.about-mission-card::before,
.about-history-card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(242,140,40,.88), rgba(242,201,76,.76));
}

.about-value-card.is-wide{
  grid-column: 1 / -1;
}

.about-value-title,
.about-mission-card h3,
.about-history-title{
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.4;
}

.about-value-body{
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}

.about-mission-list{
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 12px;
  font-size: 15px;
  line-height: 1.8;
}

.about-timeline{
  position: relative;
  display: grid;
  gap: 16px;
}

.about-timeline::before{
  content: "";
  position: absolute;
  left: 28px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(242,140,40,.68), rgba(242,201,76,.26));
}

.about-history-card{
  padding-left: 90px;
}

.about-history-year{
  position: absolute;
  left: 16px;
  top: 18px;
  min-width: 56px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(242, 201, 76, .18);
  box-shadow: inset 0 0 0 1px rgba(242, 201, 76, .24);
  color: #172033;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.about-history-body{
  display: grid;
  gap: 10px;
  font-size: 15px;
  line-height: 1.8;
}

.about-history-body p{
  margin: 0;
}

.about-history-body ul{
  margin: 0;
  padding-left: 20px;
}

.about-history-body li + li{
  margin-top: 6px;
}

@media (max-width: 980px){
  .about-value-grid{
    grid-template-columns: 1fr;
  }

  .about-value-card.is-wide{
    grid-column: auto;
  }
}

@media (max-width: 760px){
  .about-value-card,
  .about-mission-card,
  .about-history-card{
    padding: 18px 18px 18px 72px;
  }

  .about-history-year{
    left: 12px;
    top: 16px;
    min-width: 46px;
    padding: 7px 8px;
  }

  .about-timeline::before{
    left: 20px;
  }
}

/* ---------- CONTINUE CONTRAST FIX ---------- */
.intro-panel-inner,
#teachersSection,
.subhero,
.section-secondary{
  background:
    linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,.14)),
    #0c1627;
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 24px 48px rgba(3, 8, 17, .24);
}

.intro-desc{
  color: rgba(226, 232, 240, .84);
}

.intro-highlight,
.teacher-card,
.activity-card,
.program-point-card,
.program-card,
.schedule-teacher-card,
.doc-card,
.subhero-card,
.page-callout,
.about-value-card,
.about-mission-card,
.about-history-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(247,249,253,.78));
  border-color: rgba(255,255,255,.38);
  box-shadow: 0 18px 38px rgba(4, 10, 20, .16);
}

.intro-highlight,
.program-point-card,
.program-detail-card,
.study-plan-card,
.about-value-card,
.about-mission-card,
.about-history-card{
  position: relative;
  overflow: hidden;
}

.intro-highlight::before,
.program-point-card::before,
.program-detail-card::before,
.study-plan-card::before,
.about-value-card::before,
.about-mission-card::before,
.about-history-card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  height: auto;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(242,140,40,.92), rgba(242,201,76,.82));
}

.intro-highlight-title,
.program-point-card h3,
.program-card h3,
.subhero-card-title,
.page-callout strong,
.program-detail-card h3,
.study-plan-card h3{
  color: #111827;
}

.intro-highlight-desc,
.program-point-card p,
.program-card p,
.subhero-card-text,
.page-callout,
.program-detail-card p,
.program-detail-card li,
.program-detail-card dd,
.study-plan-card p{
  color: rgba(17, 24, 39, .84);
}

.page-section .section-title,
#activitiesSection .section-title{
  color: #f8fafc;
  text-shadow: 0 1px 0 rgba(3, 8, 17, .24);
}

.page-section .section-head .muted,
.page-section .section-head .small,
#activitiesSection .section-actions .muted{
  color: rgba(226, 232, 240, .84);
}

.program-detail-grid,
.study-plan-grid{
  display: grid;
  gap: 16px;
}

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

.program-detail-card,
.study-plan-card{
  padding: 22px 24px 22px 26px;
  border-radius: 24px;
}

.program-detail-card.is-wide{
  grid-column: 1 / -1;
}

.program-detail-card h3,
.study-plan-card h3{
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.4;
}

.program-detail-card p{
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.program-detail-card p + p{
  margin-top: 10px;
}

.program-degree-list{
  margin: 0;
  display: grid;
  gap: 12px;
}

.program-degree-list div{
  display: grid;
  gap: 4px;
}

.program-degree-list dt{
  color: rgba(17, 24, 39, .62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.program-degree-list dd{
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 800;
}

.program-career-list{
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  line-height: 1.75;
}

.program-expand-wrap{
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
}

.program-expand-btn{
  min-height: 44px;
  padding-inline: 18px;
  font-weight: 800;
}

.program-cost-amount{
  color: #111827;
  font-size: 28px;
  font-weight: 950;
  line-height: 1.2;
}

.program-cost-note{
  color: rgba(17, 24, 39, .76);
  font-size: 14px;
}

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

.study-plan-card{
  display: grid;
  gap: 12px;
  align-content: start;
}

.study-plan-badge{
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(242, 201, 76, .16);
  color: #172033;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .05em;
}

.study-plan-card p{
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.study-plan-card .btn{
  margin-top: 4px;
}

@media (max-width: 980px){
  .program-detail-grid,
  .study-plan-grid{
    grid-template-columns: 1fr;
  }

  .program-detail-card.is-wide{
    grid-column: auto;
  }
}

@media (max-width: 760px){
  .program-detail-card,
  .study-plan-card{
    padding: 18px 18px 18px 22px;
  }

  .program-expand-wrap{
    margin-top: 14px;
  }

  .program-expand-btn{
    width: 100%;
    justify-content: center;
  }

  .intro-highlight::before,
  .program-point-card::before,
  .program-detail-card::before,
  .study-plan-card::before,
  .about-value-card::before,
  .about-mission-card::before,
  .about-history-card::before{
    top: 16px;
    bottom: 16px;
  }

  .program-cost-amount{
    font-size: 24px;
  }
}

/* ---------- FINAL UI UPDATE: ACCENT / CONTRAST / TEACHER PREVIEW ---------- */
#aboutSection,
#teachersSection,
#activitiesSection,
#contactSection,
.page-section,
.subhero{
  scroll-margin-top: 104px;
}

.intro-panel-inner,
#teachersSection,
.subhero,
.section-secondary{
  background:
    linear-gradient(135deg, rgba(255,255,255,.26), rgba(255,255,255,.18)),
    #0a1425;
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 24px 48px rgba(3, 8, 17, .24);
}

.intro-highlight,
.teacher-card,
.activity-card,
.program-point-card,
.program-card,
.schedule-teacher-card,
.doc-card,
.subhero-card,
.page-callout,
.program-detail-card,
.study-plan-card,
.about-value-card,
.about-mission-card,
.about-history-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(244,247,252,.80));
  border-color: rgba(255,255,255,.44);
  box-shadow: 0 18px 36px rgba(4, 10, 20, .16);
}

.intro-highlight,
.program-point-card,
.program-detail-card,
.study-plan-card,
.about-value-card,
.about-mission-card,
.about-history-card,
.subhero-card{
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.intro-highlight::before,
.program-point-card::before,
.program-detail-card::before,
.study-plan-card::before,
.about-value-card::before,
.about-mission-card::before,
.about-history-card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  height: auto;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(242,140,40,.92), rgba(242,201,76,.82));
  pointer-events: none;
}

.subhero-card::before{
  content: none;
}

.intro-highlight-title,
.program-point-card h3,
.program-card h3,
.subhero-card-title,
.page-callout strong,
.program-detail-card h3,
.study-plan-card h3,
.about-value-title,
.about-mission-card h3,
.about-history-title{
  color: #0f172a;
}

.intro-highlight-desc,
.program-point-card p,
.program-card p,
.subhero-card-text,
.page-callout,
.program-detail-card p,
.program-detail-card li,
.program-detail-card dd,
.study-plan-card p,
.about-value-body,
.about-mission-list,
.about-history-body,
.about-history-body li{
  color: rgba(15, 23, 42, .84);
}

.study-plan-card .btn-primary,
.doc-actions .btn-primary{
  background: linear-gradient(135deg, #f2c94c, #f28c28);
  border-color: rgba(242, 140, 40, .34);
  color: #1b1306;
  box-shadow: 0 12px 28px rgba(242, 140, 40, .16);
}

.study-plan-card .btn-primary:hover,
.doc-actions .btn-primary:hover{
  background: linear-gradient(135deg, #efbf36, #ee7f17);
  border-color: rgba(242, 140, 40, .40);
  color: #1b1306;
}

.teacher-card{
  display: grid;
  grid-template-rows: 210px minmax(118px, auto);
}

.teacher-body{
  min-height: 118px;
  gap: 8px;
  align-content: start;
  align-items: start;
  text-align: center;
}

.teacher-name,
.teacher-pos{
  text-align: center;
}

.teacher-info-schedule-block{
  margin-top: 16px;
}

.teacher-modal-schedule{
  display: grid;
  gap: 12px;
}

.teacher-modal-schedule-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.teacher-modal-schedule-head .info-subtitle{
  margin: 0;
}

.teacher-modal-schedule-list{
  display: grid;
  gap: 10px;
}

.teacher-modal-schedule-item{
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: linear-gradient(180deg, rgba(15, 23, 42, .06), rgba(15, 23, 42, .03));
}

.teacher-modal-schedule-row{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.teacher-modal-schedule-copy{
  display: grid;
  gap: 4px;
}

.teacher-modal-schedule-title{
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.teacher-modal-schedule-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(15, 23, 42, .64);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.teacher-modal-schedule-empty{
  color: rgba(15, 23, 42, .64);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.teacher-modal-schedule .teacher-schedule-link{
  font-size: 12px;
}

.teacher-schedule-preview{
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: linear-gradient(180deg, rgba(15, 23, 42, .06), rgba(15, 23, 42, .03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
  display: grid;
  gap: 6px;
  min-height: 72px;
}

.teacher-schedule-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.teacher-schedule-label{
  color: rgba(15, 23, 42, .62);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.teacher-schedule-link{
  color: #b96516;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.teacher-schedule-link:hover{
  color: #92400e;
  text-decoration: underline;
}

.teacher-schedule-list{
  display: grid;
  gap: 6px;
}

.teacher-schedule-item{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.teacher-schedule-day{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(242, 201, 76, .16);
  color: #7c4a03;
  font-size: 10px;
  font-weight: 900;
}

.teacher-schedule-time{
  color: rgba(15, 23, 42, .86);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.teacher-schedule-empty,
.teacher-schedule-more{
  color: rgba(15, 23, 42, .64);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 760px){
  .intro-highlight::before,
  .program-point-card::before,
  .program-detail-card::before,
  .study-plan-card::before,
  .about-value-card::before,
  .about-mission-card::before,
  .about-history-card::before{
    top: 16px;
    bottom: 16px;
  }

  .teacher-body{
    min-height: 108px;
    padding: 14px 11px 14px;
  }
}


.brand-logo img,
.footer-brand-logo{
  object-fit: contain !important;
  object-position: var(--assetpoint-public-logo-focus) !important;
  background: #ffffff;
}

body[data-logo-group="public-auth-university"],
body[data-logo-group="public-university"]{
  --assetpoint-public-logo-url: url("/assetpoint/uploads/uploads/logo_scit.webp");
}

body[data-logo-group="public-auth-university"] .brand-logo img,
body[data-logo-group="public-auth-university"] .footer-brand-logo,
body[data-logo-group="public-university"] .brand-logo img,
body[data-logo-group="public-university"] .footer-brand-logo{
  object-fit: contain !important;
  object-position: center center !important;
  background: #ffffff;
}

/* Compact teacher preview cards */
.teacher-card{
  grid-template-rows: 210px auto;
}

.teacher-body{
  display: grid;
  grid-template-rows: 42px auto;
  justify-items: center;
  align-content: start;
  min-height: 96px;
  padding: 12px 12px 14px;
  gap: 8px;
}

.teacher-name{
  width: 100%;
  min-height: 42px;
  color: #07111f;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .78);
}

.teacher-pos{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  max-width: 100%;
  margin-top: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 201, 76, .34);
  background: rgba(242, 201, 76, .22);
  color: #7c4a03;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 760px){
  .teacher-card{
    min-width: 136px;
    max-width: 136px;
    grid-template-rows: 156px auto;
  }

  .teacher-photo{
    width: 136px;
    height: 156px;
  }

  .teacher-body{
    grid-template-rows: 40px auto;
    min-height: 92px;
    padding: 11px 10px 12px;
    gap: 7px;
  }

  .teacher-name{
    min-height: 40px;
    font-size: 14px;
    line-height: 1.4;
  }

  .teacher-pos{
    padding: 4px 7px;
    font-size: 10px;
  }
}

/* Align activity card details link */
.activity-card{
  display: grid;
  grid-template-rows: 210px 1fr;
}

.activity-body{
  display: flex;
  min-height: 354px;
  flex-direction: column;
}

.activity-desc{
  margin-bottom: 0;
}

.activity-cta{
  margin-top: auto;
  padding-top: 16px;
  justify-content: flex-end;
  align-items: flex-end;
}

@media (max-width: 980px){
  .activity-card{
    grid-template-rows: 190px 1fr;
  }

  .activity-body{
    min-height: 320px;
  }
}

@media (max-width: 640px){
  .activity-card{
    grid-template-rows: 180px 1fr;
  }

  .activity-body{
    min-height: 300px;
  }
}

/* Schedule page grouped teacher cards */
.schedule-directory {
  display: block;
}

.schedule-day-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
}

.schedule-day-filter-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #f8fafc;
  min-height: 38px;
  padding: 8px 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.schedule-day-filter-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .18);
}

.schedule-day-filter-btn.is-active {
  background: #ffffff;
  border-color: #ffffff;
  color: #10233d;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
}

.schedule-teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.schedule-teacher-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  border-radius: 24px;
}

.schedule-teacher-top {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.schedule-teacher-photo {
  width: 78px;
  height: 92px;
  border-radius: 18px;
}

.schedule-teacher-photo-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(15, 23, 42, .10), rgba(245, 158, 11, .16));
  color: #10233d;
  font-weight: 950;
  font-size: 24px;
}

.schedule-teacher-info {
  min-width: 0;
}

.schedule-teacher-name {
  margin-bottom: 4px;
}

.schedule-teacher-position {
  margin: 0 0 8px;
}

.schedule-teacher-count {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .12);
  color: #047857;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.schedule-slot-list {
  display: block;
  max-height: 390px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 6px 0 0;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, .24) transparent;
}

.schedule-slot-list::-webkit-scrollbar {
  width: 8px;
}

.schedule-slot-list::-webkit-scrollbar-track {
  background: transparent;
}

.schedule-slot-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 23, 42, .22);
}

.schedule-day-group {
  list-style: none;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: rgba(248, 250, 252, .78);
}

.schedule-day-group:last-child {
  margin-bottom: 0;
}

.schedule-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.schedule-day-name {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #10233d;
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.schedule-day-count {
  color: rgba(23, 32, 51, .64);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.schedule-day-slots {
  display: grid;
  gap: 8px;
}

.schedule-day-slots .schedule-slot {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
}

.schedule-day-slots .schedule-slot:first-child {
  padding-top: 9px;
}

.schedule-slot-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(37, 99, 235, .08);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.schedule-slot-detail {
  min-width: 0;
}

.schedule-slot-title {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 950;
  color: #10233d;
  overflow-wrap: anywhere;
}

.schedule-slot-sub {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
  color: rgba(23, 32, 51, .66);
  overflow-wrap: anywhere;
}

.schedule-slot-empty {
  list-style: none;
  display: block;
  padding: 14px;
  border: 1px dashed rgba(15, 23, 42, .16);
  border-radius: 16px;
  background: rgba(248, 250, 252, .72);
  color: rgba(23, 32, 51, .66);
  font-size: 13px;
  font-weight: 750;
}

@media (min-width: 1360px) {
  .schedule-teacher-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .schedule-teacher-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .schedule-day-filter {
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px;
    border-radius: 18px;
  }

  .schedule-day-filter-btn {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .schedule-teacher-card {
    padding: 14px;
    border-radius: 20px;
  }

  .schedule-teacher-top {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .schedule-teacher-photo {
    width: 62px;
    height: 74px;
    border-radius: 16px;
  }

  .schedule-teacher-photo-placeholder {
    font-size: 20px;
  }

  .schedule-slot-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .schedule-day-group {
    padding: 10px;
    border-radius: 16px;
  }

  .schedule-day-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .schedule-day-slots .schedule-slot {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 7px;
  }

  .schedule-slot-time {
    width: max-content;
    max-width: 100%;
    justify-content: flex-start;
    text-align: left;
  }
}
