/* 
   Aalilai Trust - Unified & Compact Design System
   Standardizing UI, Spacing, Typography and Colors
*/

:root {
    /* Colors */
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --primary-light: #eafaf1;
    --secondary: #2c3e50;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #eeeeee;

    /* Spacing Scale (Strictly Compact) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-xxl: 32px;

    /* Typography */
    --font-family: 'Hind Madurai', sans-serif;
    --font-size-base: 16px;
    --h1-size: 32px;
    --h2-size: 24px;
    --h3-size: 20px;

    --radius: 4px;
    --transition: all 0.2s ease-in-out;
}

html {
    font-size: 16px !important;
    /* Lift the global rem scale for both website and admin surfaces */
}

body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: var(--font-size-base) !important;
    line-height: 1.75 !important;
    -webkit-font-smoothing: antialiased;
    position: relative;
    /* Removed overflow:hidden to prevent sticky breaks */
}

/* Fix Right-Shift: Reset main wrapper */
#main-content {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: block !important;
}

/* Sticky Header Implementation
   Keep the header in-flow (no layout jump) and let main.js toggle `.stick`
   on `#sticker` for visual state (shadow) without switching to position: fixed. */
.header-area {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10000 !important;
    background: #ffffff !important;
}

#sticker {
    position: relative;
    width: 100% !important;
    transition: all 0.3s ease;
    background: #ffffff;
}

/* main.js adds `.stick` to #sticker; neutralize theme fixed positioning */
#sticker.stick {
    position: relative !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    z-index: 10001 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-animation: none !important;
    animation: none !important;
}

/* MeanMenu container overrides for mobile compatibility */
.mobile-menu-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 10001;
}

.mean-container .mean-bar {
    z-index: 9999;
    padding: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    float: none !important;
    position: relative !important;
}

.mean-container a.meanmenu-reveal {
    padding: 0 !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    top: 50% !important;
    margin-top: -1px !important;
}

.mean-container a.meanmenu-reveal span {
    width: 100% !important;
    height: 2px !important;
    background: var(--secondary) !important;
    margin: 0 !important;
}

.mean-container .mean-nav {
    display: none; /* Let MeanMenu handle the toggle state */
}

/* Specific state for when mean-nav is visible and active */
.mean-container .mean-nav.active-nav, 
.mean-nav:not([style*="display: none"]) {
    position: fixed;
    top: 72px; /* Header height */
    left: 0;
    width: 100%;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 100000 !important;
}

.mean-container .mean-bar {
    z-index: 9999 !important;
}

.mean-container .mean-nav ul li a span {
    display: none !important; /* Hide any MeanMenu labels that are ghosting */
}

.mean-container .mean-nav ul li a {
    color: var(--secondary) !important;
    border-top: 1px solid var(--border-color) !important;
    padding: 15px 20px !important;
    font-weight: 600 !important;
    font-family: var(--font-family) !important;
}

.mean-container .mean-nav ul li a:hover {
    color: var(--primary) !important;
    background: var(--primary-light) !important;
}

/* Hide MENU text label meanmenu adds via content */
.mean-container .mean-bar::after {
    display: none !important;
}

/* Compact Navbar Size */
.logo {
    padding: 4px 0 !important;
    /* Minimized vertical padding */
    transition: all 0.3s ease;
}

.logo img {
    height: 50px !important;
    width: auto !important;
}

@media (max-width: 991px) {
    .logo img {
        height: 40px !important;
    }
}

.mainmenu ul li a {
    padding: 10px 15px !important;
    /* Reduced from 15px */
    font-size: 0.95rem !important;
    transition: all 0.3s ease;
}

/* Adjust Donate Button & Global Button Anchors */
#donateBtn,
.preview-card-btn,
.btn-modern,
.toggle-read,
.btn-common {
    padding: 10px 24px !important;
    font-size: 0.95rem !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: var(--transition) !important;
}

.header-bottom {
    padding: 0 !important;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* --- Navigation Active States & SPA Fixes --- */
.mainmenu nav ul li.active>a {
    color: var(--primary) !important;
}

.mean-container .mean-nav ul li.active>a {
    color: var(--primary) !important;
}

/* Section padding overrides removed to restore original scale */

/* Standardize Heading Dividers */
.leaf-divider::after {
    margin: 10px auto 0 !important;
}

.leaf-divider.text-start::after {
    margin: 10px 0 0 !important;
}

/* Fix nested wrapper spacing */
section>div,
.container>div {
    margin-top: 0 !important;
}

/* Remove oversized Hero gaps */
.slider-area,
.hero-area {
    padding: 0 !important;
    margin: 0 !important;
}

.modern-hero {
    height: 85vh !important;
    min-height: 600px !important;
    padding: 80px 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

@media (max-width: 991px) {
    .modern-hero {
        height: auto !important;
        min-height: 480px !important;
        padding: 60px 0 !important;
    }
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 980px;
    padding: 0 var(--space-md);
}

.hero-heading {
    color: #ffffff !important;
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    line-height: 1.1 !important;
}

.hero-subtext {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.15rem !important;
    font-weight: 400 !important;
    margin-bottom: 35px !important;
    line-height: 1.6 !important;
}

.hero-badge {
    background: rgba(46, 204, 113, 0.2) !important;
    border: 1px solid var(--primary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

@media (max-width: 991px) {
    .hero-heading {
        font-size: 2.75rem !important;
    }

    .hero-subtext {
        font-size: 1.15rem !important;
        margin-bottom: 25px !important;
    }
}

@media (max-width: 767px) {
    .hero-heading {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }

    .hero-subtext {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }

    .hero-container {
        padding: 0 15px !important;
    }
    
    .btn-modern {
        width: 100% !important;
        margin-bottom: 10px !important;
        margin-right: 0 !important;
    }
}


/* --- Buttons --- */
/* Consolidated Global Button Styles */
.btn,
button.btn-common,
.btn-modern,
.preview-card-btn,
.toggle-read,
#donateBtn {
    font-family: var(--font-family) !important;
    font-weight: 700 !important;
    padding: 10px 24px !important;
    height: 42px !important;
    border-radius: 50px !important;
    transition: var(--transition) !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    line-height: 1 !important;
    text-align: center;
    text-decoration: none !important;
}

.btn-primary,
.button-style-1,
.btn-modern-primary,
#donateBtn,
.btn-common {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2) !important;
}

.btn-primary:hover,
.button-style-1:hover,
.btn-modern-primary:hover,
#donateBtn:hover,
.btn-common:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(46, 204, 113, 0.3) !important;
    color: white !important;
}

.btn-modern-outline {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    color: white !important;
}

.btn-modern-outline:hover {
    background: white !important;
    color: var(--primary-dark) !important;
    border-color: white !important;
}

/* --- Cards & Modern Components --- */
.card,
.single-service,
.single-blog,
.program-card-modern,
.mission-card-modern,
.single-team,
.preview-card {
    background: var(--bg-white) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 20px !important;
    padding: var(--space-lg) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    transition: var(--transition) !important;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover,
.single-service:hover,
.single-blog:hover,
.program-card-modern:hover,
.mission-card-modern:hover,
.single-team:hover,
.preview-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.07) !important;
    border-color: rgba(46, 204, 113, 0.15) !important;
}

/* --- Program Module Enhancements --- */
.programs-section-modern {
    padding: var(--space-xxl) 0 !important;
}

.program-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto var(--space-md);
    transition: var(--transition);
}

.program-card-modern:hover .program-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(8deg) scale(1.1);
}

.program-title {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: var(--secondary) !important;
    margin-bottom: var(--space-sm) !important;
}

.program-desc {
    color: var(--text-muted) !important;
    font-size: 0.95rem !important;
    line-height: 1.6;
}

/* --- Event Module Enhancements --- */
.event-eco-section {
    padding: var(--space-xxl) 0 !important;
}

.event-description {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
}

.seed-counter {
    background: var(--primary-light);
    padding: var(--space-xl);
    border-radius: 24px;
    max-width: 400px;
    margin: var(--space-xl) auto;
    border: 1px solid rgba(46, 204, 113, 0.1);
}

.seed-counter h2,
.panai-counter h2 {
    font-size: 3rem !important;
    color: var(--primary) !important;
    margin: 10px 0;
}

/* Event Card Optimizations for Grid */
#event-section .event-eco-section {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: var(--space-xl) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04) !important;
    height: 100%;
    margin-top: 0 !important;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
}

#event-section .vithaiyodu-area,
#event-section .container {
    margin-top: 0 !important;
    padding: 0 !important;
}

#event-section .gradient-heading {
    font-size: 1.5rem !important;
    margin-bottom: var(--space-md) !important;
}

#event-section .event-description {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: var(--space-lg) !important;
}

#event-section .seed-counter,
#event-section .panai-counter {
    padding: var(--space-md) !important;
    margin: var(--space-md) auto !important;
    max-width: 100%;
}

#event-section .seed-counter h2,
#event-section .panai-counter h2 {
    font-size: 2.25rem !important;
}

#event-section .event-gallery-title {
    font-size: 1.1rem !important;
    margin-top: var(--space-lg) !important;
}

#event-section .event-gallery .row {
    margin-top: 15px !important;
}

#event-section .event-gallery img {
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

/* --- Header / Navbar Stability --- */
/* Header bottom overrides removed to restore original scale */

.mainmenu ul li a {
    font-family: 'Hind Madurai', sans-serif !important;
    font-size: 0.95rem;
    /* Slightly smaller for compactness */
    font-weight: 700;
    color: var(--secondary) !important;
    padding: 8px 12px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}


.mainmenu ul li a:hover,
.mainmenu ul li.active a {
    color: var(--primary) !important;
}

/* Navbar and Logo overrides removed to restore original scale */

/* --- Section Titles --- */
.section-title,
.section-head-modern {
    text-align: center;
    margin-bottom: var(--space-xl) !important;
}

.section-title h2,
.section-head-modern h2 {
    font-size: var(--h2-size) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm) !important;
}

.section-title p,
.section-head-modern p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light) !important;
}

@media (max-width: 767px) {
    .section-title h2,
    .section-head-modern h2 {
        font-size: 1.5rem !important;
    }
    
    .section-title,
    .section-head-modern {
        margin-bottom: var(--space-lg) !important;
    }
}

.text-center-group {
    text-align: center !important;
}

.text-center-group * {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* --- Premium Preview Cards (Home Snapshot Section) --- */
/* --- Premium Preview Cards (Home Snapshot Section) --- */
/* --- Premium Preview Cards (Home Snapshot Section) --- */
.preview-card-group {
    padding: 100px 0 80px !important;
    /* Increased padding for better framing */
    position: relative;
    overflow: hidden;
    /* Ultra-subtle Google-style tint */
    background: linear-gradient(180deg, #ffffff 0%, #f4f9f6 100%) !important;
    border-bottom: 1px solid rgba(46, 204, 113, 0.06) !important;
}

/* Ensure content stays above the layered artwork */
.preview-card-group .container {
    position: relative;
    z-index: 5;
}

/* 
   Botanical Art Elements (Eucalyptus Style)
   Style: Flat Vector, Filled Shapes, Editorial
   Reference: Eucalyptus leaves with berries
*/
.preview-card-group::before,
.preview-card-group::after {
    content: '';
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
    /* Behind content */
    opacity: 0.15;
    /* Increased opacity for flat vector look */
    filter: none;
    /* Crisp edges (no blur) */
    transition: all 0.5s ease-in-out;
}

/* Top-Left: Hanging Eucalyptus Branch with Berries */
.preview-card-group::before {
    top: -20px;
    left: -20px;
    width: 380px;
    height: 380px;
    /* 
       SVG: Eucalyptus Branch (Natural Leaf Shapes)
       Leaf Shape: Elongated Oval/Lanceolate
       Colors: Rich Green Leaves, Pastel Green Berries
    */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'%3E%3C!-- Stem --%3E%3Cpath d='M20 20 Q 50 80 80 180' stroke='%2327ae60' stroke-width='2.5' stroke-linecap='round' /%3E%3C!-- Leaves (Lanceolate Shapes) --%3E%3Cg fill='%23219150'%3E%3C!-- Left Leaves --%3E%3Cpath d='M35 50 Q 10 40 15 70 Q 30 75 35 50 Z' /%3E%3Cpath d='M50 90 Q 20 85 25 115 Q 45 115 50 90 Z' /%3E%3Cpath d='M65 135 Q 35 130 40 160 Q 60 160 65 135 Z' /%3E%3C!-- Right Leaves --%3E%3Cpath d='M40 55 Q 70 45 75 75 Q 55 80 40 55 Z' /%3E%3Cpath d='M60 95 Q 90 90 95 120 Q 75 120 60 95 Z' /%3E%3Cpath d='M75 140 Q 105 135 110 165 Q 90 165 75 140 Z' /%3E%3C/g%3E%3C!-- Berry Clusters --%3E%3Cg fill='%232ecc71'%3E%3Ccircle cx='42' cy='82' r='4' /%3E%3Ccircle cx='48' cy='78' r='3' /%3E%3Ccircle cx='62' cy='122' r='4' /%3E%3Ccircle cx='68' cy='118' r='3' /%3E%3Ccircle cx='82' cy='152' r='3' /%3E%3C/g%3E%3C/svg%3E");
    transform: rotate(0deg);
}

/* Bottom-Right: Rising Leafy Branch */
.preview-card-group::after {
    bottom: -30px;
    right: -20px;
    width: 320px;
    height: 320px;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'%3E%3C!-- Stem --%3E%3Cpath d='M100 200 Q 130 140 180 50' stroke='%2327ae60' stroke-width='2.5' stroke-linecap='round' /%3E%3C!-- Leaves (Lanceolate Shapes) --%3E%3Cg fill='%23219150'%3E%3C!-- Leaves pointing up/out --%3E%3Cpath d='M110 180 Q 90 160 100 140 Q 120 150 110 180 Z' /%3E%3Cpath d='M130 140 Q 110 120 120 100 Q 140 110 130 140 Z' /%3E%3Cpath d='M150 90 Q 130 70 140 50 Q 160 60 150 90 Z' /%3E%3Cpath d='M120 160 Q 150 150 160 170 Q 140 180 120 160 Z' /%3E%3Cpath d='M145 110 Q 175 100 180 120 Q 160 130 145 110 Z' /%3E%3C/g%3E%3C!-- Berry Clusters --%3E%3Cg fill='%232ecc71'%3E%3Ccircle cx='125' cy='145' r='4' /%3E%3Ccircle cx='118' cy='150' r='3' /%3E%3Ccircle cx='160' cy='95' r='4' /%3E%3C/g%3E%3C/svg%3E");
    transform: rotate(0deg);
}

/* Responsive Adjustments: Maintain framing without clutter */
@media (max-width: 992px) {
    .preview-card-group::before {
        width: 220px;
        height: 220px;
    }

    .preview-card-group::after {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 576px) {
    .preview-card-group {
        padding: 60px 0 40px !important;
    }

    /* Simplify art heavily on mobile */
    .preview-card-group::before {
        width: 140px;
        height: 140px;
        opacity: 0.05;
        top: -20px;
        left: -20px;
    }

    .preview-card-group::after {
        width: 110px;
        height: 110px;
        opacity: 0.05;
        bottom: -20px;
        right: -20px;
    }
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    max-width: var(--container-medium);
    margin: 0 auto;
}

.preview-card {
    background: var(--bg-white);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-light);
}

.preview-card-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    background: #eee;
}

.preview-card-body {
    padding: 30px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.preview-card-tag {
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: var(--primary) !important;
    margin-bottom: 15px !important;
    display: inline-block;
}

.preview-card-title {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: var(--secondary) !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
}

.preview-card-text {
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 25px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7 !important;
}

.preview-card-btn {
    margin: auto auto 0 !important;
    /* Force to bottom of equal height card */
    font-weight: 700 !important;
    color: var(--primary) !important;
    text-decoration: none !important;
    height: auto !important;
    /* Reset height for text-link style */
    padding: 0 !important;
    /* Reset padding for text-link style */
    background: transparent !important;
    box-shadow: none !important;
    text-transform: uppercase;
    font-size: 0.8rem !important;
    letter-spacing: 1px;
}

.preview-card-btn::after {
    content: ' â†’' !important;
    transition: transform 0.2s ease;
}

.preview-card-btn:hover::after {
    transform: translateX(5px);
}

/* --- Blog Section & Premium Unified Cards --- */
.blog-section {
    padding: var(--space-xxl) 0 !important;
    background-color: #fafdfb;
    text-align: center !important;
}

.blog-row {
    background: var(--bg-white) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 20px !important;
    /* Unified rounded corners */
    margin-bottom: var(--space-xl) !important;
    display: flex;
    overflow: hidden;
    /* Ensures image and content stay within the unified card */
    transition: var(--transition) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04) !important;
    padding: 0 !important;
    /* Unified means the card is the boundary */
}

.blog-row:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(46, 204, 113, 0.2) !important;
}

.blog-image {
    flex: 0 0 32%;
    /* Balanced proportions */
    max-width: 32%;
    height: auto;
    min-height: 240px;
    border-radius: 0 !important;
    /* Flush with card edge */
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-row:hover .blog-image img {
    transform: scale(1.08);
    /* Sophisticated subtle zoom */
}

.blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center !important;
    padding: var(--space-xl) !important;
    /* Balanced internal padding */
    text-align: center !important;
}

.blog-meta-date {
    color: var(--text-light) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center !important;
    gap: 10px;
    width: 100%;
}

.blog-meta-date::after,
.blog-meta-date::before {
    content: '';
    width: 25px;
    height: 2px;
    background: var(--primary);
    display: inline-block;
}

.blog-title-link {
    font-size: 1.5rem !important;
    /* Stronger hierarchy */
    font-weight: 700 !important;
    color: var(--secondary) !important;
    margin-bottom: 15px !important;
    display: block;
    line-height: 1.3 !important;
}

.blog-title-link:hover {
    color: var(--primary) !important;
}

.blog-preview {
    color: var(--text-muted) !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    margin-bottom: 25px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center !important;
}

/* Modern "Read More" button */
.blog-section .toggle-read {
    background: var(--primary-light) !important;
    border: none !important;
    color: var(--primary-dark) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    /* Soft pill button */
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-self: center !important;
    margin: 10px auto !important;
    transition: var(--transition);
}

.blog-section .toggle-read:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .blog-image {
        flex: 0 0 35%;
        max-width: 35%;
    }

    .blog-title-link {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 768px) {
    .blog-row {
        flex-direction: column;
        border-radius: 16px !important;
    }

    .blog-image {
        max-width: 100%;
        width: 100%;
        flex: 0 0 auto;
        height: 240px;
    }

    .blog-content {
        padding: var(--space-lg) !important;
    }
}




/* --- Alerts --- */
.alert {
    border: none !important;
    border-radius: var(--radius) !important;
    font-size: 0.95rem !important;
    padding: 0.75rem 1.25rem !important;
    margin-bottom: var(--space-md) !important;
}

.alert-success {
    background: #d4edda !important;
    color: #155724 !important;
}

.alert-danger {
    background: #f8d7da !important;
    color: #721c24 !important;
}

.alert-info {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
}

/* Mobile Menu Fix */
.mean-container .mean-nav {
    background: var(--bg-white) !important;
}

/* --- Stats / Counter Section Polish --- */
.counterUp-area {
    padding: 30px 0 70px !important;
    /* Tightened top spacing to connect with cards */
    background: #ffffff;
    position: relative;
    border-top: none !important;
}

/* Branch Separator Decoration - nature inspired */
.counterUp-area::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232ecc71' opacity='0.15'%3E%3Cpath d='M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8.16,20C11.33,20 14,17.33 14,14C14,12.86 13.6,11.77 13.04,10.81C15.11,9.83 16.62,8.12 17,6C18.41,6.5 20.08,7.39 21,9L22,8C21,6 19.17,4.42 17,4C17,4.42 17,4.84 17,5.27C16.5,3 15.54,1.1 14,0L13,1C14,2 15,4 15,7C12,7 10,8 8,11C8,8 6,8 5,8C5,11 6,14 8,16C8,17 9,18 10,18C10,19 8,20 6,20C5.5,20 5,20 4.5,19.85C5.5,16.5 7.5,13.5 11,12L10,11C7,12.5 5,15.5 4,19V11C4,9 5,7 7,6C7,6 7,5 7,4C4,5 2,8 2,12V20L2,22L4,22C4,20 4,18 5,16C5,18 6,20 8,20C10.21,20 12,18.21 12,16C12,15 11.7,14.1 11.2,13.3C13,14 14.5,15.5 15,18L17,17.5C16.5,15 15,13 13.5,12C14.5,11 15.5,9 16,7C16,7.5 16,8 16,8.5L17,8Z'/%3E%3C/svg%3E") no-repeat;
    background-size: contain;
    z-index: 2;
}

/* Frame & Botanical Count Card Style - Premium Watercolor/Gold Edition */
.single-counter {
    text-align: center;
    padding: 50px 30px !important;
    position: relative;
    background: #ffffff;
    /* Soft shadow for depth */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    /* Double Border Effect via Box Shadow & Border */
    border: 1px solid rgba(46, 204, 113, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'%3E%3C!-- Base Watercolor Leaves --%3E%3Cg opacity='0.8'%3E%3Cpath d='M180 180 Q 140 160 160 100 Q 190 110 180 180 Z' fill='%235f7f7a' /%3E%3Cpath d='M180 180 Q 120 190 110 130 Q 150 120 180 180 Z' fill='%232f4f4f' /%3E%3Cpath d='M150 150 Q 100 140 90 80 Q 130 90 150 150 Z' fill='%236c8c7f' /%3E%3C/g%3E%3C!-- Gold Foil Outlines --%3E%3Cg stroke='%23c5a059' stroke-width='1' fill='none'%3E%3Cpath d='M180 180 Q 140 160 160 100' /%3E%3Cpath d='M180 180 Q 120 190 110 130' /%3E%3Cpath d='M150 150 Q 100 140 90 80' /%3E%3Cpath d='M150 150 Q 180 100 140 90' stroke-width='0.5' /%3E%3C/g%3E%3C/svg%3E");
    background-position: bottom -20px right -20px;
    background-repeat: no-repeat;
    background-size: 180px 180px;
}

.single-counter:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* 
   Inner Golden Frame 
   Style: Elegant Thin Gold Line floating inside
*/
.single-counter::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid rgba(197, 160, 89, 0.5);
    /* Antique Gold */
    z-index: 2;
    /* On top of art, below text (text is z-index 5) */
    pointer-events: none;
}

/* 
   Corner Botanical Art (Top Left)
   Style: Lush Watercolor-style leaves with Gold Foil Outlines
   Palette: Dark Slate (#2f4f4f), Sage (#78909c), Gold (#c5a059)
*/
.single-counter::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 180px;
    height: 180px;
    z-index: 1;
    /* Below frame if desired, or above? Reference shows leaves BEHIND frame usually, or intertwining. Let's put BEHIND text but maybe INTERSECT frame. keeping z-1 is safe. */
    opacity: 0.9;
    /* High opacity for distinct watercolor look */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'%3E%3C!-- Base Watercolor Leaves --%3E%3Cg opacity='0.8'%3E%3Cpath d='M20 20 Q 60 40 40 100 Q 10 90 20 20 Z' fill='%235f7f7a' /%3E%3Cpath d='M20 20 Q 80 10 90 70 Q 50 80 20 20 Z' fill='%232f4f4f' /%3E%3Cpath d='M50 50 Q 100 60 110 120 Q 70 110 50 50 Z' fill='%236c8c7f' /%3E%3Cpath d='M30 30 Q 10 80 50 90 Q 70 50 30 30 Z' fill='%2388a096' /%3E%3C/g%3E%3C!-- Gold Foil Outlines (Offset/Sketchy) --%3E%3Cg stroke='%23c5a059' stroke-width='1' fill='none'%3E%3Cpath d='M20 20 Q 60 40 40 100 Q 10 90 20 20' /%3E%3Cpath d='M20 20 Q 80 10 90 70 Q 50 80 20 20' /%3E%3Cpath d='M50 50 Q 100 60 110 120' /%3E%3Cpath d='M50 50 Q 20 100 60 110' stroke-width='0.5' /%3E%3Cpath d='M80 80 Q 130 90 120 140' stroke-width='0.5' /%3E%3C/g%3E%3C/svg%3E") no-repeat;
    background-size: contain;
    transform: rotate(0deg);
}

/* 
  Bottom-Right Corner Art 
  Using a secondary background on the container element itself would interfere with the text.
  Instead, we can use a separate span or div if HTML allowed, but here we can try using background-image on the main element for the second corner.
*/
/* 
   Corner Botanical Art (Bottom Right - Mirrored/Complementary)
*/
/* The background-image for bottom-right corner is now part of .single-counter above */

.single-counter .count-number {
    position: relative;
    z-index: 5;
    /* Lift text well above art */
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    /* Refined Weight */
    color: var(--secondary) !important;
    /* Darker text for contrast with gold/green */
    margin-bottom: 10px !important;
    line-height: 1 !important;
    display: block;
    font-family: 'Hind Madurai', sans-serif !important;
    /* Serif for premium look if available, matches reference vibe */
}

.single-counter h4 {
    position: relative;
    z-index: 5;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #c5a059 !important;
    /* Gold text matching reference "GOLDEN frame" text */
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    margin: 0 !important;
}


/* --- Footer Styles Restoration --- */
.footer-area {
    background: #1a252f !important;
    color: #ffffff !important;
    padding: 60px 0 0 0 !important;
    border-top: 3px solid var(--primary);
}

.footer-widget h3,
.footer-widget h4 {
    color: #ffffff !important;
    margin-bottom: 25px !important;
    font-size: 1.25rem !important; /* Slightly larger on mobile */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    word-break: break-word; /* Prevent long words from breaking layout */
}

.footer-area p,
.footer-area li {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-area a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-area a:hover {
    color: var(--primary) !important;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6) !important;
}

.social-icons a {
    color: #ffffff !important;
    opacity: 0.8;
    margin-right: 15px;
    font-size: 1.1rem;
}

.social-icons a:hover {
    opacity: 1;
    color: var(--primary) !important;
}

@media (max-width: 767px) {
    .footer-widget {
        margin-bottom: 40px !important;
        text-align: center !important;
    }
    
    .footer-widget h3::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .social-icons {
        justify-content: center !important;
    }
    
    .contact-details li {
        justify-content: center !important;
    }
}

.footer-links,
.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.contact-details li {
    margin-bottom: 12px;
}

.contact-details i {
    color: var(--primary);
    margin-right: 10px;
    width: 20px;
}

/* Obsolete duplicate stats section removed to favor consolidated version above */

/* Event Gallery Grid Refinement */
.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.event-gallery-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.event-gallery-img:hover {
    transform: scale(1.05);
}

/* --- Mobile Responsive Polish For SPA Sections --- */
@media (max-width: 991px) {
    .programs-section-modern,
    #event-section,
    #blog-section,
    #gallery-section {
        padding-top: 72px !important;
        padding-bottom: 56px !important;
    }

    .programs-section-modern .container,
    #event-section .container,
    #blog-section .container,
    #gallery-section .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .section-head-modern {
        margin-bottom: 2.25rem !important;
    }

    .section-head-modern h2,
    #blog-section .section-title h2,
    #gallery-section .section-head-modern h2 {
        font-size: clamp(2rem, 5vw, 2.7rem) !important;
    }

    .section-head-modern p,
    #blog-section .section-title p {
        font-size: 0.98rem !important;
        max-width: 640px;
    }

    .preview-card {
        border-radius: 18px;
    }

    .preview-card-body {
        padding: 24px !important;
    }

    .preview-card-title {
        font-size: 1.25rem !important;
    }

    .preview-card-text {
        margin-bottom: 20px !important;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .preview-card-img {
        height: 220px;
    }

    #blog-section .preview-card {
        max-width: none !important;
    }

    #gallery-section .project-thumb {
        height: 230px !important;
    }
}

@media (max-width: 767px) {
    .programs-section-modern,
    #event-section,
    #blog-section,
    #gallery-section {
        padding-top: 60px !important;
        padding-bottom: 44px !important;
    }

    .programs-section-modern .container,
    #event-section .container,
    #blog-section .container,
    #gallery-section .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .section-head-modern {
        margin-bottom: 1.8rem !important;
    }

    .section-head-modern h2,
    #blog-section .section-title h2,
    #gallery-section .section-head-modern h2 {
        font-size: clamp(1.75rem, 8vw, 2.2rem) !important;
    }

    .section-head-modern p,
    #blog-section .section-title p {
        font-size: 0.92rem !important;
        line-height: 1.65 !important;
    }

    .preview-card {
        border-radius: 16px;
    }

    .preview-card-body {
        padding: 20px !important;
    }

    .preview-card-title {
        font-size: 1.15rem !important;
        margin-bottom: 12px !important;
    }

    .preview-card-text {
        font-size: 0.92rem !important;
        line-height: 1.6 !important;
        margin-bottom: 18px !important;
    }

    .preview-card-img {
        height: 200px;
    }

    .event-card-modern {
        padding: 26px 20px !important;
        border-radius: 18px !important;
    }

    .event-card-modern h2 {
        font-size: 1.25rem !important;
        line-height: 1.25;
    }

    .event-subtitle {
        margin-bottom: 14px !important;
        font-size: 0.85rem !important;
    }

    .event-description {
        font-size: 0.92rem !important;
        line-height: 1.65 !important;
        margin-bottom: 20px !important;
    }

    .event-counter-widget {
        padding: 16px !important;
        margin: 16px 0 !important;
    }

    .event-counter-widget h2 {
        font-size: 2rem !important;
    }

    .event-counter-widget h4 {
        font-size: 0.95rem !important;
    }

    .event-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .event-gallery-img {
        height: 74px !important;
    }

    #program-section .row.g-4,
    #event-section .row.g-5,
    #blog-section .row.g-4,
    #gallery-section .project-items {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    #gallery-section .project-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    #gallery-section .project-nav ul {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        width: max-content;
        min-width: 100%;
        gap: 10px !important;
        padding: 0 6px 4px !important;
    }

    #gallery-section .project-nav li {
        white-space: nowrap;
        background: #ffffff;
        border: 1px solid rgba(46, 204, 113, 0.15);
        border-radius: 999px;
        padding: 8px 14px;
        line-height: 1;
    }

    #gallery-section .single-project {
        margin-bottom: 1rem !important;
    }

    #gallery-section .project-thumb {
        height: 220px !important;
    }
}

@media (max-width: 576px) {
    .preview-card-body {
        padding: 18px !important;
    }

    .preview-card-tag {
        font-size: 0.7rem !important;
        letter-spacing: 1px !important;
        margin-bottom: 12px !important;
    }

    .preview-card-title {
        font-size: 1.08rem !important;
    }

    .preview-card-text {
        font-size: 0.88rem !important;
    }

    .preview-card-img {
        height: 185px;
    }

    .event-card-modern {
        padding: 22px 16px !important;
    }

    .event-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .event-gallery-img {
        height: 84px !important;
    }

    #gallery-section .project-thumb {
        height: 200px !important;
    }
}


@media (max-width: 576px) {
    .event-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Fix for overlapping text in hero on very small screens */
@media (max-width: 360px) {
    .hero-heading {
        font-size: 1.75rem !important;
    }
    
    .hero-badge {
        padding: 6px 14px !important;
        font-size: 0.75rem !important;
    }
}

.footer-area h3::after,
.footer-area h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-area p,
.footer-area li,
.footer-area a {
    color: rgba(255, 255, 255, 0.85) !important;
    /* Improved contrast */
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    /* Compact line height */
    margin-bottom: 8px !important;
}

.footer-area a:hover {
    color: var(--primary) !important;
    padding-left: 3px;
    transition: var(--transition);
}

/* Social Icons Alignment & Visibility Fix */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: var(--space-md);
    align-items: center;
}

.social-icons a {
    text-decoration: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    display: inline-flex !important;
}

/* Ensure FontAwesome is not overridden by global Outfit font */
.social-icons i,
.social-icons a i,
.fa {
    font-family: FontAwesome !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
}

.social-icons i,
.social-icons a i {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    transition: var(--transition) !important;
    color: var(--primary) !important;
    /* Green Accent */
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.social-icons a:hover i,
.social-icons i:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3) !important;
}



/* Contact Details */
.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-details i {
    color: var(--primary) !important;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Newsletter Input Fix */
@media (max-width: 767px) {
    .footer-newsletter .form-control {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: white !important;
        height: 40px !important;
        width: 100% !important;
        margin-bottom: 10px !important;
        border-radius: 4px !important;
    }

    .footer-newsletter .input-group {
        display: flex;
        flex-direction: column;
    }

    .footer-newsletter .input-group-append, 
    .footer-newsletter .btn-primary {
        width: 100% !important;
        border-radius: 4px !important;
    }
}

/* Footer Bottom Bar */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3) !important;
    padding: var(--space-sm) 0 !important;
    /* Reduced padding */
    margin-top: var(--space-lg) !important;
    /* Reduced margin */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.8rem !important;
    opacity: 0.6;
    margin: 0 !important;
}

/* --- Inner Pages & Banners --- */
.page-banner-area {
    background: var(--bg-light) !important;
    padding: var(--space-xl) 0 !important;
    border-bottom: 1px solid var(--border-color);
}

.height-400 {
    height: auto !important;
    min-height: 200px !important;
}

.page-banner-text h2 {
    font-size: var(--h2-size) !important;
    margin-bottom: var(--space-sm) !important;
    color: var(--secondary) !important;
}

.site-breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.site-breadcrumb a {
    color: var(--primary);
}

/* --- Responsive Helpers --- */
@media (max-width: 991px) {
    :root {
        --h1-size: 1.75rem;
        --h2-size: 1.5rem;
        --h3-size: 1.15rem;
    }

    section,
    .section-padding {
        padding: var(--space-lg) 0 !important;
    }

    .modern-hero {
        height: auto !important;
        min-height: 420px !important;
        padding: 64px 0 !important;
    }
}


/* Previous container overrides removed */

/* --- Compact Table/Forms --- */
.form-control {
    font-family: var(--font-family) !important;
    border-radius: 4px !important;
    border: 1px solid var(--border-color) !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem !important;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25) !important;
}

@media (max-width: 767px) {
    .form-group, .mb-3, .mb-4 {
        margin-bottom: 15px !important;
    }
    
    .input-group {
        flex-direction: column !important;
    }
    
    .input-group > .form-control,
    .input-group > .input-group-append,
    .input-group > .input-group-prepend {
        width: 100% !important;
        margin-bottom: 5px !important;
        border-radius: 4px !important;
    }
    
    .input-group-append .btn {
        width: 100% !important;
        border-radius: 4px !important;
    }
}

/* ============================================
   SKIP LINK - FORCE HIDE (ACCESSIBILITY COMPLIANT)
   ============================================ */
/* This MUST be at the end to override all other styles */
.skip-to-content {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: -1 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Show only when focused via keyboard */
.skip-to-content:focus,
.skip-to-content:focus-visible {
    position: fixed !important;
    left: 50% !important;
    top: 12px !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    padding: 12px 24px !important;
    margin: 0 !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    z-index: 99999 !important;
    outline: 3px solid #ffffff !important;
    outline-offset: 2px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* --- Article/Press Section - Editorial Style --- */
.article-section-modern {
    padding: 80px 0 !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    /* Soft Mint Gradient */
    position: relative;
    overflow: hidden;
}

/* Background Texture for Editorial Feel */
.article-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(46, 204, 113, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(46, 204, 113, 0.03) 0%, transparent 20%);
    pointer-events: none;
}

/* Section Title - Overriding white text for contrast on light bg */
/* Section Title - Themed Gradient for Light Background */
/* Section Title - Brand Theme Match */
.article-section-modern .section-head-modern h2,
.article-section-modern h2.leaf-divider {
    /* Standard Brand Gradient: Dark Green to Emerald */
    background: linear-gradient(to right, #1b5e20 0%, #2ecc71 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    color: transparent !important;
    font-weight: 800 !important;
}

.article-section-modern h2.leaf-divider::after {
    background: #2ecc71 !important;
    /* Match gradient end */
}

/* Subtle Art - Large Eucalyptus Overlay */
.article-section-modern::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -50px;
    width: 400px;
    height: 400px;
    /* Large, flowing floral watermark */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'%3E%3Cpath d='M100 200 Q 150 100 200 50' stroke='%2327ae60' stroke-width='1.5' stroke-linecap='round' opacity='0.2'/%3E%3Cpath d='M120 160 Q 90 140 100 110 Q 130 120 120 160 Z' fill='%232ecc71' opacity='0.08'/%3E%3Cpath d='M150 120 Q 120 100 130 70 Q 160 80 150 120 Z' fill='%232ecc71' opacity='0.06'/%3E%3Cpath d='M170 80 Q 140 60 150 30 Q 180 40 170 80 Z' fill='%232ecc71' opacity='0.05'/%3E%3Carticle cx='130' cy='135' r='3' fill='%2327ae60' opacity='0.1'/%3E%3Ccircle cx='160' cy='95' r='4' fill='%2327ae60' opacity='0.1'/%3E%3C/svg%3E") no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-10deg);
}

/* Article Cards (Swiper Slides) */
.article-section-modern .swiper-slide {
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 15px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-section-modern .swiper-slide:hover {
    transform: translateY(-5px);

    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.article-section-modern .swiper-slide img {
    border-radius: 2px !important;
    filter: grayscale(10%);
    /* Slight vintage news feel */
    transition: filter 0.3s ease;
}

.article-section-modern .swiper-slide:hover img {
    filter: grayscale(0%);
    /* Full color on hover */
}

/* --- Events Section Refinement (Unified Design) --- */

#event-section {
    padding: 100px 0 80px;
    background-color: #f8fdf9;
    /* Light Mint Background */
    display: none;
    /* Controlled via JS */
}

/* Event Cards (Refactored from partials) */
.event-card-modern {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(46, 204, 113, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.event-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Decorative top border */
.event-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.event-card-modern h2 {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}

.event-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    font-style: italic;
    margin-bottom: 20px;
}

.event-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Seed Counter Widget inside Card */
.event-counter-widget {
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed var(--primary);
    margin: 20px 0;
    text-align: center;
}

.event-counter-widget h2 {
    font-size: 2.5rem !important;
    color: var(--primary) !important;
    margin: 10px 0 !important;
}

.event-counter-widget h4 {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 600;
}

.event-counter-widget p {
    font-size: 0.8rem;
    color: #777;
    margin: 0;
}

/* Mini Gallery Grid */
.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.event-gallery-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.event-gallery-img:hover {
    transform: scale(1.05);
}
