/*
Theme Name: BuzzMag Child
Theme URI: http://example.com/buzzmag-child/
Description: A child theme for BuzzMag.
Author: Cline
Author URI: http://example.com/
Template: buzzmag
Version: 1.0.0
Text Domain: buzzmag-child
*/

/* Color Variables */
:root {
    --text-color: #333;
    --background-color: #f4f4f4;
    --heading-color: #222;
    --card-background: #ffffff;
    --border-color: #ccc;
    --button-background: #007bff;
    --button-hover-background: #0056b3;
    --link-color: #007bff;
    --link-hover-color: #0056b3;
    --placeholder-background: #ddd;
    --placeholder-text: #666;
    --sponsor-background: #eee;
    --sponsor-text: #555;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e0e0e0;
        --background-color: #1a1a1a;
        --heading-color: #f0f0f0;
        --card-background: #2c2c2c;
        --border-color: #555;
        --button-background: #6a0dad; /* Purple for dark mode */
        --button-hover-background: #8a2be2;
        --link-color: #8a2be2;
        --link-hover-color: #9932cc;
        --placeholder-background: #444;
        --placeholder-text: #aaa;
        --sponsor-background: #3a3a3a;
        --sponsor-text: #bbb;
    }
}

/* Interactive Impact Visualization */
.impact-visualization-section {
    padding: 60px 20px;
    background-color: #f0f0f0; /* Light background */
    text-align: center;
    margin-top: 40px;
}

.impact-visualization-section h2 {
    color: #333;
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 40px;
    border-bottom: 3px solid #4a90e2;
    display: inline-block;
    padding-bottom: 10px;
}

.impact-chart-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Dark Mode adjustments for Impact Visualization */
@media (prefers-color-scheme: dark) {
    .impact-visualization-section {
        background-color: #1a1a1a;
    }

    .impact-visualization-section h2 {
        color: #f0f0f0;
        border-bottom-color: #8a2be2;
    }

    .impact-chart-container {
        background: #2c2c2c;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

/* General Body and Typography */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3 {
    font-family: 'Georgia', serif;
    color: var(--heading-color);
    margin-bottom: 15px;
}

h2 {
    margin-top: 40px;
    margin-bottom: 30px;
    font-size: 2.5em;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    display: inline-block;
    width: 100%;
}

.fl-excerpt p {
    font-size: 1rem;
    margin-bottom: 0px;
}

.fl-box {
    background: none;
    padding: 0px;
    margin-bottom: 0px;
    margin-top: 2rem;
    gap: 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)) center/cover; /* Image set dynamically via PHP */
    color: white;
    text-align: center;
    padding: 120px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 35vh;
}

.hero-content {
    /*position: relative;*/
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4.5rem; /* Increased font size for impact */
    line-height: 1.5 !important;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem; /* Increased font size for readability */
    margin-bottom: 3rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.8; /* Increased line height for readability */
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-shadow: none;
}

.hero-btn.primary {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.hero-btn.primary:hover {
    background: #357abd;
    border-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.hero-btn.secondary {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
}

.hero-btn.secondary:hover {
    background: #1565c0;
    border-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
}

/* Hero Section Enhancements */
.cta-hero {
    height: 66.666vh; /* Make hero section taller */
    padding: 150px 20px; /* Adjust padding */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Ensure no overflow from animations */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Place video behind content and overlay */
}

.cta-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1; /* Place overlay above video */
}

.hero-content {
    position: relative;
    z-index: 2; /* Place content above overlay */
    max-width: 900px; /* Wider content area */
    padding: 3rem; /* More padding */
    background: rgba(0, 0, 0, 0.3); /* Slightly transparent background for text */
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 1s ease-out forwards; /* Animation for content */
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif; /* Modern font */
    font-size: 4.8rem; /* Even larger font size */
    margin-bottom: 1.5rem;
    font-weight: 800; /* Bolder */
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    animation: slideInFromLeft 1s ease-out forwards; /* Animation for heading */
}

.hero-content .hero-tagline { /* New class for tagline */
    font-family: 'Open Sans', sans-serif; /* Different font for tagline */
    font-size: 1.6rem; /* Larger tagline */
    margin-bottom: 3rem;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    line-height: 1.6;
    font-weight: 900;
    animation: slideInFromRight 1s ease-out forwards; /* Animation for tagline */
    animation-delay: 0.3s; /* Delay tagline animation */
}

.hero-buttons {
    display: flex;
    gap: 2rem; /* More space between buttons */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeIn 1.5s ease-out forwards; /* Animation for buttons */
    animation-delay: 0.6s; /* Delay button animation */
}

.hero-btn {
    padding: 16px 32px; /* Larger buttons */
    font-size: 16px; /* Larger font in buttons */
    border-radius: 8px; /* More rounded corners */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother transition */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn.primary {
    background: #00c6ff; /* Brighter primary color */
    color: white;
    border: none;
    background: linear-gradient(45deg, #00c6ff, #0072ff); /* Gradient */
}

.hero-btn.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 198, 255, 0.4);
    background: linear-gradient(45deg, #0072ff, #00c6ff); /* Reverse gradient on hover */
}

.hero-btn.secondary {
    background: #ff7e5f; /* Warm secondary color */
    color: white;
    border: none;
    background: linear-gradient(45deg, #ff7e5f, #feb47b); /* Gradient */
}

.hero-btn.secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 126, 95, 0.4);
    background: linear-gradient(45deg, #feb47b, #ff7e5f); /* Reverse gradient on hover */
}

/* Keyframe Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Adjustments for Hero Section */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.8rem;
    }
    .hero-content .hero-tagline {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .cta-hero {
        min-height: 50vh;
        padding: 100px 15px;
    }
    .hero-content {
        padding: 2rem;
    }
    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }
    .hero-content .hero-tagline {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    .hero-buttons {
        gap: 1.5rem;
    }
    .hero-btn {
        padding: 14px 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cta-hero {
        min-height: 40vh;
        padding: 80px 10px;
    }
    .hero-content {
        padding: 1.5rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content .hero-tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-btn {
        width: 80%;
        max-width: 250px;
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* Section Styling */
body.home section {
    padding: 40px 20px;
    /*margin-bottom: 20px;*/
    background-color: var(--card-background);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    /*border-radius: 8px;*/
}

/* Our Causes Section - Dark Design */
body.home .our-causes {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 20px;
    margin: 0 auto;
}

body.home .our-causes h2 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
    text-align: left;
    border-bottom: 3px solid #4a90e2;
    margin-bottom: 40px;
    padding-bottom: 15px;
}

/* Our Causes Grid */
body.home .causes-grid {
    /*display: grid;
    grid-template-columns: 1fr;*/ /* Ensure children stack vertically */
    gap: 30px;
}

body.home .cause-item {
    background: #2c2c2c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.home .cause-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

body.home .cause-explore-btn {
    margin-bottom: 1rem;
}

body.home .sponsor-item img {
   
}

/* Video Container */
body.home .cause-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

body.home .cause-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

body.home .cause-video-placeholder {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.home .cause-video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.home .cause-video-placeholder .placeholder-content {
    color: #666;
    font-size: 1.2rem;
    font-style: italic;
}

/* Cause Content */
body.home .cause-content {
    padding: 25px;
    text-align: left;
}

body.home .cause-content h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 12px;
}

body.home .cause-description {
    color: #e0e0e0;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
    font-style: italic;
}

body.home .cause-article-count {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

body.home .cause-sponsor {
    text-align: center;
}

body.home .cause-sponsor .advertising-label {
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: center;
}

/* Explore Button */
body.home .cause-explore-btn {
    display: inline-block;
    background: #4a90e2;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #4a90e2;
}

body.home .cause-explore-btn:hover {
    background: #357abd;
    border-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

/* No Causes Message */
body.home .no-causes-message {
    text-align: center;
    color: #cccccc;
    font-size: 1.1rem;
    padding: 40px 20px;
}

/* Featured Articles Section - Dark Design (matching Our Causes) */
body.home .featured-articles {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

body.home .featured-articles h2 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
    text-align: left;
    border-bottom: 3px solid #4a90e2;
    margin-bottom: 40px;
    padding-bottom: 15px;
}

/* Featured Articles Grid */
body.home .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

body.home .article-item {
    background: #2c2c2c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.home .article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Article Video Container */
body.home .article-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

body.home .article-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

body.home .article-video-placeholder {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.home .article-video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.home .article-video-placeholder .placeholder-content {
    color: #666;
    font-size: 1.2rem;
    font-style: italic;
}

/* Article Content */
body.home .article-content {
    padding: 25px;
    text-align: left;
}

body.home .article-content h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 12px;
    font-family: 'Arial', sans-serif;
}

body.home .article-excerpt {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.5;
}

/* Read More Button */
body.home .article-read-btn {
    display: inline-block;
    background: #4a90e2;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #4a90e2;
}

body.home .article-read-btn:hover {
    background: #357abd;
    border-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

/* No Articles Message */
body.home .no-articles-message {
    text-align: center;
    color: #cccccc;
    font-size: 1.1rem;
    padding: 40px 20px;
}

/* Sponsors Section */
body.home .our-sponsors {
    text-align: center;
}

body.home .sponsors-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

body.home .sponsor-item {
    padding: 0px autopx;
    border-radius: 0px;
    font-weight: bold;
    color: var(--sponsor-text);
}

body.home .sponsors-label {
    text-align: center;
}

body.home .article-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-radius: 5px;
}

/* Category Page Layout */
.category-two-column-layout {
    display: grid;
    grid-template-columns: 2.6fr 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 20px;
}

.category-column {
    margin-top: 2rem;
}

.category-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.category-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.category-sidebar-info {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.fl-widget, .widget {
    margin-bottom: 0;
}

/* Responsive adjustments for category page */
@media (max-width: 768px) {
    .category-two-column-layout {
        grid-template-columns: 1fr;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        gap: 1rem;
    }

    .hero-btn {
        padding: 12px 24px;
        font-size: 13px;
    }

    h2 {
        font-size: 2em;
    }

    /* Our Causes Responsive */
    body.home .causes-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    body.home .our-causes h2 {
        font-size: 2.5rem;
    }

    body.home .cause-content {
        padding: 20px;
    }

    /* Featured Articles Responsive */
    body.home .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    body.home .featured-articles h2 {
        font-size: 2.5rem;
    }

    body.home .article-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btn {
        width: 80%;
        max-width: 250px;
        padding: 12px 20px;
        font-size: 13px;
    }

    h2 {
        font-size: 1.8em;
    }

    /* Our Causes Mobile */
    body.home .causes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    body.home .our-causes h2 {
        font-size: 2rem;
    }

    body.home .cause-content h3 {
        font-size: 1.5rem;
    }

    body.home .cause-explore-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    /* Featured Articles Mobile */
    body.home .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    body.home .featured-articles h2 {
        font-size: 2rem;
    }

    body.home .article-content h3 {
        font-size: 1.5rem;
    }

    body.home .article-read-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

/* Advertising Label */
.advertising-label {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    text-align: center;
    margin: 15px 0 5px 0;
    padding: 5px 0;
    border-top: 1px solid #ddd;
    background-color: rgba(0, 0, 0, 0.02);
}

@media (prefers-color-scheme: dark) {
    .advertising-label {
        color: #aaa;
        border-top: 1px solid #555;
        background-color: rgba(255, 255, 255, 0.05);
    }
}

/* Interactive Headline Animation */
.hero-content h1 {
    /* Removed overflow: hidden here */
}

.hero-content h1 span {
    display: inline-block;
    overflow: hidden; /* Moved here to contain individual words */
    white-space: nowrap;
    vertical-align: bottom;
    /* Animations will be applied by JS */
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% } /* Animate width instead of max-width */
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: orange; }
}


/* Rotating Taglines */
.rotating-taglines {
    position: relative;
    height: 2.4rem; /* Ensure enough height for the tagline */
    overflow: hidden;
    margin-bottom: 5rem; /* Increased margin to prevent overlap */
}

.rotating-taglines .hero-tagline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.rotating-taglines .hero-tagline.active {
    opacity: 1;
}

/* Immersive Call-to-Actions */
.hero-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero-btn .button-icon {
    font-family: 'Font Awesome 5 Free'; /* Assuming Font Awesome is loaded */
    font-weight: 900; /* Solid icons */
    font-size: 1.2em;
    transition: transform 0.3s ease-out;
}

.hero-btn:hover .button-icon {
    transform: scale(1.2);
}

.hero-btn .button-counter {
    font-size: 0.9em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.hero-btn:hover .button-counter {
    opacity: 1;
    transform: translateY(0);
}

/* Ripple Effect */
.hero-btn.ripple {
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

.hero-btn.ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.hero-btn.ripple:active:after {
    transform: scale(0, 0);
    opacity: .2;
    transition: 0s;
}

/* Cause Preview Cards Section */
.cause-preview-cards {
    padding: 60px 20px;
    background-color: #f8f8f8; /* Light background for contrast */
    text-align: center;
}

.cause-preview-cards h2 {
    color: #333;
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 40px;
    border-bottom: 3px solid #4a90e2;
    display: inline-block;
    padding-bottom: 10px;
}

.preview-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.preview-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.preview-card .card-icon {
    font-size: 3em;
    color: #4a90e2;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.preview-card:hover .card-icon {
    transform: rotateY(180deg) scale(1.1);
}

.preview-card h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
}

.preview-card .card-impact-counter {
    font-size: 1.2rem;
    color: #666;
    font-weight: bold;
    margin-bottom: 15px;
}

.preview-card .card-facts {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 20px;
    line-height: 1.5;
}

.preview-card .card-link {
    display: inline-block;
    background: #00c6ff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.preview-card .card-link:hover {
    background: #0072ff;
}

/* Dark Mode adjustments for Cause Preview Cards */
@media (prefers-color-scheme: dark) {
    .cause-preview-cards {
        background-color: #1a1a1a;
    }

    .cause-preview-cards h2 {
        color: #f0f0f0;
        border-bottom-color: #8a2be2;
    }

    .preview-card {
        background: #2c2c2c;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .preview-card h3 {
        color: #f0f0f0;
    }

    .preview-card .card-impact-counter {
        color: #bbb;
    }

    .preview-card .card-facts {
        color: #ccc;
    }

    .preview-card .card-link {
        background: #8a2be2;
    }

    .preview-card .card-link:hover {
        background: #9932cc;
    }
}

/* Ambient Background Elements */
.ambient-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Behind video and content */
}

.ambient-particles::before,
.ambient-particles::after {
    content: '';
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out alternate;
}

.ambient-particles::before {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 15%;
    animation-duration: 18s;
    animation-delay: 1s;
}

.ambient-particles::after {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 10%;
    animation-duration: 20s;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-50px) translateX(20px) scale(1.1);
        opacity: 0.2;
    }
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.1;
    }
}

.gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 198, 255, 0.2), rgba(140, 0, 255, 0.2), rgba(255, 0, 150, 0.2));
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    z-index: 0; /* Behind video and content */
    opacity: 0.5;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Partners Scroller Section */
.partners-scroller-section {
    /*position: absolute;*/
    bottom: 0;
    background-color: transparent !important; /* Revert to light background */
    padding: 20px 0 !important;
    overflow: hidden;
    /*box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
    z-index: 10;
}

.partners-scroller-section h5 {
    text-align: center;
    margin-bottom: 10px;
    margin-top: -10px;
    font-size: 0.85rem;
}

.partners-scroller-container {
    display: flex; /* Use flexbox */
    width: max-content; /* Allow content to be wider than its parent */
    animation: scroll-left 30s linear infinite; /* Animation for continuous scroll */
}

.partners-scroller-container img {
    height: 80px; /* Adjust as needed for logo size */
    margin: 0 30px; /* Space between logos */
    flex-shrink: 0; /* Prevent images from shrinking */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); /* Subtle white outer glow */
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%); /* Scroll half the width to loop seamlessly */
    }
}

/* Dark Mode adjustments for Partners Scroller */
@media (prefers-color-scheme: dark) {
    .partners-scroller-section {
        background-color: #1a1a1a; /* Dark background */
    }
}

/* Responsive adjustments for Partners Scroller */
@media (max-width: 768px) {
    .partners-scroller-container img {
        height: 60px; /* Smaller logos on mobile */
        margin: 0 20px;
    }
}

/* Featured Causes Showcase */
.featured-causes-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Hero Cause Styling */
.hero-cause {
    display: flex;
    flex-direction: column; /* Revert to column layout */
    background: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cause:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* New style for inline content of the first cause */
.hero-cause-inline-content {
    display: flex;
    flex-direction: row; /* Default to row for larger screens */
    align-items: flex-start; /* Align items to the top */
    gap: 30px; /* Space between video and content */
}

.hero-cause-video {
    flex: 2; /* Video takes more space */
    position: relative;
    padding-bottom: 34.8%; /* 16:9 Aspect Ratio for a smaller video */
    height: 0;
    background-color: #000; /* Fallback background */
}

.hero-cause-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.hero-cause-content {
    flex: 1; /* Content takes less space */
    padding: 30px;
    text-align: left;
}

.hero-cause-content h3 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.hero-cause-content .cause-description {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Secondary Causes Grid */
.secondary-causes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Explicitly 2 columns */
    gap: 30px;
}

.secondary-cause-item {
    background: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.secondary-cause-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.secondary-cause-item .cause-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.secondary-cause-item .cause-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.secondary-cause-content {
    padding: 20px;
    text-align: left;
}

.secondary-cause-content h3 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.secondary-cause-content .cause-description {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 15px;
}

/* General Cause Item Styling (reused from previous) */
.cause-article-count {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.cause-explore-btn {
    display: inline-block;
    background: var(--button-background);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--button-background);
}

.cause-explore-btn:hover {
    background: var(--button-hover-background);
    border-color: var(--button-hover-background);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.cause-sponsor {
    margin-top: 15px;
    text-align: center;
}

.cause-sponsor .advertising-label {
    font-size: 10px;
    color: var(--sponsor-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .featured-causes-showcase {
        padding: 20px 0;
        gap: 30px;
    }

    /* First Cause: Stack video and content on smaller screens */
    .hero-cause-inline-content {
        flex-direction: column;
    }

    .hero-cause-video {
        flex: none; /* Remove flex grow */
        width: 100%; /* Take full width */
        padding-bottom: 56.25%; /* Standard 16:9 aspect ratio for full width video */
    }

    .hero-cause-content {
        flex: none; /* Remove flex grow */
        width: 100%; /* Take full width */
        padding: 20px;
    }

    .hero-cause-content h3 {
        font-size: 2rem;
    }

    .hero-cause-content .cause-description {
        font-size: 1rem;
    }

    /* Secondary Causes: Stack on smaller screens */
    .secondary-causes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .secondary-cause-content {
        padding: 15px;
    }

    .secondary-cause-content h3 {
        font-size: 1.5rem;
    }

    .secondary-cause-content .cause-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-cause-content h3 {
        font-size: 1.8rem;
    }

    .hero-cause-content .cause-description {
        font-size: 0.9rem;
    }

    .secondary-cause-content h3 {
        font-size: 1.3rem;
    }

    .secondary-cause-content .cause-description {
        font-size: 0.85rem;
    }

    .cause-explore-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* Dark Mode Adjustments for Featured Causes */
@media (prefers-color-scheme: dark) {
    .hero-cause,
    .secondary-cause-item {
        background: var(--card-background);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }

    .hero-cause-content h3,
    .secondary-cause-content h3 {
        color: var(--heading-color);
    }

    .hero-cause-content .cause-description,
    .secondary-cause-content .cause-description {
        color: var(--text-color);
    }

    .cause-article-count {
        color: var(--text-color);
    }

    .cause-explore-btn {
        background: var(--button-background);
        border-color: var(--button-background);
    }

    .cause-explore-btn:hover {
        background: var(--button-hover-background);
        border-color: var(--button-hover-background);
    }

    .cause-sponsor .advertising-label {
        color: var(--sponsor-text);
    }
}

/* Remaining Causes Grid */
.remaining-causes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Explicitly 3 columns */
    gap: 30px;
    max-width: 1200px; /* Match featured causes width */
    margin: 40px auto 0 auto; /* Add top margin to separate from featured causes */
}

.remaining-causes-grid .cause-item {
    background: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.remaining-causes-grid .cause-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for Remaining Causes Grid */
@media (max-width: 768px) {
    .remaining-causes-grid {
        grid-template-columns: 1fr; /* Stack on smaller screens */
        gap: 20px;
    }
}

@media (prefers-color-scheme: dark) {
    .remaining-causes-grid .cause-item {
        background: var(--card-background);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

/* About Us Page Styling */
.about-us-hero {
    height: 35vh !important; /* Override cta-hero for about us page */
}

.about-content-section {
    padding: 60px 20px;
    background-color: var(--background-color); /* Use site background color */
    text-align: center;
}

.about-content-section .fl-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* Two columns on larger screens */
    gap: 40px; /* Space between blocks */
    max-width: 1200px; /* Consistent with other sections */
    margin: 0 auto;
}

.about-text-block {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-text-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.about-text-block h2 {
    font-size: 2.2em;
    color: var(--heading-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--link-color);
    padding-bottom: 10px;
    display: inline-block;
    width: auto;
}

.about-text-block p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
}

/* Dark Mode Adjustments for About Us Page */
@media (prefers-color-scheme: dark) {
    .about-content-section {
        background-color: var(--background-color);
    }

    .about-text-block {
        background: var(--card-background);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .about-text-block h2 {
        color: var(--heading-color);
        border-bottom-color: var(--link-color);
    }

    .about-text-block p {
        color: var(--text-color);
    }
}

/* Responsive Adjustments for About Us Page */
@media (max-width: 768px) {
    .about-content-section .fl-container {
        grid-template-columns: 1fr; /* Stack on smaller screens */
        gap: 30px;
    }

    .about-text-block {
        padding: 25px;
    }

    .about-text-block h2 {
        font-size: 1.8em;
    }

    .about-text-block p {
        font-size: 1em;
    }
}
}
