/*
Theme Name: Green Valley
Theme URI: https://greenvalley89.com/
Author: Websetters
Author URI: https://websetters.co/
Description: Custom WordPress theme for Green Valley Public Sen. Sec. School, Jahu. Admin-managed notice board, photo albums, event galleries, classes, departments, testimonials, FAQs and weekly blog posts.
Version: 2.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: green-valley
Tags: education, school, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--teal:        #116E63;
	--teal-dark:   #0C5F55;
	--teal-deep:   #0B534A;
	--teal-soft:   #589991;
	--teal-pale:   #E7F1EF;

	--orange:      #FDA31B;
	--orange-dark: #E8900C;
	--orange-pale: #FEF1DC;

	--navy:        #24446B;
	--navy-deep:   #082A58;

	--ink:         #1D2A32;
	--ink-soft:    #6C7A85;
	--rule:        #E4E7EA;
	--grey:        #F2F3F5;
	--field:       #F1F2F4;
	--paper:       #FFFFFF;

	--head: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
	--body: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;

	--shell: 1200px;
	--gutter: 1.5rem;

	--shadow-sm: 0 6px 18px rgba(29, 42, 50, 0.06);
	--shadow:    0 14px 40px rgba(29, 42, 50, 0.09);
	--shadow-lg: 0 24px 60px rgba(29, 42, 50, 0.12);

	/* The signature Eduka corner: soft everywhere, deeply cut top-left + bottom-right */
	--leaf: 30px 8px 30px 8px;
	--leaf-sm: 18px 6px 18px 6px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink-soft);
	font-family: var(--body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }

a { color: var(--teal); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--orange); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--head);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--ink);
	margin: 0 0 0.6em;
	text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2rem; }

figure { margin: 0; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--paper); clip: auto; clip-path: none; color: var(--teal);
	display: block; height: auto; width: auto; left: 1rem; top: 1rem;
	padding: 0.7rem 1rem; z-index: 100000; font-size: 0.9rem;
}
.skip { position: absolute; left: -9999px; background: var(--teal); color: #fff; padding: 0.7rem 1.1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; color: #fff; }

/* ==========================================================================
   3. Layout
   ========================================================================== */

.shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }
.shell--narrow { max-width: 820px; }

.band { padding-block: clamp(3.5rem, 7vw, 6rem); }
.band--grey { background: var(--grey); }
.band--tight { padding-block: clamp(2.5rem, 4vw, 3.5rem); }

.split { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 900px) {
	.split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
	.split--start { align-items: start; }
	.split--wide-right { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

/* Section heading block ---------------------------------------------------- */

.eyebrow {
	display: inline-flex; align-items: center; gap: 0.45rem;
	font-family: var(--head); font-weight: 700; font-size: 0.82rem;
	letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange);
	border-bottom: 1px solid var(--orange);
	padding-bottom: 0.3rem; margin-bottom: 0.9rem;
}
.eyebrow svg { flex: none; }

.sec-head { margin-bottom: 3rem; }
.sec-head--center { text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head h2 { margin-bottom: 0.7rem; }
.sec-head p { max-width: 58ch; margin: 0 auto; color: var(--ink-soft); }
.sec-head--left p { margin-inline: 0; }

/* The accented word inside a heading */
.hl { color: var(--orange); }

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
	display: inline-flex; align-items: center; gap: 0.55rem;
	font-family: var(--head); font-weight: 700;
	font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
	padding: 0.95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
	cursor: pointer; transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
	line-height: 1;
}
.btn svg { flex: none; }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--teal); color: #fff; }
.btn--teal { background: var(--teal); color: #fff; }
.btn--teal:hover { background: var(--orange); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--orange); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--line { border-color: var(--rule); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: var(--teal); color: var(--teal); }
.btn--sm { padding: 0.7rem 1.2rem; font-size: 0.72rem; }

.link-more {
	display: inline-flex; align-items: center; gap: 0.4rem;
	font-family: var(--head); font-weight: 700; font-size: 0.76rem;
	letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.link-more:hover { color: var(--orange); }

/* ==========================================================================
   5. Topbar + header
   ========================================================================== */

.topbar {
	background: var(--teal); color: #DCEAE7;
	font-size: 0.82rem; line-height: 1.4;
}
.topbar__inner {
	display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem;
	align-items: center; justify-content: space-between;
	padding-block: 0.7rem;
}
.topbar p { margin: 0; }
.topbar ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.topbar li + li { border-left: 1px solid rgba(255,255,255,0.28); }
.topbar a { color: #DCEAE7; padding-inline: 0.75rem; display: inline-block; }
.topbar li:first-child a { padding-left: 0; }
.topbar li:last-child a { padding-right: 0; }
.topbar a:hover { color: var(--orange); }
@media (max-width: 720px) { .topbar__inner { justify-content: center; text-align: center; } .topbar p { width: 100%; } }

.masthead { background: #fff; position: sticky; top: 0; z-index: 60; box-shadow: var(--shadow-sm); }
body.admin-bar .masthead { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .masthead { top: 46px; } }

.masthead__inner { display: flex; align-items: center; gap: 1rem; min-height: 84px; }

.brand { display: flex; align-items: center; gap: 0.55rem; margin-right: auto; max-width: 264px; }
.brand img { max-height: 54px; width: auto; flex: none; }
.brand > svg { flex: none; }
.brand__text {
	font-family: var(--head); font-weight: 800; font-size: 1.02rem; line-height: 1.22;
	color: var(--teal); letter-spacing: -0.02em; min-width: 0; font-size: 0.98rem;
}
.brand__text span { color: var(--orange); }
.brand__sub { display: block; font-family: var(--body); font-weight: 400; font-size: 0.66rem; letter-spacing: 0.04em; color: var(--ink-soft); text-transform: none; }

.nav { min-width: 0; }
.nav ul { display: flex; align-items: center; flex-wrap: wrap; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }
.nav > ul > li > a {
	font-family: var(--head); font-weight: 600; font-size: 0.9rem; white-space: nowrap;
	color: var(--ink); padding: 0.6rem 0.62rem; display: block; border-radius: 6px;
}
.nav > ul > li > a:hover,
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-parent > a,
.nav .current-post-ancestor > a { color: var(--orange); }

.nav ul ul {
	position: absolute; top: 100%; left: 0; min-width: 230px; z-index: 70;
	flex-direction: column; align-items: stretch; gap: 0;
	background: #fff; border-radius: 8px; padding: 0.5rem;
	box-shadow: var(--shadow); display: none;
	border-top: 3px solid var(--orange);
}
.nav li { position: relative; }
.nav li:hover > ul, .nav li:focus-within > ul { display: flex; }
.nav ul ul a { display: block; padding: 0.55rem 0.7rem; font-size: 0.9rem; color: var(--ink); border-radius: 5px; font-family: var(--head); font-weight: 500; }
.nav ul ul a:hover { background: var(--teal-pale); color: var(--teal); }

.masthead__tools { display: flex; align-items: center; gap: 0.6rem; position: relative; }
.masthead__tools .btn { white-space: nowrap; }

.searchtoggle {
	width: 42px; height: 42px; display: grid; place-items: center;
	background: transparent; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink);
}
.searchtoggle:hover { background: var(--teal-pale); color: var(--teal); }

.searchdrop {
	display: none; position: absolute; right: 0; top: calc(100% + 0.5rem);
	background: #fff; padding: 0.8rem; border-radius: 8px; box-shadow: var(--shadow);
	width: min(92vw, 340px); z-index: 80; border-top: 3px solid var(--orange);
}
.searchdrop[data-open="true"] { display: block; }

.nav-toggle {
	display: none; width: 44px; height: 44px; padding: 0;
	background: var(--teal); border: 0; border-radius: 8px; color: #fff; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px auto; border-radius: 2px; }

@media (max-width: 1100px) {
	.masthead { position: relative; }
	.masthead__inner { position: relative; }
	.nav-toggle { display: block; }
	.nav {
		display: none; position: absolute; inset-inline: 0; top: 100%;
		background: #fff; box-shadow: var(--shadow); padding: 0.6rem var(--gutter) 1.2rem;
		max-height: 76vh; overflow-y: auto; z-index: 70;
	}
	.nav[data-open="true"] { display: block; }
	.nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.nav > ul > li > a { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
	.nav ul ul { position: static; display: flex; box-shadow: none; border-top: 0; padding: 0 0 0.4rem 1rem; }
}
@media (max-width: 640px) {
	.masthead .btn { display: none; }
	.brand__text { font-size: 1.15rem; }
}

/* ==========================================================================
   6. Hero slider
   ========================================================================== */

.hero {
	position: relative; isolation: isolate;
	background: var(--teal-deep); overflow: hidden;
	display: grid;
}
/* All slides share one grid cell so the tallest sets the height. */
.hero__slide {
	grid-area: 1 / 1;
	position: relative; isolation: isolate;
	display: flex; align-items: center;
	min-height: clamp(460px, 62vh, 660px);
	opacity: 0; visibility: hidden;
	transition: opacity 0.7s ease;
}
.hero__slide.is-current { opacity: 1; visibility: visible; }
.hero[data-slider] .hero__slide { pointer-events: none; }
.hero[data-slider] .hero__slide.is-current { pointer-events: auto; }
.hero:not([data-slider]) .hero__slide { opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: reduce) {
	.hero__slide { transition: none; }
}

.hero__slide > .shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(8,36,31,0.93) 0%, rgba(8,36,31,0.78) 40%, rgba(8,36,31,0.30) 72%, rgba(8,36,31,0.14) 100%);
}

.hero__inner { padding-block: clamp(3rem, 7vw, 5rem); max-width: 660px; }
.hero .eyebrow { color: var(--orange); border-bottom-color: var(--orange); }
.hero h1, .hero h2 {
	color: #fff; margin-bottom: 1rem;
	font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em;
}
.hero h1 .hl, .hero h2 .hl { color: var(--orange); }
.hero p { color: rgba(255,255,255,0.86); font-size: 1.05rem; max-width: 46ch; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
	width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
	background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.45);
	color: #fff; display: grid; place-items: center;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.hero__arrow:hover { background: var(--orange); border-color: var(--orange); }
.hero__arrow--prev { left: clamp(0.6rem, 2vw, 1.6rem); }
.hero__arrow--prev svg { transform: rotate(180deg); }
.hero__arrow--next { right: clamp(0.6rem, 2vw, 1.6rem); }

/*
 * Between tablet and wide desktop the container fills the viewport, so the
 * arrows would sit on top of the headline. Pull the slide content inward.
 */
@media (min-width: 721px) and (max-width: 1420px) {
	.hero__slide > .shell { padding-inline: 4.75rem; }
}
@media (prefers-reduced-motion: reduce) { .hero__arrow { transition: none; } }
@media (max-width: 720px) {
	.hero__arrow { width: 40px; height: 40px; top: auto; bottom: 1rem; transform: none; }
	.hero__arrow--prev { left: auto; right: 4rem; }
}

/* ==========================================================================
   7. Feature strip (01–04)
   ========================================================================== */

.features { padding-top: clamp(3rem, 6vw, 5rem); }
.features__grid { display: grid; gap: 1.5rem; }
@media (min-width: 620px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features__grid { grid-template-columns: repeat(4, 1fr); } }

.feature {
	background: #fff; border-radius: var(--leaf); padding: 1.8rem 1.6rem;
	box-shadow: var(--shadow); position: relative;
	transition: transform 0.25s ease;
}
.feature:hover { transform: translateY(-6px); }
.feature__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.feature__icon {
	width: 58px; height: 58px; border-radius: 50%; background: var(--teal);
	display: grid; place-items: center; color: #fff; flex: none;
}
.feature__num {
	font-family: var(--head); font-weight: 800; font-size: 2.2rem; line-height: 1;
	color: transparent; -webkit-text-stroke: 1.5px var(--teal-soft);
	letter-spacing: -0.02em;
}
.feature h2, .feature h3 { font-size: 1.12rem; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.feature p { font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   8. About collage
   ========================================================================== */

.collage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; align-items: start; }
.collage__main { border-radius: var(--leaf); overflow: hidden; aspect-ratio: 3 / 4; }
.collage__main img { width: 100%; height: 100%; object-fit: cover; }
.collage__side { display: grid; gap: 1.2rem; }
.collage__circle {
	border-radius: 50%; overflow: hidden; aspect-ratio: 1; border: 2px dashed var(--orange); padding: 8px;
}
.collage__circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.collage__lower { border-radius: var(--leaf); overflow: hidden; aspect-ratio: 4 / 3; }
.collage__lower img { width: 100%; height: 100%; object-fit: cover; }

.badge-years {
	display: flex; align-items: center; gap: 0.8rem;
	background: var(--orange); color: #fff; border-radius: var(--leaf);
	padding: 1rem 1.3rem; margin-top: 1.2rem;
}
.badge-years__icon { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--orange); display: grid; place-items: center; flex: none; }
.badge-years b { font-family: var(--head); font-weight: 800; font-size: 1rem; line-height: 1.25; display: block; }

.about__points { display: grid; gap: 1.2rem; margin-bottom: 1.6rem; }
@media (min-width: 640px) { .about__points { grid-template-columns: repeat(2, 1fr); } }
.point { display: flex; gap: 0.9rem; }
.point__icon {
	width: 54px; height: 54px; border-radius: 14px; background: var(--orange); color: #fff;
	display: grid; place-items: center; flex: none;
}
.point h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.point p { font-size: 0.9rem; margin: 0; }

.quote-card {
	background: var(--teal-pale); border-radius: 14px; padding: 1.3rem 1.4rem 0.6rem;
	position: relative; font-size: 0.92rem; color: var(--ink);
}
.quote-card p { margin-bottom: 0.2rem; }
.quote-card::after {
	content: "\201D"; display: block; text-align: right;
	font-family: var(--head); font-weight: 800; font-size: 3rem; line-height: 0.6;
	color: var(--teal); padding-bottom: 0.6rem;
}

.about__foot {
	display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem;
	border-top: 1px solid var(--rule); padding-top: 1.6rem; margin-top: 1.6rem;
}
.callnow { display: flex; align-items: center; gap: 0.75rem; }
.callnow__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; flex: none; }
.callnow span { display: block; font-size: 0.8rem; color: var(--orange); font-weight: 500; line-height: 1.3; }
.callnow b { font-family: var(--head); font-weight: 800; color: var(--teal); font-size: 1.05rem; }

/* ==========================================================================
   9. Counters
   ========================================================================== */

.counters { background: var(--teal); position: relative; isolation: isolate; }
.counters__media { position: absolute; inset: 0; z-index: -2; }
.counters__media img { width: 100%; height: 100%; object-fit: cover; }
.counters::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(17,110,99,0.86); }
.counters--plain::after { background: none; }
.counters__grid { display: grid; gap: 2rem 1rem; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 900px) { .counters__grid { grid-template-columns: repeat(4, 1fr); } }

.counter__icon {
	width: 76px; height: 76px; margin: 0 auto 1rem; background: var(--orange); color: #fff;
	display: grid; place-items: center;
	border-radius: 50% 50% 50% 8px;
	position: relative;
}
.counter__icon::after {
	content: ""; position: absolute; inset: -6px -6px -6px 50%;
	border: 2px solid rgba(255,255,255,0.75); border-left: 0;
	border-radius: 0 50% 50% 0;
}
.counter b { display: block; font-family: var(--head); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.6rem); color: #fff; line-height: 1.1; }
.counter span { display: block; font-family: var(--head); font-weight: 600; font-size: 0.92rem; color: #fff; }

/* ==========================================================================
   10. Cards (courses, blog, departments, albums, events)
   ========================================================================== */

.cards { display: grid; gap: 1.8rem; }
@media (min-width: 640px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
	.cards--3 { grid-template-columns: repeat(3, 1fr); }
	.cards--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
	background: #fff; border-radius: var(--leaf); overflow: hidden;
	box-shadow: var(--shadow); display: flex; flex-direction: column;
	transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-6px); }
.card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 11; background: var(--teal-soft); margin: 12px 12px 0; border-radius: var(--leaf-sm); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.card:hover .card__media img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
	.card, .card__media img, .feature { transition: none; }
	.card:hover { transform: none; }
	.card:hover .card__media img { transform: none; }
	.feature:hover { transform: none; }
}

.tag {
	position: absolute; top: 0.7rem; right: 0.7rem;
	background: var(--orange); color: #fff; border-radius: 999px;
	font-size: 0.72rem; font-weight: 500; padding: 0.25rem 0.7rem;
	display: inline-flex; align-items: center; gap: 0.3rem;
}

.card__body { padding: 1rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card__meta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 0.4rem 1rem; font-size: 0.82rem; color: var(--ink-soft);
	padding-bottom: 0.7rem;
}
.card__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.card__meta svg { color: var(--orange); flex: none; }
.card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; line-height: 1.35; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--orange); }
.card p { font-size: 0.92rem; margin-bottom: 0; }
.card__foot {
	margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--rule);
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
	font-size: 0.82rem; color: var(--ink-soft);
}
.card__foot .price {
	margin-left: auto; background: var(--orange); color: #fff;
	border-radius: 999px; padding: 0.2rem 0.75rem; font-weight: 500; font-size: 0.8rem;
}
.stars { color: var(--orange); letter-spacing: 0.06em; font-size: 0.84rem; }

/* Department card */
.dept {
	background: #fff; border-radius: var(--leaf); padding: 2rem 1.6rem;
	box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
	transition: transform 0.25s ease;
}
.dept:hover { transform: translateY(-6px); }
.dept::before {
	content: ""; position: absolute; top: -26px; right: -26px;
	width: 92px; height: 92px; border-radius: 50%; background: var(--orange-pale);
}
.dept__icon { color: var(--orange); margin-bottom: 1.1rem; position: relative; }
.dept h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.dept p { font-size: 0.9rem; margin-bottom: 1rem; }

/* ==========================================================================
   11. Video banner
   ========================================================================== */

.videoband { position: relative; border-radius: 44px 10px 44px 10px; overflow: hidden; aspect-ratio: 20 / 7; background: var(--teal-deep); }
.videoband img { width: 100%; height: 100%; object-fit: cover; }
.videoband__play {
	position: absolute; inset: 0; margin: auto; width: 74px; height: 74px;
	border-radius: 50%; background: var(--orange); color: #fff; border: 0;
	display: grid; place-items: center; cursor: pointer;
}
.videoband__play::after {
	content: ""; position: absolute; inset: -10px; border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.5);
}
.videoband__play:hover { background: var(--teal); }

/* ==========================================================================
   12. Gallery masonry
   ========================================================================== */

.masonry { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .masonry { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .masonry { grid-template-columns: repeat(3, 1fr); } }

.masonry figure { border-radius: var(--leaf); overflow: hidden; margin: 0; background: var(--teal-soft); }
.masonry button.shot { border: 0; padding: 0; cursor: pointer; width: 100%; display: block; background: none; font: inherit; }
.masonry img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.masonry button.shot:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .masonry img { transition: none; } .masonry button.shot:hover img { transform: none; } }

/* Alternating tall / short rhythm, as on the reference layout */
@media (min-width: 980px) {
	.masonry > *:nth-child(1) { aspect-ratio: 4 / 3; }
	.masonry > *:nth-child(2) { aspect-ratio: 1 / 1; }
	.masonry > *:nth-child(3) { aspect-ratio: 3 / 4; }
	.masonry > *:nth-child(4) { aspect-ratio: 3 / 4; }
	.masonry > *:nth-child(5) { aspect-ratio: 1 / 1; }
	.masonry > *:nth-child(6) { aspect-ratio: 4 / 3; }
}
.masonry > * { aspect-ratio: 4 / 3; }

/* ==========================================================================
   13. Enrolment + skills band
   ========================================================================== */

.enrol { position: relative; isolation: isolate; background: var(--navy); }
.enrol__media { position: absolute; inset: 0; z-index: -2; }
.enrol__media img { width: 100%; height: 100%; object-fit: cover; }
.enrol::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28,60,102,0.93); }

.enrol-form { background: #fff; border-radius: 26px 6px 26px 6px; overflow: hidden; box-shadow: var(--shadow-lg); }
.enrol-form__head { background: var(--orange); color: #fff; padding: 1.3rem 1.6rem; border-radius: 0 0 40px 0; }
.enrol-form__head h3 { color: #fff; margin: 0 0 0.15rem; font-size: 1.25rem; }
.enrol-form__head p { margin: 0; font-size: 0.86rem; color: rgba(255,255,255,0.92); }
.enrol-form__body { padding: 1.5rem 1.6rem 1.8rem; display: grid; gap: 0.9rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="search"], input[type="number"], input[type="date"], select, textarea {
	font: inherit; font-size: 0.92rem; width: 100%;
	padding: 0.85rem 1rem; border: 1px solid transparent; border-radius: 8px;
	background: var(--field); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: none; background: #fff; }
textarea { min-height: 120px; resize: vertical; }
::placeholder { color: #9AA5AD; }

.skills h2 { color: #fff; }
.skills p { color: rgba(255,255,255,0.82); }
.skillbar { margin-bottom: 1.1rem; }
.skillbar__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.skillbar__label { font-family: var(--head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.skillbar__pc { font-family: var(--head); font-weight: 700; font-size: 0.85rem; color: #fff; }
.skillbar__track { height: 7px; border-radius: 999px; background: rgba(255,255,255,0.9); overflow: hidden; }
.skillbar__fill {
	height: 100%; border-radius: 999px; background: var(--orange);
	width: 0; transition: width 1.1s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.skillbar__track[data-seen="true"] .skillbar__fill { width: var(--pc, 0%); }
@media (prefers-reduced-motion: reduce) {
	.skillbar__fill { transition: none; width: var(--pc, 0%); }
}

/* ==========================================================================
   14. FAQ accordion
   ========================================================================== */

.faq { display: grid; gap: 0.9rem; }
.faq__item { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__q {
	width: 100%; display: flex; align-items: center; gap: 0.9rem; text-align: left;
	background: none; border: 0; cursor: pointer; padding: 1.05rem 1.2rem;
	font-family: var(--head); font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.4;
}
.faq__mark { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; flex: none; font-size: 0.95rem; font-weight: 700; }
.faq__chev { margin-left: auto; flex: none; transition: transform 0.25s ease; color: var(--ink-soft); }
.faq__item[data-open="true"] .faq__chev { transform: rotate(180deg); }
.faq__item[data-open="true"] .faq__q { border-bottom: 1px solid var(--teal); color: var(--teal); }
.faq__a { padding: 1rem 1.2rem 1.2rem; font-size: 0.94rem; display: none; }
.faq__item[data-open="true"] .faq__a { display: block; }
.faq__a p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq__chev { transition: none; } }

/* ==========================================================================
   15. Testimonials
   ========================================================================== */

.testimonial {
	background: #fff; border-radius: var(--leaf); padding: 1.5rem 1.5rem 1.4rem;
	box-shadow: var(--shadow-sm); position: relative;
	border-bottom: 4px solid var(--orange);
}
.testimonial__quote {
	position: absolute; top: 0; right: 1.1rem; width: 38px; height: 34px;
	background: var(--orange); color: #fff; border-radius: 0 0 8px 8px;
	display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 0.95rem;
}
.testimonial .stars { margin-bottom: 0.8rem; display: block; }
.testimonial p { font-size: 0.92rem; font-style: italic; margin-bottom: 1.1rem; }
.testimonial__who { display: flex; align-items: center; gap: 0.8rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.testimonial__who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px dashed var(--orange); padding: 3px; flex: none; }
.testimonial__who b { display: block; font-family: var(--head); font-weight: 700; color: var(--ink); font-size: 0.98rem; line-height: 1.3; }
.testimonial__who span { font-size: 0.82rem; color: var(--orange); }

/* ==========================================================================
   16. Partner strip
   ========================================================================== */

.partners { background: var(--grey); }
.partners__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); align-items: center; }
@media (min-width: 860px) { .partners__grid { grid-template-columns: repeat(6, 1fr); } }
.partners img { max-height: 76px; width: auto; margin-inline: auto; opacity: 0.75; transition: opacity 0.2s ease; }
.partners img:hover { opacity: 1; }

/* ==========================================================================
   17. Page banner (inner pages)
   ========================================================================== */

.banner { position: relative; isolation: isolate; background: var(--teal-deep); padding-block: clamp(3rem, 7vw, 5rem); text-align: center; }
.banner__media { position: absolute; inset: 0; z-index: -2; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8,42,36,0.86); }
.banner h1 { color: #fff; margin-bottom: 0.6rem; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 0.5rem; font-size: 0.88rem; color: rgba(255,255,255,0.8); margin: 0; list-style: none; padding: 0; }
.crumbs a { color: var(--orange); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: rgba(255,255,255,0.45); }

/* ==========================================================================
   18. Notice board
   ========================================================================== */

.board { background: #fff; border-radius: var(--leaf); box-shadow: var(--shadow); overflow: hidden; }
.board__head { background: var(--teal); color: #fff; padding: 1.1rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.board__head h2 { color: #fff; font-size: 1.2rem; margin: 0; }
.board__head a { color: var(--orange-pale); font-size: 0.8rem; font-family: var(--head); font-weight: 600; white-space: nowrap; }
.board__head a:hover { color: #fff; }
.board ol { list-style: none; margin: 0; padding: 0.4rem 1.4rem 1.2rem; }
.board li { padding: 0.75rem 0; border-bottom: 1px dashed var(--rule); }
.board li:last-child { border-bottom: 0; }
.board time { display: block; font-size: 0.76rem; color: var(--orange); font-weight: 500; }
.board a, .board .board__title { font-size: 0.95rem; color: var(--ink); font-family: var(--head); font-weight: 600; line-height: 1.4; display: block; }
.board a:hover { color: var(--orange); }
.board .is-pinned > a::before {
	content: "Important"; display: inline-block; vertical-align: 1px;
	background: var(--orange-pale); color: var(--orange-dark);
	font-size: 0.64rem; padding: 0.05rem 0.45rem; border-radius: 3px; margin-right: 0.4rem;
	font-family: var(--body); font-weight: 400;
}

.notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.notice-list > li { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); padding: 1.2rem 1.4rem; display: grid; gap: 0.3rem 1.5rem; }
@media (min-width: 680px) { .notice-list > li { grid-template-columns: 10rem minmax(0, 1fr); align-items: baseline; } }
.notice-list time { font-size: 0.85rem; color: var(--orange); font-weight: 500; }
.notice-list h2 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.notice-list p { font-size: 0.9rem; margin: 0; }

/* ==========================================================================
   18b. Components used by the inner pages
   ========================================================================== */

.stack > * + * { margin-top: 1.6rem; }

.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 60ch; }

.facts { margin: 0; }
.facts > div { display: grid; gap: 0.2rem 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 620px) { .facts > div { grid-template-columns: 12rem minmax(0, 1fr); align-items: baseline; } }
.facts dt { color: var(--ink-soft); font-size: 0.9rem; }
.facts dd { margin: 0; color: var(--ink); }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.grid > article, .grid > div {
	background: #fff; border-radius: var(--leaf); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
}
.grid h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.grid p { font-size: 0.92rem; margin-bottom: 0; }

.form { display: grid; gap: 1rem; max-width: 34rem; }
.field { display: grid; gap: 0.3rem; }
.field label { font-size: 0.88rem; color: var(--ink-soft); }
@media (min-width: 560px) { .form--two { grid-template-columns: repeat(2, 1fr); } .field--wide { grid-column: 1 / -1; } }

.searchform { display: flex; gap: 0.5rem; }
.searchform input { flex: 1; }

.card__more { margin-top: auto; padding-top: 0.9rem; }
.article-head { margin-bottom: 1.6rem; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gv-map { border-radius: var(--leaf); overflow: hidden; }
.gv-map iframe { display: block; width: 100%; border: 0; min-height: 360px; }

.newsletter__form { display: grid; gap: 0.6rem; }
.newsletter__form .btn { justify-content: center; }

/* ==========================================================================
   19. Lightbox
   ========================================================================== */

.lightbox { position: fixed; inset: 0; z-index: 9000; background: rgba(8,26,22,0.95); display: none; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem); }
.lightbox[data-open="true"] { display: flex; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 1100px; width: 100%; }
.lightbox__img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox__cap { color: #D6E3DF; font-size: 0.9rem; text-align: center; margin-top: 0.9rem; min-height: 1.4em; }
.lightbox button { position: absolute; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); color: #fff; width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: var(--orange); border-color: var(--orange); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) { .lightbox__prev { left: 0.5rem; } .lightbox__next { right: 0.5rem; } .lightbox button { width: 2.5rem; height: 2.5rem; } }

/* ==========================================================================
   20. Editor content
   ========================================================================== */

.entry { color: var(--ink-soft); }
.entry > *:first-child { margin-top: 0; }
.entry > *:last-child { margin-bottom: 0; }
.entry h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.entry h3 { font-size: 1.22rem; margin-top: 1.8rem; }
.entry h2:first-child, .entry h3:first-child { margin-top: 0; }
.entry li { margin-bottom: 0.4rem; }
.entry img { border-radius: 12px; }
.entry figcaption { font-size: 0.86rem; color: var(--ink-soft); margin-top: 0.5rem; }
.entry blockquote { border-left: 3px solid var(--orange); padding-left: 1.3rem; margin: 1.6rem 0; font-size: 1.1rem; color: var(--ink); font-style: italic; }
.entry blockquote cite { display: block; font-size: 0.86rem; color: var(--ink-soft); font-style: normal; margin-top: 0.4rem; }
.entry hr { border: 0; border-top: 1px solid var(--rule); margin: 2.2rem 0; }
.entry a { text-decoration: underline; text-underline-offset: 3px; }
.entry .wp-block-button__link { background: var(--orange); color: #fff; border-radius: 999px; font-family: var(--head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.9rem 1.6rem; text-decoration: none; }
.entry .wp-block-button__link:hover { background: var(--teal); color: #fff; }

.note { background: var(--orange-pale); border-left: 4px solid var(--orange); padding: 1.1rem 1.3rem; border-radius: 0 10px 10px 0; font-size: 0.94rem; }
.note p:last-child { margin-bottom: 0; }

/* Tables */
.entry table, .sheet { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.entry table th, .entry table td, .sheet th, .sheet td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.entry table thead th, .sheet thead th { background: var(--teal); color: #fff; font-family: var(--head); font-weight: 700; border-bottom: 0; }
.entry table tbody tr:nth-child(even), .sheet tbody tr:nth-child(even) { background: var(--grey); }
.entry .wp-block-table, .sheet--scroll { display: block; overflow-x: auto; max-width: 100%; }
.entry .wp-block-table table { min-width: 560px; }

/* Numbered "steps" list used on the admissions page */
.entry ol.steps { list-style: none; counter-reset: s; padding-left: 0; }
.entry ol.steps > li { counter-increment: s; position: relative; padding: 0 0 1.5rem 3.6rem; border-left: 2px solid var(--rule); margin-left: 1.2rem; }
.entry ol.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.entry ol.steps > li::before {
	content: counter(s); position: absolute; left: -1.25rem; top: -0.1rem;
	width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
	background: var(--teal); color: #fff; border-radius: 50%;
	font-family: var(--head); font-weight: 700; font-size: 0.9rem;
}
.entry ol.steps strong:first-child { display: block; color: var(--ink); font-family: var(--head); font-size: 1.02rem; }

/* ==========================================================================
   21. Article
   ========================================================================== */

.article-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; font-size: 0.88rem; margin-bottom: 1.2rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.article-meta svg { color: var(--orange); }
.article-hero { border-radius: var(--leaf); overflow: hidden; margin-bottom: 2rem; }

.taglist { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.taglist a { display: inline-block; font-size: 0.78rem; background: var(--grey); border-radius: 999px; padding: 0.3rem 0.85rem; color: var(--ink-soft); }
.taglist a:hover { background: var(--orange); color: #fff; }

.postnav { display: grid; gap: 1rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .postnav { grid-template-columns: repeat(2, 1fr); } }
.postnav a { font-size: 0.95rem; font-family: var(--head); font-weight: 600; color: var(--ink); }
.postnav a:hover { color: var(--orange); }
.postnav span { display: block; font-size: 0.76rem; color: var(--orange); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.2rem; font-weight: 600; }
.postnav .is-next { text-align: right; }

/* ==========================================================================
   22. Pagination
   ========================================================================== */

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 2.7rem; height: 2.7rem;
	padding: 0 0.7rem; border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm);
	font-family: var(--head); font-weight: 600; font-size: 0.9rem; color: var(--ink);
}
.pagination .page-numbers:hover { background: var(--orange); color: #fff; }
.pagination .page-numbers.current { background: var(--teal); color: #fff; }

/* ==========================================================================
   23. Footer
   ========================================================================== */

.colophon { background: var(--navy-deep); color: rgba(255,255,255,0.72); font-size: 0.92rem; position: relative; isolation: isolate; }
.colophon a { color: rgba(255,255,255,0.82); }
.colophon a:hover { color: var(--orange); }
.colophon__grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
@media (min-width: 720px) { .colophon__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .colophon__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }

.colophon h2, .colophon h3 { color: #fff; font-size: 1.1rem; margin-bottom: 1.4rem; position: relative; padding-bottom: 0.7rem; }
.colophon h2::after, .colophon h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--orange); border-radius: 2px; }

.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { padding: 0.32rem 0; }
.colophon .menu li > a::before,
.colophon ul.is-arrowed li > a::before {
	content: "\25B8"; color: var(--orange); margin-right: 0.5rem; font-size: 0.85em;
}

.f-contact { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.f-contact li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.4rem 0; }
.f-contact__icon { width: 34px; height: 34px; border-radius: 8px; background: var(--orange); color: #fff; display: grid; place-items: center; flex: none; }

.newsletter input { background: #fff; border-radius: 8px; margin-bottom: 0.9rem; }

.colophon__base {
	border-top: 1px solid rgba(255,255,255,0.14); padding-block: 1.3rem;
	display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: space-between; align-items: center;
	font-size: 0.86rem;
}
.socials { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.socials a { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.12); color: #fff; display: grid; place-items: center; }
.socials a:hover { background: var(--orange); color: #fff; }

.to-top {
	position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
	width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--orange); color: #fff; display: none; place-items: center;
	box-shadow: var(--shadow);
}
.to-top[data-show="true"] { display: grid; }
.to-top:hover { background: var(--teal); }

/* ==========================================================================
   24. Widgets
   ========================================================================== */

.widget { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); padding: 1.4rem 1.5rem; margin-bottom: 1.5rem; }
.widget-title { font-size: 1.1rem; margin-bottom: 1rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 0.35rem 0; border-bottom: 1px solid var(--rule); }
.widget li:last-child { border-bottom: 0; }

/* ==========================================================================
   25. Print
   ========================================================================== */

@media print {
	.topbar, .masthead, .colophon, .to-top, .lightbox, .pagination, .postnav, .nav-toggle { display: none !important; }
	body { background: #fff; color: #000; }
	.hero, .banner, .enrol, .counters { background: #fff !important; }
	.hero h1, .banner h1, .skills h2, .counter b, .counter span { color: #000 !important; }
	.hero::after, .banner::after, .enrol::after { display: none; }
	a { text-decoration: underline; }
}
