/* ==========================================================================
   MASAGANA HIGH SCHOOL SIS - INTEGRATED STYLESHEET (style.css)
   ========================================================================== */

:root {
  --maroon-900: #4B0E1F; --maroon-700: #6E1830; --maroon-600: #8A2140;
  --gold-500: #C9973E;   --gold-300: #E4C57F;   --cream-50: #F8F3E8;
  --cream-100: #F0E8D8;  --ink-900: #241A12;    --ink-600: #5B5044;
  --ink-400: #8B8073;    --line: #DED2B8;
  --error-red: #D32F2F;

  --maroon-deep:   #5C0F1B;
  --maroon:        #7A1B2B;
  --maroon-mid:    #8E2236;
  --maroon-bright: #A13447;
  --cream:         #FBF1DE;
  --cream-dark:    #F0E4C8;
  --paper:         #FFFCF6;
  --ink:           #2B1B12;
  --ink-soft:      #5a3e34;
  --gold:          #D9A632;
  --gold-soft:     #E8CB87;
  --gold-pale:     #F5E9C3;
  --leaf:          #3F7D44;
  --shadow-md:     0 8px 28px -8px rgba(42,10,16,0.22);
  --shadow-lg:     0 18px 48px -14px rgba(42,10,16,0.38);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Public Sans', 'Inter', system-ui, sans-serif;
  background: var(--cream-50);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
}

body.portal-page {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

body.profile-page {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: 
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(92,15,27,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(122,27,43,0.07) 0%, transparent 60%),
    var(--cream);
  min-height: 100vh;
  padding-bottom: 3rem;
  position: relative;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
:focus-visible { outline: 2px solid var(--maroon-600); outline-offset: 3px; }

/* Strict SVG sizing rule to prevent massive icon blowups */
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; max-width: 100%; max-height: 100%; }

h1, h2, h3, .serif-font, .display {
  font-family: 'Fraunces', 'Source Serif 4', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.portal-page h1, .portal-page h2, .portal-page h3, .portal-page .display,
.profile-page h1, .profile-page h2, .profile-page h3, .profile-page .display {
  font-family: 'Source Serif 4', serif;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-300);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.portal-page .eyebrow, .profile-page .eyebrow {
  font-family: 'Spectral SC', serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 500;
}

.caveat { font-family: 'Caveat', cursive; font-weight: 700; }
.italic { font-style: italic; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.profile-page .container { max-width: 900px; margin: 2.2rem auto; padding: 0 1.2rem; position: relative; z-index: 1; }
@media(max-width:640px){ .container{ padding:0 1.1rem; } }

.btn { padding: 14px 26px; border-radius: 3px; font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: background .15s; border: none; font-family: inherit; }
.btn-gold { background: var(--gold-500); color: var(--maroon-900); }
.btn-gold:hover { background: var(--gold-300); }
.btn-line { border: 1px solid rgba(228,197,127,0.5); color: var(--cream-50); }
.btn-line:hover { background: rgba(228,197,127,0.1); }
.btn-full { width: 100%; padding: 14px; font-size: 15px; }

.banig {
  background-image:
    repeating-linear-gradient(60deg, rgba(43,27,18,0.04) 0 1.5px, transparent 1.5px 20px),
    repeating-linear-gradient(-60deg, rgba(43,27,18,0.04) 0 1.5px, transparent 1.5px 20px);
}
.banig-light {
  background-image:
    repeating-linear-gradient(60deg, rgba(255,255,255,0.05) 0 1.5px, transparent 1.5px 20px),
    repeating-linear-gradient(-60deg, rgba(255,255,255,0.05) 0 1.5px, transparent 1.5px 20px);
}

nav { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; border-bottom: 1px solid var(--line); }
.brand-row { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 42px; height: 42px; border: 1.5px solid var(--maroon-700); border-radius: 50%; display: grid; place-items: center; }
.brand-name { font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; line-height: 1.3; }
.brand-name span { display: block; font-size: 11px; color: var(--gold-500); text-transform: none; font-weight: 400; font-family: 'Public Sans'; }
.badge { font-size: 12px; text-transform: uppercase; border: 1px solid var(--gold-500); color: var(--maroon-700); background: var(--cream-100); padding: 7px 14px; border-radius: 100px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.badge:hover { background: #E8DFC8; border-color: var(--maroon-700); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }

.hero { position: relative; background: var(--maroon-900); color: var(--cream-50); overflow: hidden; }
.crest-field { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; opacity: 0.14; pointer-events: none; transform: translateX(18%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 88px 0 76px; }
h1.headline { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.14; margin-bottom: 20px; }
.hero p.sub { font-size: 16px; line-height: 1.75; color: var(--cream-100); max-width: 440px; margin-bottom: 32px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-foot { position: relative; z-index: 2; display: flex; gap: 40px; border-top: 1px solid rgba(228,197,127,0.28); padding: 24px 0 28px; font-size: 12px; color: var(--gold-300); }
.hero-foot strong { display: block; color: var(--cream-50); font-size: 19px; }

.mock { background: var(--cream-50); color: var(--ink-900); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px -18px rgba(0,0,0,0.5); border: 1px solid var(--line); }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--cream-100); border-bottom: 1px solid var(--line); }
.mock-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.mock-url { margin-left: 8px; font-size: 11px; color: var(--ink-400); background: #fff; border: 1px solid var(--line); padding: 3px 10px; border-radius: 3px; }
.mock-body { padding: 22px; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 10px; }
.mock-card { background: var(--cream-100); border: 1px solid var(--line); border-radius: 6px; padding: 13px; }
.mock-card .k { font-size: 10.5px; color: var(--ink-400); text-transform: uppercase; margin-bottom: 8px; }
.mock-card .v { font-size: 21px; font-weight: 600; color: var(--maroon-700); }
.mock-row { display: flex; align-items: center; justify-content: space-between; background: var(--cream-100); border: 1px solid var(--line); border-radius: 6px; padding: 11px 14px; font-size: 12.5px; }
.mock-row .p { font-size: 10.5px; color: var(--maroon-700); background: rgba(201,151,62,0.18); padding: 3px 9px; border-radius: 3px; font-weight: 600; }

section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 560px; margin-bottom: 46px; }
.section-head .eyebrow { color: var(--maroon-700); }
.section-head h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; margin-bottom: 14px; }
.section-head p { color: var(--ink-600); font-size: 15.5px; line-height: 1.7; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { background: var(--cream-50); padding: 28px 24px; }
.feature .num { font-size: 13px; color: var(--gold-500); margin-bottom: 16px; }
.feature h3 { font-size: 16.5px; margin-bottom: 9px; }
.feature p { font-size: 13.5px; color: var(--ink-600); line-height: 1.65; }

.auth-container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; min-height: calc(100vh - 200px); padding: 40px 0; }
.auth-card { background: #ffffff; border: 1px solid var(--line); border-radius: 8px; padding: 36px; box-shadow: 0 20px 40px -15px rgba(0,0,0,0.08); }

.auth-tabs { display: flex; border-bottom: 2px solid var(--line); margin-bottom: 24px; gap: 20px; }
.tab-btn { background: none; border: none; padding: 8px 4px 12px; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--ink-400); cursor: pointer; position: relative; transition: color .15s; }
.tab-btn.active { color: var(--maroon-900); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--maroon-700); }

.auth-form { display: none; }
.auth-form.active { display: block; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-900); margin-bottom: 6px; }
.form-input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; font-family: inherit; font-size: 14px; background: var(--cream-50); color: var(--ink-900); transition: border-color .15s, box-shadow .15s; }
.form-input:focus { outline: none; border-color: var(--maroon-600); background: #fff; box-shadow: 0 0 0 3px rgba(138, 33, 64, 0.12); }

.password-wrapper { position: relative; display: flex; align-items: center; width: 100%; }
.password-wrapper .form-input { padding-right: 44px; }

.btn-toggle-pw {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer; padding: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-600); border-radius: 4px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, color 0.15s ease, background-color 0.15s ease;
}
.password-wrapper:hover .btn-toggle-pw, .password-wrapper:focus-within .btn-toggle-pw { opacity: 1; pointer-events: auto; }
.btn-toggle-pw:hover { color: var(--maroon-700); background-color: rgba(110, 24, 48, 0.08); }

.error-msg { display: block; font-size: 12px; color: var(--error-red); margin-top: 5px; min-height: 16px; font-weight: 500; }
.form-options { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 20px; }
.form-options label { display: flex; align-items: center; gap: 8px; color: var(--ink-600); cursor: pointer; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(92,15,27,0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,203,135,0.14);
}
.nav.scrolled { box-shadow: 0 4px 24px -4px rgba(40,6,12,0.45); }
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; gap: 0.9rem; height: 64px;
}
@media(max-width:640px){ .nav-inner{ padding:0 1.1rem; gap:0.6rem; } }

.account-burger-btn {
  background: rgba(251,241,222,0.1);
  border: 1px solid rgba(232,203,135,0.25);
  color: #fff; width: 38px; height: 38px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.account-burger-btn:hover { background: rgba(251,241,222,0.2); border-color: var(--gold-soft); }
.account-burger-btn svg { width: 20px; height: 20px; }

.nav-crest {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 30% 28%, var(--gold-soft), var(--gold) 55%, #8a6c25);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3);
}
.nav-crest svg { width: 22px; height: 22px; }

.nav-school-name { color: #fff; font-family: 'Source Serif 4', serif; font-weight: 600; font-size: 0.98rem; line-height: 1.2; }
.nav-school-name span { display: block; font-family: 'Spectral SC', serif; font-size: 0.65rem; color: var(--gold-soft); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.nav-links { display: flex; gap: 0.2rem; margin-left: auto; }
@media(max-width:720px){ .nav-links { display: none; } }
.nav-link { color: rgba(251,241,222,0.72); font-size: 0.86rem; font-weight: 500; padding: 0.55rem 0.85rem; border-radius: 7px; transition: background .15s, color .15s; }
.nav-link:hover { color: #fff; background: rgba(251,241,222,0.08); }
.nav-cta {
  margin-left: 0.6rem; background: var(--gold); color: var(--maroon-deep);
  font-size: 0.84rem; font-weight: 700; padding: 0.5rem 1.1rem; border-radius: 8px;
  transition: transform .12s, box-shadow .12s; white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -6px rgba(217,166,50,0.6); }
.hamburger { display: none; background: none; border: none; color: #fff; margin-left: auto; }
@media(max-width:720px){ .hamburger{ display: flex; } }
.hamburger svg { width: 22px; height: 22px; }

.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: var(--maroon-deep); padding: 0.6rem 1.2rem 1rem;
  border-bottom: 1px solid rgba(232,203,135,0.14);
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; color: rgba(251,241,222,0.85); font-size: 0.9rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(251,241,222,0.08); }

.account-drawer-overlay {
  position: fixed; inset: 0; background: rgba(15, 3, 6, 0.65);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.account-drawer-overlay.active { opacity: 1; pointer-events: auto; }

.account-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 85vw;
  background: var(--maroon-deep); color: #fff; z-index: 201; transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45); border-right: 1px solid rgba(232, 203, 135, 0.2);
}
.account-drawer.active { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: flex-end; padding: 0.8rem 1rem 0.2rem; }
.drawer-close-btn {
  background: rgba(255, 255, 255, 0.08); border: none; color: rgba(251, 241, 222, 0.85);
  width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.drawer-close-btn:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.drawer-close-btn svg { width: 16px; height: 16px; }

.user-profile-card {
  display: block; padding: 0.4rem 1rem 0.6rem; text-align: center; text-decoration: none; color: inherit;
  border-radius: 10px; margin: 0 0.5rem; transition: background 0.15s;
}
.user-profile-card:hover { background: rgba(251, 241, 222, 0.05); }
.user-pfp-wrapper {
  width: 64px; height: 64px; margin: 0 auto 0.5rem; border-radius: 50%; padding: 2px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.user-pfp { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #3a0b10; }
.user-info .user-name { font-family: 'Source Serif 4', serif; font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.1rem; }
.user-info .user-email { display: block; font-size: 0.75rem; color: var(--gold-soft); word-break: break-all; margin-bottom: 0.3rem; }
.user-info .user-desc { font-size: 0.75rem; color: rgba(251, 241, 222, 0.8); line-height: 1.35; background: rgba(0, 0, 0, 0.22); padding: 0.5rem 0.7rem; border-radius: 8px; border: 1px solid rgba(251, 241, 222, 0.08); text-align: left; }

.drawer-divider { height: 1px; background: rgba(232, 203, 135, 0.15); margin: 0.4rem 1rem; }
.drawer-nav { display: flex; flex-direction: column; gap: 0.25rem; padding: 0 0.8rem; margin-bottom: 0.8rem; }
.drawer-link { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.85rem; color: rgba(251, 241, 222, 0.85); font-size: 0.88rem; font-weight: 500; border-radius: 8px; transition: background 0.15s; }
.drawer-link svg { width: 18px; height: 18px; color: var(--gold-soft); flex-shrink: 0; }
.drawer-link:hover { background: rgba(251, 241, 222, 0.1); color: #fff; }
.drawer-footer { margin-top: auto; padding: 0.8rem; border-top: 1px solid rgba(232, 203, 135, 0.15); background: rgba(0, 0, 0, 0.15); }

.portal-page .hero {
  min-height: 100vh; position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(217,166,50,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(122,27,43,0.3) 0%, transparent 50%),
    linear-gradient(160deg, var(--maroon-deep) 0%, #5a1223 50%, #3a0b10 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 120px 2rem 80px; overflow: hidden;
}

.sunburst {
  position: absolute; width: 680px; height: 680px; border-radius: 50%;
  background: conic-gradient(
    rgba(217,166,50,0.09) 0deg, transparent 15deg,
    rgba(217,166,50,0.09) 30deg, transparent 45deg,
    rgba(217,166,50,0.09) 60deg, transparent 75deg,
    rgba(217,166,50,0.09) 90deg, transparent 105deg,
    rgba(217,166,50,0.09) 120deg, transparent 135deg,
    rgba(217,166,50,0.09) 150deg, transparent 165deg,
    rgba(217,166,50,0.09) 180deg, transparent 195deg,
    rgba(217,166,50,0.09) 210deg, transparent 225deg,
    rgba(217,166,50,0.09) 240deg, transparent 255deg,
    rgba(217,166,50,0.09) 270deg, transparent 285deg,
    rgba(217,166,50,0.09) 300deg, transparent 315deg,
    rgba(217,166,50,0.09) 330deg, transparent 345deg,
    rgba(217,166,50,0.09) 360deg
  );
  animation: spin 80s linear infinite; pointer-events: none;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.rice-hero { position: absolute; bottom: 0; opacity: 0.18; pointer-events: none; display: flex; gap: 6px; }
.rice-hero.left  { left: -12px; bottom: -20px; }
.rice-hero.right { right: -12px; bottom: -20px; transform: scaleX(-1); }
.rice-stk { width: 28px; height: 160px; }

.hero-crest {
  width: 88px; height: 88px; border-radius: 50%; position: relative; z-index: 2;
  background: radial-gradient(circle at 32% 28%, var(--gold-soft), var(--gold) 55%, #8a6c25);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.28), 0 12px 40px -12px rgba(40,6,12,0.7);
  margin: 0 auto 1.8rem;
}
.hero-crest svg { width: 44px; height: 44px; }

.hero-eyebrow { margin-bottom: 0.6rem; }
.portal-page .hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 700; line-height: 1.05; margin-bottom: 1rem; }
.portal-page .hero h1 em { color: var(--gold-soft); font-style: normal; }
.hero-desc { font-size: clamp(0.95rem, 2vw, 1.1rem); line-height: 1.7; color: rgba(251,241,222,0.75); max-width: 540px; margin: 0 auto 0.8rem; }
.hero-motto { font-family: 'Source Serif 4',serif; font-style: italic; color: var(--gold-soft); font-size: 1rem; letter-spacing: 0.03em; margin-bottom: 2.4rem; }
.hero-btns { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--gold); color: var(--maroon-deep); font-weight: 700;
  padding: 0.9rem 1.9rem; border-radius: 10px; font-size: 0.96rem;
  box-shadow: 0 10px 28px -8px rgba(217,166,50,0.55); transition: transform .12s;
}
.btn-hero-primary:hover { transform: translateY(-2px); }
.btn-hero-ghost {
  background: rgba(251,241,222,0.1); color: #fff; font-weight: 600;
  padding: 0.9rem 1.7rem; border-radius: 10px; font-size: 0.96rem;
  border: 1.5px solid rgba(251,241,222,0.25); transition: background .15s;
}
.btn-hero-ghost:hover { background: rgba(251,241,222,0.16); }
.hero-wave { position: absolute; bottom: -2px; left: 0; right: 0; pointer-events: none; z-index: 2; }

.stats-strip { background: var(--maroon); color: #fff; padding: 2.6rem 2rem; position: relative; z-index: 3; }
.stats-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); }
@media(max-width:760px){ .stats-inner{ grid-template-columns: repeat(2,1fr); } }
.stat-item { text-align: center; padding: 1.2rem 1rem; border-right: 1px solid rgba(251,241,222,0.14); }
.stat-item:last-child { border-right: none; }
.stat-n { font-family: 'Source Serif 4',serif; font-size: 2.4rem; font-weight: 700; color: var(--gold-soft); line-height: 1; }
.stat-lbl { font-size: 0.78rem; color: rgba(251,241,222,0.65); margin-top: 0.35rem; }
.stat-fil { font-family: 'Caveat',cursive; font-size: 0.95rem; color: var(--gold); margin-top: 0.1rem; }

.portal-page .section, .profile-page .section { padding: 6rem 0; }
.section-alt { background: var(--paper); }
.section-header { text-align: center; margin-bottom: 3.2rem; }
.section-header h2 { font-size: clamp(1.9rem,4vw,2.8rem); font-weight: 700; margin-top: 0.5rem; }
.section-header p { font-size: 0.98rem; color: var(--ink-soft); max-width: 520px; margin: 0.8rem auto 0; line-height: 1.7; }
.parol-rule { width: 100%; display: flex; align-items: center; gap: 0.8rem; margin: 0.9rem auto 0; max-width: 220px; }
.parol-rule::before, .parol-rule::after { content: ''; flex: 1; height: 1.5px; background: var(--gold-soft); border-radius: 2px; }
.parol-star { color: var(--gold); font-size: 0.65rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
@media(max-width:840px){ .about-grid{ grid-template-columns: 1fr; gap: 2.8rem; } }
.about-text h2 { font-size: clamp(1.8rem,3.5vw,2.5rem); font-weight: 700; margin-top: 0.5rem; margin-bottom: 1.2rem; }
.about-text p { font-size: 0.97rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 1.1rem; }
.about-visual {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, var(--maroon-deep), var(--maroon));
  aspect-ratio: 4/3; min-height: 280px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.about-school-badge { position: relative; z-index: 1; text-align: center; color: #fff; }
.about-school-badge .caveat { font-size: 2.6rem; color: var(--gold); display: block; margin-bottom: 0.3rem; }
.about-school-badge p { font-family: 'Spectral SC',serif; letter-spacing: 0.1em; font-size: 0.72rem; color: rgba(251,241,222,0.7); text-transform: uppercase; }
.about-tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.about-tag {
  font-size: 0.76rem; font-weight: 600; padding: 0.3rem 0.8rem; border-radius: 99px;
  background: var(--gold-pale); color: var(--maroon-deep); border: 1.5px solid var(--gold-soft);
}

.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.1rem; }
@media(max-width:960px){ .services-grid{ grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px){ .services-grid{ grid-template-columns: 1fr; } }
.svc-card {
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 1.8rem 1.5rem 1.5rem; position: relative; overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.svc-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 1.1rem;
  background: linear-gradient(160deg, var(--maroon-bright), var(--maroon-deep));
  display: flex; align-items: center; justify-content: center;
}
.svc-icon svg { width: 22px !important; height: 22px !important; min-width: 22px; min-height: 22px; color: #fff; }
.svc-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
.svc-card .svc-fil { font-family: 'Caveat',cursive; font-size: 0.9rem; color: var(--gold); display: block; margin-bottom: 0.6rem; }
.svc-card p { font-size: 0.83rem; color: var(--ink-soft); line-height: 1.65; }
.svc-link { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 1rem; font-size: 0.8rem; font-weight: 600; color: var(--maroon-bright); }
.svc-link svg { width: 13px !important; height: 13px !important; min-width: 13px; min-height: 13px; }

.ann-section { background: var(--maroon-deep); color: #fff; position: relative; overflow: hidden; }
.ann-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.1rem; position: relative; z-index: 1; }
@media(max-width:860px){ .ann-grid{ grid-template-columns: 1fr; } }
.ann-card { background: rgba(251,241,222,0.06); border: 1px solid rgba(251,241,222,0.14); border-radius: 14px; padding: 1.4rem; }
.ann-date-row { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.ann-date-box {
  width: 46px; height: 46px; border-radius: 9px; flex-shrink: 0; text-align: center;
  background: rgba(217,166,50,0.2); border: 1px solid rgba(217,166,50,0.3);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ann-date-box .d { font-family: 'Source Serif 4',serif; font-weight: 700; font-size: 1.1rem; color: var(--gold-soft); line-height: 1; }
.ann-date-box .m { font-size: 0.58rem; color: rgba(251,241,222,0.6); text-transform: uppercase; }
.ann-tag { font-size: 0.66rem; font-weight: 600; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 99px; }
.ann-tag-gold { background: rgba(217,166,50,0.2); color: var(--gold-soft); }
.ann-tag-maroon { background: rgba(232,203,135,0.1); color: rgba(251,241,222,0.75); }
.ann-tag-leaf { background: rgba(63,125,68,0.25); color: #7dc987; }
.ann-card h3 { font-size: 0.96rem; font-weight: 600; margin-bottom: 0.4rem; color: #fff; }
.ann-card p { font-size: 0.81rem; color: rgba(251,241,222,0.6); line-height: 1.6; }
.ann-empty { text-align: center; padding: 2rem 0; font-size: 0.88rem; color: rgba(251,241,222,0.5); }
.ann-all-link { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 2.2rem; color: var(--gold-soft); font-size: 0.88rem; font-weight: 600; }
.ann-all-link svg { width: 16px !important; height: 16px !important; min-width: 16px; min-height: 16px; }

.life-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: auto auto; gap: 1.1rem; }
@media(max-width:760px){ .life-grid{ grid-template-columns: 1fr 1fr; } }
@media(max-width:480px){ .life-grid{ grid-template-columns: 1fr; } }
.life-card { border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 4/3; display: flex; align-items: flex-end; justify-content: flex-start; box-shadow: var(--shadow-md); }
.life-card.tall { grid-row: span 2; aspect-ratio: unset; min-height: 300px; }
.life-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.life-grad { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(40,8,14,0.75) 0%, transparent 55%); }
.life-label { position: relative; z-index: 1; padding: 1rem 1.1rem; font-size: 0.86rem; font-weight: 600; color: #fff; }
.life-label .life-fil { font-family: 'Caveat',cursive; font-size: 1.1rem; color: var(--gold-soft); display: block; line-height: 1; }

.lc-1 { background: linear-gradient(160deg,#6b1a28,#3d0c14); }
.lc-2 { background: linear-gradient(160deg,#2f6840,#1a3d24); }
.lc-3 { background: linear-gradient(160deg,#8a6c25,#4a3a0e); }
.lc-4 { background: linear-gradient(160deg,#1a4a6e,#0e2a44); }
.lc-5 { background: linear-gradient(160deg,#5a1c60,#2d0c32); }

.enroll-banner { background: linear-gradient(120deg, var(--gold) 0%, #c8902a 100%); padding: 3.2rem 2rem; text-align: center; position: relative; overflow: hidden; }
.enroll-banner-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.enroll-banner .caveat { font-size: 1.4rem; color: var(--maroon-deep); display: block; margin-bottom: 0.2rem; }
.enroll-banner h2 { font-size: clamp(1.6rem,4vw,2.3rem); color: var(--maroon-deep); font-weight: 700; margin-bottom: 0.7rem; }
.enroll-banner p { color: rgba(43,27,18,0.75); font-size: 0.96rem; margin-bottom: 1.8rem; line-height: 1.6; }
.btn-enroll { background: var(--maroon-deep); color: #fff; font-weight: 700; padding: 0.9rem 2rem; border-radius: 10px; font-size: 0.96rem; display: inline-block; }

.footer-top { background: var(--maroon-deep); color: #fff; padding: 4.8rem 0 3rem; position: relative; overflow: hidden; }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
@media(max-width:900px){ .footer-grid{ grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media(max-width:540px){ .footer-grid{ grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand .school-nm { font-family: 'Source Serif 4',serif; font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 0.2rem; }
.footer-brand .school-loc { font-size: 0.76rem; color: var(--gold-soft); font-family: 'Spectral SC',serif; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.84rem; color: rgba(251,241,222,0.58); line-height: 1.7; max-width: 300px; }
.footer-col h4 { font-size: 0.7rem; font-family: 'Spectral SC',serif; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 0.9rem; }
.footer-col a { display: block; font-size: 0.85rem; color: rgba(251,241,222,0.65); margin-bottom: 0.5rem; }
.footer-col address { font-style: normal; font-size: 0.85rem; color: rgba(251,241,222,0.65); line-height: 1.7; }
.social-row { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.social-btn { width: 34px; height: 34px; border-radius: 8px; background: rgba(251,241,222,0.08); display: flex; align-items: center; justify-content: center; }
.social-btn svg { width: 16px !important; height: 16px !important; color: #fff; }
.footer-bottom { background: #3a0b10; color: rgba(251,241,222,0.45); font-size: 0.76rem; text-align: center; padding: 1.1rem 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: var(--gold-soft); }

.back-top {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 90;
  width: 40px; height: 40px; border-radius: 50%; background: var(--maroon); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px -4px rgba(40,6,12,0.5);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top svg { width: 18px !important; height: 18px !important; }

.portal-strip { display: flex; align-items: center; justify-content: center; gap: 1.2rem; padding: 1.1rem 2rem; background: var(--gold-pale); border-top: 1px solid var(--gold-soft); font-size: 0.88rem; color: var(--maroon-deep); flex-wrap: wrap; }
.portal-strip a { background: var(--maroon-deep); color: #fff; font-weight: 600; font-size: 0.84rem; padding: 0.5rem 1.2rem; border-radius: 7px; }
