/*
Theme Name: Meta Meta Rose
Theme URI: https://github.com/metametarose/theme
Author: Meta Meta Rose Academy
Author URI: https://metametarose.sc.ke
Description: A responsive WordPress theme for Meta Meta Rose Academy & Junior School, Kisaju, Kajiado County. Built around the school's CBC learning pathways, with editable contact details, statistics and testimonials in the Customizer. Elementor-compatible.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meta-meta-rose
Tags: education, school, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, responsive
*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    --primary-color: #7b1e22;
    --primary-hover: #5c1619;
    --secondary-color: #1a1a1a;
    --accent-gold: #f7ca00;
    --text-dark: #2d2d2d;
    --text-light: #666666;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --footer-bg: #0d0d0d;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.25;
    text-wrap: balance;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* Keyboard focus must stay visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

/* ============================================================
   3. LAYOUT HELPERS
   ============================================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.container-narrow {
    max-width: 850px;
}

.text-center {
    text-align: center;
}

.section {
    padding: 100px 0;
}

.section-sm {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-white {
    background-color: var(--white);
}

.bg-dark {
    background-color: var(--secondary-color);
}

/* ============================================================
   4. BUTTONS, BADGES, HEADINGS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--secondary-color);
    color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(123, 30, 34, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.badge {
    display: inline-block;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.badge-gold {
    color: var(--accent-gold);
}

.section-head {
    max-width: 700px;
    margin-bottom: 60px;
}

.section-head-center {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-head h2 {
    font-size: 42px;
    margin-bottom: 18px;
}

.section-head-center h2 {
    font-size: 36px;
    margin-bottom: 18px;
}

.section-head p,
.section-head-center p {
    color: var(--text-light);
    font-size: 17px;
}

.rule {
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    border: 0;
    margin: 0;
}

/* ============================================================
   5. TOP BAR
   ============================================================ */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.top-bar-contact a,
.top-bar-contact span {
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-bar-contact a:hover {
    color: var(--accent-gold);
}

.top-bar-contact i {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links a {
    color: var(--white);
    font-size: 15px;
}

.social-links a:hover {
    color: var(--primary-color);
}

.social-links.large {
    margin-top: 40px;
    gap: 14px;
}

.social-links.large a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
}

.social-links.large a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ============================================================
   6. HEADER & NAVIGATION
   ============================================================ */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 90px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Must be allowed to shrink: with no logo uploaded the school's full
       name sits here as text, and a rigid box pushes the hamburger and
       the Enroll button off the right edge on tablets and phones. */
    min-width: 0;
    flex-shrink: 1;
}

.site-branding img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.site-title-text {
    min-width: 0;
}

.site-title-text .main {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--secondary-color);
}

.site-title-text .sub {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 16px;
    padding: 6px 0;
    display: block;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a {
    color: var(--primary-color);
}

/* Sub-menus */
.nav-menu li {
    position: relative;
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 100;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    padding: 9px 20px;
    font-size: 15px;
}

.header-action {
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    flex-shrink: 0;
}

/* ============================================================
   7. HERO
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 120px 0 150px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: var(--primary-color);
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    opacity: 0.1;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 25px;
}

.hero-content h1 .highlight {
    color: var(--accent-gold);
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat strong {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1.1;
}

.hero-stat span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.hero-media {
    position: relative;
}

.hero-image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.hero-image-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--primary-color);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.experience-badge .number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-gold);
}

.experience-badge .text {
    font-size: 13px;
    font-weight: 700;
    max-width: 110px;
    margin-top: 6px;
    color: var(--accent-gold);
    line-height: 1.35;
}

/* ============================================================
   8. ABOUT / PHILOSOPHY
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.12fr;
    gap: 60px;
    /* Stretch, so the photograph runs the full height of the text
       beside it rather than floating short of it. */
    align-items: stretch;
}

/* The photograph sits in a white frame, like the cards beside it */
.about-image {
    background: var(--white);
    padding: 10px;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(26, 26, 26, 0.09);
    display: flex;
}

.about-image img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: 14px;
    display: block;
    object-fit: cover;
}

.about-content h3 {
    font-size: 38px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.about-content > p {
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 34px;
}

/* ---- Vision & mission cards ---- */
.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 38px;
}

.vm-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--white);
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(26, 26, 26, 0.06);
}

.vm-item .icon {
    background: rgba(123, 30, 34, 0.09);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
    flex-shrink: 0;
}

.vm-item h4 {
    font-size: 17px;
    margin-bottom: 7px;
    letter-spacing: -0.01em;
}

.vm-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ---- Feature checklist ---- */
.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 40px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 15.5px;
    color: var(--secondary-color);
    letter-spacing: -0.01em;
}

.features-list i {
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.philosophy-card {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    position: relative;
}

.philosophy-card .quote-icon {
    color: var(--primary-color);
    font-size: 60px;
    opacity: 0.1;
    position: absolute;
    top: 20px;
    left: 30px;
}

.philosophy-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.philosophy-card p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.philosophy-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Photo divider */
.photo-divider {
    padding: 0 0 50px;
}

.photo-divider-frame {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(123, 30, 34, 0.15);
}

.photo-divider-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-divider-frame:hover img {
    transform: scale(1.05);
}

/* ============================================================
   9. PROGRAMME CARDS
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.program-card:hover,
.program-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.program-card .card-img {
    height: 200px;
    overflow: hidden;
}

.program-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-card .card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-card h3 {
    font-size: 20px;
    margin-bottom: 14px;
}

.program-card p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
    min-height: 78px;
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.read-more:hover {
    gap: 12px;
}

/* ============================================================
   10. STATS STRIP
   ============================================================ */
.stats-strip {
    background-color: var(--secondary-color);
    padding: 60px 0;
    color: var(--white);
}

.stats-strip h2 {
    color: var(--white);
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-box .number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-box .label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================================
   11. ACTIVITIES
   ============================================================ */
.activities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.activities-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.activities-content > p {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.7;
}

.activity-list {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.activity-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.activity-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50% 50% 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.activity-text h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.activity-text p {
    color: var(--text-dark);
    font-size: 16px;
}

.activities-images {
    position: relative;
    padding-bottom: 60px;
    min-height: 380px;
}

.activities-images .img-1 {
    width: 80%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.activities-images .img-2 {
    width: 58%;
    position: absolute;
    bottom: 0;
    right: 0;
    border-radius: 20px;
    border: 10px solid var(--white);
    box-shadow: var(--shadow);
}

/* ============================================================
   12. TESTIMONIALS
   ============================================================ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 38px 32px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.testimonial-card .stars {
    color: var(--primary-color);
    margin-bottom: 18px;
    font-size: 15px;
}

.testimonial-card blockquote {
    font-size: 16px;
    font-style: italic;
    color: var(--text-dark);
    margin: 0 0 26px;
    line-height: 1.75;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.author-avatar {
    width: 52px;
    height: 52px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    flex-shrink: 0;
}

.author-details {
    text-align: left;
}

.author-details h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.author-details span {
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================================
   13. CONTACT
   ============================================================ */
.contact-panel {
    display: grid;
    grid-template-columns: 3fr 2fr;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.contact-form-panel {
    padding: 55px;
}

.contact-form-panel h2,
.contact-form-panel h3 {
    font-size: 30px;
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(123, 30, 34, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
    margin-bottom: 20px;
}

.contact-info-panel {
    background: var(--secondary-color);
    color: var(--white);
    padding: 55px;
}

.contact-info-panel h2,
.contact-info-panel h3 {
    color: var(--white);
    font-size: 26px;
    margin-bottom: 32px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.info-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.info-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 4px;
    flex-shrink: 0;
}

.info-item p {
    margin: 0;
    line-height: 1.6;
}

.info-item .meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 3px;
}

.info-item a {
    color: var(--white);
    word-break: break-word;
}

.info-item a:hover {
    color: var(--accent-gold);
}

/* ============================================================
   14. PAGE HEADER & PATHWAY PAGES
   ============================================================ */
.page-header {
    padding: 90px 0 40px;
    background: var(--white);
}

.page-header .badge {
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.page-header h1 {
    font-size: 42px;
    margin: 5px 0 25px;
}

.page-body {
    padding: 20px 0 100px;
}

.page-hero-img {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 45px;
    height: 340px;
}

.page-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Editor content styling — applies to whatever staff type into a page */
.entry-content p {
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 18px;
}

.entry-content h2 {
    font-size: 30px;
    margin: 40px 0 16px;
}

.entry-content h3 {
    font-size: 23px;
    margin: 32px 0 14px;
}

.entry-content strong {
    color: var(--secondary-color);
}

.entry-content ul,
.entry-content ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin: 0 0 28px;
    padding: 0;
}

.entry-content ol {
    list-style: decimal;
    padding-left: 20px;
}

.entry-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

.entry-content ul li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.entry-content img {
    border-radius: 12px;
    margin: 26px 0;
}

.entry-content blockquote,
.pathway-callout {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    padding: 26px 32px;
    margin: 0 0 40px;
}

.entry-content blockquote p,
.pathway-callout p {
    color: var(--secondary-color);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
}

.back-link:hover {
    gap: 13px;
}

/* ---- Two-column intro (Academics page) ---- */
.entry-content--two-col {
    column-count: 2;
    column-gap: 60px;
}

.entry-content--two-col p {
    font-size: 18px;
}

.entry-content--two-col p {
    break-inside: avoid;
}

.entry-content--two-col > *:first-child {
    margin-top: 0;
}

/* ---- Story card (About page) ---- */
.story-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.story-card .quote-icon {
    color: var(--primary-color);
    font-size: 34px;
    opacity: 0.25;
    display: block;
    margin-bottom: 22px;
}

.entry-content--centred p:last-child {
    color: var(--primary-color);
    font-weight: 700;
    font-style: italic;
    margin-bottom: 0;
}

.entry-content--centred ul {
    display: block;
    text-align: left;
    max-width: 520px;
    margin: 0 auto 24px;
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.site-footer {
    background: var(--footer-bg);
    color: #999;
    padding: 90px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr 0.9fr 1.3fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 22px;
    font-size: 19px;
}

.footer-col p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.75;
}

.footer-col ul li {
    margin-bottom: 11px;
}

.footer-col ul a {
    color: #999;
    font-size: 15px;
    display: inline-block;
}

.footer-col ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-branding img {
    height: 55px;
    width: auto;
    border-radius: 8px;
    margin-bottom: 18px;
}

.footer-branding .site-title-text .main {
    color: var(--white);
}

.newsletter-form {
    display: flex;
    margin-top: 18px;
}

.newsletter-form input {
    background: #1a1a1a;
    border: 1px solid #262626;
    color: var(--white);
    border-radius: 10px 0 0 10px;
    padding: 14px 16px;
}

.newsletter-form button {
    background: var(--primary-color);
    border: none;
    padding: 0 20px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    color: var(--white);
    font-size: 16px;
}

.newsletter-form button:hover {
    background: var(--primary-hover);
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid #1f1f1f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #999;
    margin-left: 20px;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* ============================================================
   16. WORDPRESS CORE CLASSES
   ============================================================ */
.alignleft {
    float: left;
    margin: 0 24px 18px 0;
}

.alignright {
    float: right;
    margin: 0 0 18px 24px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide,
.alignfull {
    max-width: 100%;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text,
.wp-block-image figcaption {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
}

.sticky,
.bypostauthor {
    display: block;
}

.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--secondary-color);
    font-weight: 600;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Posts */
.post-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.post-card .card-body {
    padding: 28px;
}

.post-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* ============================================================
   17. SCROLL ANIMATION
   Sections start visible; JS adds the class only when it runs,
   so content is never trapped behind a broken observer.
   ============================================================ */
.js-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   18. RESPONSIVE — LARGE TABLET / SMALL LAPTOP (1024px)
   iPad landscape lands here.
   ============================================================ */
@media (max-width: 1024px) {

    .container {
        padding: 0 28px;
    }

    .hero {
        padding: 100px 0 120px;
    }

    .hero-grid {
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 52px;
    }

    .hero-image-frame img {
        height: 440px;
    }

    .section-head h2,
    .activities-content h2 {
        font-size: 36px;
    }

    .section-head-center h2 {
        font-size: 32px;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .about-content h3 {
        font-size: 31px;
    }

    .about-image img {
        min-height: 380px;
    }

    .philosophy-grid,
    .activities-grid {
        gap: 40px;
    }

    .philosophy-card {
        padding: 40px;
    }

    .contact-form-panel,
    .contact-info-panel {
        padding: 42px;
    }

    .card-grid,
    .testimonial-grid {
        gap: 24px;
    }

    .photo-divider-frame {
        height: 400px;
    }

    /* Four footer columns are too narrow on a tablet */
    .footer-grid {
        grid-template-columns: 1.4fr 1fr;
        gap: 36px 50px;
    }

    .nav-menu {
        gap: 22px;
    }

    .site-title-text .main {
        font-size: 17px;
    }

    .nav-menu a {
        font-size: 15px;
    }
}

/* ============================================================
   19. RESPONSIVE — TABLET PORTRAIT (992px)
   iPad portrait lands here. Two-column layouts stack.
   ============================================================ */
@media (max-width: 992px) {

    .hero {
        padding: 80px 0 100px;
    }

    .hero-grid,
    .about-grid,
    .philosophy-grid,
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-image img {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .about-content h3 {
        font-size: 30px;
    }

    .hero-grid {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 46px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns,
    .hero-stats {
        justify-content: center;
    }

    .hero-media {
        max-width: 620px;
        margin: 0 auto;
    }

    .hero-image-frame img {
        height: 400px;
    }

    /* Cards drop to two across — comfortable on a tablet */
    .card-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* A lone third card should not stretch across the row */
    .testimonial-grid .testimonial-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
    }

    .contact-panel {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .photo-divider-frame {
        height: 340px;
    }

    .activities-images {
        max-width: 620px;
        margin: 0 auto;
        min-height: 340px;
    }

    .section {
        padding: 80px 0;
    }

    .section-head,
    .section-head-center {
        margin-bottom: 45px;
    }

    .page-hero-img {
        height: 300px;
    }

    .entry-content--two-col {
        column-count: 1;
    }

    .story-card {
        padding: 44px 38px;
    }
}

/* ============================================================
   20. RESPONSIVE — MOBILE (768px)
   Navigation collapses to a hamburger here.
   ============================================================ */
@media (max-width: 768px) {

    .container {
        padding: 0 20px;
    }

    /* --- Navigation --- */
    .menu-toggle {
        display: block;
    }

    .header-action {
        display: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        padding: 12px 20px 26px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
        border-top: 1px solid #eee;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu a {
        padding: 13px 0;
        border-bottom: 1px solid #f2f2f2;
        font-size: 16px;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    /* Sub-menus expand inline rather than floating */
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 16px;
        min-width: 0;
        border-radius: 0;
    }

    .site-nav {
        min-height: 76px;
    }

    .site-branding img {
        height: 48px;
    }

    .site-title-text .main {
        font-size: 16px;
    }

    .site-title-text .sub {
        display: none;
    }

    /* --- Top bar --- */
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar-contact {
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }

    /* --- Sections --- */
    .section {
        padding: 60px 0;
    }

    .section-sm {
        padding: 45px 0;
    }

    .section-head h2,
    .section-head-center h2,
    .activities-content h2,
    .stats-strip h2 {
        font-size: 30px;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-stats {
        gap: 28px;
    }

    .hero-image-frame img {
        height: 320px;
    }

    .experience-badge {
        bottom: -14px;
        left: 50%;
        transform: translateX(-50%);
        padding: 18px 24px;
    }

    .experience-badge .number {
        font-size: 30px;
    }

    /* Everything goes single column */
    .card-grid,
    .testimonial-grid,
    .vision-mission,
    .features-list,
    .form-row,
    .entry-content ul,
    .entry-content ol {
        grid-template-columns: 1fr;
    }

    .testimonial-grid .testimonial-card:last-child:nth-child(odd) {
        max-width: none;
    }

    /* Stats read better two-up than stacked */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .stat-box .number {
        font-size: 40px;
    }

    .about-content h3 {
        font-size: 26px;
    }

    .about-content > p {
        font-size: 16px;
        margin-bottom: 26px;
    }

    .vision-mission {
        gap: 16px;
        margin-bottom: 28px;
    }

    .features-list {
        gap: 16px;
    }

    .about-image {
        padding: 8px;
        border-radius: 18px;
    }

    .philosophy-card {
        padding: 32px 26px;
    }

    .philosophy-card h3 {
        font-size: 21px;
    }

    .photo-divider-frame {
        height: 240px;
        border-radius: 20px;
    }

    /* Overlapping images stack instead */
    .activities-images {
        padding-bottom: 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .activities-images .img-1,
    .activities-images .img-2 {
        width: 100%;
        position: static;
        border: none;
    }

    .activity-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    /* 55px of panel padding overflows a phone */
    .contact-form-panel,
    .contact-info-panel {
        padding: 32px 24px;
    }

    .contact-panel {
        border-radius: 16px;
    }

    .contact-form-panel h2,
    .contact-form-panel h3 {
        font-size: 25px;
    }

    /* --- Pages --- */
    .page-header {
        padding: 55px 0 30px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-body {
        padding: 16px 0 60px;
    }

    .page-hero-img {
        height: 220px;
        margin-bottom: 32px;
    }

    .entry-content p {
        font-size: 16px;
        line-height: 1.8;
    }

    .pathway-callout,
    .entry-content blockquote {
        padding: 22px 24px;
    }

    .story-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    /* --- Footer --- */
    .site-footer {
        padding: 60px 0 26px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 38px;
        margin-bottom: 40px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        border-radius: 10px;
        padding: 14px 18px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-legal a {
        margin: 0 10px;
    }
}

/* ============================================================
   21. RESPONSIVE — SMALL PHONE (480px)
   ============================================================ */
@media (max-width: 480px) {

    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 31px;
        line-height: 1.18;
    }

    .section-head h2,
    .section-head-center h2,
    .activities-content h2,
    .stats-strip h2,
    .page-header h1 {
        font-size: 26px;
    }

    /* Full-width buttons are easier to tap */
    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat strong {
        font-size: 24px;
    }

    .hero-image-frame img {
        height: 250px;
    }

    .photo-divider-frame {
        height: 190px;
    }

    .page-hero-img {
        height: 170px;
    }

    .testimonial-card {
        padding: 28px 22px;
    }

    .philosophy-card {
        padding: 26px 20px;
    }

    .contact-form-panel,
    .contact-info-panel {
        padding: 26px 18px;
    }

    .author-details {
        text-align: center;
    }

    .testimonial-author {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================================
   22. ACCESSIBILITY — REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .js-animate,
    .js-animate.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   23. PRINT
   ============================================================ */
@media print {

    .top-bar,
    .site-header,
    .site-footer,
    .menu-toggle,
    .hero-btns {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}

/* Footer legal menu renders inline */
.footer-legal-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-legal-list li {
    margin: 0;
}

.footer-legal-list a {
    color: #999;
    font-size: 14px;
}

.footer-legal-list a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .footer-legal-list {
        justify-content: center;
    }
}
