/*
Theme Name: St. Theresa School
Author: St. Theresa School
Description: School theme for St. Theresa School. Activating it creates every page, the menu, the homepage and sample content. Change homepage images & text in Appearance → Customize → St. Theresa Website (click the blue pencils). Change page images in Pages → Edit → click image → Replace.
Version: 2.3.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: st-theresa
*/

:root {
	--green: #7f1416;
	--green-2: #a32024;
	--green-dark: #5a0e10;
	--cream: #fdf7d1;
	--ink: #333;
	--text: #515d64;
	--muted: #6a6a6a;
	--light: #fcf8e8;
	--border: #ece3cc;
	--radius: 6px;
	--font: 'Rubik', Helvetica, Arial, sans-serif;
	--chalk: 'Cabin Sketch', 'Rubik', cursive;
	--script: 'The Nautigal', cursive;
	--serif: 'Libre Baskerville', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-weight: 400; color: var(--text); font-size: 17px; line-height: 1.75; background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-2); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 500; }
p { margin: 0 0 1.1em; }
.center { text-align: center; }
.st-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 30px; }

/* Buttons */
.st-btn, .st-content .wp-block-button__link { display: inline-block; padding: 12px 30px; background: var(--green); color: #fff; font-family: var(--font); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; border: 2px solid var(--green); border-radius: 3px; cursor: pointer; transition: all .25s; }
.st-btn:hover, .st-content .wp-block-button__link:hover { background: transparent; color: var(--green); }
.st-btn-light { background: #fff; color: var(--green); border-color: #fff; }
.st-btn-light:hover { background: transparent; color: #fff; }
.st-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--green); }
.st-content .is-style-outline .wp-block-button__link:hover { background: var(--green); color: #fff; }
.st-readmore { font-weight: 600; color: var(--green); }

/* ================= HEADER ================= */
.st-header { position: sticky; top: 0; z-index: 9990; background: #fff; transition: background .3s, box-shadow .3s; }
.admin-bar .st-header { top: 32px; }
.st-header.scrolled, body:not(.st-transparent-header) .st-header { box-shadow: 0 2px 18px rgba(0,0,0,.08); }
.st-header-inner { display: flex; align-items: center; gap: 28px; padding: 10px 30px; max-width: 1600px; margin: 0 auto; }
.st-logo { display: flex; flex-direction: column; color: var(--green); flex-shrink: 0; }
.st-logo:hover { color: var(--green); }
.st-logo-row { display: flex; align-items: center; gap: 12px; }
.st-crest { width: 50px; height: 58px; color: var(--green); flex-shrink: 0; }
.st-logo-img { height: 62px; width: auto; }
.st-logo-name { font-family: var(--serif); font-size: 15px; line-height: 1.25; color: var(--green); }
.st-logo-motto { font-size: 11px; font-weight: 600; color: var(--green); margin-top: 4px; white-space: nowrap; }
.st-nav { margin-left: auto; }
.st-menu, .st-menu ul { list-style: none; margin: 0; padding: 0; }
.st-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; row-gap: 6px; }
.st-menu > li { position: relative; }
.st-menu a { display: block; font-weight: 700; font-size: 17px; color: var(--ink); }
.st-menu > li > a { padding: 10px 16px; border-bottom: 3px solid transparent; }
.st-menu > li > a:hover, .st-menu > li.current-menu-item > a, .st-menu > li.current-menu-ancestor > a, .st-menu > li.current_page_item > a { color: var(--green); }
.st-menu > li:hover > a { border-bottom-color: var(--green); color: rgba(51,51,51,.6); }
.st-menu .menu-item-has-children > a::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-4px) rotate(45deg); }
.st-menu .sub-menu { position: absolute; top: 100%; left: 0; width: 360px; padding: 20px 0; background: #fff; border-top: 3px solid var(--green); border-radius: 0 0 4px 4px; box-shadow: 0 14px 34px rgba(0,0,0,.18); text-shadow: none; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s; z-index: 10; }
.st-menu .sub-menu li { position: relative; }
.st-menu .sub-menu a { padding: 9px 44px; font-size: 16px; font-weight: 600; color: var(--ink) !important; text-shadow: none !important; line-height: 1.5; }
.st-menu .sub-menu a:hover { background: var(--light); color: var(--green) !important; }
.st-menu .sub-menu .current-menu-item > a { color: var(--green); }
.st-menu .sub-menu .menu-item-has-children > a::after { position: absolute; right: 30px; top: 50%; transform: translateY(-60%) rotate(45deg); }
.st-menu .sub-menu .sub-menu { top: -20px; left: 100%; width: 300px; }
.st-menu .sub-menu .sub-menu a { padding: 8px 30px; }
.st-menu li:hover > .sub-menu, .st-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.st-menu > li:nth-last-child(-n+4) > .sub-menu { left: auto; right: 0; }
.st-menu > li:nth-last-child(-n+5) .sub-menu .sub-menu { left: auto; right: 100%; }
.st-header-tools { display: flex; align-items: center; gap: 6px; }
.st-search-toggle, .st-burger { background: none; border: 0; cursor: pointer; padding: 8px; color: var(--green); }
.st-burger { display: none; }
.st-burger span { display: block; width: 26px; height: 3px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: .3s; }
.st-search-bar { background: #fff; border-top: 1px solid var(--border); padding: 16px 30px; }
.st-search-bar form { display: flex; gap: 10px; max-width: 760px; margin: 0 auto; }
.st-search-bar input { flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: 3px; font: inherit; }

/* Transparent header on the homepage (like the reference site) */
.st-transparent-header .st-header { position: fixed; left: 0; right: 0; background: transparent; }
.st-transparent-header .st-header:not(.scrolled) .st-menu > li > a,
.st-transparent-header .st-header:not(.scrolled) .st-logo,
.st-transparent-header .st-header:not(.scrolled) .st-logo-name,
.st-transparent-header .st-header:not(.scrolled) .st-logo-motto,
.st-transparent-header .st-header:not(.scrolled) .st-crest,
.st-transparent-header .st-header:not(.scrolled) .st-search-toggle,
.st-transparent-header .st-header:not(.scrolled) .st-burger { color: #fff; }
.st-transparent-header .st-header:not(.scrolled) .st-logo-img { filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.st-transparent-header .st-header:not(.scrolled) .st-menu > li:hover > a { color: rgba(255,255,255,.75); border-bottom-color: #fff; }
.st-transparent-header .st-header:not(.scrolled) .st-menu > li > a, .st-transparent-header .st-header:not(.scrolled) .st-logo { text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.st-transparent-header .st-header.scrolled { background: #fff; }

/* ================= HERO ================= */
.st-hero { position: relative; height: 100vh; min-height: 560px; max-height: 1000px; overflow: hidden; background: var(--green-dark); }
.st-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.st-slide.active { opacity: 1; z-index: 1; }
.st-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 35%, rgba(0,0,0,.05) 55%, rgba(0,0,0,.55) 100%); }
.st-slide-content { position: absolute; left: 0; right: 0; bottom: 90px; z-index: 2; text-align: center; color: #fff; padding: 0 30px; }
.st-slide-content h2 { color: #fff; font-size: clamp(32px, 4.6vw, 60px); font-weight: 700; text-shadow: 0 2px 16px rgba(0,0,0,.4); margin-bottom: 0; }
.st-slide-content p { font-family: var(--script); font-size: clamp(30px, 4vw, 54px); line-height: 1.2; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.st-hero-arrow { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 64px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .3s; padding: 10px 20px; }
.st-hero:hover .st-hero-arrow { opacity: .85; }
.st-hero-arrow.prev { left: 10px; } .st-hero-arrow.next { right: 10px; }
.st-hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.st-hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.st-hero-dots button.active { background: #fff; }

/* Stats bar */
.st-stats { background: linear-gradient(180deg, var(--green) 0%, #a3302c 100%); color: #fff; }
.st-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding-top: 20px; padding-bottom: 18px; }
.st-stat strong { display: block; font-family: var(--chalk); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; }
.st-stat strong::after { content: ''; display: block; width: 40px; height: 2px; background: var(--cream); margin: 8px auto 6px; }
.st-stat span { font-size: clamp(13px, 1.2vw, 16px); font-weight: 400; }

/* ================= HOMEPAGE SECTIONS ================= */
.st-section { padding: 64px 0; }
.st-title { text-align: center; font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; margin-bottom: 32px; }
.st-subtitle { text-align: center; margin: -26px 0 36px; font-size: 18px; }
.st-barhead { border-left: 6px solid var(--green); padding-left: 24px; font-size: clamp(26px, 2.8vw, 38px); font-weight: 500; margin-bottom: 22px; }

.st-welcome { display: grid; grid-template-columns: 1fr 2.2fr; gap: 70px; align-items: start; }
.st-welcome-events h2 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; }
.st-welcome-text p { font-size: 17px; }
.st-no-events { color: var(--green); font-size: 18px; display: flex; gap: 8px; align-items: flex-start; }
.st-no-events svg { flex-shrink: 0; margin-top: 6px; }
.st-events { margin-bottom: 24px; }
.st-event { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.st-event-date { flex-shrink: 0; width: 64px; text-align: center; background: var(--green); color: #fff; border-radius: 4px; padding: 6px 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.st-event-date span { display: block; font-family: var(--chalk); font-size: 28px; line-height: 1.05; }
.st-event h4 { margin: 0 0 2px; font-size: 17px; font-weight: 600; }
.st-event p { margin: 0; font-size: 14px; color: var(--muted); }

.st-join-sec { background: var(--light); }
.st-join { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.st-join-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.08); background: #fff; }
.st-join-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s; }
.st-join-card:hover img { transform: scale(1.06); }
.st-join-card span { display: block; padding: 18px 20px; font-weight: 700; font-size: 19px; color: var(--ink); line-height: 1.35; }
.st-join-card:hover span { color: var(--green); }

.st-news-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.st-news-list { grid-template-columns: repeat(3, 1fr); gap: 30px; }
.st-news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.st-news-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.1); transform: translateY(-4px); }
.st-news-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.st-news-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.st-news-body time { font-size: 13px; color: var(--green); font-weight: 600; }
.st-news-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.st-news-body h3 a { color: var(--ink); }
.st-news-body h3 a:hover { color: var(--green); }
.st-news-body p { font-size: 15px; flex: 1; }

.st-unis { background: var(--light); }
.st-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.st-marquee-track { display: flex; gap: 28px; width: max-content; animation: st-scroll 45s linear infinite; }
.st-marquee:hover .st-marquee-track { animation-play-state: paused; }
.st-logo-item { width: 210px; height: 110px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: 0 3px 12px rgba(0,0,0,.05); }
.st-logo-item img { max-height: 80px; width: auto; object-fit: contain; }
/* Graduates' schools carousel (Elementor Image Carousel) */
.st-grads-carousel .swiper-slide { height: auto; }
.st-grads-carousel figure.swiper-slide-inner { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 20px 12px 16px; box-sizing: border-box; }
.st-grads-carousel .swiper-slide-image { height: 110px !important; width: 100% !important; max-width: 100%; object-fit: contain; }
.st-grads-carousel .elementor-image-carousel-caption { padding: 0 4px; }
.st-grads-carousel .swiper-wrapper { padding-bottom: 4px; }
@media (max-width: 767px) { .st-grads-carousel .swiper-slide-image { height: 90px !important; } }
.st-logo-item span { font-family: var(--serif); color: var(--green); font-size: 16px; text-align: center; line-height: 1.35; }
@keyframes st-scroll { to { transform: translateX(calc(-50% - 14px)); } }

.st-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 30px; }
.st-video-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.st-video-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.st-video-card:hover img { transform: scale(1.04); }
.st-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 70px; height: 50px; border-radius: 14px; background: #e62117; display: grid; place-items: center; }

/* ================= INNER PAGES ================= */
.st-banner { position: relative; min-height: 380px; display: flex; align-items: flex-end; background-size: cover; background-position: center; color: #fff; }
.st-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(90,14,16,.85)); }
.st-banner-content { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 46px; }
.st-banner h1 { color: #fff; font-size: clamp(32px, 4.6vw, 56px); font-weight: 600; text-transform: uppercase; margin: 0; }
.st-banner p { margin: 6px 0 0; font-size: 18px; opacity: .9; }

.st-content { max-width: 1180px; }
.st-content > *:last-child { margin-bottom: 0; }
.st-content .st-sec { margin: 0 0 70px; }
.st-content h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; text-transform: uppercase; border-left: 6px solid var(--green); padding-left: 22px; margin-bottom: 26px; }
.st-content h3 { font-size: 21px; font-weight: 600; margin: 16px 0 8px; }
.st-content p { font-size: 17.5px; }
.st-content .wp-block-image img { border-radius: var(--radius); }
.st-content .wp-block-columns { gap: 36px; margin-bottom: 28px; }
.st-content .st-split { align-items: flex-start; gap: 56px; }
.st-content .st-framed img { box-shadow: 16px 16px 0 var(--green); width: 100%; }
.st-content .st-sign { font-weight: 600; color: var(--green); border-left: 4px solid var(--green); padding-left: 14px; }
.st-content .st-motto { border: 0; text-align: center; margin: 0 auto; max-width: 820px; padding: 10px 20px; }
.st-content .st-motto p { font-family: var(--script); font-size: clamp(40px, 5vw, 64px); line-height: 1.2; color: var(--green); }
.st-content .st-sec-quote h2 { border: 0; padding: 0; text-align: center; }
.st-content .st-checklist { list-style: none; padding: 0; columns: 2; column-gap: 40px; }
.st-content .st-checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; break-inside: avoid; }
.st-content .st-checklist li::before { content: '✓'; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; display: grid; place-items: center; }
.st-content .st-cards .wp-block-column, .st-content .st-team .wp-block-column { background: #fff; }
.st-content .st-cards .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.st-content .st-cards .wp-block-column { border: 1px solid var(--border); border-radius: var(--radius); padding: 0 0 18px; overflow: hidden; }
.st-content .st-cards .wp-block-column:empty { border: 0; }
.st-content .st-cards .wp-block-image { margin: 0; }
.st-content .st-cards .wp-block-image img { border-radius: 0; }
.st-content .st-cards h3, .st-content .st-cards p { padding: 0 20px; }
.st-content .st-cards p { font-size: 15.5px; margin-bottom: 0; }
.st-content .st-team .wp-block-column { text-align: center; }
.st-content .st-team .wp-block-image img { width: 190px; height: 190px; object-fit: cover; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.st-content .st-team .wp-block-image { display: flex; justify-content: center; margin-bottom: 6px; }
.st-content .st-team h3 { margin: 10px 0 2px; font-size: 19px; }
.st-content .st-role { color: var(--green); font-weight: 600; font-size: 15px; }
.st-content .st-steps .wp-block-column { background: var(--light); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 24px 26px; }
.st-content .st-step-num { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--chalk); font-size: 26px; margin-bottom: 4px; }
.st-content .st-steps h3 { margin-top: 6px; }
.st-content .st-steps p:last-child { margin: 0; font-size: 16px; }
.st-content .wp-block-details { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; padding: 0; background: #fff; }
.st-content .wp-block-details summary { cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 600; color: var(--ink); list-style: none; position: relative; font-size: 18px; }
.st-content .wp-block-details summary::-webkit-details-marker { display: none; }
.st-content .wp-block-details summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--green); }
.st-content .wp-block-details[open] summary::after { content: '–'; }
.st-content .wp-block-details p { padding: 0 22px 18px; margin: 0; }
.st-content .st-timeline { position: relative; }
.st-content .st-tl-item { position: relative; padding-left: 40px; border-left: 3px solid var(--green); margin: 0 !important; padding-bottom: 36px; }
.st-content .st-tl-item::before { content: ''; position: absolute; left: -11px; top: 8px; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 4px solid var(--green); }
.st-content .st-year { font-family: var(--chalk); font-size: 36px; color: var(--green); margin-bottom: 8px; line-height: 1.1; }
.st-content .st-tl-item .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.st-content .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--radius); aspect-ratio: 4 / 3; }
.st-content .st-note { font-size: 14px; color: var(--muted); font-style: italic; }
.st-content .st-cta { background: var(--green); color: #fff; padding: 46px 50px; border-radius: var(--radius); }
.st-content .st-cta h2 { color: #fff; border-color: #fff; }
.st-content .st-cta .wp-block-button__link { background: #fff; color: var(--green); border-color: #fff; }
.st-content .st-cta .wp-block-button__link:hover { background: transparent; color: #fff; }
.st-article-img { width: 100%; border-radius: var(--radius); margin-bottom: 30px; }

/* Contact */
.st-contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; margin-bottom: 50px; }
.st-contact h2 { border: 0 !important; padding: 0 !important; text-transform: none !important; }
.st-contact-info strong { color: var(--ink); }
.st-form { display: grid; gap: 14px; background: var(--light); padding: 34px; border-radius: var(--radius); align-content: start; }
.st-form input, .st-form textarea, .st-subscribe input { width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 3px; font: inherit; font-size: 16px; background: #fff; }
.st-form input:focus, .st-form textarea:focus { outline: 2px solid var(--green); }
.st-form .st-btn { justify-self: start; }
.st-sent { background: #fbeeee; color: var(--green-dark); padding: 12px 16px; border-radius: 4px; }
.st-map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); }

/* ================= FOOTER ================= */
.st-footer { color: rgba(255,255,255,.85); font-size: 16px; }
.st-footer a { color: rgba(255,255,255,.85); }
.st-footer a:hover { color: #fff; text-decoration: underline; }
.st-footer-top { background: var(--green); padding: 70px 0 50px; }
.st-footer-grid { display: grid; grid-template-columns: 1.5fr 1.3fr 1fr 1fr 1fr; gap: 40px; }
.st-footer h3 { color: var(--cream); font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.st-footer ul { list-style: none; margin: 0; padding: 0; }
.st-footer li { margin-bottom: 10px; }
.st-logo-footer, .st-logo-footer .st-logo-name, .st-logo-footer .st-crest { color: #fff !important; }
.st-logo-footer { margin-bottom: 22px; }
.st-logo-footer .st-logo-img { height: 80px; }
.st-f-item { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.st-f-item svg { flex-shrink: 0; margin-top: 3px; }
.st-subscribe { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.st-subscribe input { flex: 1; min-width: 180px; border: 0; }
.st-sub-msg { width: 100%; font-weight: 600; color: #fff; }
.st-social { display: flex; gap: 10px; }
.st-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; }
.st-social a:hover { background: #fff; color: var(--green); }
.st-contact .st-social a { background: var(--green); }
.st-footer-bottom { background: var(--green-dark); padding: 24px 0; text-align: center; font-size: 14px; }
.st-footer-bottom p { margin: 0; }
.st-partners img { max-height: 90px; width: auto; margin: 0 auto 16px; display: block; }
.st-partners-empty { display: block; border: 1px dashed rgba(255,255,255,.4); padding: 14px; margin-bottom: 16px; }
.st-pagination { margin-top: 40px; text-align: center; }
.st-pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid var(--border); border-radius: 4px; }
.st-pagination .current { background: var(--green); color: #fff; }

/* Chat button */
.st-chat { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 66px; height: 66px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .2s; }
.st-chat:hover { transform: scale(1.08); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1400px) {
	.st-menu a { font-size: 15.5px; }
	.st-menu > li > a { padding: 10px 11px; }
	.st-news-grid { grid-template-columns: repeat(3, 1fr); }
	.st-news-grid:not(.st-news-list) .st-news-card:nth-child(n+4) { display: none; }
}
@media (max-width: 1180px) {
	.st-burger { display: block; }
	.st-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; overflow-y: auto; transform: translateX(105%); visibility: hidden; transition: transform .3s, visibility .3s; box-shadow: -10px 0 30px rgba(0,0,0,.2); z-index: 200; padding: 80px 0 30px; margin: 0; }
	.st-nav.open { transform: none; visibility: visible; }
	.st-burger { position: relative; z-index: 210; }
	.st-burger.open { color: var(--green) !important; }
	.st-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.st-burger.open span:nth-child(2) { opacity: 0; }
	.st-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
	.st-header-tools { margin-left: auto; }
	.st-menu { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
	.st-menu > li > a, .st-transparent-header .st-header:not(.scrolled) .st-nav .st-menu > li > a { padding: 13px 26px; color: var(--ink); border-bottom: 1px solid var(--border); text-shadow: none; }
	.st-menu .sub-menu, .st-menu .sub-menu .sub-menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; border-radius: 0; display: none; padding: 0; background: var(--light); }
	.st-menu li.open > .sub-menu { display: block; }
	.st-menu .sub-menu a { padding: 10px 26px 10px 42px; font-size: 15px; }
	.st-menu .sub-menu .sub-menu a { padding-left: 60px; }
	.st-menu .menu-item-has-children > a::after, .st-menu .sub-menu .menu-item-has-children > a::after { position: static; float: right; transform: rotate(45deg); margin-top: 8px; }
	.st-footer-grid { grid-template-columns: 1fr 1fr; }
	.st-join { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.st-welcome, .st-contact { grid-template-columns: 1fr; gap: 40px; }
	.st-stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
	.st-news-grid, .st-news-list, .st-video-grid { grid-template-columns: 1fr 1fr; }
	.st-news-grid:not(.st-news-list) .st-news-card:nth-child(n+4) { display: flex; }
	.st-section { padding: 56px 0; }
	.st-content .st-checklist { columns: 1; }
	.st-content .st-framed img { box-shadow: 10px 10px 0 var(--green); }
	.st-banner { min-height: 260px; }
	.st-logo-motto { display: none; }
	.st-container, .st-header-inner { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 560px) {
	.st-header-inner { padding: 8px 16px; gap: 12px; }
	.st-logo-img { height: 46px; }
	.st-logo-row { gap: 9px; }
	.st-search-toggle svg { width: 21px; height: 21px; }
	.st-burger span { width: 23px; }
	.st-news-grid, .st-news-list, .st-video-grid, .st-footer-grid { grid-template-columns: 1fr; }
	.st-join { gap: 14px; }
	.st-join-card span { font-size: 15px; padding: 12px; }
	.st-logo-name { font-size: 14px; }
	.st-crest { width: 44px; height: 52px; }
	.st-hero { height: 80vh; }
	.st-content .st-cta { padding: 30px 24px; }
}

/* ===== Elementor editor: header sits above the content (not over it) so every section,
   including the homepage hero, can be hovered and selected. Visitors are not affected. ===== */
.elementor-editor-active .st-header,
.elementor-editor-active.st-transparent-header .st-header { position: relative !important; top: 0 !important; z-index: 5 !important; background: #fff !important; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.elementor-editor-active.st-transparent-header .st-header .st-menu > li > a,
.elementor-editor-active.st-transparent-header .st-header .st-logo,
.elementor-editor-active.st-transparent-header .st-header .st-logo-name,
.elementor-editor-active.st-transparent-header .st-header .st-logo-motto,
.elementor-editor-active.st-transparent-header .st-header .st-crest,
.elementor-editor-active.st-transparent-header .st-header .st-search-toggle,
.elementor-editor-active.st-transparent-header .st-header .st-burger { color: var(--ink) !important; text-shadow: none !important; }
.elementor-editor-active.st-transparent-header .st-header .st-logo-name,
.elementor-editor-active.st-transparent-header .st-header .st-logo-motto,
.elementor-editor-active.st-transparent-header .st-header .st-search-toggle { color: var(--green) !important; }
.elementor-editor-active .st-header .st-logo-img { filter: none !important; }

/* Online admission form (Google Form embed) */
.st-form-embed { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.st-form-embed iframe { display: block; width: 100%; min-height: 900px; }
#apply-online { scroll-margin-top: 110px; }

/* Website inbox forms */
.st-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.st-sent-error { background: #fdecea !important; color: #8a1c14 !important; }
.st-sub-err { color: #ffd7d4; margin: 8px 0 0; }
