/* ==============================================
   SWORAM - Main Stylesheet
   Design: Elegant Kerala Cultural Community
   Theme: Light, warm, refined
   ============================================== */

/* ---- CSS Variables ---- */
:root {
    --sw-primary: #1a6b4a;      /* Deep Kerala green */
    --sw-primary-light: #2d9168;
    --sw-primary-soft: #e8f5ee;
    --sw-secondary: #c8702d;    /* Warm orange/saffron */
    --sw-secondary-light: #f5e6d8;
    --sw-blue: #1e5fa3;
    --sw-blue-light: #e8f0fb;
    --sw-gold: #d4a017;
    --sw-cream: #fdf8f3;
    --sw-text: #1a1a2e;
    --sw-text-muted: #6b7280;
    --sw-border: #e5e7eb;
    --sw-white: #ffffff;
    --sw-bg-light: #f8fafe;
    --sw-shadow: 0 4px 24px rgba(26, 107, 74, 0.08);
    --sw-shadow-md: 0 8px 40px rgba(26, 107, 74, 0.12);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-pill: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--sw-text);
    background: var(--sw-white);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--sw-text);
}

a { color: var(--sw-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--sw-primary-light); }
img { max-width: 100%; height: auto; }

/* ---- Flash Messages ---- */
.flash-message { border-radius: 0; font-weight: 500; z-index: 9999; }

/* ---- Header & Nav ---- */
.site-header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sw-border);
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    z-index: 1000;
    transition: var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sw-primary);
    letter-spacing: -0.5px;
}
.brand-tagline {
    font-size: 0.6rem;
    color: var(--sw-text-muted);
    font-weight: 400;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    max-width: 200px;
    line-height: 1.3;
}

.nav-link {
    font-weight: 500;
    color: var(--sw-text) !important;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.85rem;
    right: 0.85rem;
    height: 2px;
    background: var(--sw-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover, .nav-link.active { color: var(--sw-primary) !important; }

.btn-primary-sw {
    background: var(--sw-primary) !important;
    color: #fff !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 600;
    border: none;
    padding: 0.45rem 1.2rem !important;
    transition: var(--transition);
}
.btn-primary-sw:hover { background: var(--sw-primary-light) !important; transform: translateY(-1px); }
.btn-primary-sw::after { display: none !important; }
.nav-link.btn-primary-sw.active,
.nav-link.btn-primary-sw:hover,
.nav-link.btn-primary-sw:focus {
    color: #fff !important;
}

/* ---- Hero Section ---- */
.hero-section {
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d3d27 0%, #1a6b4a 40%, #1e5fa3 100%);
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 800"><path fill="%23ffffff08" d="M0,400L60,416.7C120,433,240,467,360,450C480,433,600,367,720,350C840,333,960,367,1080,383.3C1200,400,1320,400,1380,400L1440,400L1440,800L1380,800C1320,800,1200,800,1080,800C960,800,840,800,720,800C600,800,480,800,360,800C240,800,120,800,60,800L0,800Z"/><path fill="%23ffffff05" d="M0,600L80,583.3C160,567,320,533,480,533.3C640,533,800,567,960,566.7C1120,567,1280,533,1360,516.7L1440,500L1440,800L1360,800C1280,800,1120,800,960,800C800,800,640,800,480,800C320,800,160,800,80,800L0,800Z"/></svg>') no-repeat bottom / cover;
}

/* Decorative Kerala motif */
.hero-section::after {
    content: '';
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200,112,45,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-block;
    background: rgba(212,160,23,0.2);
    border: 1px solid rgba(212,160,23,0.4);
    color: #f4c842;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    font-weight: 700;
}
.hero-title span { color: #f4c842; }
.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    max-width: 520px;
    font-weight: 300;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--sw-secondary);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-hero-primary:hover { background: #b05e20; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,112,45,0.4); }
.btn-hero-outline {
    background: transparent;
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.5);
    transition: var(--transition);
}
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.hero-stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #f4c842;
    line-height: 1;
}
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); font-weight: 400; text-transform: uppercase; letter-spacing: 0.8px; }

.hero-visual {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero-card-float {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 2rem;
    color: #fff;
    max-width: 320px;
    margin: 0 auto;
    animation: floatCard 4s ease-in-out infinite;
}
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* ---- Section Styles ---- */
.section-label {
    display: inline-block;
    color: var(--sw-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--sw-primary), var(--sw-secondary));
    border-radius: 3px;
    margin: 0 auto 1.5rem;
}
.section-divider.left { margin: 0 0 1.5rem; }
.section-desc { color: var(--sw-text-muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.py-section { padding: 5rem 0; }
.bg-light-sw { background: var(--sw-bg-light); }
.bg-cream { background: var(--sw-cream); }

/* ---- Cards ---- */
.sw-card {
    background: var(--sw-white);
    border-radius: var(--radius);
    box-shadow: var(--sw-shadow);
    border: 1px solid var(--sw-border);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}
.sw-card:hover { transform: translateY(-4px); box-shadow: var(--sw-shadow-md); }

.card-img-wrapper {
    overflow: hidden;
    height: 240px;
    position: relative;
    background: #f4f6f9; /* Subtle background for images that don't fill the box */
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.sw-card:hover .card-img-wrapper img { transform: scale(1.05); }
.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.7);
}
.card-img-placeholder.events { background: linear-gradient(135deg, var(--sw-primary), var(--sw-primary-light)); }
.card-img-placeholder.news { background: linear-gradient(135deg, var(--sw-blue), #2980b9); }
.card-img-placeholder.activities { background: linear-gradient(135deg, var(--sw-secondary), #e8832a); }
.card-img-placeholder.members { background: linear-gradient(135deg, #8b4a9b, #6c3483); }

.card-body-sw { padding: 1.5rem; }
.card-date-badge {
    display: inline-block;
    background: var(--sw-primary-soft);
    color: var(--sw-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.75rem;
}
.card-title-sw {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--sw-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-text-sw {
    color: var(--sw-text-muted);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Buttons ---- */
.btn-sw-primary {
    background: var(--sw-primary);
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}
.btn-sw-primary:hover { background: var(--sw-primary-light); color: #fff; transform: translateY(-2px); }

.btn-sw-secondary {
    background: var(--sw-secondary);
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    border: none;
    transition: var(--transition);
}
.btn-sw-secondary:hover { background: #b05e20; color: #fff; transform: translateY(-2px); }

.btn-sw-outline {
    background: transparent;
    color: var(--sw-primary);
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    border: 2px solid var(--sw-primary);
    transition: var(--transition);
}
.btn-sw-outline:hover { background: var(--sw-primary); color: #fff; }

/* ---- About Section ---- */
.about-image-stack { position: relative; }
.about-main-img {
    border-radius: var(--radius);
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: var(--sw-shadow-md);
}
.about-accent-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--sw-primary);
    color: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    min-width: 150px;
}
.about-accent-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; line-height: 1; }
.about-accent-text { font-size: 0.8rem; opacity: 0.85; margin-top: 0.3rem; }
.check-list { list-style: none; padding: 0; }
.check-list li {
    padding: 0.4rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--sw-text-muted);
}
.check-list li i { color: var(--sw-primary); margin-top: 3px; flex-shrink: 0; }

/* ---- Events ---- */
.event-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.75rem 0; }
.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.83rem;
    color: var(--sw-text-muted);
}
.event-meta-item i { color: var(--sw-primary); }
.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--sw-secondary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Members ---- */
.member-card { text-align: center; }
.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--sw-primary-soft);
    margin: 0 auto 1rem;
    display: block;
}
.member-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sw-primary-soft), var(--sw-secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    color: var(--sw-primary);
}
.member-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; }
.member-designation { color: var(--sw-secondary); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.75rem; }
.member-bio { font-size: 0.88rem; color: var(--sw-text-muted); }

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,107,74,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: #fff;
    font-size: 2rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---- Shop ---- */
.product-price {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--sw-primary);
    font-weight: 700;
}

/* ---- Page Hero ---- */
.page-hero {
    background: linear-gradient(135deg, var(--sw-primary) 0%, var(--sw-primary-light) 60%, var(--sw-blue) 100%);
    padding: 5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--sw-white);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-title { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
.page-hero-breadcrumb .breadcrumb-item,
.page-hero-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.page-hero-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,0.6); }
.page-hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ---- Contact ---- */
.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--sw-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sw-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-form-wrapper {
    background: var(--sw-white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--sw-shadow-md);
}
.form-control-sw {
    border: 2px solid var(--sw-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-family: var(--font-body);
    background: var(--sw-bg-light);
}
.form-control-sw:focus {
    border-color: var(--sw-primary);
    box-shadow: 0 0 0 3px rgba(26,107,74,0.1);
    background: var(--sw-white);
}

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, var(--sw-primary) 0%, var(--sw-primary-light) 100%);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400"><circle cx="700" cy="200" r="300" fill="%23ffffff05"/><circle cx="100" cy="300" r="200" fill="%23ffffff05"/></svg>') no-repeat center / cover;
}
.cta-content { position: relative; z-index: 2; }

/* ---- Sponsors ---- */
.sponsor-logo {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
    max-height: 60px;
}
.sponsor-logo:hover { filter: none; opacity: 1; }

/* ---- Footer ---- */
.site-footer {
    background: #0d2318;
    color: rgba(255,255,255,0.75);
}
.footer-top { padding: 4rem 0 2rem; }
.footer-heading {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-top: 0.25rem; }
.footer-about { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.social-icons { display: flex; gap: 0.75rem; }
.social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    transition: var(--transition);
}
.social-icons a:hover { background: var(--sw-primary); color: #fff; transform: translateY(-2px); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--sw-primary-light); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
    align-items: flex-start;
    color: rgba(255,255,255,0.65);
}
.footer-contact li i { color: var(--sw-primary-light); margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.65); }
.footer-contact a:hover { color: var(--sw-primary-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-bottom a:hover { color: var(--sw-primary-light); }

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--sw-primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(26,107,74,0.4);
    z-index: 999;
    font-size: 1.1rem;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--sw-primary-light); transform: translateY(-3px); }

/* ---- Page Content ---- */
.page-content { padding: 4rem 0; }
.rich-content h2 { font-size: 1.7rem; color: var(--sw-primary); margin: 2rem 0 1rem; }
.rich-content h3 { font-size: 1.3rem; margin: 1.5rem 0 0.75rem; }
.rich-content p { margin-bottom: 1rem; color: var(--sw-text-muted); }
.rich-content ul, .rich-content ol { padding-left: 1.5rem; color: var(--sw-text-muted); }
.rich-content li { margin-bottom: 0.4rem; }

/* ---- Search Bar ---- */
.search-bar {
    background: var(--sw-white);
    border: 2px solid var(--sw-border);
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.5rem;
    font-family: var(--font-body);
    width: 100%;
    transition: var(--transition);
}
.search-bar:focus { outline: none; border-color: var(--sw-primary); box-shadow: 0 0 0 3px rgba(26,107,74,0.1); }

/* ---- Tabs (Gallery) ---- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.filter-tab {
    padding: 0.45rem 1.2rem;
    border-radius: var(--radius-pill);
    border: 2px solid var(--sw-border);
    background: var(--sw-white);
    color: var(--sw-text-muted);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}
.filter-tab:hover, .filter-tab.active {
    border-color: var(--sw-primary);
    background: var(--sw-primary);
    color: #fff;
}

/* ---- Map ---- */
.map-wrapper { border-radius: var(--radius); overflow: hidden; }
.map-wrapper iframe { display: block; }

/* ---- Utilities ---- */
.text-primary-sw { color: var(--sw-primary) !important; }
.text-secondary-sw { color: var(--sw-secondary) !important; }
.bg-primary-sw { background: var(--sw-primary) !important; }
.bg-primary-soft { background: var(--sw-primary-soft) !important; }
.rounded-sw { border-radius: var(--radius) !important; }
.shadow-sw { box-shadow: var(--sw-shadow) !important; }

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ---- News Detail ---- */
.news-detail-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.rich-content img, .rich-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hero-section { min-height: 70vh; padding: 4rem 0; }
    .about-accent-card { right: 0; bottom: 0; position: relative; margin-top: 1rem; display: inline-block; }
    .about-image-stack { margin-bottom: 2rem; }
}
@media (max-width: 767px) {
    .hero-stats { gap: 1.5rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .py-section { padding: 3rem 0; }
    .contact-form-wrapper { padding: 1.5rem; }
}

/* ---- No-image fallback ---- */
.img-placeholder {
    background: linear-gradient(135deg, var(--sw-primary-soft), var(--sw-secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sw-primary);
    font-size: 3rem;
}

/* ---- Status Badges ---- */
.badge-upcoming { background: var(--sw-primary-soft); color: var(--sw-primary); }
.badge-past { background: #f3f4f6; color: var(--sw-text-muted); }

/* ---- Preloader Styles ---- */
.page-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(circle at center, #ffffff 0%, #f7f9f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s;
    opacity: 1;
    visibility: visible;
}

.page-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preloader-spinner-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.preloader-logo-image {
    width: 106px;
    height: 106px;
    object-fit: contain;
    z-index: 10;
    filter: drop-shadow(0 4px 10px rgba(26, 107, 74, 0.15));
    animation: preloaderPulse 2s infinite ease-in-out;
}

.preloader-ring-spinner {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(26, 107, 74, 0.05);
    border-top: 3px solid var(--sw-primary);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.preloader-text-indicator {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--sw-primary);
    text-transform: uppercase;
    animation: preloaderTextGlow 2s infinite ease-in-out;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.06); opacity: 1; }
}

@keyframes preloaderTextGlow {
    0%, 100% { opacity: 0.6; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
