/*
Theme Name: RKS School
Theme URI: https://chintamanisoftsolutions.com/
Author: Shree Chintamani Soft Solutions
Author URI: https://chintamanisoftsolutions.com/
Description: Custom theme for Shree Rameshkumar Sawhney English Medium School & Junior College, Vadgaon Maval. Includes Notice Board, Gallery albums, admission enquiry form and school pages built from the school diary.
Version: 1.0.6
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rks
*/

/* ---------- Tokens ---------- */
:root {
	--navy: #152878;
	--navy-deep: #0C1850;
	--navy-soft: #1E3488;
	--ink: #1B2433;
	--muted: #4A5568;
	--line: #E2E6F0;
	--mist: #F3F5FB;
	--gold: #F0B429;
	--gold-ink: #7A5200;
	--red: #C81E30;
	--white: #FFFFFF;
	--on-navy: #D6DCF0;
	--radius: 12px;
	--radius-lg: 16px;
	--wrap: 1240px;
	--font-head: "Lexend", "Segoe UI", system-ui, sans-serif;
	--font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
	background: var(--gold); color: var(--navy-deep); padding: 12px 18px; z-index: 1000; border-radius: 8px; font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Layout ---------- */
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
/* Header, top bar and menu use the full screen width so the crest and school name sit at the left. */
.container--wide { max-width: none; padding-left: clamp(16px, 3vw, 48px); padding-right: clamp(16px, 3vw, 48px); }
.section { padding: 72px 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy-deep); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p, .section--navy li { color: var(--on-navy); }
.section--navy a { color: var(--white); }
.section-head { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 680px; }
.lead { font-size: 19px; color: #3A4556; max-width: 720px; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(340px, calc((100% - 32px) / 2))), 1fr)); gap: 32px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(260px, calc((100% - 40px) / 3))), 1fr)); }
.grid--pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(220px, calc((100% - 60px) / 4))), 1fr)); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.align-center { align-items: center; }

/* ---------- Buttons & links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 24px; border-radius: 8px; border: 2px solid transparent;
	font-family: var(--font-head); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: #FFC845; color: var(--navy-deep); }
.btn--outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-deep); color: var(--white); font-size: 14px; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__group { display: flex; flex-wrap: wrap; gap: 4px 22px; }

.site-header { position: relative; overflow: hidden; background: linear-gradient(100deg, #FFFFFF 0%, #FFFFFF 46%, #EEF2FB 78%, #E4EAF8 100%); }
.site-header::before { content: ""; position: absolute; right: 22%; top: 50%; width: 300px; height: 300px; transform: translateY(-58%); background: var(--crest) center / contain no-repeat; opacity: .07; pointer-events: none; }
.header-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand__crest { flex-shrink: 0; display: block; filter: drop-shadow(0 8px 16px rgba(21, 40, 120, .28)); transition: transform .25s ease; }
.brand:hover .brand__crest { transform: scale(1.04) rotate(-2deg); }
.brand__crest img { width: 100px; height: auto; }
.brand__text { display: flex; flex-direction: column; min-width: 0; padding-left: 20px; border-left: 3px solid var(--gold); }
.brand__trust { font-size: 14px; font-weight: 600; color: var(--gold-ink); letter-spacing: .02em; }
.brand__name { white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: 32px; color: var(--navy); line-height: 1.1; margin: 2px 0; letter-spacing: -.01em; }
.brand__sub { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--red); line-height: 1.3; }
.brand__place { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; color: var(--muted); }
.brand__place svg { width: 15px; height: 15px; color: var(--navy); }
.brand__udise { margin-left: 8px; padding: 1px 8px; border: 1px solid #CBD3E0; border-radius: 999px; font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,.7); }
.header-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.header-info { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); line-height: 1.25; }
.header-info__icon { width: 42px; height: 42px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); color: var(--navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(21,40,120,.08); }
.header-info__icon svg { width: 20px; height: 20px; }
.header-info small { display: block; font-size: 13px; color: var(--muted); }
.header-info b { font-family: var(--font-head); font-size: 16px; color: var(--navy); }
.header-info:hover .header-info__icon { background: var(--navy); color: var(--white); border-color: var(--navy); }
.header-cta { box-shadow: 0 6px 16px rgba(240, 180, 41, .35); }

.nav-bar { background: var(--navy); border-top: 3px solid var(--gold); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.main-nav li { margin: 0; position: relative; }
.main-nav a { display: block; padding: 14px 16px; font-family: var(--font-head); font-size: 15px; font-weight: 500; color: var(--white); text-decoration: none; border-bottom: 3px solid transparent; }
.main-nav > ul > li:first-child > a { padding-left: 0; }
.main-nav a:hover { color: var(--white); border-bottom-color: rgba(255,255,255,.4); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a, .main-nav .current-page-ancestor > a, .main-nav .current-menu-parent > a { border-bottom-color: var(--gold); font-weight: 700; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 230px; background: var(--white); border-radius: 0 0 10px 10px; padding: 8px 0; box-shadow: 0 12px 30px rgba(12,24,80,.18); flex-direction: column; align-items: stretch; gap: 0; }
.main-nav .sub-menu a { color: var(--navy); padding: 10px 18px; border-bottom: 0; }
.main-nav .sub-menu a:hover { background: var(--mist); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .menu-cta { display: none; }

.nav-toggle { display: none; background: var(--navy); color: var(--white); border: 0; border-radius: 8px; min-height: 44px; padding: 10px 16px; font: 600 15px var(--font-head); cursor: pointer; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1100px) {
	.header-info { display: none; }
	.brand__name { font-size: 27px; }
	.brand__crest img { width: 86px; }
}
@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.header-actions { display: none; }
	.nav-bar { display: none; }
	.nav-bar.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 16px; }
	.main-nav a, .main-nav > ul > li:first-child > a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
	.main-nav .current-menu-item > a, .main-nav .current_page_item > a { border-bottom-color: rgba(255,255,255,.15); color: var(--gold); }
	.main-nav .sub-menu { display: flex; position: static; box-shadow: none; background: transparent; padding: 0 0 0 18px; border-radius: 0; }
	.main-nav .sub-menu a { color: var(--on-navy); padding: 11px 0; }
	.main-nav .sub-menu a:hover { background: transparent; color: var(--white); }
	.main-nav .menu-cta { display: block; }
	.main-nav .menu-cta > a { margin-top: 14px; background: var(--gold); color: var(--navy-deep); text-align: center; border-radius: 8px; border-bottom: 0; font-weight: 700; }
	.brand { gap: 12px; }
	.brand__crest img { width: 66px; }
	.brand__text { padding-left: 12px; border-left-width: 2px; }
	.brand__name { font-size: 20px; white-space: normal; }
	.brand__trust { font-size: 12px; }
	.brand__sub { font-size: 13px; }
	.brand__place { display: none; }
	.header-top { padding-top: 12px; padding-bottom: 12px; }
	.site-header::before { width: 180px; height: 180px; right: -30px; }
}
@media (max-width: 420px) {
	.brand { gap: 10px; }
	.brand__crest img { width: 54px; }
	.brand__text { padding-left: 10px; }
	.brand__name { font-size: 17px; }
	.brand__trust { display: none; }
	.nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
	.nav-toggle { padding: 10px 12px; }
}

/* ---------- Admission ribbon ---------- */
.ribbon { background: var(--gold); color: var(--navy-deep); font-weight: 600; text-align: center; padding: 10px 24px; }
.ribbon a { color: var(--navy-deep); }

/* ---------- Hero ---------- */
.hero { background: var(--mist); padding: 64px 0 56px; }
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: center; }
.hero__kicker { font-family: var(--font-head); font-weight: 600; color: var(--gold-ink); margin-bottom: 14px; }
.hero h1 { margin-bottom: 18px; }
.hero__media { border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.hero__media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.hero__media--crest img { width: 52%; min-height: 0; height: auto; object-fit: contain; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-top: 44px; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.fact strong { display: block; font-family: var(--font-head); font-size: 24px; color: var(--navy); line-height: 1.25; }
.fact span { color: var(--muted); }

/* ---------- Page hero ---------- */
.page-hero { background: var(--mist); border-bottom: 1px solid var(--line); padding: 44px 0; }
.breadcrumb { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; list-style: none; padding: 0; }
.chips li { margin: 0; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid #CBD3E0; background: var(--white); text-decoration: none; font-size: 15px; font-weight: 600; color: var(--navy); }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 16px 0 0; }
.tag-list li { margin: 0; background: var(--white); border: 1px solid #CBD3E0; border-radius: 999px; padding: 6px 14px; font-size: 15px; }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card--mist { background: var(--mist); border-color: transparent; }
.card--navy { background: var(--navy-soft); border-color: transparent; color: var(--white); }
.card--navy h3 { color: var(--white); margin-bottom: 6px; font-size: 18px; }
.card--navy p { color: var(--on-navy); margin: 0; }
.card--topline { border-top: 5px solid var(--gold); }
.card h3:last-child, .card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .timing { margin-top: 12px; font-size: 15px; }
.kicker { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--gold-ink); margin-bottom: 4px; }
.section--navy .kicker { color: var(--gold); }
.big-date { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.section--navy .big-date, .card--navy .big-date { color: var(--white); }

/* ---------- Notices ---------- */
.notice-list { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; margin: 0; }
.notice { display: flex; gap: 18px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin: 0; }
.date-badge { min-width: 76px; text-align: center; background: var(--navy); color: var(--white); border-radius: 8px; padding: 8px 6px; font-family: var(--font-head); line-height: 1.15; flex-shrink: 0; }
.date-badge b { display: block; font-size: 22px; }
.date-badge span { font-size: 13px; }
.notice__title { font-weight: 700; color: var(--ink); text-decoration: none; }
a.notice__title:hover { text-decoration: underline; }
.notice__text { color: var(--muted); }
.notice__text p { margin: 0; }
.is-pinned .date-badge { background: var(--red); }

/* ---------- People ---------- */
.person { display: flex; flex-wrap: wrap; gap: 22px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.person__photo { width: 120px; height: 144px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.person__body { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; }
.person__body p { margin: 0; color: #3A4556; }
.person__name { font-weight: 700; }
.person__role { color: var(--muted); font-size: 15px; }
.initials { display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 34px; }
.initials--round { width: 72px; height: 72px; border-radius: 50%; font-size: 24px; }
.portrait { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); object-fit: cover; }
.portrait.initials { font-size: 64px; }
blockquote.quote { margin: 0 0 16px; padding: 16px 20px; background: var(--mist); border-radius: 10px; font-style: italic; color: #3A4556; }
.section--mist blockquote.quote { background: var(--white); }
.message-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.message-grid--flip { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 860px) {
	.message-grid, .message-grid--flip { grid-template-columns: 1fr; }
	.message-grid--flip > :last-child { order: -1; }
	.portrait { max-width: 320px; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { padding: 12px 20px; text-align: left; vertical-align: top; }
.table thead th { background: var(--mist); color: var(--navy); font-family: var(--font-head); font-weight: 600; border-bottom: 1px solid var(--line); }
.table tbody th { font-weight: 700; }
.table tbody tr + tr { border-top: 1px solid var(--line); }
.table tbody tr:nth-child(even) { background: #F8FAFD; }
.table .num { text-align: right; font-weight: 700; color: var(--navy); white-space: nowrap; }
.table--wide { min-width: 640px; }
.table-caption { padding: 14px 20px; background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 600; }

/* ---------- Media placeholders ---------- */
.tile-media { aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--mist); display: flex; align-items: center; justify-content: center; color: var(--navy); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-media svg { width: 44px; height: 44px; opacity: .55; }

/* ---------- Gallery ---------- */
.album-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.album-card__title { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--navy); }
.album-card:hover .album-card__title { text-decoration: underline; }
.album-card__meta { font-size: 15px; color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.filter-bar .chips { margin: 0; }
.year-form { display: flex; gap: 10px; align-items: center; }
.year-form select { font: inherit; min-height: 44px; padding: 8px 12px; border: 1px solid #A9B4C6; border-radius: 8px; background: var(--white); }
.album-content .wp-block-gallery, .album-content .gallery { margin: 24px 0; }
.album-content .wp-block-gallery img, .album-content .gallery img { cursor: zoom-in; border-radius: 8px; }
.video-embed { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.pagination { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; padding: 0 12px; }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(6, 12, 40, .94); display: none; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: var(--white); border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox svg { width: 24px; height: 24px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--on-navy); font-size: 15px; }
body.lightbox-open { overflow: hidden; }

/* ---------- Downloads ---------- */
.download { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; min-height: 64px; }
.download svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--navy); }
.download b { display: block; color: var(--navy); }
.download span span { font-size: 15px; color: var(--muted); }
.download.is-missing { border-style: dashed; }
.fines { background: #FFF7E6; border: 1px solid #F0D49A; border-radius: var(--radius); padding: 22px; }
.fines h3 { color: #5C3D00; }
.fines .grid { gap: 8px 24px; color: #3A2A00; }

/* ---------- Forms ---------- */
.form { background: var(--mist); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #A9B4C6; border-radius: 8px; background: var(--white); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--navy); outline: 3px solid rgba(240,180,41,.6); outline-offset: 0; }
.form .hp { position: absolute; left: -9999px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.alert { padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.alert--ok { background: #E6F4EA; color: #12512A; border: 1px solid #A7D8B5; }
.alert--err { background: #FDECEC; color: #8A1622; border: 1px solid #F2B5BC; }
.map-embed { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--mist); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.btn svg { width: 20px; height: 20px; }
.contact-lines { display: flex; flex-direction: column; gap: 6px; }

/* ---------- Content (default pages, notices) ---------- */
.entry { max-width: 820px; }
.entry img { border-radius: var(--radius); }
.entry .wp-block-table table { border-collapse: collapse; width: 100%; }
.entry .wp-block-table td, .entry .wp-block-table th { border: 1px solid var(--line); padding: 10px 14px; }
.entry-meta { color: var(--muted); margin-bottom: 20px; }
.alignwide { max-width: var(--wrap); }
.wp-block-button__link { background: var(--navy); border-radius: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); }
.site-footer .container { padding-top: 52px; padding-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); } }
.site-footer h2 { font-size: 17px; color: var(--white); margin-bottom: 12px; }
.site-footer a { color: var(--on-navy); }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 64px; flex-shrink: 0; }
.footer-brand strong { color: var(--white); font-family: var(--font-head); display: block; line-height: 1.3; margin-bottom: 4px; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid #26357A; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #1E8E4C; color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.whatsapp-float:hover { background: #17733D; color: var(--white); }
.whatsapp-float svg { width: 28px; height: 28px; }

@media print {
	.topbar, .site-header, .site-footer, .whatsapp-float, .ribbon, .nav-toggle { display: none !important; }
	.section { padding: 24px 0; }
}
img.initials--round { object-fit: cover; object-position: center 15%; }
.person__photo, .portrait { object-position: center 20%; }
@media (max-width: 700px) {
	.topbar .topbar__group:first-child { display: none; }
	.topbar .container { justify-content: center; }
	.ribbon { font-size: 15px; padding: 8px 16px; }
	.section { padding: 52px 0; }
	.hero { padding: 40px 0; }
	.hero__media { min-height: 260px; }
}

/* ---------- Menu: dropdown arrows and phone sub-menu toggles ---------- */
.main-nav .menu-item-has-children > a { display: flex; align-items: center; gap: 6px; }
.main-nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .8; }
.main-nav .sub-menu .menu-item-has-children > a::after { display: none; }
.submenu-toggle { display: none; }
@media (max-width: 900px) {
	.main-nav .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: stretch; }
	.main-nav .menu-item-has-children > a { flex: 1; }
	.main-nav .menu-item-has-children > a::after { display: none; }
	.submenu-toggle { display: flex; align-items: center; justify-content: center; width: 48px; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.15); color: var(--white); cursor: pointer; }
	.submenu-toggle svg { width: 20px; height: 20px; transition: transform .2s; }
	.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
	.main-nav .menu-item-has-children > .sub-menu { display: none; width: 100%; }
	.main-nav .menu-item-has-children.is-open > .sub-menu { display: flex; }
}
@media (min-width: 901px) and (max-width: 1180px) {
	.main-nav a { padding: 14px 10px; font-size: 14px; }
}

/* ---------- Home slider ---------- */
.slider { position: relative; background: var(--navy-deep); overflow: hidden; }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; transition: transform .6s ease; will-change: transform; }
.slide { position: relative; flex: 0 0 100%; height: clamp(300px, 40vw, 580px); overflow: hidden; background: var(--navy-deep); }
.slide__img { position: relative; z-index: 1; width: 100%; height: 100%; }
.slider--contain .slide__img { object-fit: contain; }
.slider--cover .slide__img { object-fit: cover; object-position: center 30%; }
.slide__bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(28px) brightness(.62) saturate(1.15); transform: scale(1.08); }
.slide__caption, .slide__link { z-index: 2; }
/* Full mode: every photo at full width, nothing cut; the slider takes the height of the photo on show. */
.slider--full .slider__viewport { transition: height .45s ease; }
.slider--full .slider__track { align-items: flex-start; }
.slider--full .slide { height: auto; min-height: 0; background: transparent; }
.slider--full .slide__img { height: auto; display: block; }
.slide__link { position: absolute; inset: 0; }
.slide__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 0 64px; background: linear-gradient(to top, rgba(8,16,56,.82), rgba(8,16,56,0)); color: var(--white); }
.slide__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 3.2vw, 40px); line-height: 1.2; margin: 0 0 6px; max-width: 760px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.slide__text { font-size: clamp(16px, 1.5vw, 19px); margin: 0 0 16px; max-width: 640px; color: #E9EDFA; }
.slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); z-index: 2; }
.slider__arrow:hover { background: var(--white); }
.slider__arrow svg { width: 24px; height: 24px; }
.slider__arrow--prev { left: 20px; }
.slider__arrow--next { right: 20px; }
.slider__bar { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; align-items: center; gap: 12px; z-index: 2; }
.slider__dots { display: flex; gap: 4px; }
.slider__dot { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.slider__dot::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.15); transition: width .2s, background-color .2s; }
.slider__dot.is-active::before { width: 26px; background: var(--gold); }
.slider__pause { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.slider__pause svg { width: 16px; height: 16px; }
@media (max-width: 700px) {
	.slider--contain .slide, .slider--cover .slide { height: clamp(230px, 66vw, 420px); }
	.slider__arrow { width: 40px; height: 40px; }
	.slider__arrow--prev { left: 8px; }
	.slider__arrow--next { right: 8px; }
	.slide__caption { padding: 40px 0 68px; }
	.slide__text { display: none; }
}
@media (prefers-reduced-motion: reduce) { .slider__track { transition: none; } }

.hero--compact { padding: 48px 0 44px; }
.hero--compact .hero__grid { grid-template-columns: 1fr; }
.hero--compact .hero__grid > div { max-width: 820px; }
.hero--compact .facts { margin-top: 32px; }

/* ---------- Admission steps, toppers ---------- */
.steps { padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; }
.steps li::marker { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.topper { text-align: center; border-top: 5px solid var(--gold); }
.topper__marks { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--navy); margin: 0; line-height: 1.1; }
.topper__name { font-weight: 700; margin: 6px 0 0; }
@media (max-width: 700px) {
	.slider__arrow { display: none; }
	.slide__title { font-size: 21px; }
	.slide__caption .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
}
