/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
    /* Color Palette */
    --color-bg: #FDFBF7;        /* Soft Cream */
    --color-text: #1A1A1A;      /* Deep Charcoal */
    --color-accent-1: #E05A36;  /* Burnt Orange */
    --color-accent-2: #2A9D8F;  /* Muted Teal */
    --color-dark: #0F0F0F;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 20px;
    --container-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   2. UTILITY CLASSES
   ========================================= */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.section { padding: var(--section-padding); }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary { background-color: var(--color-accent-1); color: var(--color-white); }
.btn-primary:hover { background-color: var(--color-dark); }
.btn-outline { border-color: var(--color-text); color: var(--color-text); }
.btn-outline:hover { background-color: var(--color-text); color: var(--color-white); }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }

/* =========================================
   3. HEADER (Glassy & Color Swap)
   ========================================= */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent; /* Initially transparent */
}

/* --- SCROLLED STATE (The "Glassy" Look) --- */
#main-header.scrolled {
    background: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
    backdrop-filter: blur(15px);            /* The Blur Effect */
    -webkit-backdrop-filter: blur(15px);    /* Safari Support */
    padding: 15px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1); /* The Shadow */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- LOGO ANIMATION --- */
.logo-img {
    height: 50px;
    width: auto;
    transition: all 0.3s;
    /* TRICK: This turns a black logo WHITE when transparent */
    filter: brightness(0) invert(1); 
}

/* Reset logo color when scrolled */
#main-header.scrolled .logo-img {
    filter: none; /* Back to original color */
}

/* --- NAVIGATION LINKS --- */
.desktop-nav ul { display: flex; gap: 30px; }

.desktop-nav a { 
    font-weight: 500; 
    font-size: 0.95rem; 
    /* INITIAL COLOR: White (to see over video) */
    color: #ffffff; 
    position: relative;
    transition: color 0.3s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Slight shadow for readability */
}

/* Hover Line */
.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 0;
    background-color: var(--color-accent-1); /* Orange */
    transition: width 0.3s;
}
.desktop-nav a:hover::after { width: 100%; }

/* --- COLOR SWAP ON SCROLL --- */
/* When header has .scrolled class, change text to BLACK */
#main-header.scrolled .desktop-nav a {
    color: var(--color-dark);
    text-shadow: none;
}

/* --- MOBILE TOGGLE --- */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff; /* White initially */
    transition: color 0.3s;
}

#main-header.scrolled .mobile-toggle {
    color: var(--color-dark); /* Black when scrolled */
}

/* --- CTA BUTTON ADJUSTMENT --- */
/* Optional: Make button transparent white outline initially, then solid orange */
.header-cta .btn {
    border: 2px solid #fff;
    background: transparent;
}
.header-cta .btn:hover {
    background: #fff;
    color: var(--color-dark);
}

/* When scrolled, revert to standard primary button style */
#main-header.scrolled .header-cta .btn {
    background: var(--color-accent-1);
    border-color: var(--color-accent-1);
    color: #fff;
}
#main-header.scrolled .header-cta .btn:hover {
    background: var(--color-dark);
    border-color: var(--color-dark);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000; /* Fallback color */
}

#hero-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* This ensures the video covers the screen like object-fit: cover */
    min-width: 100vw; 
    min-height: 100vh;
    z-index: 0;
    opacity: 0.6; /* Darkens video slightly so text is readable */
}

.hero-content {
    position: relative;
    z-index: 2; /* Text sits on top */
    text-align: center;
    max-width: 800px;
    /* Optional: Glassmorphism effect for readability */
    padding: 40px;
    background: rgba(255, 255, 255, 0.05); /* Very subtle tint */
    backdrop-filter: blur(3px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff; /* White text for contrast against video */
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-subtext {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: #e0e0e0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtext { font-size: 1rem; }
}

/* =========================================
   5. SECTIONS & COMPONENTS
   ========================================= */
/* Core Objectives */
.objectives-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.objective-card { padding: 40px; border-radius: 8px; }
.card-dark { background-color: var(--color-dark); color: var(--color-white); }
.card-accent { background-color: var(--color-accent-2); color: var(--color-white); }

/* =========================================
   HORIZONTAL IMPACT SECTION (Cinematic Update)
   ========================================= */
.horizontal-section { 
    overflow: hidden; 
    position: relative;
}

.horizontal-wrapper { 
    display: flex; 
    width: 300%; /* 3 panels * 100vw */
    height: 100vh; 
}

/* Common Panel Styles */
.h-panel { 
    width: 100vw; 
    height: 100vh; 
    position: relative; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background-size: cover;
    background-position: center;
    border-right: 1px solid rgba(255,255,255,0.1); 
}

/* Background Images - YOU NEED TO ADD THESE IMAGES */
.panel-1 { background-image: url('../assets/images/impact-prog.png'); }
.panel-2 { background-image: url('../assets/images/impact-work.png'); }
.panel-3 { background-image: url('../assets/images/impact-exhib.png'); }

/* The Dark Overlay */
.panel-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.85), rgba(0,0,0,0.6));
    z-index: 1;
}

/* Content Styling */
.panel-content { 
    position: relative; 
    z-index: 2; /* Sits above overlay */
    text-align: center;
    max-width: 700px;
    padding: 0 20px;
    color: #fff;
}

/* Icon Styling */
.impact-icon {
    font-size: 4rem;
    color: var(--color-accent-1); /* Orange */
    margin-bottom: 20px;
    display: block;
    text-shadow: 0 5px 15px rgba(224, 90, 54, 0.4); /* Glowing effect */
}

/* Number Styling */
.panel-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 2px;
    opacity: 0.6;
    margin-bottom: 10px;
}

/* Typography */
.panel-content h2 { 
    font-size: 3.5rem; 
    margin-bottom: 20px; 
    line-height: 1.1;
    text-transform: uppercase;
}

.panel-content p { 
    font-size: 1.25rem; 
    line-height: 1.6;
    opacity: 0.9;
}

/* Hover Effect: Slight Zoom on Background */
.h-panel:hover {
    background-size: 105%; /* subtle zoom */
    transition: background-size 10s ease; /* Very slow smooth zoom */
}

/* Responsive */
@media (max-width: 768px) {
    .panel-content h2 { font-size: 2.2rem; }
    .impact-icon { font-size: 3rem; }
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-preview {
    background-color: #fff; /* Clean white background */
    position: relative;
    z-index: 2;
}

/* 1. Header Layout */
.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Aligns button to bottom of text */
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 30px;
}

.header-content { max-width: 600px; }

.service-intro {
    font-size: 1.1rem;
    color: #555;
    margin-top: 15px;
    line-height: 1.6;
}

/* 2. Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* 3. Card Styling */
.service-card {
    background: #fdfbf7; /* Very light cream to distinguish from white bg */
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    position: relative;
    overflow: hidden;
}

/* Icon Box */
.icon-box {
    width: 60px;
    height: 60px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-accent-1); /* Orange */
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Learn More Link */
.learn-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent-1);
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
}

/* --- HOVER ANIMATIONS --- */
.service-card:hover {
    transform: translateY(-10px); /* Lifts up */
    background: var(--color-white);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

.service-card:hover .icon-box {
    background: var(--color-accent-1);
    color: var(--color-white);
    transform: scale(1.1);
}

.service-card:hover .learn-more {
    gap: 10px; /* Arrow moves slightly */
    opacity: 1;
}

/* Accent Line on Bottom (Optional nice touch) */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0%; height: 3px;
    background: var(--color-accent-1);
    transition: width 0.4s ease;
}
.service-card:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .services-header { flex-direction: column; align-items: flex-start; }
}

/* =========================================
   BLOG PREVIEW SECTION (Redesigned)
   ========================================= */
.blog-preview {
    background-color: #f8f9fa; /* Slight grey to differentiate from white Services section */
    padding-bottom: 100px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* --- CARD STRUCTURE --- */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden; /* Essential for containing the image zoom */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* --- IMAGE FRAME & ANIMATION --- */
.blog-img-frame {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden; /* Key to the zoom effect */
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth easing */
}

/* Hover Effect: Zoom Image */
.blog-card:hover .blog-img {
    transform: scale(1.1); /* Zooms in 10% */
}

/* Hover Effect: Lift Card */
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Floating Category Badge */
.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

/* --- CONTENT STYLING --- */
.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ensures cards are equal height */
}

.blog-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--color-dark);
    transition: color 0.3s;
}

/* Title turns orange on hover */
.blog-card:hover h3 {
    color: var(--color-accent-1);
}

.blog-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1; /* Pushes the link to the bottom */
}

/* --- READ LINK --- */
.read-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.blog-card:hover .read-link {
    color: var(--color-accent-1);
    gap: 10px; /* Arrow moves right */
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* =========================================
   IMPACT STATS (Vibrant Redesign)
   ========================================= */
.impact-stats {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    color: #fff;
}

/* 1. Dynamic Background */
.stats-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* You can use a subtle pattern or a darkened image here */
    background: url('../assets/images/hero-bg.jpg') center/cover fixed; 
    z-index: 0;
}

.stats-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* The Vibrant Gradient: Charcoal to Teal */
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(42, 157, 143, 0.9) 100%);
    z-index: 1;
}

.relative-content {
    position: relative;
    z-index: 2;
}

/* 2. Intro Text */
.sub-heading-light {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--color-accent-1); /* Orange pop */
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.impact-stats .section-title {
    margin-bottom: 50px;
    font-size: 2.5rem;
}

/* 3. Grid Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

/* 4. Glassmorphism Card Styling */
.stat-card {
    background: rgba(255, 255, 255, 0.05); /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15); /* Brighter on hover */
    border-color: var(--color-accent-1);
}

/* 5. Icons & Numbers */
.stat-icon {
    font-size: 2.5rem;
    color: var(--color-accent-1); /* Burnt Orange */
    margin-bottom: 15px;
    /* Floating Animation */
    animation: floatIcon 3s ease-in-out infinite;
}

/* Stagger animation for variety */
.stat-card:nth-child(even) .stat-icon { animation-delay: 1.5s; }

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(to bottom, #fff, #ddd); /* Text Gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating Animation Keyframes */
@keyframes floatIcon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Responsive */
@media (max-width: 768px) {
    .impact-stats .section-title { text-align: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; } /* 2x2 grid on mobile */
}

/* Final CTA */
.final-cta { padding: 100px 20px; background-color: #eee; }

/* =========================================
   6. FOOTER (Updated)
   ========================================= */
footer {
    background-color: #111;
    color: #bbb;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 60px; }
.footer-col h3 { color: #fff; margin-bottom: 25px; font-size: 1.1rem; letter-spacing: 1px; }
.footer-logo { height: 60px; margin-bottom: 20px; opacity: 0.9; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--color-accent-1); padding-left: 5px; }
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.contact-item i { font-size: 1.2rem; color: var(--color-accent-1); }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: 0.3s; }
.social-icons a:hover { background: var(--color-accent-1); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; font-size: 0.85rem; color: #666; }

/* =========================================
   7. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .grid-2-col, .objectives-grid { grid-template-columns: 1fr; }
    .desktop-nav { display: none; }
    .mobile-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Text Styling */
.sub-heading {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--color-accent-1); /* Orange */
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #444;
}

/* --- THE ARTISTIC BLOB IMAGE --- */
.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Frame */
.blob-frame {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1; /* Keeps it square-ish */
    overflow: hidden;
    /* The Organic Shape (Blob) */
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transition: all 0.6s ease-in-out;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
    z-index: 2;
    position: relative;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* --- HOVER ANIMATIONS --- */
/* 1. Morph the shape */
.blob-frame:hover {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
}

/* 2. Scale the image slightly */
.blob-frame:hover .about-img {
    transform: scale(1.1);
}

/* --- DECORATIVE ELEMENT (Behind the image) --- */
.blob-decoration {
    position: absolute;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    background-color: var(--color-accent-2); /* Teal */
    opacity: 0.15;
    z-index: 1;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    top: 20px;
    left: -20px;
    transition: all 1s ease-in-out;
    animation: floatBlob 6s infinite alternate;
}

/* Subtle floating animation for the background blob */
@keyframes floatBlob {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, -15px); }
}

/* Responsive Fix */
@media (max-width: 768px) {
    .blob-decoration { display: none; } /* Hide decoration on mobile for cleanliness */
    .blob-frame { max-width: 100%; }
}

/* =========================================
   FINAL CTA (Vibrant & Optimized)
   ========================================= */
.final-cta {
    padding: 100px 20px;
    background-color: #fff;
    /* Center the card */
    display: flex;
    justify-content: center;
}

/* The Vibrant Card */
.cta-card-vibrant {
    position: relative;
    /* Brand Gradient: Burnt Orange to Soft Coral */
    background: linear-gradient(135deg, var(--color-accent-1) 0%, #ff9a8b 100%);
    border-radius: 24px;
    padding: 80px 40px;
    width: 100%;
    max-width: 950px;
    text-align: center;
    overflow: hidden; /* Keeps waves inside */
    box-shadow: 0 20px 60px rgba(224, 90, 54, 0.3); /* Soft orange glow */
    
    /* PERFORMANCE FIX: Forces GPU rendering */
    transform: translateZ(0); 
    will-change: transform;
    
    /* Smooth Hover Transition */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

/* Hover Effect: Gentle Lift */
.cta-card-vibrant:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 70px rgba(224, 90, 54, 0.4);
}

/* --- THE WAVES ANIMATION (Pure CSS) --- */
.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px; /* Height of the waves */
    z-index: 1;
    pointer-events: none;
}

.waves {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* Animation Loop */
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }

@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}

/* --- TEXT STYLING --- */
.cta-content-vibrant {
    position: relative;
    z-index: 2; /* Sits above waves */
    color: #fff;
}

.cta-title-vibrant {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cta-text-vibrant {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    opacity: 0.95;
}

/* --- THE PULSING WHITE BUTTON --- */
.btn-white-pulse {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--color-accent-1);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn-white-pulse i { transition: transform 0.3s; }

/* Button Hover */
.btn-white-pulse:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: #fff; 
    color: var(--color-accent-1); /* Ensure text stays orange */
}

.btn-white-pulse:hover i {
    transform: translateX(5px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cta-card-vibrant { padding: 60px 20px; }
    .cta-title-vibrant { font-size: 2rem; }
    .waves-container { height: 80px; } /* Smaller waves on mobile */
}

/* =========================================
   ABOUT PAGE STYLES
   ========================================= */

/* 1. Page Header (Simple & Clean) */
.page-header {
    position: relative;
    padding: 180px 20px 100px;
    overflow: hidden;
    background-color: #111; /* Fallback color */
}

/* Background Image */
.header-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Ensure you have this image */
    background: url('../assets/images/about-hero.jpg') center/cover no-repeat;
    z-index: 0;
}

/* Dark Overlay */
.header-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Adjust opacity (0.7) to make it darker or lighter */
    background: rgba(0, 0, 0, 0.75); 
    z-index: 1;
}

/* Content Positioning */
.relative-content {
    position: relative;
    z-index: 2; /* Sits on top of overlay */
}

/* Text Colors */
.page-header .page-title {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.page-header .page-subtitle {
    color: #e0e0e0; /* Light grey */
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-header .sub-heading-light {
    color: var(--color-accent-1); /* Orange */
}

/* 2. Story Section */
.quote-box {
    border-left: 4px solid var(--color-accent-1);
    padding-left: 20px;
    margin-top: 30px;
    font-style: italic;
    color: #555;
}
.quote-box i { font-size: 1.5rem; color: var(--color-accent-1); margin-bottom: 10px; display: block; }

.img-frame-tilt {
    position: relative;
}
.img-frame-tilt::before {
    content: ''; position: absolute; top: 20px; left: 20px; width: 100%; height: 100%;
    border: 2px solid var(--color-accent-1); z-index: 0;
}
.frame-img { position: relative; z-index: 1; border-radius: 4px; }

/* 3. Mission & Vision */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mv-card {
    background: #fff; padding: 40px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center;
    border-top: 5px solid var(--color-accent-2); /* Teal */
}
.mv-card:last-child { border-color: var(--color-accent-1); /* Orange */ }

.mv-icon { font-size: 2.5rem; color: var(--color-dark); margin-bottom: 20px; }

/* 4. Timeline (Vertical) */
.timeline-section { position: relative; }
.timeline { position: relative; max-width: 800px; margin: 0 auto; }

/* The Center Line */
.timeline-line {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
    background: #ddd; transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 40px; position: relative; width: 50%;
}
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

/* The Dot */
.timeline-dot {
    position: absolute; top: 30px; right: -10px; width: 20px; height: 20px;
    background: var(--color-accent-1); border-radius: 50%; border: 4px solid #fff;
    z-index: 2; box-shadow: 0 0 0 2px #ddd;
}
.timeline-item.right .timeline-dot { left: -10px; }

.timeline-content {
    background: #fff; padding: 25px; border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.t-year { font-weight: 700; color: var(--color-accent-2); display: block; margin-bottom: 5px; }

/* 5. Core Values */
.values-grid { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-top: 40px; }
.value-item {
    padding: 15px 30px; background: #fff; border: 1px solid #ddd;
    border-radius: 50px; font-weight: 600; color: var(--color-dark);
    transition: 0.3s;
}
.value-item:hover {
    background: var(--color-dark); color: #fff; transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .mv-grid { grid-template-columns: 1fr; }
    
    /* Timeline Mobile Fix */
    .timeline-line { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; text-align: left; }
    .timeline-item.left { left: 0; }
    .timeline-item.right { left: 0; }
    .timeline-dot { left: 10px; right: auto; }
    .timeline-item.left .timeline-dot { left: 10px; } /* Override right-align logic */
}

/* =========================================
   CBO PAGE STYLES
   ========================================= */

/* Intro Text */
.cbo-intro .lead-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    line-height: 1.8;
}

/* --- OBJECTIVE BLOCKS (Alternating Layout) --- */
.objectives-section {
    background-color: #f9f9f9;
    padding: 80px 20px;
    overflow: hidden; /* For slide animations */
}

.objective-block {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.objective-block:last-child { margin-bottom: 0; }

.obj-image { flex: 1; height: 400px; }
.obj-image img { width: 100%; height: 100%; object-fit: cover; }

.obj-content {
    flex: 1;
    padding: 60px;
}

.obj-icon {
    font-size: 3rem;
    color: var(--color-accent-1);
    margin-bottom: 20px;
}

.obj-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.obj-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.obj-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #444;
}
.obj-list i { color: var(--color-accent-2); /* Teal checkmarks */ }

/* Mobile Stack for Objectives */
@media (max-width: 900px) {
    .objective-block { flex-direction: column; }
    .obj-right { flex-direction: column-reverse; /* Keeps image on top for mobile if desired */ }
    .obj-image { width: 100%; height: 250px; }
    .obj-content { padding: 40px 20px; }
}

/* --- PROGRAMS GRID --- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.program-card {
    background: #fff;
    padding: 40px 30px;
    border: 1px solid #eee;
    text-align: center;
    border-radius: 8px;
    transition: 0.3s;
}

.program-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.p-icon {
    font-size: 2.5rem;
    color: var(--color-accent-2); /* Teal */
    margin-bottom: 20px;
}

.program-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* --- IMPACT STATEMENT --- */
.impact-statement {
    background-color: var(--color-dark);
    color: #fff;
    padding: 80px 20px;
}

.impact-statement .big-icon {
    font-size: 3rem;
    color: var(--color-accent-1);
    margin-bottom: 20px;
    display: block;
}

.impact-statement h3 { margin-bottom: 20px; }
.impact-statement p {
    font-size: 1.5rem;
    font-family: var(--font-display);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.4;
}

/* =========================================
   SERVICES PAGE STYLES
   ========================================= */

/* Large Service Blocks */
.service-block-large {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.service-block-large.reverse {
    flex-direction: row-reverse;
}

.s-image {
    flex: 1.2;
    position: relative;
    /* Asymmetrical Border Radius [cite: 306] */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    height: 450px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}

.service-block-large.reverse .s-image {
    border-radius: 70% 30% 30% 70% / 30% 30% 70% 70%;
}

.s-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-block-large:hover .s-image img {
    transform: scale(1.05);
}

.s-info {
    flex: 1;
}

.s-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: rgba(0,0,0,0.05); /* Very subtle number in background */
    display: block;
    margin-bottom: -20px;
}

.s-info h3 {
    font-size: 2.2rem;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.s-info p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Exhibition CTA */
.exhibition-cta {
    background-color: var(--color-bg); /* Cream */
    padding: 100px 20px;
}

.ex-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.ex-content .big-icon {
    font-size: 3.5rem;
    color: var(--color-accent-1);
    margin-bottom: 20px;
    display: block;
}

.ex-content h2 { margin-bottom: 15px; }

/* Mobile Stack */
@media (max-width: 992px) {
    .service-block-large, .service-block-large.reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
    }
    .s-image { width: 100%; height: 350px; border-radius: 12px !important; }
}

/* =========================================
   BLOG PAGE SPECIFIC STYLES
   ========================================= */

/* Filter Navigation */
.blog-filters {
    padding: 40px 0;
}

.filter-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--color-dark);
    color: #fff;
    border-color: var(--color-dark);
}

/* Pagination */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.page-num {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.page-num.active, .page-num:hover {
    background: var(--color-accent-1);
    color: #fff;
    border-color: var(--color-accent-1);
}

.next-page {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

.next-page:hover {
    color: var(--color-accent-1);
}

/* Responsive Grid Adjustments */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .filter-list {
        gap: 10px;
    }
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
}

/* =========================================
   CONTACT PAGE STYLES
   ========================================= */

/* Detail Cards */
.contact-detail-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.c-icon {
    font-size: 1.8rem;
    color: var(--color-accent-1);
}

.c-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--color-dark);
}

.c-text p {
    color: #666;
    margin: 0;
}

/* Contact Form Side */
.form-wrapper {
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-wrapper h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--color-accent-1);
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 90, 54, 0.1);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Map Placeholder */
.map-placeholder {
    width: 100%;
    height: 400px;
    background: #eee;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    margin-top: 40px;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-wrapper { padding: 30px 20px; }
}

/* =========================================
   FLOATING CONTACT WIDGET 
   ========================================= */
.fc-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Moved to Bottom Right */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligns all buttons to the right edge */
    gap: 15px;
    font-family: var(--font-body);
    
    /* Hidden by default, revealed on scroll */
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.fc-wrapper.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* --- THE DIAL MENU --- */
.fc-dial-menu {
    display: flex;
    flex-direction: column-reverse; /* Stacks upwards */
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fc-wrapper.menu-open .fc-dial-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.fc-dial-item {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Keeps buttons flush right */
    gap: 12px;
}

/* Tooltip Labels on the Left */
.fc-label {
    background: #fff;
    color: #333;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    /* Notice: No "order" property needed here now, it sits naturally on the left */
}

.fc-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
}
.fc-btn:hover { transform: scale(1.1); }

/* Icon Colors */
.fc-bg-dark { background: var(--color-dark); }
.fc-bg-gray { background: #f0f0f0; color: #333; }
.fc-bg-pink { background: #e1306c; }
.fc-bg-black { background: #000; }
.fc-bg-green { background: #25d366; }
.fc-bg-blue { background: #007bff; }

/* --- THE QUICK FORM --- */
.fc-form-card {
    position: absolute;
    bottom: 70px; 
    right: 0; /* Aligned to the right edge of the wrapper */
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    transform-origin: bottom right; /* Animates out from the right button */
}

.fc-wrapper.form-open .fc-form-card {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.fc-form-header {
    background: var(--color-accent-1); 
    padding: 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.fc-form-header h3 { font-size: 1.2rem; margin-bottom: 2px; }
.fc-form-header p { font-size: 0.8rem; opacity: 0.9; }
.fc-close-btn { background: transparent; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

.fc-form-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.fc-input-group label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: #888; margin-bottom: 5px; }
.fc-input-group input, .fc-input-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 0.9rem; }
.fc-row { display: flex; gap: 10px; }
.fc-submit-btn { background: var(--color-dark); color: #fff; border: none; padding: 12px; border-radius: 8px; font-weight: 700; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 5px; transition: 0.3s; }
.fc-submit-btn:hover { background: var(--color-accent-1); }

/* --- MAIN TOGGLE BUTTON --- */
.fc-main-toggle { display: flex; flex-direction: row; align-items: center; gap: 15px; } /* Row reverse puts the prompt on the left */
.fc-prompt { background: #fff; padding: 8px 16px; border-radius: 50px; font-size: 0.9rem; font-weight: 700; box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.pulse-dot { width: 8px; height: 8px; background: var(--color-accent-1); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224, 90, 54, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(224, 90, 54, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 90, 54, 0); } }

.fc-wrapper.menu-open .fc-prompt, .fc-wrapper.form-open .fc-prompt { opacity: 0; pointer-events: none; }

.fc-toggle-circle { width: 60px; height: 60px; border-radius: 50%; background: var(--color-accent-1); color: #fff; border: none; font-size: 1.8rem; box-shadow: 0 10px 20px rgba(224, 90, 54, 0.4); cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* Switch Icon logic */
.fc-icon-close { position: absolute; opacity: 0; transform: scale(0.5) rotate(-90deg); transition: 0.3s; }
.fc-icon-chat { transition: 0.3s; }

.fc-wrapper.menu-open .fc-toggle-circle, .fc-wrapper.form-open .fc-toggle-circle { background: var(--color-dark); transform: rotate(90deg); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.fc-wrapper.menu-open .fc-icon-chat, .fc-wrapper.form-open .fc-icon-chat { opacity: 0; transform: scale(0.5); }
.fc-wrapper.menu-open .fc-icon-close, .fc-wrapper.form-open .fc-icon-close { opacity: 1; transform: scale(1) rotate(0deg); }