/*
Theme Name: Karu University
Theme URI: https://karu.ac.ke
Author: Karatina University
Author URI: https://karu.ac.ke
Description: The official theme for Karatina University — The Green Entrepreneurial University. Features a hero slider, programs showcase, testimonials, and animated stats.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: karu-university
Tags: university, education, green, entrepreneurship, slider, one-page
*/

/* ==============================================
   THEME VARIABLES
   ============================================== */
:root {
    /* Brand Colors - Official Karatina University */
    --primary-green: #068545;      /* R:6, G:133, B:69 */
    --dark-green: #054d28;          /* Darker green */
    --light-green: #2e9c5a;         /* Lighter green */
    --accent-gold: #B89153;         /* R:184, G:145, B:83 */
    --accent-gold-light: #d4aa6e;   /* Lighter gold */
    --karu-red: #E20613;            /* R:226, G:6, B:19 */
    
    /* Neutral Colors */
    --cream: #FAFAF8;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-muted: #6B7280;
    --border-light: #E5E7EB;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==============================================
   RESET & BASE
   ============================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }
a { transition: var(--transition); }

/* ==============================================
   NAVIGATION
   ============================================== */
.navbar {
    position: relative;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
    background: rgba(5, 77, 40, 0.95);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(5, 77, 40, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.25);
    padding: 1rem 0;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.navbar.scrolled .nav-links a { color: rgba(255,255,255,0.92); }

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling - Larger Font to Match Motto Width */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.3rem;
    border: 3px solid var(--accent-gold);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-title {
    display: flex;
    flex-direction: column;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.logo-karatina {
    font-size: 1.5rem;  /* Larger font */
    color: var(--karu-red);
    letter-spacing: -0.5px;
    line-height: 1.1;
    white-space: nowrap;
}

.logo-university {
    font-size: 1.2rem;  /* Larger font */
    color: var(--primary-green);
    margin-top: -3px;
    letter-spacing: -0.3px;
    line-height: 1.1;
    white-space: nowrap;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--accent-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    white-space: nowrap;
}

/* For tablets */
@media (max-width: 1024px) {
    .logo-karatina {
        font-size: 1.7rem;
    }
    
    .logo-university {
        font-size: 1.4rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
}

/* For mobile */
@media (max-width: 768px) {
    .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .logo-karatina {
        font-size: 1.3rem;
    }
    
    .logo-university {
        font-size: 1.1rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
        white-space: normal;
        max-width: 200px;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .logo-karatina {
        font-size: 1.1rem;
    }
    
    .logo-university {
        font-size: 0.9rem;
    }
}
/* Scrolled state - keep colors visible */
.navbar.scrolled .logo-karatina {
    color: var(--karu-red);
}

.navbar.scrolled .logo-university {
    color: var(--primary-green);
}

.navbar.scrolled .logo-subtitle {
    color: var(--accent-gold);
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent-gold); }

/* ==============================================
   DROPDOWN MENUS - FIXED
   ============================================== */
.nav-links li {
    position: relative;
    list-style: none;
}

/* ---- LEVEL 1 DROPDOWN ---- */
.nav-links > li > .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    min-width: 230px;
    background: var(--dark-green);
    border-radius: 0 0 12px 12px;
    padding: 0.75rem 0 0.5rem;
    z-index: 1001;
    list-style: none;
    margin: 0;
    border-top: 3px solid var(--accent-gold);
    box-shadow: 0 16px 48px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
    pointer-events: none;
}

/* Keep dropdown dark when scrolled */
.navbar.scrolled .nav-links > li > .sub-menu {
    background: var(--dark-green);
}

.nav-links > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0s linear 0s;
    pointer-events: auto;
}

/* Level 1 items */
.nav-links > li > .sub-menu > li { display: block; position: relative; }
.nav-links > li > .sub-menu > li + li { border-top: 1px solid rgba(255,255,255,0.07); }
.nav-links > li > .sub-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    color: rgba(255,255,255,0.88) !important;
    font-size: 0.875rem;
    font-weight: 400;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
    text-decoration: none;
}
.nav-links > li > .sub-menu > li > a:hover,
.nav-links > li > .sub-menu > li:hover > a {
    color: var(--accent-gold) !important;
    background: rgba(255,255,255,0.08);
    padding-left: 1.5rem;
}

/* Keep L1 text white when scrolled */
.navbar.scrolled .nav-links > li > .sub-menu > li > a {
    color: rgba(255,255,255,0.88) !important;
}
.navbar.scrolled .nav-links > li > .sub-menu > li > a:hover {
    color: var(--accent-gold) !important;
}

/* ---- LEVEL 2 DROPDOWN ---- */
.nav-links > li > .sub-menu > li > .sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 3px;
    min-width: 220px;
    background: var(--white);
    border-radius: 12px;
    padding: 0.4rem 0;
    z-index: 1002;
    list-style: none;
    border-left: 3px solid var(--primary-green);
    box-shadow: 8px 8px 32px rgba(0,0,0,0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    pointer-events: none;
}

/* Level 2 stays white when scrolled */
.navbar.scrolled .nav-links > li > .sub-menu > li > .sub-menu {
    background: var(--white);
}

.nav-links > li > .sub-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
    pointer-events: auto;
}

/* Level 2 items */
.nav-links > li > .sub-menu > li > .sub-menu > li { display: block; }
.nav-links > li > .sub-menu > li > .sub-menu > li + li { border-top: 1px solid #f0f0f0; }
.nav-links > li > .sub-menu > li > .sub-menu > li > a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--text-dark) !important;
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
    text-decoration: none;
}
.nav-links > li > .sub-menu > li > .sub-menu > li > a:hover {
    color: var(--primary-green) !important;
    background: rgba(27,94,32,0.06);
    padding-left: 1.5rem;
}

/* Keep L2 text dark when scrolled */
.navbar.scrolled .nav-links > li > .sub-menu > li > .sub-menu > li > a {
    color: var(--text-dark) !important;
}
.navbar.scrolled .nav-links > li > .sub-menu > li > .sub-menu > li > a:hover {
    color: var(--primary-green) !important;
}

/* ---- CHEVRONS ---- */
.karu-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    margin-left: 5px;
    opacity: 0.65;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
    vertical-align: middle;
}

.nav-links > li:hover > a .karu-chevron {
    transform: rotate(225deg) translateY(2px);
    opacity: 1;
}

.nav-links > li > .sub-menu > li.menu-item-has-children > a .karu-chevron {
    border-right: 1.5px solid currentColor;
    border-bottom: none;
    border-top: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: auto;
}

/* Hide pseudo-element chevrons */
.nav-links > li.menu-item-has-children > a::after,
.nav-links > li > .sub-menu > li.menu-item-has-children > a::after {
    display: none !important;
}

/* ---- RIGHT-EDGE SAFETY ---- */
.nav-links > li:last-child > .sub-menu,
.nav-links > li:nth-last-child(2) > .sub-menu {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(0);
}
.nav-links > li:last-child > .sub-menu::before,
.nav-links > li:nth-last-child(2) > .sub-menu::before {
    display: none;
}
.nav-links > li:last-child:hover > .sub-menu,
.nav-links > li:nth-last-child(2):hover > .sub-menu {
    transform: translateX(0) translateY(0);
}
.nav-links > li:last-child > .sub-menu > li > .sub-menu,
.nav-links > li:nth-last-child(2) > .sub-menu > li > .sub-menu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 3px;
    transform: translateX(-8px);
    border-left: none;
    border-right: 3px solid var(--primary-green);
}
.nav-links > li:last-child > .sub-menu > li:hover > .sub-menu,
.nav-links > li:nth-last-child(2) > .sub-menu > li:hover > .sub-menu {
    transform: translateX(0);
}

/* ---- CTA BUTTON IN NAV ---- */
.nav-cta {
    background: var(--accent-gold);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-cta::after { display: none !important; }

/* ---- MOBILE MENU ---- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px; height: 2px;
    background: white;
    margin: 5px 0;
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span { background: var(--white); }

/* Mobile responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(13, 51, 32, 0.98);
        backdrop-filter: blur(10px);
        padding: 0.5rem 0;
        gap: 0;
        box-shadow: var(--shadow-lg);
        border-top: 3px solid var(--primary-green);
    }
    .nav-links.open > li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.open > li > a {
        color: rgba(255,255,255,0.92) !important;
        padding: 0.85rem 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .nav-links.open .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: hidden;
        transform: none !important;
        box-shadow: none;
        border-radius: 0;
        border: none;
        border-left: 3px solid var(--accent-gold);
        background: rgba(255,255,255,0.08);
        margin: 0 0 0 1rem;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, visibility 0s linear 0.3s;
        min-width: unset;
        width: auto;
    }
    .nav-links.open .sub-menu.mobile-open {
        visibility: visible;
        max-height: 600px;
        transition: max-height 0.35s ease, visibility 0s linear 0s;
    }
    .nav-links.open .sub-menu li { border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-links.open .sub-menu a {
        padding: 0.65rem 1rem 0.65rem 1.25rem !important;
        font-size: 0.875rem;
        color: rgba(255,255,255,0.88) !important;
        background: none;
    }
    .nav-links.open .sub-menu a:hover { color: var(--accent-gold) !important; }
}

/* ==============================================
   HERO SLIDER — CROSSFADE EDITION
   ============================================== */

/* Outer wrapper — sets the height context */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: var(--dark-green); /* shown briefly while first slide loads */
}

/* Stack — fills the wrapper, clips everything */
.slider-stack {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Explicit height ensures position:absolute children don't collapse the stack */
    height: 100vh;
}

/* ---- Every slide stacks at position:absolute ---- */
.slide {
    position: absolute;
    inset: 0;                        /* top/right/bottom/left: 0 */
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;

    /* Crossfade: invisible by default */
    opacity: 0;
    visibility: hidden;
    transition:
        opacity    1.1s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s   linear 1.1s;  /* hide after fade completes */
    z-index: 0;
}

/* Active slide is fully visible and on top */
.slide.active {
    opacity: 1;
    visibility: visible;
    transition:
        opacity    1.1s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s   linear 0s;
    z-index: 1;
}

/* ---- Background image with Ken Burns zoom ---- */
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    /* Start slightly zoomed in — zoom out as the slide plays */
    transform: scale(1.08);
    transition: transform 7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* When active: start the slow zoom-out Ken Burns */
.slide.active .slide-bg {
    transform: scale(1.0);
}



/* Remove the dot-grid texture — image is clear now so it would clash */
/*.slide-overlay::after { display: none; }*/

/* ---- Slide content grid ---- */
.slide-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

/* ---- Text column: animate in when slide becomes active ---- */
.slide-text {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity   0.75s ease 0.5s,   /* 0.5s delay after crossfade starts */
        transform 0.75s ease 0.5s;
}

.slide.active .slide-text {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Visual column ---- */
.slide-visual {
    opacity: 0;
    transform: translateX(28px);
    transition:
        opacity   0.75s ease 0.65s,
        transform 0.75s ease 0.65s;
}

.slide.active .slide-visual {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Badge ---- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(184, 145, 83, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    color: var(--accent-gold-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-badge-dot {
    width: 7px; height: 7px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

/* ---- Heading — text-shadow replaces the heavy overlay for legibility ---- */
.slide-text h1 {
    font-size: 3.75rem;
    color: var(--white);
    margin-bottom: 1.25rem;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.4);
}

.slide-text h1 span {
    color: var(--accent-gold);
    font-style: italic;
}

/* ---- Description ---- */
.slide-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.25rem;
    max-width: 500px;
    line-height: 1.75;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* ---- Buttons ---- */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.75rem;
}

/* ---- Stats strip ---- */
.hero-stats {
    display: flex;
    gap: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item { text-align: left; }

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Right image card ---- */
.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.hero-image-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
}

.hero-image-text {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    line-height: 1.4;
}

/* ---- Floating cards ---- */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    padding: 1.25rem 1.4rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.floating-card-1 { top: -28px;  right: -18px; max-width: 195px; }
.floating-card-2 { bottom: 36px; left: -26px; max-width: 175px; animation-delay: -3s; }

.floating-card-icon {
    width: 38px; height: 38px;
    background: var(--primary-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.floating-card h4 { font-size: 0.875rem; color: var(--text-dark); margin-bottom: 0.2rem; }
.floating-card p  { font-size: 0.775rem; color: var(--text-muted); line-height: 1.4; }

/* ---- Progress bar ---- */
.slider-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    background: var(--accent-gold);
    width: 0%;
    transition: width 0.1s linear;
    z-index: 10;
}

/* ---- Controls ---- */
.slider-controls {
    position: absolute;
    bottom: 2.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.slider-dots {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.slider-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slider-dot.active {
    width: 28px;
    border-radius: 5px;
    background: var(--accent-gold);
}

.slider-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .slide-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .slide-visual { display: none; }
    .slide-description { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
}

@media (max-width: 768px) {
    .slide-text h1 { font-size: 2.4rem; }
    .hero-stats { gap: 1.5rem; }
    .slider-controls { bottom: 1.5rem; }
}
.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(184, 145, 83, 0.4);
}

.btn-primary:hover {
    background: #B8941F;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(184, 145, 83, 0.4);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-3px);
    color: var(--white);
}

/* ==============================================
   SECTION COMMON
   ============================================== */
.section { padding: 3.5rem 0; position: relative; }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.section-label {
    display: inline-block;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==============================================
   PROGRAMS
   ============================================== */
.programs { background: var(--white); }

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* 7th card — center it on the last row */
.programs-grid .program-card:last-child:nth-child(3n+1) {
    grid-column: 2;
}

.program-card {
    background: var(--cream);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary-green);
    transform: scaleX(0);
    transition: var(--transition);
}

.program-card:hover::before { transform: scaleX(1); }
.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.program-image { width: 100%; height: 220px; object-fit: cover; }

.program-content { padding: 2rem; }

.program-tag {
    display: inline-block;
    background: rgba(27, 94, 32, 0.1);
    color: var(--primary-green);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.program-card h3 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--text-dark); }
.program-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.6; }

.program-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.program-link:hover { color: var(--accent-gold); gap: 0.75rem; }

/* ==============================================
   ABOUT
   ============================================== */
.about {
    background: linear-gradient(to bottom, var(--cream), var(--white));
    overflow: hidden;
    padding: 3rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-images { position: relative; }

.about-image-main {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.about-image-secondary {
    position: absolute;
    bottom: -30px; right: -30px;
    width: 250px; height: 250px;
    object-fit: cover;
    border-radius: 20px;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    top: 30px; left: -20px;
    background: var(--primary-green);
    color: white;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge .years {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.experience-badge .text { font-size: 0.8rem; opacity: 0.9; margin-top: 0.25rem; }

.about-content h2 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--text-dark); }
.about-content > p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.8; }

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item { display: flex; gap: 1rem; align-items: flex-start; }

.feature-icon {
    width: 40px; height: 40px;
    background: rgba(27, 94, 32, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-item h4 { font-size: 1rem; margin-bottom: 0.25rem; color: var(--text-dark); }
.feature-item p  { font-size: 0.875rem; color: var(--text-muted); }

/* ==============================================
   STATS
   ============================================== */
.stats {
    background: var(--primary-green);
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stat-card .number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card .label { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }

/* ==============================================
   TESTIMONIALS
   ============================================== */
.testimonials { background: var(--white); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--cream);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: var(--accent-gold);
    opacity: 0.3;
    position: absolute;
    top: -10px; left: 20px;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonial-author { display: flex; align-items: center; gap: 1rem; }

.author-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.author-info h4 { font-size: 1rem; color: var(--text-dark); margin-bottom: 0.25rem; }
.author-info p  { font-size: 0.875rem; color: var(--text-muted); }

/* ==============================================
   CTA
   ============================================== */
.cta {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 80px 80px;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 { font-size: 3rem; color: var(--white); margin-bottom: 1rem; }
.cta p  { color: rgba(255, 255, 255, 0.8); font-size: 1.25rem; margin-bottom: 2.5rem; }

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* ---- Brand column ---- */
.footer-brand { display: flex; flex-direction: column; gap: 1.25rem; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.footer-logo-icon {
    width: 46px; height: 46px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--accent-gold);
    flex-shrink: 0;
}

.footer-logo-title {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.footer-logo-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--accent-gold-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.1rem;
}

.footer-brand__tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}
/* Footer Logo Image Styling */
.footer-logo-img {
    max-height: 50px;
    width: auto;
    display: block;
}


/* If your logo is already white or has its own color, remove the filter */

/* Social icons */
.social-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.social-links a {
    width: 36px; height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--white);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

/* ---- Menu columns ---- */
.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-gold-light);
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* WordPress wp_nav_menu output + fallback static list */
.footer-menu,
.footer-menu--fallback {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* WP wraps items in <li class="menu-item"> */
.footer-menu li a,
.footer-menu--fallback li a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.5;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-menu li a:hover,
.footer-menu--fallback li a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

/* ---- Bottom bar ---- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
}

.footer-bottom p a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
}

.footer-bottom p a:hover { color: var(--accent-gold); }

.footer-bottom__links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-bottom__links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom__links a:hover { color: var(--accent-gold); }

.footer-bottom__links span {
    color: rgba(255,255,255,0.2);
    font-size: 0.75rem;
}

/* ==============================================
   SINGLE POST / PAGE — CONTENT TYPOGRAPHY
   ============================================== */

/* Outer page padding */
.site-main {
    padding: 8rem 0 4rem;
}

/* Article wrapper */
.karu-single-post,
.single-post-article,
article.post,
article.page {
    max-width: 780px;
    margin: 0 auto;
}

/* Category chips above title */
.single-cats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.single-cat-link {
    display: inline-block;
    background: rgba(27,94,32,0.1);
    color: var(--primary-green);
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: var(--transition);
}

.single-cat-link:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* Title */
.single-title,
.entry-title {
    font-size: 2.6rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Meta row */
.single-meta,
.entry-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.single-meta-sep { opacity: 0.4; }

.single-meta a, .entry-meta a {
    color: var(--primary-green);
    text-decoration: none;
}

/* Featured image */
.single-thumb,
.post-thumbnail {
    margin-bottom: 2.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.single-thumb img,
.post-thumbnail img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
}

/* Tags */
.single-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.single-tag {
    background: var(--cream);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.single-tag:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

/* Author box */
.author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-top: 2.5rem;
    padding: 1.75rem;
    background: var(--cream);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.author-box__avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    display: block;
}

.author-box__name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.author-box__bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* Post navigation */
.post-nav {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.post-nav__prev,
.post-nav__next {
    flex: 1;
}

.post-nav__next { text-align: right; }

.post-nav__label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.post-nav__link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    line-height: 1.4;
}

.post-nav__link:hover { color: var(--primary-green); }

/* =============================================
   ENTRY CONTENT — all the typography
   ============================================= */
.single-content,
.entry-content {
    font-size: 1.075rem;
    line-height: 1.85;
    color: var(--text-dark);
}

/* Paragraphs */
.entry-content p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Headings inside content */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.entry-content h2 { font-size: 1.9rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.25rem; }
.entry-content h5 { font-size: 1.1rem; }
.entry-content h6 { font-size: 1rem; }

/* Links */
.entry-content a {
    color: var(--primary-green);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.entry-content a:hover { color: var(--accent-gold); }

/* Lists */
.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5rem 1.75rem;
    padding: 0;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.7;
}

/* Nested lists */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Blockquote */
.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-left: 4px solid var(--accent-gold);
    background: rgba(201, 162, 39, 0.06);
    border-radius: 0 12px 12px 0;
}

.entry-content blockquote p {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 0;
}

.entry-content blockquote cite {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-style: normal;
}

/* Images inside content */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
    display: block;
}

.entry-content figure {
    margin: 2rem 0;
}

.entry-content figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.entry-content th {
    background: var(--primary-green);
    color: var(--white);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
}

.entry-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
    vertical-align: top;
}

.entry-content tr:nth-child(even) td {
    background: var(--cream);
}

/* Code */
.entry-content code {
    background: var(--cream);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    font-size: 0.875em;
    color: var(--primary-green);
    font-family: monospace;
}

.entry-content pre {
    background: #1A1A1A;
    border-radius: 10px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.entry-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #E8D5A3;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Horizontal rule */
.entry-content hr {
    border: none;
    border-top: 2px solid var(--border-light);
    margin: 3rem 0;
}

/* Strong / em */
.entry-content strong { font-weight: 700; color: var(--text-dark); }
.entry-content em     { font-style: italic; }

/* WordPress block: buttons */
.entry-content .wp-block-button__link {
    background: var(--primary-green);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.entry-content .wp-block-button__link:hover {
    background: var(--accent-gold);
    color: var(--white);
}

/* WordPress block: separator */
.entry-content .wp-block-separator {
    border: none;
    border-top: 2px solid var(--border-light);
    margin: 2.5rem 0;
}

/* WordPress block: pullquote */
.entry-content .wp-block-pullquote {
    border-top: 4px solid var(--primary-green);
    border-bottom: 4px solid var(--primary-green);
    padding: 1.5rem 0;
    margin: 2.5rem 0;
    text-align: center;
}

.entry-content .wp-block-pullquote blockquote {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

.entry-content .wp-block-pullquote p {
    font-size: 1.4rem;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    color: var(--primary-green);
}

/* WordPress block: cover / media-text */
.entry-content .wp-block-cover,
.entry-content .wp-block-media-text {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

/* WordPress block: columns */
.entry-content .wp-block-columns {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.entry-content .wp-block-column { flex: 1; min-width: 200px; }

/* WordPress block: gallery */
.entry-content .wp-block-gallery {
    margin: 2rem 0;
}

/* WordPress block: quote */
.entry-content .wp-block-quote {
    margin: 2rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-left: 4px solid var(--accent-gold);
    background: rgba(201, 162, 39, 0.06);
    border-radius: 0 12px 12px 0;
}

/* WordPress Classic Editor content */
.entry-content .alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
    max-width: 50%;
}

.entry-content .alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
    max-width: 50%;
}

.entry-content .aligncenter {
    display: block;
    margin: 1.5rem auto;
    text-align: center;
}

/* Clearfix after floated images */
.entry-content::after {
    content: '';
    display: table;
    clear: both;
}

/* Entry footer — tags */
.entry-footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.entry-footer a {
    color: var(--primary-green);
    text-decoration: none;
    background: rgba(27, 94, 32, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin: 0 0.2rem;
    transition: var(--transition);
}

.entry-footer a:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* Related / navigation between posts */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    min-width: 200px;
}

.post-navigation .nav-next { text-align: right; }

.post-navigation a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.post-navigation a:hover { color: var(--primary-green); }

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

/* Author box */
.author-box {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--cream);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-box__avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
}

.author-box__name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.author-box__bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==============================================
   ARCHIVE / CATEGORY PAGES
   ============================================== */
.archive-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3.5rem;
    padding-top: 2rem;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.archive-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.archive-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.archive-card__img-link { display: block; }

.archive-card__img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--primary-green);
}

.archive-card__thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.archive-card:hover .archive-card__thumbnail { transform: scale(1.04); }

.archive-card__img-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
}

.archive-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.archive-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.archive-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.archive-card__title a {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.archive-card__title a:hover { color: var(--primary-green); }

.archive-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
}

.archive-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.archive-pagination {
    text-align: center;
    padding: 2rem 0;
}

.archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.archive-pagination .prev,
.archive-pagination .next {
    width: auto;
    padding: 0 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .archive-grid { grid-template-columns: 1fr; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
    .slide-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .slide-visual { display: none; }

    .slide-description { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }

    .about-grid { grid-template-columns: 1fr; }
    .about-images { order: 2; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }

    .slide-text h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom__links { justify-content: center; }
    .floating-card { display: none; }
    .cta h2 { font-size: 2rem; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        padding: 0.5rem 0;
        gap: 0;
        box-shadow: var(--shadow-lg);
        border-top: 3px solid var(--primary-green);
    }
    .nav-links.open > li {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .nav-links.open > li > a {
        color: var(--text-dark) !important;
        padding: 0.85rem 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    /* Mobile: sub-menus slide down */
    .nav-links.open .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: hidden;
        transform: none !important;
        box-shadow: none;
        border-radius: 0;
        border: none;
        border-left: 3px solid var(--primary-green);
        background: rgba(27,94,32,0.04);
        margin: 0 0 0 1rem;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, visibility 0s linear 0.3s;
        min-width: unset; width: auto;
    }
    .nav-links.open .sub-menu.mobile-open {
        visibility: visible;
        max-height: 600px;
        transition: max-height 0.35s ease, visibility 0s linear 0s;
    }
    .nav-links.open .sub-menu li { border-bottom: 1px solid rgba(0,0,0,0.04); }
    .nav-links.open .sub-menu a {
        padding: 0.65rem 1rem 0.65rem 1.25rem !important;
        font-size: 0.875rem;
        color: var(--text-dark) !important;
        background: none;
    }
    .nav-links.open .sub-menu a:hover { color: var(--primary-green) !important; }
    /* Hide triangle on mobile */
    .nav-links.open > li > .sub-menu::before { display: none; }
    .nav-links.open li.menu-item-has-children::after { display: none; }
}

/* ==============================================
   OUTLINE BUTTONS (used in section CTAs)
   ============================================== */
.btn-outline-green {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.btn-outline-green:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-gold {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201,162,39,0.35);
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ==============================================
   SHARED NEWS / ARTICLE TAG PILLS
   ============================================== */
.news-card__tag {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.news-tag--university {
    background: rgba(27, 94, 32, 0.1);
    color: var(--primary-green);
}

.news-tag--student {
    background: rgba(201, 162, 39, 0.12);
    color: #8a6d0b;
}

.news-card__date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ==============================================
   UNIVERSITY NEWS SECTION - FIXED LAYOUT
   ============================================== */
.karu-news {
    background: var(--cream);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* ---- Featured Card - New Structure ---- */
.news-card--featured {
    grid-column: 1 / -1;
    background: var(--white);
    border-radius: 18px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.news-card--featured:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.news-card--featured__inner {
    display: flex;
    flex-direction: row;
    gap: 0;
}

.news-card--featured__image {
    flex: 0 0 45%;
    overflow: hidden;
}

.news-card--featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.news-card--featured:hover .news-card--featured__image img {
    transform: scale(1.03);
}

.news-card--featured__content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card--featured .news-card__title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-card--featured .news-card__excerpt {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    -webkit-line-clamp: 3;
    line-height: 1.6;
}

/* ---- Regular Cards ---- */
.news-card:not(.news-card--featured) {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.news-card:not(.news-card--featured):hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.news-card:not(.news-card--featured)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.news-card:not(.news-card--featured):hover::after {
    transform: scaleX(1);
}

.news-card__image-wrap {
    position: relative;
    overflow: hidden;
}

.news-card__image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.news-card__image--placeholder {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    height: 210px;
}

.news-card__image--placeholder span {
    font-size: 3rem;
}

.news-card__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.25), transparent);
    opacity: 0;
    transition: var(--transition);
}

.news-card:not(.news-card--featured):hover .news-card__image {
    transform: scale(1.04);
}

.news-card:not(.news-card--featured):hover .news-card__image-overlay {
    opacity: 1;
}

.news-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.news-card__tag {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.news-tag--university {
    background: rgba(27, 94, 32, 0.1);
    color: var(--primary-green);
}

.news-card__date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.news-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    line-height: 1.35;
}

.news-card__title a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.news-card__title a:hover {
    color: var(--primary-green);
}

.news-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.news-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.news-card__author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.news-card__avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.news-card__read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.news-card__read-more:hover {
    color: var(--accent-gold);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .news-card--featured__inner {
        flex-direction: column;
    }
    
    .news-card--featured__image {
        flex: 0 0 auto;
        height: 260px;
    }
    
    .news-card--featured__content {
        padding: 1.75rem;
    }
    
    .news-card--featured .news-card__title {
        font-size: 1.4rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.no-posts-notice {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 3rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px dashed var(--border-light);
}
/* ==============================================
   STUDENT NOTICES SECTION
   ============================================== */
.karu-student-notices {
    background: linear-gradient(160deg, #fffdf0 0%, var(--white) 55%);
    position: relative;
    overflow: hidden;
}

/* subtle watermark */
.karu-student-notices::before {
    content: '📋';
    font-size: 22rem;
    position: absolute;
    right: -3rem; bottom: -5rem;
    opacity: 0.03;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

/* 4-card equal grid */
.notices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ---- Notice card ---- */
.notice-card {
    background: var(--white);
    border-radius: 18px;
    border: 1px solid var(--border-light);
    padding: 1.75rem 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

/* left accent stripe */
.notice-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 0;
    background: linear-gradient(to bottom, var(--accent-gold), #f59e0b);
    transition: height 0.4s ease;
}
.notice-card:hover::before { height: 100%; }

/* ---- Pinned badge ---- */
.notice-card--pinned {
    border-color: rgba(201, 162, 39, 0.35);
    background: linear-gradient(135deg, #fffdf5, var(--white));
}

.notice-card__pin {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(201, 162, 39, 0.15);
    color: #92650a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

/* ---- Top row ---- */
.notice-card__top {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.notice-card__icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.notice-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.notice-card__type {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    width: fit-content;
}

.notice-card__date {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ---- Title ---- */
.notice-card__title {
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 0.65rem;
    color: var(--text-dark);
}

.notice-card__title a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.notice-card__title a:hover { color: var(--primary-green); }

/* ---- Excerpt ---- */
.notice-card__excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 1.25rem;
}

/* ---- Footer ---- */
.notice-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-light);
    gap: 0.5rem;
}

.notice-card__issuer {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.notice-card__read-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}

.notice-card__read-more:hover { color: var(--primary-green); }

/* ---- Empty state ---- */
.sv-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 20px;
    border: 2px dashed var(--border-light);
}

.sv-empty__icon { font-size: 3rem; margin-bottom: 1rem; }
.sv-empty h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.sv-empty p  { color: var(--text-muted); }

/* ==============================================
   EVENTS SECTION
   ============================================== */
.karu-events {
    background: var(--white);
    overflow: hidden;
}

/* Section header row — title left, button right */
.events-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.events-header .section-subtitle { margin-bottom: 0; }

.events-view-all { flex-shrink: 0; }

/* Two-column layout: featured (left) + list (right) */
.events-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

/* =============================================
   FEATURED EVENT CARD
   ============================================= */
.event-featured:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: transparent;
}

/* Image */
.event-featured__img-link { display: block; }

.event-featured:hover .event-featured__img {
    transform: scale(1.02);
}

/* Date badge — floats over image bottom-left */
.event-featured__date-badge {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    background: var(--white);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    text-align: center;
    min-width: 64px;
    box-shadow: var(--shadow-md);
    line-height: 1;
}

.edb-day {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

.edb-month {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    margin-top: 2px;
}

.edb-year {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Type badge — top-right of image */
.event-featured__type-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Body */
.event-featured__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.event-featured__title {
    font-size: 1.6rem;
    margin-bottom: 0.85rem;
    line-height: 1.25;
}

.event-featured__title a {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.event-featured__title a:hover { color: var(--primary-green); }

.event-featured__excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Meta list (date / time / venue) */
.event-featured__meta {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.event-featured__meta li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.event-meta-icon { font-size: 1rem; flex-shrink: 0; }

/* =============================================
   UPCOMING EVENTS LIST
   ============================================= */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.events-list__heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
}

/* Individual event card in the list */
.event-card {
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.event-card:last-child { border-bottom: none; }

.event-card:hover {
    background: var(--cream);
    margin: 0 -1rem;
    padding: 0 1rem;
    border-radius: 12px;
    border-color: transparent;
}

.event-card__inner {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem 0;
    text-decoration: none;
    color: inherit;
}

/* Date block */
.event-card__date {
    width: 52px;
    min-width: 52px;
    height: 58px;
    background: var(--primary-green);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.event-card:hover .event-card__date {
    background: var(--accent-gold);
}

.ecd-day {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.ecd-month {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.8);
    margin-top: 2px;
}

/* Text */
.event-card__text { flex: 1; min-width: 0; }

.event-card__type {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.3rem;
}

.event-card__title {
    font-size: 0.975rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.event-card:hover .event-card__title { color: var(--primary-green); }

.event-card__venue {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Arrow */
.event-card__arrow {
    font-size: 1rem;
    color: var(--text-light);
    flex-shrink: 0;
    transition: var(--transition);
}

.event-card:hover .event-card__arrow {
    color: var(--accent-gold);
    transform: translateX(4px);
}

/* Empty state */
.events-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--cream);
    border-radius: 20px;
    border: 2px dashed var(--border-light);
}

.events-empty__icon { font-size: 3rem; margin-bottom: 1rem; }
.events-empty h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.events-empty p  { color: var(--text-muted); }

/* Responsive */
@media (max-width: 900px) {
    .events-layout { grid-template-columns: 1fr; }
    .events-list { margin-top: 1rem; }
    .events-header { flex-direction: column; align-items: flex-start; }
}

/* ==============================================
   RESPONSIVE — NEWS & STUDENT VOICES
   ============================================== */
@media (max-width: 1100px) {
    .notices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .news-card--featured {
        flex-direction: column;
        min-height: unset;
    }
    .news-card--featured .news-card__image-wrap {
        width: 100%;
        min-height: 260px;
        position: relative;
    }
    .news-card--featured .news-card__image {
        position: absolute;
        height: 100%;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-card--featured {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .notices-grid {
        grid-template-columns: 1fr;
    }
    .news-card--featured .news-card__title {
        font-size: 1.35rem;
    }
}

/* ==============================================
   WORDPRESS ALIGNMENT HELPERS
   ============================================== */
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0 auto 1.5rem; }
.alignwide  { width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ==============================================
   GUTENBERG / BLOCK EDITOR CONTENT FIXES
   Ensures wp-block-* elements render correctly
   when wp-block-library CSS is loaded
   ============================================== */

/* Make sure all text in blocks is visible */
.single-content p,
.single-content li,
.single-content td,
.single-content th,
.single-content span,
.single-content div,
.entry-content p,
.entry-content li,
.entry-content td {
    color: var(--text-dark);
}

/* Gutenberg paragraph block */
.single-content .wp-block-paragraph,
.entry-content .wp-block-paragraph {
    margin-bottom: 1.5rem;
    font-size: 1.075rem;
    line-height: 1.85;
    color: var(--text-dark);
}

/* Gutenberg heading blocks */
.single-content .wp-block-heading,
.entry-content .wp-block-heading {
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
}

/* Gutenberg image block */
.single-content .wp-block-image,
.entry-content .wp-block-image {
    margin: 2rem 0;
}

.single-content .wp-block-image img,
.entry-content .wp-block-image img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}

.single-content .wp-block-image figcaption,
.entry-content .wp-block-image figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Gutenberg quote block */
.single-content .wp-block-quote,
.entry-content .wp-block-quote {
    border-left: 4px solid var(--accent-gold);
    background: rgba(201,162,39,0.06);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.single-content .wp-block-quote p,
.entry-content .wp-block-quote p {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 0;
}

.single-content .wp-block-quote cite,
.entry-content .wp-block-quote cite {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
}

/* Gutenberg list block */
.single-content .wp-block-list,
.entry-content .wp-block-list {
    margin: 0 0 1.5rem 1.75rem;
    padding: 0;
}

.single-content .wp-block-list li,
.entry-content .wp-block-list li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Gutenberg cover block */
.single-content .wp-block-cover,
.entry-content .wp-block-cover {
    border-radius: 16px;
    overflow: hidden;
    margin: 2rem 0;
}

/* Gutenberg columns */
.single-content .wp-block-columns,
.entry-content .wp-block-columns {
    margin: 2rem 0;
}

/* Gutenberg button block */
.single-content .wp-block-button__link,
.entry-content .wp-block-button__link {
    background: var(--primary-green) !important;
    color: var(--white) !important;
    border-radius: 50px !important;
    padding: 0.75rem 1.75rem !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

.single-content .wp-block-button__link:hover,
.entry-content .wp-block-button__link:hover {
    background: var(--accent-gold) !important;
}

/* Gutenberg separator */
.single-content .wp-block-separator,
.entry-content .wp-block-separator {
    border: none;
    border-top: 2px solid var(--border-light);
    margin: 2.5rem 0;
}

/* Gutenberg table block */
.single-content .wp-block-table table,
.entry-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.single-content .wp-block-table th,
.entry-content .wp-block-table th {
    background: var(--primary-green);
    color: var(--white);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
}

.single-content .wp-block-table td,
.entry-content .wp-block-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
}

.single-content .wp-block-table tr:nth-child(even) td,
.entry-content .wp-block-table tr:nth-child(even) td {
    background: var(--cream);
}

/* Gutenberg file download block */
.single-content .wp-block-file,
.entry-content .wp-block-file {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--cream);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin: 1.5rem 0;
}

.single-content .wp-block-file .wp-block-file__button,
.entry-content .wp-block-file .wp-block-file__button {
    background: var(--primary-green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Classic Editor image captions */
.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ==============================================
   SCHOOLS CAROUSEL
   ============================================== */
.karu-schools {
    background: var(--cream);
    overflow: hidden;
}

.schools-carousel-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    /* show partial next card as hint */
    padding-right: 0;
}

/* The scrollable track */
.schools-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    cursor: grab;
    user-select: none;
}

.schools-track.dragging {
    cursor: grabbing;
    transition: none;
}

/* Each card — 4 visible on desktop, compact size */
.school-card {
    min-width: calc(25% - 1.2rem);
    max-width: 280px;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    flex-shrink: 0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.school-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* Image area */
.school-card__img {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.school-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.school-card:hover .school-card__img img {
    transform: scale(1.05);
}

.school-card__overlay {
    position: absolute;
    inset: 0;
    transition: opacity 0.3s ease;
}

/* Abbreviation badge — top right of image */
.school-card__abbr {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

/* Card body */
.school-card__body {
    padding: 1.1rem 1.25rem 1.25rem;
}

.school-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.school-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.school-card__desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.school-card__depts {
    font-size: 0.72rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 1rem;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.school-card__link {
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s ease;
}

.school-card__link:hover { gap: 0.6rem; }

/* Prev / Next buttons */
.schools-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.schools-btn:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.schools-btn--prev { left: -16px; }
.schools-btn--next { right: -16px; }

/* Dots */
.schools-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.schools-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.schools-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary-green);
}

/* Responsive — 3 on tablet, 2 on small tablet, 1.5 on mobile */
@media (max-width: 1100px) {
    .school-card { min-width: calc(33.333% - 1rem); max-width: none; }
}
@media (max-width: 768px) {
    .school-card { min-width: calc(50% - 0.75rem); max-width: none; }
}
@media (max-width: 480px) {
    .school-card { min-width: 80%; max-width: none; }
    .schools-btn--prev { left: 4px; }
    .schools-btn--next { right: 4px; }
}

/* ==============================================
   ARCHIVE CARD FULL LINK WRAPPER
   ============================================== */

/* The whole card is the link */
.archive-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Remove default link color from title inside linked card */
.archive-card__title {
    color: var(--text-dark);
    transition: color var(--transition);
}

.archive-card:hover .archive-card__title {
    color: var(--primary-green);
}

/* Read more arrow animates on card hover */
.archive-card:hover .news-card__read-more {
    color: var(--accent-gold);
}

/* Page links for paginated posts */
.page-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.page-number:hover,
.page-number.current {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

/* ==============================================
   GDLR CORE PAGE BUILDER CONTENT STYLES
   Styles the HTML output from karu_render_gdlr_content()
   ============================================== */
.gdlr-text-block {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.gdlr-text-block p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.gdlr-title {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    margin: 2rem 0 0.75rem;
    line-height: 1.3;
}

h2.gdlr-title { font-size: 1.8rem; }
h3.gdlr-title { font-size: 1.4rem; }

.gdlr-caption {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.gdlr-image {
    margin: 1.75rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.gdlr-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.gdlr-image figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

.gdlr-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1.75rem 0;
}

.gdlr-gallery-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform 0.3s ease;
}

.gdlr-gallery-img:hover { transform: scale(1.03); }

.gdlr-quote {
    border-left: 4px solid var(--accent-gold);
    background: rgba(201,162,39,0.06);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.gdlr-quote p {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 0;
}

.gdlr-quote cite {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
}

.gdlr-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 2rem 0;
}

.gdlr-video {
    margin: 1.75rem 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gdlr-video iframe,
.gdlr-video video {
    width: 100%;
    height: 100%;
    border: none;
}

.gdlr-btn {
    margin: 0.5rem 0;
}

/* ==============================================
   PAGE HERO BANNER (About Us, Contact etc.)
   ============================================== */
.page-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--dark-green);
    margin-top: 74px; /* navbar height */
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.03);
    transition: transform 8s ease-out;
}

.page-hero__bg--default {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 60%, var(--light-green) 100%);
}

.page-hero:hover .page-hero__bg { transform: scale(1); }

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.65) 0%,
        rgba(0,0,0,0.35) 60%,
        rgba(0,0,0,0.15) 100%
    );
}

.page-hero__content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.page-breadcrumb {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.page-breadcrumb a {
    color: var(--accent-gold-light);
    text-decoration: none;
    transition: var(--transition);
}

.page-breadcrumb a:hover { color: var(--accent-gold); }

.page-hero__title {
    font-size: 3rem;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
    margin: 0;
    max-width: 700px;
}

/* Page content area */
.page-content-wrap {
    padding: 4rem 0 5rem;
    background: var(--white);
}

.page-content-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* Wider layout for full-width pages */
.page-content-inner--wide {
    max-width: 1100px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero { min-height: 220px; }
    .page-hero__title { font-size: 2rem; }
}

/* ==============================================
   NAV WALKER CHEVRON SPANS
   ============================================== */
.karu-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    margin-left: 5px;
    opacity: 0.65;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Rotate on hover */
.nav-links > li:hover > a .karu-chevron {
    transform: rotate(225deg) translateY(2px);
    opacity: 1;
}

/* Level 1 chevron — points right */
.nav-links > li > .sub-menu > li.menu-item-has-children > a .karu-chevron {
    border-right: 1.5px solid currentColor;
    border-bottom: none;
    border-top: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: auto;
}

/* Override the ::after pseudo-element chevrons we set earlier
   since we now use real span elements */
.nav-links > li.menu-item-has-children > a::after,
.nav-links > li > .sub-menu > li.menu-item-has-children > a::after {
    display: none !important;
}

/* ==============================================
   STUDENT NOTICES - PREMIUM PULSING GLOW EFFECT
   ============================================== */

.notice-card--new {
    position: relative;
    background: linear-gradient(135deg, #FFFDF5, #FFFFFF);
    border-left: 4px solid #E20613;
    animation: softPulse 1.8s ease-in-out infinite;
}

@keyframes softPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        border-left-color: #E20613;
    }
    50% {
        box-shadow: 0 4px 20px rgba(226, 6, 19, 0.25);
        border-left-color: var(--accent-gold);
    }
}

/* Premium NEW badge */
.notice-card--new .notice-card__new-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #E20613, #c40510);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(226, 6, 19, 0.3);
    z-index: 10;
    letter-spacing: 0.5px;
}

/* Hover effect */
.notice-card--new:hover {
    animation: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(226, 6, 19, 0.2);
    transition: all 0.3s ease;
}

.notice-card--new:hover .notice-card__new-badge {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Fire emoji next to date for urgency */
.notice-card--new .notice-card__date::before {
    content: "🔥 ";
    font-size: 0.7rem;
    display: inline-block;
    animation: flicker 1s ease infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.notice-card__new-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
}

.new-flash {
    background: linear-gradient(135deg, #C9A227, #E8D5A3);
    color: #1B5E20;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: pulse 1.5s infinite;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.new-indicator {
    display: inline-block;
    animation: fadeOut 30s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

/* ==============================================
   PROPER FIX: Navbar overlay with padding-top
   ============================================== */
:root {
    --navbar-height: 74px;
}

.site-main {
    padding: 0;
}

.page-hero {
    margin-top: 0;
    padding-top: var(--navbar-height);
}

.site-main > :first-child {
    margin-top: 0;
    padding-top: var(--navbar-height);
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 68px;
    }
}

/* ==============================================
   TOP BAR - FIXED SPACING & GOLDEN HOVER
   ============================================== */

/* Top bar container - ensure enough width */
.top-bar {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem; /* Smaller base font */
    position: relative;
    z-index: 1001;
    overflow: visible;
}

.top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0; /* Reduced padding */
    flex-wrap: nowrap; /* PREVENT WRAPPING - keep on one line */
    gap: 1rem;
}

.top-bar__links {
    display: flex;
    gap: 0.8rem; /* Reduced gap between links */
    flex-wrap: nowrap; /* Keep all links on one line */
    overflow-x: auto; /* Scroll on very small screens if needed */
}

/* Link styles - smaller and compact */
.top-bar__links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem; /* Smaller gap between icon and text */
    padding: 0.25rem 0.6rem; /* Smaller padding */
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.75rem; /* Smaller font */
    background: rgba(255, 255, 255, 0.08);
    white-space: nowrap; /* Prevent text wrapping inside link */
}

/* GOLDEN HOVER - uniform for all links */
.top-bar__links a:hover {
    background: var(--accent-gold) !important;
    color: var(--dark-green) !important;
    transform: translateY(-2px);
}

/* Remove individual colorful hover colors */
.top-bar__links a:nth-child(1):hover,
.top-bar__links a:nth-child(2):hover,
.top-bar__links a:nth-child(3):hover,
.top-bar__links a:nth-child(4):hover,
.top-bar__links a:nth-child(5):hover,
.top-bar__links a:nth-child(6):hover {
    background: var(--accent-gold);
    color: var(--dark-green);
}

/* Icons - slightly smaller */
.top-bar__links a span {
    font-size: 0.85rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.top-bar__links a:hover span {
    transform: scale(1.1) rotate(3deg);
}

/* Contact section - keep compact */
.top-bar__contact {
    display: flex;
    gap: 0.8rem;
    flex-wrap: nowrap;
    flex-shrink: 0; /* Don't shrink contact section */
}

.top-bar__contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 0.75rem;
    white-space: nowrap;
}

.top-bar__contact a:hover {
    background: var(--accent-gold);
    color: var(--dark-green);
    transform: translateY(-2px);
}

/* For screens that are too small - allow horizontal scroll instead of wrapping */
@media (max-width: 1100px) {
    .top-bar__links {
        overflow-x: auto;
        scrollbar-width: thin;
        padding-bottom: 2px;
    }
    
    .top-bar__links::-webkit-scrollbar {
        height: 3px;
    }
}

/* For mobile - stack vertically */
@media (max-width: 768px) {
    .top-bar__inner {
        flex-direction: column;
        padding: 0.6rem 0;
        flex-wrap: wrap;
    }
    
    .top-bar__links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .top-bar__links a {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .top-bar__contact {
        justify-content: center;
    }
}
/* ==============================================
   COMPACT SECTIONS - FIXED (No distortion)
   ============================================== */

/* Reduce section padding - but keep container width */
.section {
    padding: 3rem 0;
}

.section.karu-news,
.section.karu-student-notices,
.section.karu-events,
.section.karu-schools {
    padding: 2.5rem 0;
}

.stats {
    padding: 2rem 0;
}

.about {
    padding: 2.5rem 0;
}

.testimonials {
    padding: 2.5rem 0;
}

.cta {
    padding: 4rem 0;
}

/* Reduce section header margins */
.section-header {
    margin-bottom: 2rem;
}

.section-header .section-title {
    margin-bottom: 0.5rem;
}

/* Keep container width - DON'T change this */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Ensure all grids stay centered */
.news-grid,
.notices-grid,
.testimonials-grid,
.programs-grid {
    gap: 1.5rem;
}

/* Keep card padding reasonable */
.news-card__body,
.notice-card,
.program-content {
    padding: 1.25rem;
}

/* Ensure no overflow issues */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Keep hero full width */
.hero-slider {
    width: 100%;
}

/* ==============================================
   EVENTS SECTION - IMPROVED WITH PORTRAIT IMAGE
   ============================================== */

/* Featured event - new layout with portrait image */
.event-featured__inner {
    display: flex;
    gap: 2rem;
    background: var(--cream);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.event-featured:hover .event-featured__inner {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: transparent;
}

/* Portrait image wrapper */
.event-featured__img-wrapper {
    flex: 0 0 280px;
    position: relative;
}

.event-featured__img-link {
    display: block;
    height: 100%;
}

.event-featured__img {
    position: relative;
    width: 100%;
    height: 380px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: var(--transition);
}

.event-featured:hover .event-featured__img {
    transform: scale(1.02);
}

/* Date badge - repositioned for portrait */
.event-featured__date-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--white);
    border-radius: 14px;
    padding: 0.6rem 0.8rem;
    text-align: center;
    min-width: 60px;
    box-shadow: var(--shadow-md);
    line-height: 1;
    z-index: 2;
}

/* Type badge */
.event-featured__type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 2;
}

.event-featured__body {
    flex: 1;
    padding: 2rem 2rem 2rem 0;
}

/* Events list - improved spacing */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.events-list__heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
}

/* Message when few events */
.events-more-coming {
    text-align: center;
    padding: 1.5rem;
    background: var(--cream);
    border-radius: 12px;
    margin-top: 1rem;
}

.events-more-coming p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .event-featured__inner {
        flex-direction: column;
        gap: 0;
    }
    
    .event-featured__img-wrapper {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .event-featured__img {
        height: 320px;
    }
    
    .event-featured__body {
        padding: 1.75rem;
    }
    
    .events-layout {
        grid-template-columns: 1fr;
    }
    
    .events-list {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .event-featured__img {
        height: 260px;
    }
    
    .event-featured__date-badge {
        padding: 0.4rem 0.6rem;
        min-width: 50px;
    }
    
    .edb-day {
        font-size: 1.5rem;
    }
}
/* Hide duplicate event featured image from The Events Calendar */
.tribe-events-event-image { display: none !important; }

/* Graduation year styling */
.grad-year {
    font-size: 0.7rem;
    color: var(--accent-gold);
    margin-top: 0.2rem;
    font-weight: 500;
}

/* Schools carousel - No Icons version */
.school-card__body {
    padding: 1.25rem;
}

.school-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.school-card__desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.school-card__depts {
    font-size: 0.72rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 1rem;
    font-style: italic;
}

.school-card__link {
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s ease;
}

.school-card__link:hover {
    gap: 0.6rem;
}

/* Compact spacing between sections */
.section.karu-schools {
    padding-bottom: 1.5rem !important;
    margin-bottom: 0 !important;
}

.section.karu-news {
    padding-top: 1rem !important;
    margin-top: 0 !important;
}

/* If you want even tighter */
.section.karu-schools {
    padding-bottom: 1rem !important;
}

.section.karu-news {
    padding-top: 1rem !important;
}
/* ==============================================
   HERO SLIDER - FULL WIDTH BACKGROUND ONLY
   ============================================== */

/* Full width content - centered text */
.slide-content--full {
    grid-template-columns: 1fr !important;
    text-align: center;
    justify-items: center;
}

.slide-text--centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.slide-text--centered .slide-description {
    margin-left: auto;
    margin-right: auto;
}

.slide-text--centered .hero-buttons {
    justify-content: center;
}

/* Hide the right side visual/image */
.slide-visual {
    display: none !important;
}

/* Remove any remaining overlay */
.slide-overlay {
    display: none !important;
}

/* Ensure background image is clear */
.slide-bg {
    filter: none !important;
    transform: scale(1.08);
    transition: transform 7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide.active .slide-bg {
    transform: scale(1.0);
}
/* ==============================================
   STUDENT LIFE SECTION - WITH IMAGES
   ============================================== */
.student-life {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.student-life-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.life-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.life-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.life-card:hover::after {
    transform: scaleX(1);
}

.life-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.life-card__image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.life-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.life-card:hover .life-card__image img {
    transform: scale(1.05);
}

.life-card__content {
    padding: 1.5rem;
}

.life-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.life-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.life-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.life-card__tags span {
    background: var(--cream);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--primary-green);
    transition: var(--transition);
}

.life-card:hover .life-card__tags span {
    background: rgba(6, 133, 69, 0.1);
}

@media (max-width: 900px) {
    .student-life-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .student-life-grid {
        grid-template-columns: 1fr;
    }
}
/* ==============================================
   LCP OPTIMIZATION - Force first slide to render immediately
   ============================================== */

/* Force first slide to render immediately for LCP */
.hero-slider .slide:first-child {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
}

/* Ensure the background image is painted fast */
.slide-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

/* Remove any animation that delays first paint */
.slide.active .slide-bg {
    transform: scale(1.0);
}

/* Custom Logo Styling */
.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    height: auto;
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .custom-logo {
        max-height: 45px;
    }
}