/* =========================================================
   GMSSSS Rampur Sarsehri — Website styles
   Palette taken from the school logo: maroon/red, saffron, green
   ========================================================= */
:root {
  --maroon: #8e1b1b;
  --maroon-dark: #5f0f12;
  --maroon-soft: #fbf1ec;
  --saffron: #f5a400;
  --saffron-dark: #d98a00;
  --green: #1e6b3c;
  --cream: #fffaf1;
  --ink: #2a2422;
  --muted: #6c625d;
  --line: #eadfd6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(94, 15, 18, .08);
  --shadow-lg: 0 18px 45px rgba(94, 15, 18, .14);
  --font-head: 'Merriweather', Georgia, serif;
  --font-body: 'Mukta', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); font-size: 1.06rem; line-height: 1.7; background: #fff; }
a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--saffron-dark); }
img { max-width: 100%; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--maroon-dark); line-height: 1.3; }
.text-maroon { color: var(--maroon) !important; }
.bg-cream { background: var(--cream); }
.bg-maroon-soft { background: var(--maroon-soft); }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 50px; font-weight: 600; padding: .55rem 1.4rem; }
.btn-sm { padding: .3rem .9rem; }
.btn-maroon { background: var(--maroon); color: #fff; border: 2px solid var(--maroon); }
.btn-maroon:hover, .btn-maroon:focus { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff; }
.btn-outline-maroon { border: 2px solid var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline-maroon:hover { background: var(--maroon); color: #fff; }
.btn-saffron { background: var(--saffron); color: #2b1600; border: 2px solid var(--saffron); }
.btn-saffron:hover { background: #ffb81f; color: #2b1600; }

/* ---------- Top bar ---------- */
.topbar { background: var(--maroon-dark); color: #f7e6d9; font-size: .92rem; padding: .4rem 0; }
.topbar a { color: #f7e6d9; }
.topbar a:hover { color: var(--saffron); }
.topbar i { color: var(--saffron); margin-right: .25rem; }
.topbar-social a { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.topbar-social a i { margin: 0; color: inherit; }
.topbar-social .topbar-pill { width: auto; padding: 0 .8rem; border-radius: 20px; background: var(--saffron); color: #2b1600; font-weight: 600; }
.topbar-social .topbar-pill i { color: #2b1600; }

/* ---------- Brand bar ---------- */
.brandbar { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0l30 30-30 30L0 30z' fill='%23f5a400' fill-opacity='.04'/%3E%3C/svg%3E"); padding: .9rem 0; border-bottom: 4px solid var(--saffron); }
.brand { color: inherit; }
.brand-logo { width: 92px; height: 92px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.05rem, 2.3vw, 1.75rem); color: var(--maroon); }
.brand-place { font-weight: 700; color: var(--green); font-size: clamp(.95rem, 1.6vw, 1.2rem); letter-spacing: .5px; text-transform: uppercase; }
.brand-tag { font-size: .9rem; color: var(--muted); }
.info-chip { display: flex; gap: .6rem; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: .5rem .9rem; }
.info-chip i { font-size: 1.5rem; color: var(--maroon); }
.info-chip small { display: block; color: var(--muted); font-size: .78rem; line-height: 1; }
.info-chip strong { color: var(--ink); }

/* ---------- Main nav ---------- */
.main-nav { background: var(--maroon); padding: 0; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.main-nav .navbar-brand { color: #fff; font-weight: 600; }
.main-nav .navbar-toggler { color: #fff; border: 1px solid rgba(255,255,255,.4); font-size: 1.5rem; padding: .1rem .6rem; margin: .4rem 0; }
.main-nav .nav-link { color: #fff; font-weight: 600; padding: .95rem .85rem !important; position: relative; font-size: 1.02rem; }
.main-nav .nav-link:hover, .main-nav .nav-link:focus, .main-nav .nav-item.show > .nav-link { color: var(--saffron); }
.main-nav .dropdown-menu { border: 0; border-top: 3px solid var(--saffron); border-radius: 0 0 10px 10px; box-shadow: var(--shadow-lg); padding: .4rem 0; min-width: 230px; }
.main-nav .dropdown-item { padding: .5rem 1.1rem; font-weight: 500; color: var(--ink); }
.main-nav .dropdown-item:hover, .main-nav .dropdown-item:focus { background: var(--maroon-soft); color: var(--maroon); }
.main-nav .dropend > .dropdown-menu { top: -.4rem; }
@media (min-width: 992px) {
  .main-nav .dropdown:hover > .dropdown-menu, .main-nav .dropend:hover > .dropdown-menu { display: block; }
  .main-nav .dropend > .dropdown-menu { left: 100%; margin-left: 0; }
  .main-nav .nav-item > .dropdown-menu { margin-top: 0; top: 100%; left: 0; }
}
@media (max-width: 991.98px) {
  .main-nav .navbar-collapse { max-height: 75vh; overflow-y: auto; padding-bottom: .6rem; }
  .main-nav .nav-link { padding: .6rem .3rem !important; border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav .dropdown-menu { background: rgba(0,0,0,.15); box-shadow: none; border-top: 0; }
  .main-nav .dropdown-item { color: #fff; }
  .main-nav .dropdown-item:hover { background: rgba(255,255,255,.1); color: var(--saffron); }
  .main-nav .dropend .dropdown-menu { padding-left: 1rem; }
  .brand-logo { width: 64px; height: 64px; }
}

/* ---------- News ticker ---------- */
.news-ticker { background: #fff7e6; border-bottom: 1px solid #f3dfb8; font-size: .98rem; }
.ticker-label { background: var(--green); color: #fff; font-weight: 700; padding: .5rem 1rem; display: flex; align-items: center; gap: .4rem; white-space: nowrap; position: relative; }
.ticker-label::after { content: ""; position: absolute; right: -14px; top: 0; bottom: 0; border-left: 14px solid var(--green); border-top: 21px solid transparent; border-bottom: 21px solid transparent; }
.ticker-wrap { overflow: hidden; flex: 1; position: relative; padding-left: 1.4rem; mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%); }
.ticker-track { display: inline-flex; white-space: nowrap; animation: ticker var(--speed, 40s) linear infinite; padding: .5rem 0; }
.news-ticker:hover .ticker-track, .ticker-track:focus-within { animation-play-state: paused; }
.ticker-item { color: var(--ink); margin-right: 2.6rem; font-weight: 500; }
.ticker-item i { color: var(--saffron); font-size: .75rem; vertical-align: 2px; }
.ticker-item:hover { color: var(--maroon); }
.ticker-all { align-items: center; padding: 0 1rem; background: var(--saffron); color: #2b1600; font-weight: 700; white-space: nowrap; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.badge-new { display: inline-block; background: #e3262c; color: #fff; font-size: .65rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; vertical-align: 2px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .45; } }

/* ---------- Hero slider ---------- */
.hero-slider .carousel-item img { height: clamp(260px, 52vw, 560px); object-fit: cover; }
.hero-slider .carousel-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(60,8,10,.78) 0%, rgba(60,8,10,.35) 55%, rgba(0,0,0,0) 100%); pointer-events: none; }
.hero-slider .carousel-caption { inset: 0; display: flex; align-items: center; text-align: left; z-index: 2; padding: 0; }
.hero-slider .carousel-caption h2 { color: #fff; font-size: clamp(1.4rem, 3.6vw, 3rem); font-weight: 900; max-width: 720px; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hero-slider .carousel-caption p { font-size: clamp(.95rem, 1.6vw, 1.25rem); max-width: 600px; color: #ffe9c7; }
.hero-slider .carousel-indicators [data-bs-target] { width: 12px; height: 12px; border-radius: 50%; background: var(--saffron); border: 0; margin: 0 5px; }
.hero-slider .carousel-item { background: var(--maroon-dark); }
.page-slider .carousel-item img { height: clamp(220px, 38vw, 420px); }
@media (max-width: 575.98px) { .hero-slider .carousel-caption .btn { padding: .35rem 1rem; font-size: .9rem; } .hero-slider .carousel-caption p { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 900; text-align: center; margin-bottom: 1.8rem; position: relative; padding-bottom: .8rem; }
.section-title::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 70px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--saffron), var(--maroon)); }
.section-title.text-start::after { left: 0; transform: none; }
.eyebrow { display: inline-block; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: .85rem; margin-bottom: .4rem; }
.view-all { font-weight: 700; }

/* features */
.features-strip { margin-top: -60px; position: relative; z-index: 5; }
.feature-card { background: #fff; border-radius: var(--radius); padding: 1.4rem 1.2rem; box-shadow: var(--shadow-lg); height: 100%; border-bottom: 4px solid var(--saffron); transition: transform .25s; }
.feature-card:hover { transform: translateY(-6px); }
.feature-card i { font-size: 2rem; color: var(--maroon); display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--maroon-soft); margin-bottom: .6rem; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.feature-card p { font-size: .95rem; color: var(--muted); margin: 0; line-height: 1.5; }
@media (max-width: 991.98px) { .features-strip { margin-top: 1.5rem; } }

/* about */
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-badge { position: absolute; right: -10px; bottom: 20px; background: var(--saffron); color: #2b1600; border-radius: 12px; padding: .6rem 1rem; text-align: center; box-shadow: var(--shadow); line-height: 1.1; }
.about-badge span { display: block; font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; }
.about-text { color: #4a403c; }
.about-home .section-title { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }

/* notice board */
.notice-board { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.notice-head { background: var(--maroon); color: #fff; font-family: var(--font-head); font-weight: 700; padding: .85rem 1.1rem; font-size: 1.1rem; }
.notice-head i { color: var(--saffron); }
.notice-body { height: 330px; overflow: hidden; position: relative; }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list.scrolling { animation: noticeScroll 28s linear infinite; }
.notice-body:hover .notice-list { animation-play-state: paused; }
@keyframes noticeScroll { 0%, 8% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
.notice-list li { display: flex; gap: .8rem; padding: .75rem 1rem; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.notice-list li a { color: var(--ink); font-weight: 500; line-height: 1.45; }
.notice-list li a:hover { color: var(--maroon); }
.notice-date { flex-shrink: 0; width: 52px; text-align: center; background: var(--cream); border: 1px solid #f0d9a8; border-radius: 8px; font-size: .75rem; line-height: 1.1; padding: .3rem 0; color: var(--muted); text-transform: uppercase; }
.notice-date b { display: block; font-size: 1.2rem; color: var(--maroon); }
.notice-foot { display: block; text-align: center; padding: .65rem; background: var(--cream); font-weight: 700; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .notice-list.scrolling { animation: none; } .notice-body { overflow-y: auto; } }

/* stats */
.stats-band { background: linear-gradient(120deg, var(--maroon-dark), var(--maroon)); color: #fff; padding: 2.4rem 0; position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 50%, rgba(245,164,0,.25), transparent 40%); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--saffron); }
.stat span { color: #f6e2d4; font-weight: 500; }

/* principal */
.principal-card { background: var(--cream); border-radius: 22px; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid #f3e1c0; position: relative; }
.principal-photo { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.principal-name { font-size: 1.25rem; margin: 1rem 0 0; }
.principal-desig { color: var(--green); font-weight: 700; }
.principal-quote { position: relative; font-size: 1.08rem; color: #4a403c; padding-left: 1rem; border-left: 4px solid var(--saffron); margin: .5rem 0 1.2rem; }
.principal-quote > i { position: absolute; top: -28px; right: 0; font-size: 4rem; color: rgba(142,27,27,.12); }

/* links */
.links-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.2rem 1.2rem; border: 1px solid var(--line); }
.links-box-title { font-size: 1.25rem; border-bottom: 2px solid var(--saffron); padding-bottom: .6rem; margin-bottom: .8rem; }
.links-tabs { border-bottom: 2px solid var(--line); margin-bottom: .8rem; gap: .3rem; }
.links-tabs .nav-link { border: 0; color: var(--muted); font-weight: 700; border-radius: 8px 8px 0 0; }
.links-tabs .nav-link.active { background: var(--maroon); color: #fff; }
.link-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .3rem 1rem; }
.link-grid a { display: block; padding: .45rem .6rem; border-radius: 8px; color: var(--ink); font-weight: 500; }
.link-grid a i { color: var(--saffron-dark); font-size: .85rem; margin-right: .3rem; }
.link-grid a:hover { background: var(--maroon-soft); color: var(--maroon); }

/* events */
.event-list { display: flex; flex-direction: column; gap: .8rem; }
.event-row { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: 12px; padding: .7rem; box-shadow: var(--shadow); border: 1px solid var(--line); color: var(--ink); transition: transform .2s; }
.event-row:hover { transform: translateX(4px); color: var(--maroon); }
.event-row img { width: 86px; height: 64px; object-fit: cover; border-radius: 8px; margin-left: auto; }
.event-date { flex-shrink: 0; width: 64px; text-align: center; background: var(--maroon); color: #fbe3d0; border-radius: 10px; padding: .4rem 0; font-size: .75rem; line-height: 1.15; text-transform: uppercase; }
.event-date b { display: block; font-size: 1.45rem; color: #fff; font-family: var(--font-head); }
.event-info strong { display: block; font-size: 1.05rem; }
.event-info small { color: var(--muted); }
.event-list.compact .event-row { box-shadow: none; }
.event-card { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; color: var(--ink); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--ink); }
.event-card-img { position: relative; display: block; }
.event-card-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.event-card-img .event-date { position: absolute; left: 12px; bottom: -22px; box-shadow: var(--shadow); }
.event-card-body { display: block; padding: 2rem 1.1rem 1.2rem; }
.event-card-body strong { display: block; font-family: var(--font-head); color: var(--maroon-dark); font-size: 1.1rem; }
.event-card-body small { color: var(--muted); display: block; margin-bottom: .3rem; }
.event-card-body .ex { color: var(--muted); font-size: .95rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--muted); font-weight: 600; }
.event-meta i { color: var(--maroon); }
.event-hero { max-height: 460px; object-fit: cover; }

/* facilities */
.facility-card { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); height: 100%; color: var(--ink); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.facility-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.facility-img { overflow: hidden; }
.facility-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s; }
.facility-card:hover .facility-img img { transform: scale(1.06); }
.facility-body { padding: 1.1rem 1.2rem 1.3rem; }
.facility-body h3 { font-size: 1.15rem; }
.facility-body p { color: var(--muted); font-size: .97rem; margin-bottom: .6rem; }
.more { color: var(--maroon); font-weight: 700; font-size: .95rem; }

/* gallery */
.photo-tile { display: block; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: #eee; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.photo-tile span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(95,15,18,.5); color: #fff; font-size: 1.8rem; opacity: 0; transition: opacity .3s; }
.photo-tile:hover img { transform: scale(1.08); }
.photo-tile:hover span { opacity: 1; }
.photo-caption { font-size: .9rem; color: var(--muted); text-align: center; padding-top: .3rem; }
.album-card { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); color: var(--ink); border: 1px solid var(--line); transition: transform .25s; }
.album-card:hover { transform: translateY(-5px); color: var(--maroon); }
.album-cover { display: block; position: relative; }
.album-cover img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.album-count { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.6); color: #fff; padding: .15rem .6rem; border-radius: 20px; font-size: .85rem; }
.album-body { display: flex; gap: .8rem; padding: 1rem 1.1rem; align-items: center; }
.album-body > i { font-size: 1.8rem; color: var(--saffron-dark); }
.album-body strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.album-body small { color: var(--muted); }
.video-card { display: block; color: var(--ink); background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.video-card strong { display: block; padding: .8rem 1rem 0; font-family: var(--font-head); color: var(--maroon-dark); }
.video-card small { display: block; padding: 0 1rem .9rem; color: var(--muted); }
.video-card strong:last-child { padding-bottom: .9rem; }
.video-thumb { display: block; position: relative; background: #2a0a0b; }
.video-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.video-thumb i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3.6rem; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,.5); transition: transform .25s; }
.video-card:hover .video-thumb i { transform: scale(1.12); color: var(--saffron); }

/* map */
.map-contact .map-info { background: var(--green); color: #e6f4ea; padding: 3rem 2.2rem; }
.map-contact .map-info h2 { color: #fff; }
.map-contact .map-info i { color: var(--saffron); margin-right: .4rem; }
.map-frame iframe, .map-box iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; min-height: 380px; }

/* ---------- Inner pages ---------- */
.page-banner { position: relative; padding: clamp(2.2rem, 5vw, 3.6rem) 0; background: linear-gradient(110deg, rgba(95,15,18,.95), rgba(142,27,27,.82)), var(--banner, none) center/cover; color: #fff; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(245,164,0,.18); }
.page-banner h1 { color: #fff; font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: .4rem; }
.page-banner .breadcrumb { margin: 0; }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: #ffe0b2; }
.page-banner .breadcrumb-item.active { color: #fff; }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: #ffcc80; }

.page-content { font-size: 1.07rem; }
.page-content h3, .page-content h4 { margin-top: 1.4rem; }
.page-content img { height: auto; border-radius: 10px; }
.page-content .table { background: #fff; font-size: .98rem; }
.page-content .table td, .page-content .table th { vertical-align: middle; border-color: var(--line); }
.page-content .table tr:first-child td { background: var(--maroon); color: #fff; font-weight: 700; }
.page-content .table tr:first-child td p { margin: 0; }
.page-content .table td p { margin: 0; }
.page-content .table-responsive { border-radius: 10px; margin-bottom: 1.5rem; box-shadow: 0 3px 12px rgba(0,0,0,.04); }
.page-content .table .table-responsive { box-shadow: none; margin: 0; }
.page-content .table .table tr:first-child td { background: transparent; color: inherit; font-weight: 400; }
.page-content .doc-frame { border: 1px solid var(--line); border-radius: 10px; min-height: 500px; }
.doc-link { display: inline-block; background: var(--maroon-soft); color: var(--maroon); border: 1px solid #efc9b8; padding: .15rem .8rem; border-radius: 20px; font-weight: 600; font-size: .9rem; margin: .15rem 0; white-space: nowrap; }
.doc-link::before { content: "\F63E"; font-family: bootstrap-icons; margin-right: .35rem; }
.doc-link:hover { background: var(--maroon); color: #fff; }
.doc-link.disabled { opacity: .55; pointer-events: none; }
.doc-link.disabled::before { content: "\F293"; }

.child-card { display: block; height: 100%; background: var(--cream); border: 1px solid #f3e1c0; border-radius: var(--radius); padding: 1.2rem; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.child-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.child-card h3 { font-size: 1.1rem; }
.child-card p { font-size: .95rem; color: var(--muted); margin-bottom: .4rem; }

.page-sidebar { display: flex; flex-direction: column; gap: 1.4rem; position: sticky; top: 80px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.side-card h5 { font-size: 1.1rem; border-bottom: 2px solid var(--saffron); padding-bottom: .5rem; margin-bottom: .6rem; }
.side-menu { list-style: none; padding: 0; margin: 0; }
.side-menu a { display: block; padding: .45rem .5rem; border-radius: 8px; color: var(--ink); font-weight: 500; }
.side-menu a i { font-size: .75rem; color: var(--saffron-dark); }
.side-menu a:hover, .side-menu a.active { background: var(--maroon); color: #fff; }
.side-menu a:hover i, .side-menu a.active i { color: var(--saffron); }
.side-contact p { margin-bottom: .4rem; }
.side-contact i { color: var(--maroon); }
.page-sidebar .notice-body { height: 280px; }

/* staff */
.staff-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; padding: 1.5rem 1rem 1.2rem; height: 100%; border: 1px solid var(--line); border-top: 4px solid var(--maroon); transition: transform .25s; }
.staff-card:hover { transform: translateY(-5px); }
.staff-card.is-principal { border-top-color: var(--saffron); }
.staff-photo { width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 1rem; overflow: hidden; border: 4px solid var(--maroon-soft); background: var(--cream); display: flex; align-items: center; justify-content: center; }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.staff-photo .initials { font-family: var(--font-head); font-size: 2.2rem; color: var(--maroon); font-weight: 900; }
.staff-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.staff-card .desig { color: var(--green); font-weight: 600; font-size: .95rem; }
.staff-card .qual { color: var(--muted); font-size: .88rem; margin-top: .3rem; }
.staff-contact { margin-top: .6rem; display: flex; justify-content: center; gap: .5rem; }
.staff-contact a { width: 32px; height: 32px; border-radius: 50%; background: var(--maroon-soft); display: inline-flex; align-items: center; justify-content: center; }

/* news */
.news-item { display: flex; gap: 1rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 1rem; background: #fff; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.news-item h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.news-text { color: var(--muted); }

/* contact */
.contact-tile { text-align: center; background: var(--cream); border: 1px solid #f3e1c0; border-radius: var(--radius); padding: 1.6rem 1rem; height: 100%; }
.contact-tile i { font-size: 1.6rem; width: 60px; height: 60px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--maroon); color: var(--saffron); margin-bottom: .6rem; }
.contact-tile h3 { font-size: 1.1rem; }
.contact-tile p { margin: 0; color: var(--muted); word-break: break-word; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.form-control, .form-select { border-radius: 10px; border-color: #e2d4c9; padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--saffron); box-shadow: 0 0 0 .2rem rgba(245,164,0,.2); }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: #2a0a0b; color: #d9c6bb; padding-top: 3.5rem; font-size: .98rem; }
.site-footer h5 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; position: relative; padding-bottom: .5rem; }
.site-footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--saffron); }
.site-footer a { color: #d9c6bb; }
.site-footer a:hover { color: var(--saffron); }
.footer-logo { width: 70px; height: 70px; background: #fff; border-radius: 50%; padding: 4px; }
.footer-title { font-family: var(--font-head); color: #fff; font-weight: 700; line-height: 1.3; }
.footer-title small { display: block; font-family: var(--font-body); color: var(--saffron); font-weight: 600; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a::before { content: "\F285"; font-family: bootstrap-icons; font-size: .7rem; margin-right: .4rem; color: var(--saffron); }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .7rem; }
.footer-contact i { color: var(--saffron); }
.footer-social a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); margin-right: .3rem; }
.footer-badge { margin-top: 1rem; border: 1px dashed rgba(245,164,0,.5); border-radius: 10px; padding: .7rem .9rem; font-size: .92rem; }
.footer-badge strong { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.5rem; padding: 1rem 0; font-size: .9rem; color: #b39d92; }
.footer-bottom a { color: var(--saffron); }
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--saffron); color: #2b1600; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 1000; }
.back-to-top.show { opacity: 1; pointer-events: auto; }

@media print {
  .topbar, .main-nav, .news-ticker, .site-footer, .page-sidebar, .back-to-top { display: none !important; }
}
