/*
Theme Name: Velankanni Public School
Theme URI: https://vpsr72.in/
Author: Velankanni Public School
Description: A fully editable, responsive WordPress theme for Velankanni Public School, Chennai.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: velankanni-public-school
*/

:root {
	--ink: #171b26;
	--muted: #626976;
	--cream: #f6f1e8;
	--paper: #fffdf9;
	--blue: #111f68;
	--red: #e2242c;
	--purple: #4c075f;
	--gold: #e7b64a;
	--line: rgba(17, 31, 104, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Manrope", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 110px 0; scroll-margin-top: 90px; }
.eyebrow {
	margin: 0 0 17px;
	color: var(--red);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.eyebrow-light { color: #f8c85d; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 700;
	letter-spacing: -.035em;
	line-height: .97;
}
h2 { margin-bottom: 28px; font-size: clamp(2.7rem, 5vw, 4.7rem); }
h3 { margin-bottom: 12px; font-size: 1.08rem; }
p { color: var(--muted); line-height: 1.8; }

.announcement { background: var(--blue); color: #fff; font-size: .72rem; }
.announcement-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.announcement a { color: #ffd56f; font-weight: 800; white-space: nowrap; }
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 253, 249, .96);
	border-bottom: 1px solid rgba(17, 31, 104, .08);
	backdrop-filter: blur(15px);
}
.header-inner { height: 86px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 280px; }
.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { color: var(--blue); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.08rem; line-height: 1.05; letter-spacing: .025em; }
.brand-copy small { margin-top: 5px; color: var(--purple); font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.desktop-nav-wrap { display: block; }
.desktop-nav { margin: 0; padding: 0; display: flex; align-items: center; gap: 23px; list-style: none; }
.desktop-nav a { position: relative; color: #333846; font-size: .76rem; font-weight: 700; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: -9px; width: 0; height: 2px; background: var(--red); transition: width .25s ease; }
.desktop-nav a:hover::after, .desktop-nav .current-menu-item a::after { width: 100%; }
.header-cta { padding: 12px 19px; background: var(--red); color: #fff; border-radius: 3px; font-size: .72rem; font-weight: 800; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { width: 38px; height: 38px; display: grid; place-content: center; gap: 5px; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { display: block; width: 23px; height: 2px; background: var(--blue); }
.mobile-nav-panel { position: absolute; right: 0; top: 50px; width: min(320px, calc(100vw - 40px)); padding: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(10, 20, 70, .18); }
.mobile-menu { margin: 0 0 16px; padding: 0; list-style: none; }
.mobile-menu a { display: block; padding: 11px 5px; border-bottom: 1px solid #eee; font-weight: 700; font-size: .85rem; }

.hero { position: relative; min-height: 710px; height: calc(100vh - 120px); max-height: 900px; display: flex; align-items: center; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,15,53,.94) 0%, rgba(11,23,74,.78) 43%, rgba(11,23,74,.16) 76%), linear-gradient(0deg, rgba(3,8,29,.32), transparent 42%); }
.hero-content { position: relative; z-index: 2; padding-bottom: 50px; color: #fff; }
.hero h1 { max-width: 760px; margin-bottom: 28px; font-size: clamp(4rem, 8vw, 7.8rem); text-wrap: balance; }
.hero-description { max-width: 650px; margin-bottom: 36px; color: rgba(255,255,255,.82); font-size: 1.07rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid transparent; border-radius: 3px; font-size: .77rem; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: #fff; }
.button-primary:hover { background: #c91b24; color: #fff; }
.button-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.button-ghost:hover { background: #fff; color: var(--blue); }
.button-dark { margin-top: 18px; background: var(--blue); color: #fff; }
.button-light { background: #fff; color: var(--blue); }
.button-outline { border-color: var(--blue); color: var(--blue); }
.hero-seal { position: absolute; right: max(7vw, 40px); bottom: 58px; z-index: 2; width: 126px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; transform: rotate(-5deg); backdrop-filter: blur(8px); }
.hero-seal::before { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(255,255,255,.42); border-radius: 50%; }
.hero-seal span, .hero-seal small { font-size: .56rem; text-transform: uppercase; letter-spacing: .1em; }
.hero-seal strong { font-family: "Cormorant Garamond", serif; font-size: 2.2rem; line-height: 1; }

.facts { background: #fff; border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { min-height: 130px; padding: 28px 36px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.fact:first-child { border-left: 1px solid var(--line); }
.fact strong { color: var(--blue); font-family: "Cormorant Garamond", serif; font-size: 2.6rem; line-height: 1; }
.fact span { margin-top: 8px; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.about { background: var(--paper); }
.split-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(60px, 8vw, 120px); align-items: center; }
.image-frame { position: relative; min-height: 610px; }
.image-frame::before { content: ""; position: absolute; left: -20px; top: -20px; width: 48%; height: 52%; border: 1px solid rgba(226,36,44,.45); }
.image-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% center; }
.image-note { position: absolute; right: -38px; bottom: 45px; width: 190px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--blue); color: #fff; box-shadow: 0 25px 50px rgba(17,31,104,.25); }
.image-note strong { font-family: "Cormorant Garamond", serif; font-size: 2rem; }
.image-note span, .image-note em { color: #f0c760; font-size: .73rem; font-style: normal; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-copy > p:not(.eyebrow) { font-size: .95rem; }
.check-grid { margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-grid span { display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; }
.check-grid i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #efe9f2; color: var(--purple); font-style: normal; }

.facilities { background: var(--cream); }
.section-heading { margin-bottom: 50px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 70px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin-bottom: 6px; }
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(17,31,104,.18); border-left: 1px solid rgba(17,31,104,.18); }
.facility-card { position: relative; min-height: 285px; padding: 38px 34px; border-right: 1px solid rgba(17,31,104,.18); border-bottom: 1px solid rgba(17,31,104,.18); transition: color .3s ease, background .3s ease, transform .3s ease; }
.facility-card:hover { z-index: 2; background: var(--blue); color: #fff; transform: translateY(-7px); box-shadow: 0 20px 45px rgba(17,31,104,.18); }
.facility-card:hover p, .facility-card:hover .card-number { color: rgba(255,255,255,.7); }
.card-number { display: block; margin-bottom: 45px; color: var(--red); font-size: .67rem; font-weight: 900; }
.facility-card h3 { font-family: "Cormorant Garamond", serif; font-size: 1.75rem; }
.facility-card p { font-size: .82rem; line-height: 1.75; }
.card-arrow { position: absolute; right: 28px; top: 31px; font-size: 1.2rem; }

.academics { background: #fff; }
.academics-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(70px, 10vw, 140px); }
.academics-intro { position: sticky; top: 140px; align-self: start; }
.academics-intro p:not(.eyebrow) { max-width: 440px; }
.stage { padding: 34px 0; display: grid; grid-template-columns: 105px 1fr; gap: 28px; border-top: 1px solid var(--line); }
.stage:last-child { border-bottom: 1px solid var(--line); }
.stage > span { color: var(--red); font-size: .7rem; font-weight: 900; }
.stage h3 { font-family: "Cormorant Garamond", serif; font-size: 1.85rem; }
.stage p { margin-bottom: 0; font-size: .83rem; }

.sports { position: relative; min-height: 620px; padding: 110px 0; display: flex; align-items: center; overflow: hidden; }
.sports > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; filter: saturate(.7); }
.sports-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,3,36,.97) 0%, rgba(55,6,69,.9) 48%, rgba(48,6,65,.32) 100%); }
.sports-content { position: relative; color: #fff; }
.sports h2 { max-width: 720px; font-size: clamp(3.4rem, 6vw, 6rem); }
.sports-content > p:not(.eyebrow) { max-width: 610px; color: rgba(255,255,255,.76); }
.sports-points { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }
.sports-points span { padding: 12px 17px; border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: .7rem; font-weight: 800; }

.activities { background: var(--paper); }
.activity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.activity-card { min-height: 395px; padding: 27px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden; position: relative; }
.activity-card::before { content: ""; position: absolute; width: 230px; height: 230px; right: -90px; top: -70px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; }
.activity-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -38px; top: -19px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.activity-1 { background: #142574; }
.activity-2 { background: #8b1b2d; }
.activity-3 { background: #3f0756; }
.activity-4 { background: #a2670b; }
.activity-index, .activity-card > div { position: relative; z-index: 1; }
.activity-index { font-size: .7rem; font-weight: 900; }
.activity-card h3 { font-family: "Cormorant Garamond", serif; font-size: 2rem; }
.activity-card p { margin-bottom: 0; color: rgba(255,255,255,.75); font-size: .8rem; }

.gallery { padding: 110px 0; background: var(--blue); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; align-items: center; }
.gallery-copy p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.gallery-photo { position: relative; }
.gallery-photo::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid rgba(255,255,255,.24); }
.gallery-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gallery-photo span { position: absolute; z-index: 2; right: 0; bottom: 0; padding: 15px 20px; background: var(--red); color: #fff; font-size: .67rem; font-weight: 900; }
.gallery-items { margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-items figure { margin: 0; position: relative; overflow: hidden; }
.gallery-items img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .35s ease; }
.gallery-items figure:hover img { transform: scale(1.04); }
.gallery-items figcaption { position: absolute; inset: auto 0 0; padding: 14px 16px; background: linear-gradient(transparent, rgba(5,10,38,.88)); color: #fff; font-size: .73rem; font-weight: 800; }

.news { background: var(--paper); }
.news-grid, .content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { padding-bottom: 26px; background: #fff; border: 1px solid var(--line); }
.news-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.news-card > span { display: block; margin: 24px 25px 8px; color: var(--red); font-size: .62rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.news-card h2, .news-card h3 { margin: 0 25px 10px; font-family: "Cormorant Garamond", serif; font-size: 1.65rem; }
.news-card p { margin: 0 25px; font-size: .8rem; }

.disclosure { padding: 40px 0; background: #f0c65b; }
.disclosure-inner { display: grid; grid-template-columns: 92px 1fr auto; gap: 28px; align-items: center; }
.disclosure-mark { width: 76px; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--blue); border-radius: 50%; color: var(--blue); font-family: "Cormorant Garamond", serif; font-size: 1.4rem; font-weight: 800; }
.disclosure h2 { margin: 0 0 4px; color: var(--blue); font-family: "Manrope", sans-serif; font-size: 1.15rem; letter-spacing: 0; }
.disclosure p { margin: 0; color: rgba(17,31,104,.74); font-size: .8rem; }
.disclosure a { color: var(--blue); font-size: .75rem; font-weight: 900; border-bottom: 1px solid var(--blue); padding-bottom: 4px; }

.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(60px, 9vw, 120px); align-items: center; }
.contact-copy > p:not(.eyebrow) { max-width: 600px; }
.contact-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.contact-card { padding: 42px; display: grid; gap: 24px; background: #fff; border-top: 5px solid var(--red); box-shadow: 0 20px 65px rgba(24,25,55,.11); }
.contact-card > img { width: 84px; margin-bottom: 4px; }
.contact-card span { display: block; margin-bottom: 7px; color: var(--red); font-size: .59rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.contact-card p, .contact-card a { margin: 0; color: var(--ink); font-size: .85rem; font-weight: 700; line-height: 1.6; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.affiliation-badge { padding: 12px 15px; background: #f0edf5; color: var(--purple); font-size: .67rem; font-weight: 900; text-align: center; }

.site-footer { padding: 70px 0 26px; background: #09133e; color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 70px; align-items: start; padding-bottom: 55px; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 50%; }
.footer-brand span { display: flex; flex-direction: column; }
.footer-brand strong { font-family: "Cormorant Garamond", serif; font-size: 1.25rem; }
.footer-brand small { margin-top: 6px; color: #f0c65b; font-size: .62rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.footer-top > p { color: rgba(255,255,255,.6); font-size: .82rem; }
.footer-menu { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; list-style: none; }
.footer-menu a { color: rgba(255,255,255,.72); font-size: .72rem; font-weight: 700; }
.footer-menu a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: .65rem; }

.content-main { min-height: 60vh; padding-top: 110px; padding-bottom: 110px; }
.content-header { max-width: 860px; margin-bottom: 48px; }
.content-header h1 { font-size: clamp(3.4rem, 7vw, 6rem); }
.prose { max-width: 900px; margin-inline: auto; }
.prose > p, .prose > ul, .prose > ol { font-size: 1rem; line-height: 1.85; }
.prose a { color: var(--blue); text-decoration: underline; }
.page-featured { margin-bottom: 45px; }
.page-featured img { width: 100%; }
.error-page { min-height: 65vh; padding-top: 140px; padding-bottom: 140px; text-align: center; }
.error-page h1 { font-size: clamp(3rem, 7vw, 6rem); }
.error-page p { max-width: 600px; margin: 0 auto 30px; }

@media (max-width: 1100px) {
	.desktop-nav-wrap, .header-cta { display: none; }
	.mobile-nav { display: block; }
	.header-inner { height: 78px; }
	.hero { min-height: 650px; height: calc(100vh - 112px); }
	.facility-grid { grid-template-columns: repeat(2, 1fr); }
	.activity-grid { grid-template-columns: repeat(2, 1fr); }
	.activity-card { min-height: 320px; }
}

@media (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
	.shell { width: min(100% - 30px, 1180px); }
	.section { padding: 82px 0; }
	.announcement-inner { justify-content: center; min-height: 38px; text-align: center; }
	.announcement-inner > span { max-width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.announcement a { display: none; }
	.brand { min-width: auto; }
	.brand img { width: 54px; height: 54px; }
	.brand-copy strong { max-width: 230px; font-size: .9rem; }
	.brand-copy small { font-size: .54rem; }
	.hero { min-height: 670px; height: calc(100svh - 116px); align-items: end; }
	.hero-image { object-position: 57% center; }
	.hero-overlay { background: linear-gradient(0deg, rgba(5,12,43,.98) 0%, rgba(7,17,57,.82) 57%, rgba(7,17,57,.26) 100%); }
	.hero-content { padding-bottom: 94px; }
	.hero h1 { font-size: clamp(3.55rem, 17vw, 5.3rem); }
	.hero-description { font-size: .9rem; }
	.hero-seal { display: none; }
	.facts-grid { grid-template-columns: repeat(2, 1fr); }
	.fact { min-height: 110px; padding: 24px; border-bottom: 1px solid var(--line); }
	.fact strong { font-size: 2.1rem; }
	.split-grid, .academics-grid, .gallery-grid, .contact-grid { grid-template-columns: 1fr; gap: 58px; }
	.image-frame { min-height: 430px; }
	.image-note { right: -4px; bottom: -25px; width: 145px; }
	.image-note strong { font-size: 1.6rem; }
	.check-grid { grid-template-columns: 1fr; }
	.section-heading { grid-template-columns: 1fr; gap: 18px; }
	.facility-grid { grid-template-columns: 1fr; }
	.facility-card { min-height: 240px; }
	.academics-intro { position: static; }
	.stage { grid-template-columns: 78px 1fr; }
	.sports { min-height: 600px; padding: 80px 0; }
	.sports > img { object-position: 62% center; }
	.sports-shade { background: rgba(48,6,65,.88); }
	.activity-grid, .news-grid, .content-grid, .gallery-items { grid-template-columns: 1fr; }
	.gallery { padding: 85px 0; }
	.gallery-grid { gap: 65px; }
	.gallery-photo::before { inset: -10px 10px 10px -10px; }
	.disclosure-inner { grid-template-columns: 70px 1fr; }
	.disclosure-mark { width: 62px; }
	.disclosure a { grid-column: 2; justify-self: start; }
	.contact-card { padding: 30px; }
	.contact-row { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr; gap: 36px; }
	.footer-bottom { gap: 16px; flex-direction: column; }
}

@media (max-width: 430px) {
	.brand-copy strong { max-width: 185px; font-size: .78rem; }
	.brand-copy small { letter-spacing: .1em; }
	.hero-actions .button { width: 100%; }
	.fact { padding-left: 20px; }
	.stage { grid-template-columns: 1fr; gap: 8px; }
	h2 { font-size: 2.9rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}

