/*
Theme Name: Botev School Gorna Malina Theme
Theme URI: https://svet.dev/
Author: Svetoslav Popetsov
Author URI: https://svet.dev
Description: A modern WordPress theme designed for schools, with a warm colour system, self-hosted Overpass typography and motion that respects reduced-motion preferences.
Version: 3.0.0
Requires at least: 6.4
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: botevgm
Tags: education, school, modern, custom-menu, responsive, colorful, accessibility-ready
*/

/* ===========================
   Typography — Overpass (self-hosted, variable 300-900)
   No third-party font request: nothing about the visitor leaves the server.
   =========================== */
@font-face {
    font-family: 'Overpass';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('assets/fonts/overpass-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Overpass';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('assets/fonts/overpass-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Overpass';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('assets/fonts/overpass-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Overpass';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('assets/fonts/overpass-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Overpass';
    font-style: italic;
    font-weight: 300 900;
    font-display: swap;
    src: url('assets/fonts/overpass-italic-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Overpass';
    font-style: italic;
    font-weight: 300 900;
    font-display: swap;
    src: url('assets/fonts/overpass-italic-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Overpass';
    font-style: italic;
    font-weight: 300 900;
    font-display: swap;
    src: url('assets/fonts/overpass-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Overpass';
    font-style: italic;
    font-weight: 300 900;
    font-display: swap;
    src: url('assets/fonts/overpass-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===========================
   Design Tokens
   =========================== */
:root {
    /* Brand */
    --primary-orange: #FF6B35;
    --primary-yellow: #FDB833;
    --primary-green: #4A7C59;
    --teal-dark: #456B5E;

    /* Accessible text variants of the brand colours.
       #FF6B35 on white is only ~3:1, so links and small text use the deeper
       tone and keep the bright orange for fills and large display type. */
    --orange-ink: #C8410F;
    --orange-deep: #E14E18;
    --yellow-ink: #8A5A00;

    /* Neutrals */
    --white: #ffffff;
    --light-gray: #F4F6F4;
    --surface-sunken: #EEF1EE;
    --text-dark: #1F2421;
    --text-gray: #5C6660;
    --border-color: #E4E7E4;

    /* Legacy aliases kept so older custom CSS keeps resolving */
    --secondary-color: var(--primary-green);
    --light-bg: var(--light-gray);

    /* Fluid type scale */
    --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
    --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    --step-1: clamp(1.125rem, 1.08rem + 0.22vw, 1.25rem);
    --step-2: clamp(1.3125rem, 1.24rem + 0.37vw, 1.5rem);
    --step-3: clamp(1.5rem, 1.37rem + 0.65vw, 1.875rem);
    --step-4: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
    --step-5: clamp(2rem, 1.6rem + 2vw, 3.25rem);

    /* Spacing */
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-s: 1rem;
    --space-m: 1.5rem;
    --space-l: 2.5rem;
    --space-xl: clamp(2.5rem, 1.8rem + 3vw, 4rem);
    --space-2xl: clamp(3.5rem, 2.5rem + 4vw, 6rem);

    /* Radii */
    --radius-xs: 6px;
    --radius-s: 10px;
    --radius-m: 14px;
    --radius-l: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    /* Elevation — layered, low-opacity shadows read as light, not smoke */
    --shadow-xs: 0 1px 2px rgba(31, 36, 33, .05);
    --shadow-s: 0 1px 2px rgba(31, 36, 33, .04), 0 4px 12px rgba(31, 36, 33, .05);
    --shadow-m: 0 2px 4px rgba(31, 36, 33, .04), 0 10px 28px rgba(31, 36, 33, .07);
    --shadow-l: 0 4px 8px rgba(31, 36, 33, .05), 0 18px 44px rgba(31, 36, 33, .11);
    --shadow-ring: 0 0 0 1px rgba(31, 36, 33, .05);

    /* Motion */
    --ease-out: cubic-bezier(.22, .8, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.4, .5, 1);
    --dur-fast: 140ms;
    --dur: 240ms;
    --dur-slow: 420ms;
    --dur-reveal: 700ms;

    /* Chrome */
    --header-height: 84px;
    --focus-ring: 3px solid var(--orange-deep);

    color-scheme: light;
}

/* ===========================
   Reset & Base
   =========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
    font-family: 'Overpass', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Arial, sans-serif;
    font-size: var(--step-0);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--light-gray);
    position: relative;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Soft ambient wash. Three wide, low-opacity colour pools over an almost-white
   ground read as daylight rather than the flat rainbow overlay it replaces —
   and it keeps body text at full contrast. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60rem 40rem at 8% -8%, rgba(253, 184, 51, .30), transparent 60%),
        radial-gradient(52rem 38rem at 100% 6%, rgba(255, 107, 53, .22), transparent 62%),
        radial-gradient(64rem 48rem at 50% 108%, rgba(74, 124, 89, .20), transparent 65%),
        linear-gradient(180deg, #FBFCFB 0%, #F2F5F2 100%);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.18;
    letter-spacing: -0.015em;
    text-wrap: balance;
    font-weight: 700;
}

p, li {
    text-wrap: pretty;
}

a {
    color: var(--orange-ink);
    text-decoration: none;
    transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

a:hover {
    color: var(--orange-deep);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

svg.icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

/* Visible only for keyboard users — never a focus ring on a mouse click */
:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 3px;
    border-radius: var(--radius-xs);
}

::selection {
    background-color: rgba(255, 107, 53, .22);
    color: var(--text-dark);
}

/* ===========================
   Motion Primitives
   =========================== */

/* Scroll-reveal. Elements start hidden only once JS has confirmed it can
   reveal them (html.js-reveal), so a failed script never leaves the page blank. */
.js-reveal [data-reveal] {
    opacity: 0;
    transition:
        opacity var(--dur-reveal) var(--ease-out),
        transform var(--dur-reveal) var(--ease-out),
        filter var(--dur-reveal) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.js-reveal [data-reveal="up"] { transform: translate3d(0, 28px, 0); }
.js-reveal [data-reveal="fade"] { transform: none; }
.js-reveal [data-reveal="left"] { transform: translate3d(-32px, 0, 0); }
.js-reveal [data-reveal="right"] { transform: translate3d(32px, 0, 0); }
.js-reveal [data-reveal="zoom"] { transform: scale(.94); }

.js-reveal [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    will-change: auto;
}

@keyframes botevgm-fade-up {
    from { opacity: 0; transform: translate3d(0, 20px, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes botevgm-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.14); }
    100% { transform: scale(1); }
}

@keyframes botevgm-sheen {
    from { transform: translateX(-120%) skewX(-18deg); }
    to { transform: translateX(320%) skewX(-18deg); }
}

@keyframes botevgm-ken-burns {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

/* ===========================
   Skip Link
   =========================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-s);
    z-index: 5000;
    padding: 0.75rem 1.25rem;
    background-color: var(--text-dark);
    color: var(--white);
    font-weight: 700;
    border-radius: 0 0 var(--radius-s) var(--radius-s);
    transition: top var(--dur) var(--ease-out);
}

.skip-link:focus {
    top: 0;
    color: var(--white);
}

/* ===========================
   Scroll Progress Bar
   =========================== */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 2500;
    pointer-events: none;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-yellow), var(--primary-green));
    transform: scaleX(0);
    transform-origin: 0 50%;
    opacity: 0;
    transition: opacity var(--dur) var(--ease-out);
}

body.scrolled .scroll-progress {
    opacity: 1;
}

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
    background-color: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(1.8) blur(14px);
    backdrop-filter: saturate(1.8) blur(14px);
    padding: 14px 0;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 2000;
    transition:
        padding var(--dur) var(--ease-out),
        box-shadow var(--dur) var(--ease-out),
        border-color var(--dur) var(--ease-out),
        background-color var(--dur) var(--ease-out);
}

/* Condenses once the page moves, so more of the content stays in view */
body.scrolled .site-header {
    padding: 8px 0;
    background-color: rgba(255, 255, 255, .93);
    border-bottom-color: var(--border-color);
    box-shadow: var(--shadow-s);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header { background-color: var(--white); }
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
    max-width: 600px;
    min-width: 0;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo img {
    max-height: 68px;
    min-height: 48px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    transition: max-height var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring);
}

body.scrolled .site-logo img {
    max-height: 52px;
}

.site-logo a {
    display: block;
    line-height: 0;
}

.site-logo a:hover img {
    transform: scale(1.05) rotate(-2deg);
}

.site-identity {
    flex: 1;
    min-width: 0;
    max-width: 500px;
}

.site-title {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-title a {
    color: var(--text-dark);
}

.site-title a:hover {
    color: var(--orange-ink);
}

.site-description {
    font-size: 0.6875rem;
    color: var(--text-gray);
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Main Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.mobile-navigation {
    display: none;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-navigation li {
    position: relative;
}

.main-navigation > ul > li > a {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-s);
    white-space: nowrap;
    position: relative;
    transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.main-navigation a {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: var(--radius-s);
    transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

/* Underline sweeps out from the centre on hover */
.main-navigation > ul > li > a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-yellow));
    transform: scaleX(0);
    transform-origin: 50% 50%;
    transition: transform var(--dur) var(--ease-out);
}

.main-navigation > ul > li > a:hover::after,
.main-navigation > ul > li > a:focus-visible::after,
.main-navigation > ul > li.current-menu-item > a::after,
.main-navigation > ul > li.current_page_item > a::after,
.main-navigation > ul > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}

.main-navigation > ul > li > a:hover,
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current_page_item > a,
.main-navigation > ul > li.current-menu-ancestor > a {
    background-color: rgba(255, 107, 53, .10);
    color: var(--orange-ink);
}

/* Submenu Styles */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-l), var(--shadow-ring);
    min-width: 230px;
    max-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: 20% 0;
    transition:
        opacity var(--dur) var(--ease-out),
        transform var(--dur) var(--ease-out),
        visibility 0s linear var(--dur);
    border-radius: var(--radius-m);
    padding: 8px;
    z-index: 100;
    display: block;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul,
.main-navigation li.is-open > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.9375rem;
    white-space: normal;
}

.main-navigation ul ul a:hover,
.main-navigation ul ul a:focus-visible {
    background-color: var(--light-gray);
    color: var(--orange-ink);
    transform: translateX(3px);
}

.main-navigation ul ul a {
    transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

/* ===========================
   Header Weather Widget
   =========================== */
.site-weather {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 7px 15px 7px 11px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, rgba(255, 107, 53, .09), rgba(253, 184, 51, .15));
    border: 1px solid rgba(255, 107, 53, .16);
    white-space: nowrap;
    animation: botevgm-fade-up var(--dur-slow) var(--ease-out) both;
    transition: padding var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

body.scrolled .site-weather {
    padding-top: 5px;
    padding-bottom: 5px;
}

.site-weather-icon {
    display: grid;
    place-items: center;
    color: var(--orange-ink);
}

.site-weather-icon .icon {
    width: 26px;
    height: 26px;
}

/* Quiet idle motion — the sun turns, everything else drifts like cloud cover */
.site-weather .icon-sun {
    animation: botevgm-spin 40s linear infinite;
    transform-origin: 50% 50%;
}

.site-weather .icon-moon,
.site-weather .icon-cloud,
.site-weather .icon-cloud-sun,
.site-weather .icon-cloud-moon,
.site-weather .icon-cloud-rain,
.site-weather .icon-cloud-drizzle,
.site-weather .icon-cloud-snow,
.site-weather .icon-cloud-bolt,
.site-weather .icon-fog {
    animation: botevgm-drift 7s var(--ease-out) infinite;
}

@keyframes botevgm-spin {
    to { transform: rotate(360deg); }
}

@keyframes botevgm-drift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(2.5px); }
}

.site-weather-body {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.site-weather-temp {
    font-weight: 800;
    font-size: 1.0625rem;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    font-variant-numeric: tabular-nums;
}

.site-weather-unit {
    font-weight: 600;
    font-size: 0.72em;
}

.site-weather-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-gray);
}

/* ===========================
   Layout Structure
   =========================== */
.site-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 30px;
    gap: 22px;
}

.site-main {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 22px 0;
}

/* Content Wrapper — floating card */
.site-content {
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-m), var(--shadow-ring);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ===========================
   Left Sidebar
   =========================== */
.left-sidebar {
    width: 280px;
    margin: 22px 0;
    flex-shrink: 0;
    transition: transform var(--dur-slow) var(--ease-out);
    position: relative;
    z-index: 100;
}

.left-sidebar-inner {
    background-color: var(--white);
    padding: 24px 18px;
    position: sticky;
    top: calc(var(--header-height) + 16px);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-m), var(--shadow-ring);
}

.sidebar-menu-title {
    display: none;
}

.secondary-navigation {
    margin-bottom: var(--space-m);
}

.secondary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.secondary-menu li {
    margin-bottom: 2px;
    position: relative;
}

.secondary-menu > li > a {
    display: block;
    padding: 11px 14px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius-s);
    position: relative;
    overflow: hidden;
    transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), padding-left var(--dur) var(--ease-out);
}

/* Accent bar grows in from the top rather than snapping on */
.secondary-menu > li > a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--primary-orange), var(--primary-yellow));
    transform: translateY(-50%);
    transition: height var(--dur) var(--ease-out);
}

.secondary-menu a {
    display: block;
    color: var(--text-dark);
    transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), padding-left var(--dur) var(--ease-out);
}

.secondary-menu > li > a:hover,
.secondary-menu > li > a:focus-visible,
.secondary-menu .current-menu-item > a,
.secondary-menu .current_page_item > a,
.secondary-menu .current-menu-ancestor > a {
    background-color: var(--light-gray);
    color: var(--orange-ink);
    padding-left: 20px;
}

.secondary-menu > li > a:hover::before,
.secondary-menu > li > a:focus-visible::before,
.secondary-menu .current-menu-item > a::before,
.secondary-menu .current_page_item > a::before,
.secondary-menu .current-menu-ancestor > a::before {
    height: 60%;
}

.secondary-menu li:hover > a {
    background-color: var(--light-gray);
}

/* Submenu in sidebar — dropdown to the right */
.secondary-menu ul {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 220px;
    background-color: var(--white);
    box-shadow: var(--shadow-l), var(--shadow-ring);
    border-radius: var(--radius-m);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px) scale(.98);
    transform-origin: 0 20%;
    transition:
        opacity var(--dur) var(--ease-out),
        transform var(--dur) var(--ease-out),
        visibility 0s linear var(--dur);
    z-index: 100;
}

.secondary-menu li:hover > ul,
.secondary-menu li:focus-within > ul,
.secondary-menu li.is-open > ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    transition-delay: 0s;
}

.secondary-menu ul li {
    margin: 0;
}

.secondary-menu ul a {
    padding: 10px 14px;
    font-size: 0.9375rem;
    font-weight: 400;
    border-radius: var(--radius-xs);
}

.secondary-menu ul a:hover,
.secondary-menu ul a:focus-visible {
    padding-left: 20px;
    background-color: var(--light-gray);
    color: var(--orange-ink);
}

/* Submenu indicator */
.secondary-menu .menu-item-has-children > a::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: .55;
    transform: translateY(-50%) rotate(-45deg);
    transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

.secondary-menu .menu-item-has-children:hover > a::after,
.secondary-menu .menu-item-has-children:focus-within > a::after {
    transform: translateY(-50%) rotate(-45deg) translate(3px, -3px);
    opacity: 1;
}

/* Sidebar Widgets */
.sidebar-widgets {
    margin-top: var(--space-m);
    padding-top: var(--space-m);
    border-top: 1px solid var(--border-color);
}

.sidebar-widgets .widget {
    background-color: transparent;
    padding: 0 0 18px;
    margin-bottom: 18px;
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widgets .widget:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.sidebar-widgets .widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light-gray);
}

.sidebar-widgets ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-widgets li {
    padding: 7px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widgets li:last-child {
    border-bottom: none;
}

.sidebar-widgets a {
    color: var(--text-gray);
    font-size: 0.9375rem;
}

.sidebar-widgets a:hover {
    color: var(--orange-ink);
}

.sidebar-note {
    margin-top: 14px;
    padding: 12px;
    background-color: var(--light-gray);
    border-radius: var(--radius-s);
    border-left: 3px solid var(--primary-yellow);
}

.sidebar-note small {
    color: var(--text-gray);
    font-size: 0.75rem;
    line-height: 1.5;
}

/* Sidebar Toggle for Mobile */
.left-sidebar-toggle {
    display: none;
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1500;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    cursor: pointer;
    box-shadow: var(--shadow-l);
    transition: transform var(--dur) var(--ease-spring), background-color var(--dur) var(--ease-out);
}

.left-sidebar-toggle:hover {
    background-color: var(--orange-deep);
    transform: scale(1.08);
}

.left-sidebar-toggle:active {
    transform: scale(.96);
}

/* ===========================
   Front Page Banner
   =========================== */
.hero-image-wrapper {
    padding: 22px 30px 0;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-full-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    display: block;
    box-shadow: var(--shadow-m), var(--shadow-ring);
    animation: botevgm-ken-burns 1.6s var(--ease-out) both;
}

.hero-banner-frame {
    overflow: hidden;
    border-radius: var(--radius-xl);
}

/* ===========================
   Hero Section (other templates)
   =========================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-orange) 100%);
    padding: var(--space-2xl) 30px;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.hero-with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, .85) 0%, rgba(236, 78, 110, .85) 100%);
    z-index: 1;
}

.hero-with-image .hero-container,
.hero-with-image .hero-pattern {
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-size: var(--step-2);
    font-weight: 600;
    margin-bottom: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.hero-subtitle {
    font-size: var(--step-1);
    margin-bottom: var(--space-l);
    font-weight: 400;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: .15;
    z-index: 1;
}

.hero-pattern::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, .3) 10px,
        rgba(255, 255, 255, .3) 20px
    );
    transform: rotate(-15deg);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: var(--step-5);
    font-weight: 800;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .12);
}

.hero-content h1 span {
    display: block;
    font-size: 1.3em;
    color: var(--primary-green);
}

.hero-content p {
    font-size: var(--step-1);
    color: var(--white);
    margin-bottom: 14px;
    font-weight: 500;
}

.hero-cta {
    display: inline-block;
    padding: 16px 38px;
    background-color: var(--primary-green);
    color: var(--white);
    font-weight: 700;
    border-radius: var(--radius-pill);
    font-size: var(--step-1);
    margin-top: 18px;
    box-shadow: var(--shadow-l);
    transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(31, 36, 33, .25);
    background-color: var(--teal-dark);
    color: var(--white);
}

.hero-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    position: relative;
}

.hero-image {
    border-radius: var(--radius-l);
    overflow: hidden;
    box-shadow: var(--shadow-l);
    transition: transform var(--dur-slow) var(--ease-out);
}

.hero-image:hover {
    transform: scale(1.04) rotate(-1deg);
}

.hero-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.hero-image:nth-child(1) { grid-column: 1 / 2; margin-top: 40px; }
.hero-image:nth-child(2) { grid-column: 2 / 3; }
.hero-image:nth-child(3) { grid-column: 1 / 3; margin-top: -20px; }

/* ===========================
   Content Sections
   =========================== */
.content-section {
    padding: var(--space-xl) clamp(1.25rem, 0.6rem + 2.4vw, 3.125rem);
}

.section-white { background-color: var(--white); }
.section-gray { background-color: var(--light-gray); }

.section-green {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--teal-dark) 100%);
    color: var(--white);
}

.section-teal {
    background-color: var(--teal-dark);
    color: var(--white);
}

.section-alt {
    background:
        linear-gradient(135deg, rgba(255, 107, 53, .06) 0%, rgba(253, 184, 51, .06) 100%),
        var(--white);
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-m);
    margin-bottom: var(--space-l);
}

.section-title {
    font-size: var(--step-4);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 72px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-yellow));
    border-radius: 2px;
    transform-origin: 0 50%;
    transform: scaleX(1);
    transition: transform var(--dur-slow) var(--ease-out) 180ms;
}

/* Drawn in only where a reveal is actually pending, so a heading outside the
   reveal system keeps its rule instead of losing it to a permanent scaleX(0). */
.js-reveal [data-reveal]:not(.is-revealed) .section-title::after,
.js-reveal [data-reveal]:not(.is-revealed).section-title::after {
    transform: scaleX(0);
}

.view-all-link {
    color: var(--orange-ink);
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.view-all-link:hover {
    color: var(--primary-green);
    gap: 12px;
}

/* ===========================
   Post / Page Styles
   =========================== */
.single .post,
.page-template-default .page {
    background-color: transparent;
    padding: 0;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.single .site-content > .post,
.page-template-default .site-content > .page {
    padding: var(--space-xl) clamp(1.25rem, 0.6rem + 2.4vw, 3.125rem);
}

.fullwidth-template .site-content {
    padding: 0;
    max-width: 90%;
}

.featured-image-full {
    width: 100%;
    height: clamp(220px, 32vw, 400px);
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.featured-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-header {
    margin-bottom: var(--space-l);
}

.entry-title {
    font-size: var(--step-4);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 14px;
    line-height: 1.15;
}

.welcome-content .entry-title {
    text-align: center;
}

.entry-title a {
    color: var(--text-dark);
}

.entry-title a:hover {
    color: var(--orange-ink);
}

.page-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.page-header .entry-title {
    font-size: var(--step-5);
    position: relative;
    display: inline-block;
}

.page-header .entry-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-yellow));
    border-radius: 2px;
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.entry-meta .entry-date {
    color: var(--text-gray);
    font-weight: 500;
}

.entry-meta a { color: var(--text-gray); }
.entry-meta a:hover { color: var(--orange-ink); }

.entry-meta span {
    margin-right: 14px;
    display: inline-block;
}

.entry-meta span::before {
    content: "•";
    margin-right: 8px;
    color: var(--primary-orange);
}

.entry-meta span:first-child::before {
    content: "";
    margin-right: 0;
}

.entry-content {
    font-size: var(--step-1);
    line-height: 1.75;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--text-dark);
    margin-top: var(--space-l);
    margin-bottom: var(--space-s);
    font-weight: 700;
}

.entry-content h2 {
    font-size: var(--step-3);
    color: var(--primary-green);
}

.entry-content h3 {
    font-size: var(--step-2);
    color: var(--orange-ink);
}

.entry-content p { margin-bottom: var(--space-s); }

.entry-content ul,
.entry-content ol {
    margin-bottom: var(--space-s);
    padding-left: 28px;
}

.entry-content li { margin-bottom: 6px; }

.entry-content a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(200, 65, 15, .4);
    transition: text-decoration-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.entry-content a:hover {
    text-decoration-color: currentColor;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-yellow);
    padding: var(--space-s) var(--space-m);
    margin: var(--space-l) 0;
    background-color: var(--light-gray);
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
    font-style: italic;
}

.entry-footer {
    margin-top: var(--space-l);
    padding-top: var(--space-m);
    border-top: 1px solid var(--border-color);
    font-size: 0.9375rem;
    color: var(--text-gray);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-m);
}

.entry-footer .cat-links a,
.entry-footer .tags-links a {
    color: var(--orange-ink);
    font-weight: 500;
    padding: 4px 12px;
    background-color: rgba(255, 107, 53, .10);
    border-radius: var(--radius-pill);
    display: inline-block;
    margin: 0 4px;
    transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring);
}

.entry-footer .cat-links a:hover,
.entry-footer .tags-links a:hover {
    background-color: var(--primary-orange);
    color: var(--white);
    transform: translateY(-2px);
}

.post-thumbnail {
    margin-bottom: var(--space-l);
    overflow: hidden;
    border-radius: var(--radius-m);
}

.post-thumbnail img {
    width: 100%;
    border-radius: var(--radius-m);
}

/* ===========================
   Pagination
   =========================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: var(--space-xl) 0 0;
}

.pagination .page-numbers {
    padding: 10px 16px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-s);
    color: var(--text-dark);
    font-weight: 600;
    transition: transform var(--dur) var(--ease-spring), background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.pagination .page-numbers:hover {
    background-color: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background-color: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

/* ===========================
   Post Navigation
   =========================== */
.post-navigation {
    margin: var(--space-xl) 0;
    padding: var(--space-l) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: var(--space-l);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    max-width: 48%;
}

.post-navigation a {
    display: block;
    padding: 18px 22px;
    background-color: var(--light-gray);
    border-radius: var(--radius-m);
    border: 1px solid transparent;
    color: var(--text-dark);
    transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.post-navigation a:hover {
    background-color: var(--white);
    border-color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: var(--shadow-m);
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--orange-ink);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.post-navigation .nav-title {
    display: block;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
}

.post-navigation .nav-previous { text-align: left; }
.post-navigation .nav-next { text-align: right; }

/* ===========================
   Posts Grid & Cards
   =========================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-l);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: var(--space-l);
}

.card {
    background-color: var(--white);
    border-radius: var(--radius-l);
    overflow: hidden;
    box-shadow: var(--shadow-s), var(--shadow-ring);
    transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover,
.card:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--shadow-l);
}

.card-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
    background-color: var(--light-gray);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}

.card:hover .card-image img,
.card:focus-within .card-image img {
    transform: scale(1.07);
}

.card-content {
    padding: 24px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content .entry-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    font-size: var(--step-0);
}

.card-content .entry-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

.card-title {
    font-size: var(--step-2);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.25;
}

.card-title a { color: inherit; }
.card-title a:hover { color: var(--orange-ink); }

.card-text {
    color: var(--text-gray);
    line-height: 1.65;
    margin-bottom: var(--space-s);
}

/* ===========================
   Buttons
   =========================== */
.btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
    display: inline-block;
    position: relative;
    overflow: hidden;
    padding: 13px 32px;
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.4;
    box-shadow: 0 4px 14px rgba(255, 107, 53, .3);
    transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

/* Light sweeps across the button on hover */
.btn::after,
.wp-block-button__link::after,
button[type="submit"]::after,
input[type="submit"]::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: translateX(-120%) skewX(-18deg);
    pointer-events: none;
}

.btn:hover::after,
.wp-block-button__link:hover::after,
button[type="submit"]:hover::after {
    animation: botevgm-sheen 720ms var(--ease-out);
}

.btn:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: var(--orange-deep);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 107, 53, .38);
}

.btn:active,
button[type="submit"]:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--primary-green);
    box-shadow: 0 4px 14px rgba(74, 124, 89, .3);
}

.btn-secondary:hover {
    background-color: var(--teal-dark);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(74, 124, 89, .38);
}

.btn-large {
    padding: 17px 46px;
    font-size: var(--step-1);
}

/* ===========================
   Forms
   =========================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-s);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--white);
    transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, .16);
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 520px;
}

.search-form label {
    flex: 1;
    min-width: 200px;
}

/* ===========================
   Mobile Menu Toggle (animated hamburger)
   =========================== */
.mobile-menu-toggle {
    display: none;
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-m);
    cursor: pointer;
    position: relative;
    z-index: 2001;
    flex-shrink: 0;
    transition: background-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring);
}

.mobile-menu-toggle:hover {
    background-color: var(--orange-deep);
}

.mobile-menu-toggle:active {
    transform: scale(.94);
}

.hamburger {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
    transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-out), top var(--dur) var(--ease-out);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 6px; }
.hamburger span:nth-child(3) { top: 12px; }

/* Bars fold into an X */
[aria-expanded="true"] .hamburger span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(.2);
}

[aria-expanded="true"] .hamburger span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-navigation.active::before {
    content: "";
    position: fixed;
    inset: 0 280px 0 0;
    background-color: rgba(31, 36, 33, .5);
    z-index: -1;
    animation: botevgm-fade-up var(--dur) var(--ease-out);
}

/* ===========================
   Back to Top
   =========================== */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1500;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary-green);
    box-shadow: var(--shadow-m), var(--shadow-ring);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.9);
    transition:
        opacity var(--dur) var(--ease-out),
        transform var(--dur) var(--ease-spring),
        visibility 0s linear var(--dur),
        background-color var(--dur) var(--ease-out),
        color var(--dur) var(--ease-out);
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.to-top:hover {
    background-color: var(--primary-green);
    color: var(--white);
    transform: translateY(-3px);
}

.to-top .icon {
    width: 22px;
    height: 22px;
}

/* ===========================
   Features Section
   =========================== */
.features-section {
    text-align: center;
}

.features-section .section-header {
    justify-content: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-l);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    padding: var(--space-l) var(--space-m);
    border-radius: var(--radius-l);
    transition: transform var(--dur-slow) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.feature-item:hover {
    transform: translateY(-8px);
    background-color: var(--white);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-s);
    display: inline-block;
    transition: transform var(--dur-slow) var(--ease-spring);
}

.feature-item:hover .feature-icon {
    transform: scale(1.14) rotate(-6deg);
}

.feature-title {
    font-size: var(--step-2);
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 12px;
}

.feature-text {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===========================
   Advantages Section
   =========================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-m);
    margin-top: var(--space-l);
}

.advantage-item {
    text-align: center;
    padding: var(--space-l) var(--space-m);
    background-color: var(--light-gray);
    border-radius: var(--radius-l);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

/* Warm wash fades up from the bottom on hover */
.advantage-item::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255, 107, 53, .07));
    opacity: 0;
    transition: opacity var(--dur-slow) var(--ease-out);
    pointer-events: none;
}

.advantage-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-l);
    border-color: rgba(255, 107, 53, .35);
    background-color: var(--white);
}

.advantage-item:hover::before {
    opacity: 1;
}

.advantage-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto var(--space-s);
    display: grid;
    place-items: center;
    border-radius: var(--radius-m);
    color: var(--orange-ink);
    background: linear-gradient(135deg, rgba(255, 107, 53, .14), rgba(253, 184, 51, .18));
    transition: transform var(--dur-slow) var(--ease-spring), color var(--dur) var(--ease-out);
    position: relative;
}

.advantage-icon .icon {
    width: 30px;
    height: 30px;
}

.advantage-item:hover .advantage-icon {
    transform: translateY(-3px) rotate(-5deg);
}

.advantage-item.is-revealed .advantage-icon {
    animation: botevgm-pop 620ms var(--ease-spring) 260ms both;
}

.advantage-title {
    font-size: var(--step-1);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    position: relative;
}

.advantage-description {
    font-size: var(--step-0);
    color: var(--text-gray);
    line-height: 1.6;
    position: relative;
}

/* ===========================
   Educational Programs
   =========================== */
.programs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: var(--space-s);
    margin-top: var(--space-l);
}

.program-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background-color: var(--white);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-s);
    position: relative;
    overflow: hidden;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

/* Left rule wipes in instead of just changing colour */
.program-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-orange), var(--primary-yellow));
    transform: scaleY(1);
    transform-origin: 50% 0;
    transition: background var(--dur) var(--ease-out);
}

.program-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-m);
}

.program-item:hover::before {
    background: linear-gradient(180deg, var(--primary-green), var(--teal-dark));
}

.program-item .icon,
.program-item i {
    width: 26px;
    height: 26px;
    font-size: 1.5rem;
    color: var(--orange-ink);
    flex-shrink: 0;
    transition: transform var(--dur) var(--ease-spring), color var(--dur) var(--ease-out);
}

.program-item:hover .icon,
.program-item:hover i {
    transform: scale(1.15);
    color: var(--primary-green);
}

.program-item span {
    font-size: var(--step-0);
    font-weight: 500;
    color: var(--text-dark);
}

/* ===========================
   Statistics Section
   =========================== */
.section-stats {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--teal-dark) 100%);
    position: relative;
    overflow: hidden;
}

.section-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(40rem 20rem at 80% 0%, rgba(253, 184, 51, .18), transparent 70%);
    pointer-events: none;
}

/* Centred flex rather than a fixed column count: the row stays balanced
   whatever number of stats the front page happens to list. */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-l) var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.stat-item {
    flex: 0 1 220px;
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: var(--step-5);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--primary-yellow);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: var(--step-0);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, .9);
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    text-align: center;
    padding: var(--space-2xl) 30px;
}

.section-cta {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-yellow) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(36rem 18rem at 20% 110%, rgba(255, 255, 255, .28), transparent 70%);
    pointer-events: none;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.cta-title {
    font-size: var(--step-4);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-m);
    text-shadow: 0 1px 2px rgba(31, 36, 33, .12);
}

.cta-text {
    font-size: var(--step-1);
    color: var(--white);
    line-height: 1.75;
    margin-bottom: var(--space-s);
}

.cta-tagline {
    font-size: var(--step-1);
    color: var(--white);
    margin-top: var(--space-m);
}

.cta-tagline strong {
    font-weight: 800;
    font-size: var(--step-2);
}

.section-cta .btn {
    background-color: var(--white);
    color: var(--orange-ink);
    box-shadow: var(--shadow-m);
}

.section-cta .btn:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

/* ===========================
   News Section
   =========================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: var(--space-m);
}

.news-item {
    background-color: var(--white);
    border-radius: var(--radius-l);
    overflow: hidden;
    box-shadow: var(--shadow-s), var(--shadow-ring);
    display: flex;
    flex-direction: column;
    transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}

.news-item:hover,
.news-item:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--shadow-l);
}

.news-image {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background-color: var(--light-gray);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}

.news-item:hover .news-image img,
.news-item:focus-within .news-image img {
    transform: scale(1.07);
}

.news-content {
    padding: 22px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    font-size: var(--step-1);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-title a { color: var(--text-dark); }
.news-title a:hover { color: var(--orange-ink); }

.news-excerpt {
    font-size: var(--step-0);
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 12px;
}

.news-link {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    transition: gap var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.news-link:hover {
    color: var(--orange-ink);
    gap: 12px;
}

/* ===========================
   Useful Links
   =========================== */
.section-links {
    background-color: var(--light-gray);
}

.useful-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 10px;
    justify-content: center;
    align-items: center;
    font-size: 0.9375rem;
    line-height: 1.8;
}

.useful-links a {
    color: var(--primary-green);
    font-weight: 500;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background-color: var(--white);
    box-shadow: var(--shadow-xs);
    transition: transform var(--dur) var(--ease-spring), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.useful-links a:hover {
    color: var(--orange-ink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-s);
}

.useful-links .separator {
    display: none;
}

/* ===========================
   Google Maps Section
   =========================== */
.google-maps-section {
    width: 100%;
    padding: var(--space-xl) 0;
}

.maps-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.maps-title {
    font-size: var(--step-3);
    font-weight: 800;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: var(--space-m);
}

.map-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-m), var(--shadow-ring);
    margin-bottom: var(--space-s);
    line-height: 0;
}

.map-wrapper iframe {
    display: block;
    border: 0;
}

.maps-info {
    text-align: center;
    font-size: 1rem;
    color: var(--text-dark);
}

.maps-info p { margin: 4px 0; }

.maps-info strong {
    color: var(--primary-green);
    font-size: var(--step-1);
}

/* ===========================
   Welcome Content
   =========================== */
.welcome-content .lead-text {
    font-size: var(--step-2);
    line-height: 1.7;
    color: var(--primary-green);
    font-weight: 500;
    margin-bottom: var(--space-m);
}

/* ===========================
   History Timeline
   =========================== */
.history-section {
    padding: var(--space-xl) clamp(1.25rem, 0.6rem + 2.4vw, 3.125rem);
}

.history-additional-content {
    margin-top: var(--space-xl);
    padding-top: var(--space-l);
    border-top: 3px solid var(--primary-orange);
}

.history-intro {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.history-intro .section-title {
    font-size: var(--step-5);
    color: var(--primary-green);
    margin-bottom: 14px;
}

.history-intro .section-title::after {
    left: 50%;
    transform: translateX(-50%) scaleX(1);
    transform-origin: 50% 50%;
}

.js-reveal [data-reveal]:not(.is-revealed) .history-intro .section-title::after,
.js-reveal [data-reveal]:not(.is-revealed).history-intro .section-title::after {
    transform: translateX(-50%) scaleX(0);
}

.history-intro .section-subtitle {
    font-size: var(--step-1);
    color: var(--text-gray);
    font-style: italic;
}

.history-block {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: var(--space-l);
    margin-bottom: var(--space-l);
    padding: var(--space-l);
    background-color: var(--light-gray);
    border-radius: var(--radius-l);
    border-left: 5px solid var(--primary-orange);
    transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}

.history-block:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-m);
}

.history-block.reverse {
    grid-template-columns: 1fr 150px;
    border-left: none;
    border-right: 5px solid var(--primary-yellow);
}

.history-block.reverse:hover {
    transform: translateX(-8px);
}

.history-block.reverse .history-year { order: 2; }
.history-block.reverse .history-content { order: 1; }

.history-block.featured {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--teal-dark) 100%);
    border-left: 5px solid var(--primary-yellow);
    color: var(--white);
}

.history-block.featured h3,
.history-block.featured p {
    color: var(--white);
}

.history-year {
    font-size: var(--step-4);
    font-weight: 800;
    color: var(--orange-ink);
    line-height: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

.history-block.featured .history-year {
    color: var(--primary-yellow);
}

.history-content h3 {
    font-size: var(--step-2);
    color: var(--primary-green);
    margin-bottom: var(--space-s);
}

.history-content p {
    margin-bottom: 12px;
    line-height: 1.75;
    color: var(--text-dark);
}

.history-highlight {
    background-color: var(--white);
    padding: var(--space-s);
    border-radius: var(--radius-s);
    margin: var(--space-s) 0;
    border-left: 4px solid var(--primary-yellow);
}

.featured-box {
    background-color: rgba(255, 255, 255, .12);
    padding: var(--space-m);
    border-radius: var(--radius-m);
    border: 1px solid rgba(255, 255, 255, .3);
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: var(--space-s) 0;
}

.timeline-list li {
    padding: 10px 0 10px 26px;
    margin-bottom: 6px;
    position: relative;
    border-left: 2px solid var(--primary-orange);
}

.timeline-list li::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 1.15em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-orange);
}

/* ===========================
   Flying Icons Background
   =========================== */
.flying-icons {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.flying-icon {
    position: absolute;
    font-size: 34px;
    opacity: .14;
    line-height: 1;
    /* Promote to its own layer so the loop never repaints the page beneath */
    will-change: transform;
}

.flying-icon:nth-child(1) { left: 5%; top: 10%; animation: float1 28s infinite ease-in-out; }
.flying-icon:nth-child(2) { left: 85%; top: 15%; animation: float2 32s infinite ease-in-out; }
.flying-icon:nth-child(3) { left: 15%; top: 35%; animation: float3 26s infinite ease-in-out; }
.flying-icon:nth-child(4) { left: 75%; top: 55%; animation: float4 30s infinite ease-in-out; }
.flying-icon:nth-child(5) { left: 35%; top: 8%; animation: float5 24s infinite ease-in-out; }
.flying-icon:nth-child(6) { left: 92%; top: 42%; animation: float6 27s infinite ease-in-out; }
.flying-icon:nth-child(7) { left: 8%; top: 70%; animation: float7 29s infinite ease-in-out; }
.flying-icon:nth-child(8) { left: 55%; top: 22%; animation: float8 25s infinite ease-in-out; }
.flying-icon:nth-child(9) { left: 25%; top: 85%; animation: float1 31s infinite ease-in-out 2s; }
.flying-icon:nth-child(10) { left: 68%; top: 78%; animation: float2 23s infinite ease-in-out 1s; }
.flying-icon:nth-child(11) { left: 42%; top: 48%; animation: float3 28s infinite ease-in-out 3s; }
.flying-icon:nth-child(12) { left: 12%; top: 52%; animation: float4 26s infinite ease-in-out 4s; }
.flying-icon:nth-child(13) { left: 78%; top: 88%; animation: float5 30s infinite ease-in-out 1.5s; }
.flying-icon:nth-child(14) { left: 48%; top: 65%; animation: float6 24s infinite ease-in-out 2.5s; }
.flying-icon:nth-child(15) { left: 88%; top: 68%; animation: float7 27s infinite ease-in-out 3.5s; }
.flying-icon:nth-child(16) { left: 32%; top: 92%; animation: float8 29s infinite ease-in-out 0.5s; }
.flying-icon:nth-child(17) { left: 62%; top: 12%; animation: float1 25s infinite ease-in-out 4.5s; }
.flying-icon:nth-child(18) { left: 3%; top: 45%; animation: float2 31s infinite ease-in-out 1.8s; }

@keyframes float1 {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    25% { transform: translate3d(15px, -40px, 0) rotate(8deg); }
    50% { transform: translate3d(-20px, -70px, 0) rotate(-10deg); }
    75% { transform: translate3d(10px, -35px, 0) rotate(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    33% { transform: translate3d(-25px, -50px, 0) rotate(-12deg); }
    66% { transform: translate3d(20px, -80px, 0) rotate(15deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    20% { transform: translate3d(30px, -30px, 0) rotate(10deg); }
    40% { transform: translate3d(-15px, -60px, 0) rotate(-8deg); }
    60% { transform: translate3d(25px, -85px, 0) rotate(12deg); }
    80% { transform: translate3d(-10px, -40px, 0) rotate(-5deg); }
}

@keyframes float4 {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    50% { transform: translate3d(-30px, -65px, 0) rotate(-15deg) scale(1.1); }
}

@keyframes float5 {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    30% { transform: translate3d(20px, -45px, 0) rotate(12deg); }
    60% { transform: translate3d(-25px, -75px, 0) rotate(-10deg); }
}

@keyframes float6 {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    25% { transform: translate3d(-18px, -35px, 0) rotate(-8deg); }
    50% { transform: translate3d(22px, -70px, 0) rotate(14deg); }
    75% { transform: translate3d(-12px, -45px, 0) rotate(-6deg); }
}

@keyframes float7 {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    40% { transform: translate3d(28px, -55px, 0) rotate(16deg) scale(1.08); }
    70% { transform: translate3d(-20px, -80px, 0) rotate(-12deg) scale(.95); }
}

@keyframes float8 {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    35% { transform: translate3d(-22px, -48px, 0) rotate(-14deg); }
    70% { transform: translate3d(26px, -72px, 0) rotate(10deg); }
}

/* ===========================
   404 / No Results
   =========================== */
.error-404,
.no-results {
    padding: var(--space-xl) clamp(1.25rem, 0.6rem + 2.4vw, 3.125rem);
}

.error-404 .page-content,
.no-results .page-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: var(--step-1);
}

.error-404-block {
    margin-top: var(--space-l);
}

.error-404-block h3 {
    font-size: var(--step-2);
    color: var(--primary-green);
    margin-bottom: var(--space-s);
}

.error-404-block ul {
    list-style: none;
    padding: 0;
}

.error-404-block li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.error-404-block li:last-child {
    border-bottom: none;
}

/* ===========================
   Comments
   =========================== */
.comments-area {
    margin-top: var(--space-xl);
}

.comments-title {
    font-size: var(--step-2);
    margin-bottom: var(--space-m);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    padding: var(--space-m) 0;
    border-bottom: 1px solid var(--border-color);
}

/* ===========================
   Footer
   =========================== */
.site-footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, .8);
    padding: var(--space-xl) 30px var(--space-l);
    text-align: center;
    font-size: 0.9375rem;
    margin-top: var(--space-xl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-s);
}

.site-footer a {
    color: var(--primary-yellow);
}

.site-footer a:hover {
    color: var(--primary-orange);
}

.footer-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    padding: 0;
    margin: 0;
}

.footer-menu a {
    color: rgba(255, 255, 255, .82);
    position: relative;
}

.footer-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform var(--dur) var(--ease-out);
}

.footer-menu a:hover {
    color: var(--primary-yellow);
}

.footer-menu a:hover::after {
    transform: scaleX(1);
}

/* ===========================
   Decorative Elements
   =========================== */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    opacity: .1;
    pointer-events: none;
}

.decorative-circle-1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary-orange);
    top: -100px;
    right: -100px;
}

.decorative-circle-2 {
    width: 200px;
    height: 200px;
    background-color: var(--primary-green);
    bottom: -50px;
    left: -50px;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1400px) {
    .site-container {
        padding: 0 20px;
        gap: 18px;
    }
}

@media (max-width: 1200px) {
    .site-container {
        padding: 0 15px;
        gap: 15px;
    }

    .left-sidebar { width: 250px; }
    .left-sidebar-inner { padding: 22px 16px; }
    .secondary-menu ul { min-width: 200px; }

    /* Icon and temperature carry the meaning; the wording is the first to go */
    .site-weather-label { display: none; }
    .site-weather { padding: 7px 13px 7px 10px; }
}

@media (max-width: 1024px) {
    :root { --header-height: 74px; }

    .site-container {
        padding: 0 15px;
        flex-direction: column;
        gap: 0;
    }

    .site-main { padding: 15px 0; }
    .site-content { max-width: 100%; }
    .site-branding { max-width: none; }

    .hero-image-wrapper { padding: 15px 20px 0; }
    .hero-full-image { border-radius: var(--radius-l); }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-l);
    }

    .hero-images {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Sidebar becomes an off-canvas drawer */
    .left-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 290px;
        height: 100dvh;
        margin: 0;
        transform: translateX(-100%);
        box-shadow: 2px 0 30px rgba(31, 36, 33, .2);
        z-index: 1900;
        background-color: var(--light-gray);
        padding: 20px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .left-sidebar-inner {
        position: relative;
        top: 0;
        border-radius: var(--radius-m);
    }

    .left-sidebar.active {
        transform: translateX(0);
    }

    .left-sidebar-toggle {
        display: flex;
    }

    .left-sidebar.active::before {
        content: "";
        position: fixed;
        inset: 0 0 0 290px;
        background-color: rgba(31, 36, 33, .5);
        z-index: -1;
    }

    /* Dropdowns stack instead of flying out */
    .secondary-menu ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        border-radius: 0;
        margin: 4px 0 8px;
        padding: 0;
    }

    .secondary-menu ul a { padding-left: 32px; }
    .secondary-menu ul a:hover { padding-left: 36px; }

    .secondary-menu .menu-item-has-children > a::after {
        transform: translateY(-50%) rotate(45deg);
    }

    .secondary-menu .menu-item-has-children:hover > a::after {
        transform: translateY(-50%) rotate(45deg);
    }

    .stats-grid {
        gap: var(--space-l);
    }

    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .programs-list { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }

    .history-block {
        grid-template-columns: 110px 1fr;
        gap: var(--space-m);
        padding: var(--space-m);
    }

    .history-block.reverse { grid-template-columns: 1fr 110px; }
}

@media (max-width: 768px) {
    :root { --header-height: 66px; }

    .site-header { padding: 10px 0; }

    .header-container {
        padding: 0 18px;
        gap: 14px;
    }

    .site-container { padding: 0 10px; }

    .site-branding {
        flex: 1;
        gap: 12px;
        max-width: none;
    }

    .site-identity { max-width: none; }

    .site-logo img {
        max-height: 48px;
        min-height: 38px;
        max-width: 80px;
    }

    .site-title { font-size: 1rem; }
    .site-description { display: none; }

    .mobile-menu-toggle { display: block; order: 3; }

    .site-weather {
        order: 2;
        gap: 7px;
        padding: 5px 11px 5px 8px;
    }

    .site-weather-icon .icon { width: 22px; height: 22px; }
    .site-weather-temp { font-size: 0.9375rem; }

    /* Desktop nav out, drawer in */
    .main-navigation { display: none; }

    .mobile-navigation {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 84vw;
        height: 100dvh;
        background-color: var(--white);
        box-shadow: -6px 0 30px rgba(31, 36, 33, .16);
        padding: 84px 0 30px;
        transform: translateX(101%);
        transition: transform var(--dur-slow) var(--ease-out);
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 1999;
    }

    .mobile-navigation.active {
        transform: translateX(0);
    }

    .mobile-navigation ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-navigation a {
        display: block;
        padding: 14px 26px;
        color: var(--text-dark);
        font-weight: 600;
        font-size: 1rem;
        border-left: 3px solid transparent;
        transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
    }

    .mobile-navigation a:hover,
    .mobile-navigation .current-menu-item > a,
    .mobile-navigation .current_page_item > a {
        border-left-color: var(--primary-orange);
        background-color: var(--light-gray);
        color: var(--orange-ink);
    }

    .mobile-navigation ul ul a {
        padding-left: 44px;
        font-weight: 400;
        font-size: 0.9375rem;
    }

    /* Each item slides in behind the drawer */
    .mobile-navigation.active > ul > li {
        animation: botevgm-fade-up var(--dur-slow) var(--ease-out) both;
    }

    .mobile-navigation.active > ul > li:nth-child(1) { animation-delay: 60ms; }
    .mobile-navigation.active > ul > li:nth-child(2) { animation-delay: 105ms; }
    .mobile-navigation.active > ul > li:nth-child(3) { animation-delay: 150ms; }
    .mobile-navigation.active > ul > li:nth-child(4) { animation-delay: 195ms; }
    .mobile-navigation.active > ul > li:nth-child(5) { animation-delay: 240ms; }
    .mobile-navigation.active > ul > li:nth-child(6) { animation-delay: 285ms; }
    .mobile-navigation.active > ul > li:nth-child(7) { animation-delay: 330ms; }
    .mobile-navigation.active > ul > li:nth-child(8) { animation-delay: 375ms; }

    .site-main { padding: 10px 0; }
    .site-content { border-radius: var(--radius-l); }

    .hero-image-wrapper { padding: 10px 12px 0; }
    .hero-full-image { border-radius: var(--radius-m); }

    .hero-section {
        padding: var(--space-xl) 20px;
        min-height: auto;
        border-radius: var(--radius-l) var(--radius-l) 0 0;
    }

    .hero-with-image { min-height: 50vh; }
    .hero-images { grid-template-columns: 1fr; }

    .hero-image {
        grid-column: 1 / 2 !important;
        margin-top: 0 !important;
    }

    .stats-grid {
        gap: var(--space-m) var(--space-l);
    }

    .stat-item { flex-basis: 150px; }

    .advantages-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }

    .card-grid,
    .posts-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .post-navigation .nav-links {
        flex-direction: column;
        gap: var(--space-s);
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        max-width: 100%;
        text-align: left;
    }

    .useful-links { gap: 10px 8px; }

    .map-wrapper iframe { height: 340px; }

    .history-block,
    .history-block.reverse {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .history-block.reverse .history-year,
    .history-block.reverse .history-content {
        order: initial;
    }

    .history-year {
        text-align: left;
        justify-content: flex-start;
    }

    .flying-icon { font-size: 24px; }

    .to-top {
        right: 15px;
        bottom: 82px;
    }
}

@media (max-width: 480px) {
    .header-container { padding: 0 14px; }
    .site-branding { gap: 10px; }

    .site-logo img {
        max-height: 44px;
        min-height: 34px;
        max-width: 68px;
    }

    .site-title { font-size: 0.9375rem; }

    .site-weather { padding: 4px 9px 4px 7px; }
    .site-weather-icon .icon { width: 20px; height: 20px; }

    .left-sidebar-toggle {
        left: 15px;
        bottom: 15px;
        width: 48px;
        height: 48px;
    }

    .site-content { border-radius: var(--radius-m); }
    .stat-item { flex-basis: 100%; }

    .to-top {
        width: 44px;
        height: 44px;
    }
}

/* ===========================
   Reduced Motion
   Honours the visitor's OS setting: everything still works, nothing moves.
   =========================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    .js-reveal [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }

    .section-title::after {
        transform: scaleX(1) !important;
    }

    .history-intro .section-title::after {
        transform: translateX(-50%) scaleX(1) !important;
    }

    .flying-icons {
        display: none;
    }

    .hero-full-image {
        animation: none;
    }
}

/* ===========================
   Print Styles
   =========================== */
@media print {
    .site-header,
    .left-sidebar,
    .left-sidebar-toggle,
    .mobile-menu-toggle,
    .mobile-navigation,
    .site-footer,
    .flying-icons,
    .scroll-progress,
    .to-top,
    .google-maps-section,
    .skip-link {
        display: none !important;
    }

    body::before { display: none; }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    .site-content {
        box-shadow: none;
        border-radius: 0;
    }

    .site-main {
        margin-left: 0;
        width: 100%;
        padding: 0;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        word-break: break-all;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Screen-reader text must become visible when it takes focus */
.screen-reader-text:focus {
    background-color: var(--white);
    border-radius: var(--radius-xs);
    box-shadow: var(--shadow-m);
    clip: auto !important;
    clip-path: none;
    color: var(--text-dark);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
