/* ===== VARIABLES ===== */
:root {
    --primary-red: #E70000; /* Dominant, urgent red */
    --secondary-red: #B00000; /* Darker red for hover states */
    --accent-red-light: #FFEDED; /* Very light red for subtle touches */
    --text-dark: #1A1A1A;     /* For headings and primary text */
    --text-grey: #4A4A4A;     /* For secondary text */
    --text-light: #FFFFFF;    /* For text on red backgrounds */
    --bg-white: #FFFFFF;      /* Main background */
    --bg-light-grey: #F8F8F8; /* Subtle background for alternating sections */

    --font-headline: 'Anton', sans-serif; /* For huge, impactful headlines */
    --font-body: 'Inter', sans-serif;     /* For all other text, clean and modern */

    --container-max-width: 1200px;
    --section-padding: 100px;
}

/* ===== BASE & RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchors */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

a {
    text-decoration: none;
    color: var(--primary-red);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--secondary-red);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 25px; /* Generous padding on sides */
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline); /* Anton for all bold statements */
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    letter-spacing: -1px; /* Tightly packed for power */
}

/* Hero Section Specific */
.hero-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2em;
    color: var(--text-grey);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-headline {
    font-size: 6.5em; /* HUGE IMPACT */
    color: var(--primary-red);
    line-height: 0.9; /* Tighter line spacing */
    margin-bottom: 30px;
}
.animated-number { /* For the count itself */
    font-family: var(--font-headline);
    color: var(--primary-red);
    display: inline-block; /* To allow number animation independent of line-height */
}

.hero-subtext {
    font-family: var(--font-body);
    font-size: 1.8em;
    font-weight: 300; /* Lighter weight to contrast headline */
    color: var(--text-dark);
    margin-bottom: 50px;
    line-height: 1.4;
}
.hero-subtext .highlight {
    font-weight: 700;
    color: var(--primary-red);
}
.hero-subtext .strong-statement {
    font-weight: 800; /* Extra bold */
    color: var(--primary-red);
    display: block; /* New line for emphasis */
    margin-top: 10px;
}


/* Section Titles */
.section-title {
    font-size: 3.5em; /* Large and commanding */
    margin-bottom: 20px;
}
.section-subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.3em;
    color: var(--text-grey);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Specific text styling for "feeling" */
.highlight {
    color: var(--primary-red);
    font-weight: 700;
}
.bold-red {
    color: var(--primary-red);
    font-weight: 900;
}

/* ===== HEADER & NAVIGATION ===== */
.main-header {
    background-color: var(--bg-white);
    padding: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Always on top */
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 2.5em;
    letter-spacing: -2px;
}
.logo a {
    color: var(--primary-red);
    transition: color 0.3s ease;
}
.logo a:hover {
    color: var(--text-dark);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 35px; /* More space between links */
}
.main-nav ul li a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1em;
    color: var(--text-dark);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px; /* Space for underline */
}
.main-nav ul li a:hover {
    color: var(--primary-red);
}
.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-red);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}
.main-nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.btn-nav-donate { /* Specific style for nav donate button */
    background-color: var(--primary-red);
    color: var(--text-light) !important; /* Override link color */
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700 !important;
    font-size: 1em !important;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn-nav-donate:hover {
    background-color: var(--secondary-red);
    transform: translateY(-2px);
    color: var(--text-light) !important;
}
.btn-nav-donate::after { /* Disable pseudo-element for this button */
    display: none;
}


/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    padding: 18px 40px;
    border-radius: 50px; /* Pill shape */
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--text-light);
}
.btn-primary:hover {
    background-color: var(--secondary-red);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}
.btn-outline:hover {
    background-color: var(--primary-red);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.btn-text { /* For blog read more */
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
    color: var(--primary-red);
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}
.btn-text:hover {
    color: var(--secondary-red);
    transform: none;
    text-decoration: underline;
}

.btn-huge {
    font-size: 1.4em;
    padding: 22px 50px;
}


/* ===== SECTIONS LAYOUT ===== */
main section {
    padding: var(--section-padding) 0;
    text-align: center;
}

/* Alternating backgrounds for visual rhythm */
.content-section:nth-of-type(even) { /* About, Donate */
    background-color: var(--bg-white);
}
.content-section:nth-of-type(odd) { /* Blog, Volunteer */
    background-color: var(--bg-light-grey);
}


/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 85vh; /* Take up most of the viewport */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-red-light); /* Light red background for hero */
    position: relative;
    overflow: hidden;
}


/* ===== ABOUT SECTION ===== */
.about-section {
    background-color: var(--bg-white);
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 80px;
    text-align: left; /* Align card content left */
}
.about-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.about-card .card-tagline {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9em;
    color: var(--primary-red);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.about-card h4 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--text-dark);
}
.about-card p {
    font-size: 1.1em;
    color: var(--text-grey);
}
.mission-callout {
    font-family: var(--font-body);
    font-size: 1.6em;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 40px;
    line-height: 1.4;
}


/* ===== BLOG SECTION ===== */
.blog-section {
    background-color: var(--bg-light-grey);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 60px;
}
.blog-post {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.blog-post h4 {
    font-size: 1.8em;
    margin-bottom: 15px;
}
.blog-post p {
    font-size: 1.05em;
    color: var(--text-grey);
    margin-bottom: 25px;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Blog Post Detail Styles */
.blog-detail-title {
    font-size: 3em; /* Slightly smaller than section title, but still prominent */
    margin-top: 40px;
    margin-bottom: 10px;
    text-align: left; /* Align with content */
}
.blog-post-meta {
    font-size: 1.1em;
    color: var(--text-grey);
    margin-bottom: 30px;
    text-align: left;
}
.blog-content {
    text-align: left; /* Make text readable for articles */
    line-height: 1.8;
    font-size: 1.15em;
    color: var(--text-dark);
    max-width: 800px; /* Optimal reading width */
    margin: 0 auto 50px auto; /* Center content */
}
.blog-content h1, .blog-content h2, .blog-content h3 {
    font-family: var(--font-headline);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-size: 2em;
    line-height: 1.2;
    color: var(--primary-red); /* Headings in red within article */
}
.blog-content p {
    margin-bottom: 1em;
}
.blog-content ul, .blog-content ol {
    margin-left: 20px;
    margin-bottom: 1em;
}
.blog-content li {
    margin-bottom: 0.5em;
}
.blog-content strong {
    color: var(--primary-red);
}

/* Video Embed Container (for YouTube) */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    max-width: 800px;
    background-color: var(--text-dark); /* Placeholder color */
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.back-to-blog-list {
    margin-bottom: 30px;
    margin-top: 20px;
    display: inline-block;
}


/* ===== DONATE SECTION ===== */
.donate-section {
    background-color: var(--bg-white);
}
.impact-value {
    font-family: var(--font-headline);
    font-size: 2.5em; /* Very prominent */
    color: var(--primary-red);
    display: block; /* New line for strong emphasis */
    margin-bottom: 10px;
}
.impact-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 80px;
}
.point {
    background-color: var(--bg-light-grey); /* Light grey for contrast */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.point:hover {
    transform: translateY(-5px);
}
.point .icon {
    font-size: 3.5em;
    margin-bottom: 15px;
    display: block;
}
.point h5 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-red); /* Highlight point titles */
}
.point p {
    font-size: 1em;
    color: var(--text-grey);
}
.small-print {
    font-size: 0.9em;
    color: var(--text-grey);
    margin-top: 30px;
}


/* ===== VOLUNTEER SECTION ===== */
.volunteer-section {
    background-color: var(--bg-light-grey);
}
.volunteer-steps {
    list-style: none;
    padding: 0;
    margin-top: 60px;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.volunteer-steps li {
    font-family: var(--font-body);
    font-size: 1.6em;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}
.volunteer-steps li:last-child {
    margin-bottom: 0;
}
.volunteer-steps .step-number {
    font-family: var(--font-headline); /* Anton for numbers */
    font-size: 1.5em;
    color: var(--primary-red);
    margin-right: 20px;
    line-height: 1; /* Keep number compact */
    width: 40px; /* Fixed width for alignment */
    text-align: center;
}


/* ===== FOOTER ===== */
.main-footer {
    background-color: var(--text-dark); /* Dark background */
    color: var(--text-light);
    padding: 40px 0;
    font-size: 0.9em;
}
.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.main-footer p {
    color: rgba(255,255,255,0.7); /* Slightly faded white for text */
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    margin: 0 15px;
}
.footer-links a:hover {
    color: var(--primary-red);
}


/* ===== RESPONSIVENESS ===== */
@media (max-width: 1024px) {
    .hero-headline {
        font-size: 5em;
    }
    .hero-subtext {
        font-size: 1.5em;
    }
    .section-title {
        font-size: 3em;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .hero-headline {
        font-size: 3.5em;
    }
    .hero-subtext {
        font-size: 1.2em;
    }
    .section-title {
        font-size: 2.5em;
    }
    .section-subtitle {
        font-size: 1.1em;
    }
    .btn {
        padding: 15px 30px;
        font-size: 0.9em;
    }
    .btn-huge {
        font-size: 1.2em;
        padding: 18px 40px;
    }
    .about-grid, .blog-grid, .impact-points {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
    .about-card, .blog-post, .point {
        text-align: center; /* Center content in stacked cards */
    }
    .about-card h4, .blog-post h4, .point h5 {
        text-align: center;
    }
    .about-card .card-tagline {
        text-align: center;
    }
    .volunteer-steps li {
        font-size: 1.3em;
    }
    .volunteer-steps .step-number {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.8em;
    }
    .hero-subtext {
        font-size: 1em;
    }
    .section-title {
        font-size: 2em;
    }
    .main-nav ul {
        gap: 15px;
    }
    .main-nav ul li a {
        font-size: 0.9em;
    }
    .btn-nav-donate {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}


/* ===== ANIMATIONS ===== */
/* Base hidden state */
.anim-fade-in, .anim-slide-up, .anim-scale-in {
    opacity: 0;
    transform: translateY(20px); /* Default for slide-up */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, transform 0.8s ease-out;
}

/* Specific initial states */
.anim-scale-in {
    transform: scale(0.9);
}

/* State when in view */
.anim-fade-in.in-view {
    opacity: 1;
    transform: translateY(0);
}

.anim-slide-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.anim-scale-in.in-view {
    opacity: 1;
    transform: scale(1);
}

/* Keyframes for the Hero Headline text reveal */
.hero-headline.in-view span {
    animation: textClipReveal 1.2s cubic-bezier(0.86, 0, 0.07, 1) forwards;
}

@keyframes textClipReveal {
    0% {
        clip-path: inset(0 100% 0 0); /* Start completely clipped from the right */
    }
    100% {
        clip-path: inset(0 0% 0 0); /* Reveal fully */
    }
}

/* Number animation specific */
.animated-number {
    overflow: hidden; /* Hide overflow during animation */
    white-space: nowrap;
    display: inline-block; /* Ensure it behaves like a block for sizing */
}

/* For staggered animation within a section */
[data-delay] {
    transition-delay: var(--delay);
}

/* ===== ADMIN PANEL STYLES (Full Screen) ===== */
body.admin-view-active {
    overflow: hidden; /* Prevent scrolling the main site underneath */
}
body.admin-view-active > .main-header,
body.admin-view-active > main,
body.admin-view-active > .main-footer {
    display: none; /* Hide main site when admin panel is active */
}

#admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-light-grey);
    z-index: 2000; /* On top of everything */
    color: var(--text-dark);
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

.admin-header {
    background-color: var(--bg-white);
    padding: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-title {
    font-size: 2em;
    color: var(--primary-red);
    margin: 0;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-user-info p {
    margin: 0;
    font-weight: 600;
}

#admin-sign-out-btn {
    padding: 10px 20px;
    box-shadow: none;
}

.admin-content {
    padding: var(--section-padding) 0;
    text-align: center;
}

.admin-content .section-title {
    margin-bottom: 60px;
}

.admin-actions {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.admin-actions .btn {
    min-width: 250px;
}

/* Simple Fade-in Animation for the panel */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}