/**
 * assets/css/cms-additions.css — Bal Vatika Vidyalaya *
 * Styling ONLY for brand-new elements introduced by the CMS
 * features (programme "View Programme" link, admissions calendar badge,
 * single-programme page sections, download buttons/grid, fee-table
 * heading). Every existing selector/class from before is
 * untouched — this file adds nothing that overrides prior styles, only
 * new rules for new markup, using the same design tokens already
 * defined in style.css (--green-dark, --gold, --shadow-sm, --radius-md,
 * etc.) so these blend with the existing look rather than introducing a
 * new visual language.
 */

/* Final Phase (Module 8) — reveals the .screen-reader-text skip link
 * (header.php) when it receives keyboard focus. .screen-reader-text
 * itself already existed in style.css (visually hidden by default);
 * only this focus-visible reveal was missing. */
.bvv-skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 12px 20px;
	clip: auto;
	overflow: visible;
	white-space: normal;
	background: var(--green-dark, #1a4731);
	color: #fff;
	font-weight: 700;
	border-radius: 6px;
	z-index: 100000;
	text-decoration: none;
}
.bvv-programme-card-link {
	display: inline-block;
	margin-top: 14px;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 14px;
	color: var(--green-mid);
	text-decoration: none;
	border-bottom: 2px solid var(--gold-light);
	padding-bottom: 2px;
	transition: var(--transition);
}
.bvv-programme-card-link:hover {
	color: var(--gold);
	border-color: var(--gold);
}

/* Admissions banner — calendar month/date badge (replaces the static
 * 📅 emoji only when an admin fills in Calendar Month/Date).
 * .bvv-calendar-date previously used var(--green-dark)
 * for its text colour. The banner it sits inside (.bvv-i5748cb57,
 * template-parts/admissions.php) has a dark-green gradient background
 * (background: linear-gradient(135deg, var(--green-dark),
 * var(--green-mid))) — dark-green text on a dark-green background is
 * effectively invisible, which is exactly the reported symptom ("the
 * icon disappears, only the background colour remains"). The static 📅
 * emoji fallback never showed this bug because emoji glyphs render
 * their own built-in colour and ignore the CSS `color` property
 * entirely — so this only ever affected the new Month/Date text badge,
 * never the default state. Fixed by matching the white/light-gold
 * palette the rest of this banner's text already uses (its own
 * heading and body text are white, per .bvv-i5748cb57's `color: #fff`)
 * instead of a colour meant for a light background. */
.bvv-calendar-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1.1;
}
.bvv-calendar-month {
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: var(--gold-light);
}
.bvv-calendar-date {
	font-family: var(--font-head);
	font-size: 20px;
	font-weight: 700;
	color: #fff;
}

/* Single Academic Programme page */
.bvv-programme-lede {
	font-family: var(--font-alt);
	font-size: 18px;
	color: var(--gray-text);
	line-height: 1.6;
	margin: 18px 0;
}
.bvv-programme-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin: 16px 0 28px;
}
.bvv-programme-gallery-cell img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}
.bvv-programme-cta {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin: 32px 0 12px;
}

/* Downloads shortcode / fee-section download buttons */
.bvv-download-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.bvv-download-ext {
	opacity: 0.7;
	font-size: 12px;
}

/* Downloads enhancements */
.bvv-downloads-controls {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.bvv-downloads-search,
.bvv-downloads-filter {
	padding: 8px 12px;
	border: 1px solid var(--border-light, #e6e0d4);
	border-radius: var(--radius-md);
	font-size: 14px;
	font-family: var(--font-body);
}
.bvv-downloads-search {
	flex: 1;
	min-width: 180px;
}
.bvv-download-featured {
	border: 2px solid var(--gold, #c9a227) !important;
	position: relative;
}
.bvv-download-featured-badge {
	color: var(--gold, #c9a227);
}
.bvv-download-preview {
	width: 24px;
	height: 24px;
	object-fit: cover;
	border-radius: 4px;
	margin-right: 2px;
}
.bvv-downloads-empty {
	color: var(--gray-text);
	font-style: italic;
}
/* The [bvv_downloads] shortcode sets its column
 * count via an inline style (grid-template-columns:repeat(N,1fr)) so a
 * plain class-based rule can't override it; !important here targets
 * exactly the one property that needs a mobile-safe fallback, nothing
 * else about the shortcode's inline style is touched. */
@media (max-width: 700px) {
	.bvv-downloads-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Fee Structure CMS — optional per-table heading */
.bvv-fee-table-title {
	font-family: var(--font-head);
	font-size: 18px;
	color: var(--green-dark);
	margin: 20px 0 8px;
}
.bvv-fee-section-pdf {
	margin-top: 16px;
}

/* Featured fee table highlight */
.bvv-fee-table-featured {
	border: 2px solid var(--gold, #c9a227);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}
.bvv-fee-featured-badge {
	display: inline-block;
	background: var(--gold, #c9a227);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	border-radius: 999px;
	padding: 2px 10px;
	margin-right: 8px;
	vertical-align: middle;
}

/* Admin drag-and-drop reorder hint (inc/admin/reorder.php) */
.bvv-reorder-hint {
	background: var(--gold-pale, #fdf5e4);
	border: 1px solid var(--gold-light, #f0c060);
	border-radius: 6px;
	padding: 8px 12px;
	color: var(--green-dark, #1a4731);
}

@media (max-width: 700px) {
	.bvv-programme-gallery-grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 480px) {
	.bvv-programme-gallery-grid {
		grid-template-columns: 1fr;
	}
	.bvv-programme-cta {
		flex-direction: column;
	}
}

/* ── Full programme page sections ── */
.bvv-programme-meta-row {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	background: var(--cream, #faf6ee);
	border-radius: var(--radius-md);
	padding: 16px 20px;
	margin: 20px 0;
}
.bvv-programme-meta-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.bvv-programme-meta-item strong {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--gold);
}
.bvv-programme-meta-item span {
	font-family: var(--font-head);
	font-size: 16px;
	color: var(--green-dark);
}

.bvv-programme-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 24px;
}
.bvv-programme-chip {
	background: var(--green-pale, #eaf3ee);
	color: var(--green-dark);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
}

.bvv-programme-faq {
	margin: 12px 0 28px;
}
.bvv-programme-faq-item {
	border: 1px solid var(--border-light, #e6e0d4);
	border-radius: var(--radius-md);
	padding: 12px 16px;
	margin-bottom: 10px;
}
.bvv-programme-faq-item summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--green-dark);
	list-style: none;
}
.bvv-programme-faq-item summary::-webkit-details-marker {
	display: none;
}
.bvv-programme-faq-item summary::before {
	content: '+ ';
	color: var(--gold);
}
.bvv-programme-faq-item[open] summary::before {
	content: '− ';
}
.bvv-programme-faq-item p {
	margin: 10px 0 0;
	color: var(--gray-text);
}

.bvv-programme-contact-cta {
	background: var(--green-pale, #eaf3ee);
	border-radius: var(--radius-md);
	padding: 20px;
	margin: 28px 0;
}
.bvv-programme-contact-cta h3 {
	margin: 0 0 10px;
	font-family: var(--font-head);
	color: var(--green-dark);
}

.bvv-related-programmes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin: 12px 0 32px;
}
.bvv-related-programme-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--border-light, #e6e0d4);
	border-radius: var(--radius-md);
	padding: 16px;
	text-decoration: none;
	transition: var(--transition);
}
.bvv-related-programme-card:hover {
	box-shadow: var(--shadow-sm);
	border-color: var(--gold-light);
}
.bvv-related-programme-icon {
	font-size: 26px;
}
.bvv-related-programme-title {
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--green-dark);
}
.bvv-related-programme-tag {
	font-size: 12px;
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
@media (max-width: 700px) {
	.bvv-related-programmes {
		grid-template-columns: 1fr;
	}
	.bvv-programme-meta-row {
		flex-direction: column;
		gap: 10px;
	}
}

/* ════════════════════════════════════════════════════════════════
 * Leadership Detail page redesign to match
 * the approved reference. Used by template-parts/leadership-detail.php
 * (the one reusable template shared by Director/Principal/Chairman/
 * Trustee — see that file's own docblock). All colours/fonts reuse the
 * theme's existing tokens (--green-dark, --gold, --gold-light, --cream,
 * var(--font-head)/(--font-body)) rather than introducing a new
 * palette, per "preserve colours, typography... only requested UI
 * change." Founder's page (page-founder.php) is untouched and does not
 * use any of this — it has its own, separate styling.
 * ════════════════════════════════════════════════════════════════ */

.bvv-ld-page {
	background: var(--cream, #fefcf5);
	padding: 48px 0 72px;
}
.bvv-ld-breadcrumb {
	max-width: 1200px;
	margin: 0 auto 24px;
	padding: 0 24px;
	font-size: 13px;
	color: var(--gray-text, #666);
}
.bvv-ld-breadcrumb a {
	color: var(--green-mid, #256648);
	text-decoration: none;
}
.bvv-ld-grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 32px;
	align-items: start;
}

/* ── Sidebar card ── */
.bvv-ld-sidebar {
	background: #fff;
	border-radius: var(--radius-md, 12px);
	box-shadow: var(--shadow-sm, 0 2px 12px rgba(0,0,0,.06));
	padding: 24px;
	position: sticky;
	top: 24px;
}
.bvv-ld-photo-wrap {
	position: relative;
	border-radius: var(--radius-md, 12px);
	overflow: hidden;
	margin-bottom: 16px;
	aspect-ratio: 4 / 3;
	background: var(--green-pale, #eaf3ee);
}
.bvv-ld-photo-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.bvv-ld-photo-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 64px;
}
.bvv-ld-role-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--gold, #c8922a);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
}
.bvv-ld-name {
	font-family: var(--font-head);
	font-size: 20px;
	font-weight: 700;
	color: var(--green-dark);
	margin: 0 0 2px;
}
.bvv-ld-subtitle {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--gold, #c8922a);
	margin: 0 0 16px;
}
.bvv-ld-divider {
	border: none;
	border-top: 1px solid var(--border-light, #e6e0d4);
	margin: 16px 0;
}
.bvv-ld-info-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13.5px;
	color: var(--dark, #1a2e1a);
	margin-bottom: 12px;
	line-height: 1.4;
}
.bvv-ld-info-row .bvv-ld-icon {
	flex-shrink: 0;
	width: 18px;
	text-align: center;
}
.bvv-ld-info-row strong {
	color: var(--green-dark);
	font-weight: 700;
}
.bvv-ld-trust-badge {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--green-pale, #eaf3ee);
	border: 1px solid var(--gold-light, #f0c060);
	border-radius: var(--radius-md, 10px);
	padding: 10px 12px;
	margin: 16px 0;
	font-size: 11.5px;
	color: var(--green-dark);
	line-height: 1.3;
}
.bvv-ld-trust-badge .bvv-ld-seal {
	font-size: 26px;
	flex-shrink: 0;
}
/* v4.0.4: actual school logo (from Site Identity → Customizer, the
 * same centralized source header.php/footer.php already use — see
 * has_custom_logo()/get_theme_mod('custom_logo') in
 * template-parts/leadership-detail.php) in place of the shield emoji,
 * when one is set. Fixed-size, overflow-hidden box with an
 * object-fit: contain image keeps this working the same way at every
 * width from 320px to 1440px: the logo can only ever shrink to fit
 * inside a 32×32 area, keeps its own aspect ratio, never stretches,
 * and can never push the school name text or grow the card — if no
 * logo is set in WordPress, the emoji fallback above is used instead,
 * so the badge never appears empty. */
.bvv-ld-trust-badge .bvv-ld-seal-logo {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.bvv-ld-trust-badge .bvv-ld-seal-logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* ── Quick Links panel ── */
.bvv-ld-quicklinks h4 {
	font-family: var(--font-head);
	font-size: 14px;
	color: var(--green-dark);
	border-bottom: 2px solid var(--gold-light, #f0c060);
	padding-bottom: 8px;
	margin: 20px 0 10px;
}
.bvv-ld-quicklinks ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bvv-ld-quicklinks li a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 4px;
	font-size: 13.5px;
	color: var(--dark, #1a2e1a);
	text-decoration: none;
	border-radius: 6px;
	transition: var(--transition, 0.2s);
}
.bvv-ld-quicklinks li a:hover {
	background: var(--green-pale, #eaf3ee);
	color: var(--green-dark);
	padding-left: 8px;
}

/* ── Main content column ── */
.bvv-ld-main {
	background: #fff;
	border-radius: var(--radius-md, 12px);
	box-shadow: var(--shadow-sm, 0 2px 12px rgba(0,0,0,.06));
	padding: 36px 40px;
	position: relative;
	overflow: hidden;
}
.bvv-ld-quote-icon-badge {
	position: absolute;
	top: 28px;
	right: 32px;
	width: 56px;
	height: 56px;
	border-radius: var(--radius-md, 10px);
	background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gold-light, #f0c060);
	font-size: 30px;
	font-family: Georgia, serif;
	line-height: 1;
}
.bvv-ld-official-label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gold, #c8922a);
	margin: 0 0 6px;
}
.bvv-ld-heading {
	font-family: var(--font-head);
	font-size: 30px;
	color: var(--green-dark);
	margin: 0 0 24px;
	max-width: 80%;
}
.bvv-ld-heading .bvv-ld-heading-accent {
	color: var(--gold, #c8922a);
}

.bvv-ld-quote-featured {
	background: var(--green-pale, #eaf3ee);
	border-left: 4px solid var(--gold, #c8922a);
	border-radius: 0 var(--radius-md, 10px) var(--radius-md, 10px) 0;
	padding: 20px 24px;
	margin: 0 0 24px;
	font-family: var(--font-alt);
	font-size: 17px;
	font-style: italic;
	color: var(--green-dark);
	position: relative;
}
.bvv-ld-quote-featured .bvv-ld-quote-mark {
	color: var(--gold, #c8922a);
	font-size: 22px;
	font-family: Georgia, serif;
	margin-right: 4px;
}

.bvv-ld-main .entry-content p {
	font-size: 15.5px;
	line-height: 1.75;
	color: var(--dark, #1a2e1a);
	margin: 0 0 18px;
}
/* Any additional quote the admin writes into the main content editor
 * (WordPress's native "Quote" block) automatically gets the same
 * highlighted treatment as the reference design's 2nd/3rd quote boxes
 * — tan/gold rather than green, so the featured opening quote above
 * still reads as visually distinct/primary. */
.bvv-ld-main .entry-content blockquote {
	background: #fdf5e4;
	border-left: 4px solid var(--gold, #c8922a);
	border-radius: 0 var(--radius-md, 10px) var(--radius-md, 10px) 0;
	padding: 18px 22px;
	margin: 24px 0;
	font-family: var(--font-alt);
	font-size: 16px;
	font-style: italic;
	color: var(--green-dark);
}
.bvv-ld-main .entry-content blockquote p {
	margin: 0;
}

.bvv-ld-philosophy-heading {
	font-family: var(--font-head);
	font-size: 22px;
	color: var(--green-dark);
	margin: 32px 0 6px;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--gold-light, #f0c060);
}
.bvv-ld-philosophy-list {
	list-style: none;
	margin: 20px 0 28px;
	padding: 0;
}
.bvv-ld-philosophy-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}
.bvv-ld-philosophy-check {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--green-mid, #256648);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	margin-top: 2px;
}
.bvv-ld-philosophy-list strong {
	color: var(--green-dark);
	display: block;
	margin-bottom: 2px;
	font-size: 15px;
}
.bvv-ld-philosophy-list span {
	color: var(--gray-text, #555);
	font-size: 14px;
	line-height: 1.6;
}

.bvv-ld-closing-line {
	font-style: italic;
	color: var(--green-dark);
	margin: 24px 0 20px;
}
.bvv-ld-signature {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-top: 20px;
	border-top: 1px solid var(--border-light, #e6e0d4);
	margin-bottom: 28px;
}
.bvv-ld-signature img,
.bvv-ld-signature .bvv-ld-sig-fallback {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--green-pale, #eaf3ee);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}
.bvv-ld-sig-name {
	font-weight: 700;
	color: var(--green-dark);
	font-size: 15px;
}
.bvv-ld-sig-role {
	color: var(--gold, #c8922a);
	font-size: 13px;
}
.bvv-ld-sig-school {
	color: var(--gray-text, #777);
	font-size: 12.5px;
}

.bvv-ld-cta-row {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

@media (max-width: 900px) {
	.bvv-ld-grid {
		grid-template-columns: 1fr;
	}
	.bvv-ld-sidebar {
		position: static;
	}
	.bvv-ld-heading {
		max-width: 100%;
		font-size: 24px;
	}
	.bvv-ld-quote-icon-badge {
		display: none;
	}
	.bvv-ld-main {
		padding: 24px;
	}
}
@media (max-width: 480px) {
	.bvv-ld-cta-row {
		flex-direction: column;
	}
}

/* Quick Links panel hidden on phones
 * only. Uses a max-width matching the theme's own established "phone"
 * breakpoint distinct from its "tablet" breakpoint (see the 900px
 * tablet breakpoint already used throughout .bvv-ld-* rules above —
 * this rule intentionally uses a narrower, phone-specific width so
 * tablets keep the panel visible, and
 * desktop is completely unaffected since this rule only exists inside
 * a max-width media query). */
@media (max-width: 600px) {
	.bvv-ld-quicklinks {
		display: none;
	}
}
