:root {
  --ink: #173436;
  --ink-soft: #557072;
  --teal: #0f6465;
  --teal-dark: #08494c;
  --teal-wash: #e3f0ed;
  --coral: #e7745f;
  --coral-dark: #bb5547;
  --mint: #b7d8bd;
  --parchment: #f8f2e8;
  --paper: #fffdf8;
  --line: rgba(23, 52, 54, 0.14);
  --shadow: 0 24px 70px rgba(27, 56, 55, 0.12);
  --shadow-soft: 0 10px 30px rgba(27, 56, 55, 0.08);
  --radius-lg: 30px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--parchment);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .23;
  background-image: radial-gradient(rgba(23,52,54,.12) .7px, transparent .7px);
  background-size: 13px 13px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.22), transparent 65%);
  z-index: -1;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { color: var(--paper); background: var(--teal); }

.container { width: min(calc(100% - 40px), var(--max-width)); margin: 0 auto; }
.narrow { width: min(calc(100% - 40px), 780px); margin: 0 auto; }
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.section-tint { background: rgba(227, 240, 237, .58); }
.section-dark { color: var(--paper); background: var(--teal-dark); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 38px; }
.section-head p { max-width: 480px; margin: 0; color: var(--ink-soft); }
.section-dark .section-head p { color: rgba(248,242,232,.72); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  color: var(--coral-dark); font-weight: 800; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase;
}
.eyebrow::before { content: ""; display: block; width: 26px; height: 2px; background: currentColor; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; }
h1 { font-size: clamp(3.3rem, 7vw, 6.6rem); max-width: 780px; }
h2 { font-size: clamp(2.5rem, 4vw, 4.45rem); max-width: 800px; }
h3 { font-size: clamp(1.5rem, 2vw, 2.1rem); }
h4 { font-size: 1.25rem; }
.lede { max-width: 630px; color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.section-dark .lede { color: rgba(248,242,232,.75); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 800; }
.text-link::after { content: "↗"; font-size: 1.1em; transition: transform .2s ease; }
.text-link:hover::after { transform: translate(3px, -3px); }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(23,52,54,.1); background: rgba(248,242,232,.88); backdrop-filter: blur(18px); }
.navbar { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--paper); background: var(--teal); border: 4px solid var(--coral); border-radius: 14px 6px 14px 6px; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; line-height: 1; transform: rotate(-3deg); }
.brand-name { display: grid; line-height: 1; }
.brand-name strong { font-family: var(--serif); font-size: 1.1rem; letter-spacing: -.03em; }
.brand-name span { margin-top: 4px; color: var(--ink-soft); font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a { position: relative; color: var(--ink-soft); font-size: .88rem; font-weight: 700; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--coral); transition: right .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.mobile-auth-link { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--teal); background: var(--paper); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font-size: .88rem; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(23,52,54,.12); }
.button-primary { color: var(--paper); background: var(--coral); }
.button-primary:hover { background: var(--coral-dark); }
.button-secondary { color: var(--teal); background: transparent; border-color: rgba(15,100,101,.28); }
.button-secondary:hover { background: var(--teal-wash); }
.button-dark { color: var(--paper); background: var(--teal); }
.button-ghost { color: var(--paper); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); }
.button-small { min-height: 38px; padding: 0 14px; font-size: .78rem; }
.button-icon { width: 42px; padding: 0; }

.hero { position: relative; padding: 95px 0 90px; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 390px; height: 390px; right: -130px; top: 40px; border: 1px solid rgba(15,100,101,.14); border-radius: 50%; box-shadow: 0 0 0 30px rgba(15,100,101,.035), 0 0 0 60px rgba(15,100,101,.025); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 74px; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 em { color: var(--teal); font-style: normal; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 6px; text-underline-offset: 9px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin: 30px 0 34px; }
.hero-note { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: .85rem; }
.note-dots { display: flex; }
.note-dots i { width: 27px; height: 27px; margin-left: -6px; border: 3px solid var(--parchment); border-radius: 50%; background: var(--mint); }
.note-dots i:nth-child(2) { background: var(--coral); }
.note-dots i:nth-child(3) { background: var(--teal); }
.hero-visual { position: relative; min-height: 550px; }
.preview-card { position: absolute; inset: 25px 0 0 22px; overflow: hidden; padding: 18px; border: 1px solid rgba(15,100,101,.18); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); transform: rotate(2.4deg); }
.preview-card::before { content: "CLASSROOM / 07:15 PM"; position: absolute; top: 30px; left: 30px; z-index: 2; color: var(--paper); font-size: .7rem; font-weight: 800; letter-spacing: .14em; }
.preview-image { position: relative; height: 100%; min-height: 500px; overflow: hidden; border-radius: 22px; background: linear-gradient(145deg, #124c50 0%, #0d7773 52%, #b7d8bd 100%); }
.preview-image::before { content: ""; position: absolute; width: 280px; height: 280px; right: -55px; top: 50px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.08), 0 0 0 48px rgba(255,255,255,.06); }
.preview-image::after { content: ""; position: absolute; inset: 42% -10% -20% 0; background: repeating-linear-gradient(172deg, rgba(255,255,255,.2) 0 2px, transparent 2px 28px); transform: rotate(-5deg); opacity: .45; }
.board { position: absolute; z-index: 1; left: 11%; top: 22%; width: 55%; height: 32%; padding: 24px; color: var(--paper); border: 7px solid rgba(248,242,232,.7); background: #1f5d60; box-shadow: 14px 17px 0 rgba(23,52,54,.16); transform: rotate(-5deg); }
.board span { display: block; margin-bottom: 10px; color: var(--mint); font-size: .66rem; font-weight: 800; letter-spacing: .16em; }
.board strong { display: block; font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.8rem); line-height: .95; }
.study-orb { position: absolute; z-index: 2; right: 13%; bottom: 16%; width: 138px; height: 138px; display: grid; place-items: center; color: var(--teal); border: 11px solid var(--coral); border-radius: 50%; background: var(--parchment); box-shadow: 0 18px 26px rgba(9,54,55,.24); text-align: center; font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; transform: rotate(9deg); }
.play-button { position: absolute; z-index: 3; left: 42%; top: 62%; width: 64px; height: 64px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--paper); background: var(--coral); box-shadow: 0 12px 28px rgba(80,33,26,.3); }
.play-button span { margin-left: 4px; font-size: 1.3rem; }
.floating-label { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,248,.93); box-shadow: var(--shadow-soft); font-size: .75rem; font-weight: 800; }
.floating-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.label-one { top: 0; right: 18px; }
.label-two { bottom: 15px; left: -12px; }

.stat-rail { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 24px 25px 24px 0; }
.stat + .stat { padding-left: 25px; border-left: 1px solid var(--line); }
.stat strong { display: block; color: var(--teal); font-family: var(--serif); font-size: 2.25rem; line-height: 1; }
.stat span { display: block; margin-top: 7px; color: var(--ink-soft); font-size: .78rem; font-weight: 700; }

.split-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 74px; align-items: start; }
.split-grid.reverse { grid-template-columns: 1.1fr .9fr; }
.split-grid.reverse > :first-child { order: 2; }
.feature-list { display: grid; gap: 12px; margin-top: 34px; }
.feature-item { display: flex; gap: 15px; padding: 18px 0; border-top: 1px solid var(--line); }
.feature-item:last-child { border-bottom: 1px solid var(--line); }
.feature-number { flex: 0 0 32px; display: grid; place-items: center; width: 32px; height: 32px; color: var(--paper); border-radius: 50%; background: var(--teal); font-size: .75rem; font-weight: 900; }
.feature-item h4 { margin-bottom: 3px; font-family: var(--sans); font-size: 1rem; font-weight: 800; letter-spacing: 0; }
.feature-item p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.paper-panel { position: relative; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-soft); }
.paper-panel::before { content: ""; position: absolute; left: 28px; top: -9px; width: 76px; height: 18px; border-radius: 2px; background: rgba(231,116,95,.45); transform: rotate(-4deg); }
.paper-panel h3 { margin-bottom: 12px; }
.paper-panel p { color: var(--ink-soft); }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course-card { display: flex; flex-direction: column; min-height: 340px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); transition: transform .2s ease, box-shadow .2s ease; }
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.course-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 34px; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; color: var(--teal); background: var(--teal-wash); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tag-coral { color: var(--coral-dark); background: rgba(231,116,95,.13); }
.course-card h3 { max-width: 270px; }
.course-card p { margin: 11px 0 0; color: var(--ink-soft); font-size: .9rem; }
.course-meta { display: grid; gap: 8px; margin: 23px 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .78rem; }
.course-meta span { display: flex; justify-content: space-between; gap: 15px; }
.course-meta strong { color: var(--ink); }
.course-card .button { margin-top: auto; align-self: flex-start; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-button { min-height: 38px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: transparent; font-size: .78rem; font-weight: 800; }
.filter-button:hover, .filter-button.active { color: var(--paper); border-color: var(--teal); background: var(--teal); }
.empty-filter { display: none; padding: 28px; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--radius-md); text-align: center; }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote-card { position: relative; min-height: 230px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,253,248,.68); }
.quote-card::before { content: "“"; position: absolute; top: 11px; right: 22px; color: var(--coral); font-family: var(--serif); font-size: 4rem; line-height: 1; }
.quote-card p { margin: 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.quote-byline { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--ink-soft); font-size: .78rem; font-weight: 700; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--paper); background: var(--teal); font-weight: 800; }

.page-hero { padding: 84px 0 74px; border-bottom: 1px solid var(--line); background: linear-gradient(130deg, rgba(227,240,237,.78), rgba(248,242,232,.18)); }
.page-hero-grid { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.page-hero h1 { max-width: 760px; font-size: clamp(3rem, 6vw, 5.6rem); }
.page-hero .lede { margin: 22px 0 0; }
.page-stamp { flex: 0 0 170px; width: 170px; height: 170px; display: grid; place-items: center; padding: 24px; color: var(--teal); border: 1px solid var(--teal); border-radius: 50%; text-align: center; font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; transform: rotate(8deg); }

.profile-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; align-items: center; }
.profile-photo { position: relative; overflow: hidden; min-height: 560px; border-radius: var(--radius-lg); background: var(--teal); }
.profile-photo img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.profile-photo::after { content: "15+ YEARS OF CURIOSITY"; position: absolute; right: -30px; bottom: 43px; padding: 12px 18px; color: var(--teal); background: var(--mint); font-size: .73rem; font-weight: 900; letter-spacing: .1em; transform: rotate(-7deg); }
.credential-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 35px 0; }
.credential { padding: 18px; border-top: 2px solid var(--teal); background: rgba(227,240,237,.55); }
.credential strong { display: block; font-family: var(--serif); font-size: 1.6rem; }
.credential span { color: var(--ink-soft); font-size: .72rem; font-weight: 700; }

.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 23px 0; border: 0; color: var(--ink); background: transparent; text-align: left; font-family: var(--serif); font-size: 1.22rem; }
.accordion-trigger span { transition: transform .2s ease; font-family: var(--sans); font-size: 1.3rem; }
.accordion-item.open .accordion-trigger span { transform: rotate(45deg); }
.accordion-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.accordion-content > div { overflow: hidden; }
.accordion-content p { margin: 0 0 22px; color: var(--ink-soft); }
.accordion-item.open .accordion-content { grid-template-rows: 1fr; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.value-card { padding: 27px; border-top: 3px solid var(--coral); background: var(--paper); }
.value-card:nth-child(2) { border-color: var(--teal); }
.value-card:nth-child(3) { border-color: var(--mint); }
.value-card strong { display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 1.45rem; }
.value-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.gallery-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; grid-template-rows: 220px 220px; gap: 14px; }
.gallery-card { position: relative; min-height: 180px; overflow: hidden; border-radius: var(--radius-md); background: var(--teal); }
.gallery-card:first-child { grid-row: span 2; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-card:hover img { transform: scale(1.04); }
.gallery-card figcaption { position: absolute; right: 14px; bottom: 13px; left: 14px; padding: 8px 10px; color: var(--paper); border: 1px solid rgba(255,255,255,.2); border-radius: 9px; background: rgba(8,73,76,.76); font-size: .72rem; font-weight: 800; }

.notice-list { display: grid; gap: 14px; }
.notice-card { display: grid; grid-template-columns: 105px 1fr auto; gap: 24px; align-items: center; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.notice-date { display: grid; justify-items: center; padding: 10px; color: var(--teal); border-right: 1px solid var(--line); font-weight: 900; }
.notice-date strong { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.notice-date span { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.notice-card h3 { margin-bottom: 6px; font-size: 1.35rem; }
.notice-card p { margin: 0; color: var(--ink-soft); font-size: .86rem; }
.notice-label { margin-bottom: 8px; color: var(--coral-dark); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.notice-filters { display: flex; gap: 8px; margin-bottom: 24px; }

.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 50px; align-items: start; }
.contact-list { display: grid; gap: 16px; margin: 34px 0; }
.contact-row { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon { flex: 0 0 38px; display: grid; place-items: center; width: 38px; height: 38px; color: var(--teal); border: 1px solid rgba(15,100,101,.24); border-radius: 12px; font-weight: 900; }
.contact-row strong { display: block; font-size: .84rem; }
.contact-row span, .contact-row a { color: var(--ink-soft); font-size: .86rem; }
.map-card { position: relative; min-height: 540px; overflow: hidden; padding: 26px; border-radius: var(--radius-lg); background: #bad3c9; }
.map-card::before { content: ""; position: absolute; inset: 0; opacity: .42; background: repeating-linear-gradient(32deg, transparent 0 30px, rgba(15,100,101,.22) 31px 33px, transparent 34px 74px), repeating-linear-gradient(118deg, transparent 0 60px, rgba(231,116,95,.3) 61px 63px, transparent 64px 117px); }
.map-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 42% 51%, rgba(248,242,232,.88) 0 7%, transparent 7.5%), radial-gradient(circle at 42% 51%, transparent 0 17%, rgba(248,242,232,.7) 17.5% 18%, transparent 18.5% 35%, rgba(248,242,232,.58) 35.5% 36%, transparent 36.5%); }
.map-pin { position: absolute; z-index: 2; left: 38%; top: 39%; display: grid; place-items: center; width: 64px; height: 64px; color: var(--paper); border: 8px solid rgba(248,242,232,.9); border-radius: 50% 50% 50% 2px; background: var(--coral); transform: rotate(-45deg); box-shadow: var(--shadow-soft); }
.map-pin span { transform: rotate(45deg); font-size: 1.25rem; }
.map-label { position: absolute; z-index: 3; right: 25px; bottom: 25px; max-width: 250px; padding: 18px; border-radius: 16px; background: rgba(255,253,248,.94); box-shadow: var(--shadow-soft); }
.map-label strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 1.25rem; }
.map-label span { color: var(--ink-soft); font-size: .78rem; }
.form-card { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-soft); }
.form-card h3 { margin-bottom: 10px; }
.form-card > p { margin: 0 0 25px; color: var(--ink-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: .78rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; outline: none; background: rgba(248,242,232,.42); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,100,101,.1); }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.form-note { color: var(--ink-soft); font-size: .74rem; }

.login-shell { display: grid; grid-template-columns: .94fr 1.06fr; min-height: calc(100vh - 80px); align-items: stretch; }
.login-intro { display: flex; align-items: center; padding: 76px max(40px, calc((100vw - var(--max-width)) / 2)) 76px max(40px, calc((100vw - var(--max-width)) / 2)); background: var(--teal-dark); }
.login-intro h1 { color: var(--paper); font-size: clamp(3rem, 5.3vw, 5.6rem); }
.login-intro .lede { color: rgba(248,242,232,.72); }
.login-points { display: grid; gap: 12px; margin-top: 35px; }
.login-point { display: flex; align-items: center; gap: 11px; color: rgba(248,242,232,.8); font-size: .85rem; }
.login-point i { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: var(--teal-dark); background: var(--mint); font-style: normal; font-weight: 900; }
.login-panel { display: flex; align-items: center; padding: 60px max(40px, calc((100vw - var(--max-width)) / 2)); }
.auth-card { width: min(100%, 490px); margin: 0 auto; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.auth-card h2 { font-size: clamp(2.4rem, 4vw, 3.4rem); }
.auth-card > p { color: var(--ink-soft); }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 25px 0; padding: 5px; border-radius: 13px; background: var(--teal-wash); }
.auth-tab { min-height: 38px; border: 0; border-radius: 9px; color: var(--ink-soft); background: transparent; font-size: .72rem; font-weight: 900; }
.auth-tab.active { color: var(--paper); background: var(--teal); }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.demo-hint { margin-top: 18px; padding: 13px 14px; border-left: 3px solid var(--coral); color: var(--ink-soft); background: rgba(231,116,95,.09); font-size: .76rem; }
.demo-hint strong { color: var(--coral-dark); }
.auth-status { min-height: 24px; margin: 16px 0 0; color: var(--ink-soft); font-size: .78rem; }
.auth-status.error { color: var(--coral-dark); }
.auth-status.success { color: var(--teal); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; letter-spacing: .25em; text-align: center; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 80px; }
.password-toggle { position: absolute; top: 50%; right: 9px; border: 0; color: var(--teal); background: transparent; font-size: .72rem; font-weight: 800; transform: translateY(-50%); }

.dashboard-body { min-height: 100vh; background: #eef4ef; }
.dashboard-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 100vh; }
.dashboard-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 20px; color: var(--paper); background: var(--teal-dark); }
.dashboard-sidebar .brand { margin: 0 11px 45px; }
.dashboard-sidebar .brand-name strong { color: var(--paper); }
.dashboard-sidebar .brand-name span { color: rgba(248,242,232,.6); }
.dashboard-nav { display: grid; gap: 7px; }
.dashboard-nav a { display: flex; align-items: center; gap: 11px; padding: 12px 13px; color: rgba(248,242,232,.68); border-radius: 11px; font-size: .84rem; font-weight: 800; }
.dashboard-nav a:hover, .dashboard-nav a.active { color: var(--paper); background: rgba(255,255,255,.1); }
.dashboard-nav a span { display: grid; place-items: center; width: 25px; height: 25px; color: var(--mint); border: 1px solid rgba(183,216,189,.34); border-radius: 8px; font-size: .68rem; }
.sidebar-bottom { margin-top: auto; padding: 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; background: rgba(255,255,255,.06); }
.sidebar-bottom p { margin: 0 0 10px; color: rgba(248,242,232,.62); font-size: .72rem; }
.dashboard-main { min-width: 0; padding: 34px 38px 60px; }
.dashboard-topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 35px; }
.dashboard-topbar h1 { font-size: clamp(2.6rem, 4vw, 4.2rem); }
.dashboard-topbar p { margin: 8px 0 0; color: var(--ink-soft); }
.profile-chip { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.profile-chip .avatar { width: 34px; height: 34px; }
.profile-chip strong { display: block; font-size: .78rem; }
.profile-chip span { display: block; color: var(--ink-soft); font-size: .68rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
.dash-card { padding: 23px; border: 1px solid rgba(23,52,54,.1); border-radius: 19px; background: var(--paper); box-shadow: 0 9px 26px rgba(23,52,54,.045); }
.dash-card-wide { grid-column: span 2; }
.dash-card-head { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 21px; }
.dash-card-head h2 { font-size: 1.5rem; }
.dash-card-head p { margin: 4px 0 0; color: var(--ink-soft); font-size: .76rem; }
.dashboard-profile { display: grid; grid-template-columns: 100px 1fr; gap: 20px; align-items: center; }
.dashboard-avatar { width: 100px; height: 100px; overflow: hidden; border: 6px solid var(--mint); border-radius: 27px 9px 27px 9px; background: var(--teal); }
.dashboard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { margin-bottom: 6px; font-family: var(--serif); font-size: 1.65rem; }
.profile-id { color: var(--teal); font-size: .75rem; font-weight: 900; letter-spacing: .1em; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px 20px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.info-item span { display: block; margin-bottom: 3px; color: var(--ink-soft); font-size: .67rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.info-item strong { display: block; font-size: .83rem; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 11px; border-radius: 999px; font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-paid { color: #267a54; background: #e3f3e8; }
.status-overdue { color: var(--coral-dark); background: rgba(231,116,95,.13); }
.fee-amount { margin: 18px 0 3px; font-family: var(--serif); font-size: 3rem; line-height: 1; }
.fee-label { color: var(--ink-soft); font-size: .76rem; }
.fee-meta { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fee-meta span { display: block; color: var(--ink-soft); font-size: .68rem; }
.fee-meta strong { display: block; margin-top: 4px; font-size: .8rem; }
.progress-row { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 14px; }
.progress-row strong { color: var(--teal); font-family: var(--serif); font-size: 2.8rem; line-height: 1; }
.progress-row span { color: var(--ink-soft); font-size: .75rem; }
.progress-track { height: 12px; overflow: hidden; border-radius: 999px; background: var(--teal-wash); }
.progress-track i { display: block; height: 100%; width: 86%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--mint)); }
.attendance-summary { display: flex; gap: 24px; margin-top: 18px; }
.attendance-summary div { display: grid; gap: 2px; }
.attendance-summary strong { font-size: 1.25rem; }
.attendance-summary span { color: var(--ink-soft); font-size: .68rem; }
.legend { display: flex; gap: 13px; flex-wrap: wrap; color: var(--ink-soft); font-size: .68rem; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; }
.legend .present { background: var(--teal); }
.legend .absent { background: var(--coral); }
.legend .leave { background: var(--mint); }
.attendance-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; margin-top: 15px; }
.day-cell { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-height: 31px; border-radius: 8px; color: var(--paper); font-size: .7rem; font-weight: 900; }
.day-cell.present { background: var(--teal); }
.day-cell.absent { background: var(--coral); }
.day-cell.leave { color: var(--teal); background: var(--mint); }
.day-cell small { position: absolute; left: 50%; bottom: -15px; color: var(--ink-soft); font-size: .58rem; transform: translateX(-50%); }
.result-table { width: 100%; border-collapse: collapse; }
.result-table th, .result-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: .78rem; }
.result-table th { color: var(--ink-soft); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.grade-pill { color: var(--teal); font-weight: 900; }
.notice-mini { display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notice-mini:last-child { border-bottom: 0; }
.notice-mini-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--teal); background: var(--teal-wash); font-weight: 900; }
.notice-mini strong { display: block; font-size: .8rem; }
.notice-mini span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: .68rem; }

.site-footer { padding: 70px 0 28px; color: rgba(248,242,232,.72); background: var(--teal-dark); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .8fr; gap: 60px; padding-bottom: 50px; }
.site-footer .brand-name strong { color: var(--paper); }
.site-footer .brand-name span { color: rgba(248,242,232,.55); }
.footer-copy { max-width: 350px; margin: 18px 0 0; font-size: .86rem; }
.footer-title { margin-bottom: 16px; color: var(--paper); font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; font-size: .82rem; }
.footer-links a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .72rem; }
.whatsapp-widget { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: inline-flex; align-items: center; gap: 9px; padding: 12px 17px; color: var(--teal-dark); border: 3px solid var(--teal-dark); border-radius: 999px; background: var(--mint); box-shadow: 0 11px 25px rgba(8,73,76,.2); font-size: .77rem; font-weight: 900; }
.whatsapp-widget:hover { transform: translateY(-2px); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; max-width: min(420px, calc(100% - 32px)); padding: 13px 18px; color: var(--paper); border-radius: 13px; background: var(--teal-dark); box-shadow: var(--shadow); font-size: .82rem; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: opacity .25s ease, transform .25s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--coral-dark); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.hide { display: none !important; }
.print-only { display: none; }

@media (max-width: 980px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: .78rem; }
  .hero-grid, .profile-layout, .contact-grid, .login-shell { grid-template-columns: 1fr; }
  .hero-visual { min-height: 510px; max-width: 620px; width: 100%; margin: 0 auto; }
  .login-intro { padding: 70px 40px; }
  .login-panel { padding: 60px 40px; }
  .login-intro h1 { max-width: 700px; }
  .profile-photo, .profile-photo img { min-height: 450px; }
  .split-grid, .split-grid.reverse { grid-template-columns: 1fr; gap: 40px; }
  .split-grid.reverse > :first-child { order: 0; }
  .dashboard-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .dashboard-main { padding: 30px 22px 50px; }
}
@media (max-width: 760px) {
  .container, .narrow { width: min(calc(100% - 30px), var(--max-width)); }
  .section { padding: 74px 0; }
  .section-head, .page-hero-grid { display: block; }
  .section-head p { margin-top: 15px; }
  .page-stamp { margin-top: 35px; }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 79px; right: 15px; left: 15px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-soft); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-links a::after { display: none; }
  .nav-links .mobile-auth-link { display: block; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--teal); }
  .nav-actions .button { display: none; }
  .hero { padding: 67px 0 60px; }
  .hero-grid { gap: 35px; }
  .hero-visual { min-height: 390px; }
  .preview-card { inset: 15px 0 0 8px; padding: 12px; }
  .preview-image { min-height: 360px; }
  .board { padding: 17px; }
  .study-orb { width: 105px; height: 105px; font-size: .62rem; }
  .play-button { left: 39%; top: 59%; }
  .floating-label { font-size: .64rem; }
  .label-two { bottom: 0; }
  .stat-rail { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .stat { padding: 19px 12px 19px 0; }
  .stat + .stat { padding-left: 12px; }
  .course-grid, .quote-grid, .value-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 160px; }
  .gallery-card:first-child { grid-row: span 2; }
  .notice-card { grid-template-columns: 75px 1fr; gap: 15px; }
  .notice-card .button { grid-column: 2; justify-self: start; }
  .notice-date { padding-right: 13px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .map-card { min-height: 410px; }
  .auth-card { padding: 27px 22px; }
  .login-intro, .login-panel { padding: 55px 22px; }
  .dashboard-layout { display: block; }
  .dashboard-sidebar { position: relative; height: auto; padding: 18px 15px; }
  .dashboard-sidebar .brand { margin: 0 5px 20px; }
  .dashboard-nav { display: flex; overflow-x: auto; gap: 6px; }
  .dashboard-nav a { flex: 0 0 auto; padding: 8px; font-size: .7rem; }
  .dashboard-nav a span { display: none; }
  .sidebar-bottom { display: none; }
  .dashboard-topbar { align-items: start; flex-direction: column; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dash-card-wide { grid-column: auto; }
  .dashboard-main { padding: 24px 15px 44px; }
  .dashboard-profile { grid-template-columns: 80px 1fr; }
  .dashboard-avatar { width: 80px; height: 80px; }
  .info-grid { grid-template-columns: 1fr; }
  .attendance-grid { grid-template-columns: repeat(7, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .whatsapp-widget, .dashboard-sidebar, .button, .no-print { display: none !important; }
  body, .dashboard-body { background: white; }
  .dashboard-layout { display: block; }
  .dashboard-main { padding: 0; }
  .dash-card { break-inside: avoid; box-shadow: none; }
  .print-only { display: block; }
}
