﻿/* ============================================================
    SITE.CSS - Main Stylesheet for Razor Pages Project
    Organized by Section for Clarity and Maintainability
    ------------------------------------------------------------
    Sections:
    1. Reset & Base Styles
    2. Typography
    3. Utility Classes
    4. Layout & Spacing
    5. Header & Navigation
    6. Slider/Carousel
    7. Stats & Video Overlay
    8. Team Members
    9. Fun Facts Section
    10. Footer
    11. Buttons & Animated Gradients
    12. Home Page (Index.cshtml) Styles
============================================================ */

/* ============================================================
    1. RESET & BASE STYLES
============================================================ */
html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth !important;
}
@media (min-width: 768px) {
    html { font-size: 16px; }
}
body {
    background-color: #fff;
    font-family: 'Open Sans', sans-serif;
    line-height: 21px;
    font-size: 13px;
    color: #6a737b;
}
ol, ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
figure, p { margin: 0; }
a {
    color: #fff;
    transition: all .3s ease-in 0s;
}
a, a:focus, a:hover {
    text-decoration: none;
    outline: 0;
}
iframe { border: 0; }
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    margin: 0;
}

/* ============================================================
    2. TYPOGRAPHY
============================================================ */
span.color {
    color: rgba(61,178,84,1);
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.sec-title h2 {
    color: rgba(61,178,83,1);
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
}
.sec-sub-title p {
    font-weight: 600;
    line-height: 24px;
    font-size: 18px;
    color: #5b646e;
}

/* ============================================================
    3. UTILITY CLASSES
============================================================ */
.clear:before, .clear:after {
    content: " ";
    display: table;
}
.clear:after { clear: both; }
.clear { *zoom: 1; }
.mb50 { margin-bottom: 50px; }

/* ============================================================
    4. LAYOUT & SPACING
============================================================ */
body > section, .footer { padding: 70px 0; }
.sec-sub-title { margin: 35px 0 45px; }
.divider { margin-top: 30px; }
.divider i { color: #cccccc; }
.divider:before, .divider:after {
    content: "______________________";
    color: #e6e8ea;
    position: relative;
    bottom: 6px;
}
.divider:before { right: 10px; }
.divider:after { left: 10px; }

/* Preloader Overlay */
#preloader {
    background-color: #fff;
    height: 100%;
    position: fixed;
    width: 100%;
    z-index: 1100;
}
#preloader > img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    transform: translate(-50%, -50%);
}
.createHeaderSpace {
    margin-top: 86px;
}

.fade-logo {
    animation: fade 2s infinite;
}

@keyframes fade {
    0%, 100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* ============================================================
    5. HEADER & NAVIGATION
============================================================ */
#navigation {
    background: linear-gradient(to right, rgba(17,143,194,0.9), rgba(61,178,84,1));
    margin: 0;
    padding: 0px 0px 10px 0px;
    transition: background-color 800ms linear;
}
.navbar-brand { padding: 0; }
.navbar-nav li a { font-size: 16px; }
.navbar .nav-link {
    color: #fff !important;
    margin: 5px;
}
.navbar-nav li a:hover { border-top: 1px solid #32B0EE; }
.navbar-nav > li > .btn.donate-btn {
    margin-top: 6px;
    padding: 6px 16px;
}
/* Dropdown Menu */
.navbar .dropdown-menu {
    background-color: #25a27b;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.navbar .dropdown-menu .dropdown-item {
    color: white;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}
.navbar .dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* ============================================================
    6. SLIDER / CAROUSEL
============================================================ */
#slider { padding: 0; }
#slider .carousel-inner .carousel-item { background-size: cover; }
.carousel-caption { top: 102px; }
.carousel-caption h2 {
    font-size: 62px;
    font-weight: 300;
}
.carousel-caption h2 span { font-weight: 800; }
.carousel-caption h3 {
    font-size: 48px;
    font-weight: 300;
    margin: 6px 0 20px;
}
.carousel-caption p {
    color: #fff;
    font-size: 18px;
    font-weight: 300;
}
.carousel-caption p:before, .carousel-caption p:after {
    color: #0feb9e;
    content: "___";
    position: relative;
    top: -8px;
}
.carousel-caption p:before { right: 20px; }
.carousel-caption p:after { left: 20px; }
/* Carousel Indicators */
.carousel-indicators {
    bottom: 10px;
    left: inherit;
    margin: 0;
    right: 30px;
    top: 49%;
    width: 0;
}
.carousel-indicators li {
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: 8px;
    width: 8px;
}
.carousel-indicators .active {
    height: 8px;
    width: 8px;
}
/* Social Links in Slider */
.social-links { margin-top: 5%; }
.social-links li { display: inline-block; }
.social-links li a {
    color: rgba(255, 255, 255, 0.3);
    display: block;
    margin: 0 6px;
}
.social-links li a:hover { color: #fff; }

/* ============================================================
    7. STATS WITH VIDEO OVERLAY
============================================================ */
.overlay {
    background-color: rgba(14,180,147,.9);
    text-align: center;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    opacity: 0;
    filter: alpha(opacity=0);
    transition: all 450ms ease-out 0s;
    transform: rotateY(180deg) scale(0.5,0.5);
}

/* ============================================================
    8. OUR TEAM MEMBERS
============================================================ */
.member-thumb {
    width: 273px;
    position: relative;
}
.member-thumb .overlay h5 {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    margin: 10px 0;
}
.member-thumb .overlay {
    font-size: 16px;
    padding: 20px;
    line-height: 24px;
}
.team-member {
    margin-top: 20px;
}
.team-member h4 {
    color: #062033;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    margin: 15px 0 8px;
}
.member-thumb:hover .overlay {
    cursor: pointer;
    opacity: 1;
    filter: alpha(opacity=100);
    transform: rotateY(0deg) scale(1,1);
}
.team-member:hover h4 { color: #0eb493; }
.team-member .social-links { margin-top: 24%; }
.team-member .social-links li a {
    background-color: #0d7c67;
    color: #fff;
    height: 42px;
    padding: 10px 0 0;
    width: 42px;
}

/* ============================================================
    9. FUN FACTS SECTION (STATS WITH VIDEO BACKGROUND)
============================================================ */
#facts {
    background: none !important;
    position: relative;
    overflow: hidden;
    padding: 0;
}
#facts .video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
#facts .video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 400.77vh;
    height: 90.25vw;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
#facts .parallax-overlay {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: rgba(125,125,125,0.3);
    padding: 70px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.facts .divider:before, .facts .divider:after { color: #737C85; }
.facts .divider i { color: #fff; }
.counters-item {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.counters-item i {
    background: rgba(17,143,194,0.5);
    border: 1px solid #737C85;
    border-radius: 50%;
    color: #fff;
    display: inline-block;
    height: 120px;
    margin: 0 0 35px;
    padding: 40px 0 0;
    width: 120px;
}
.counters-item strong {
    display: block;
    font-size: 60px;
    font-weight: 600;
    line-height: 60px;
}
.counters-item p {
    font-size: 18px;
    line-height: 24px;
    margin-top: 15px;
    text-transform: uppercase;
}

/* ============================================================
    10. FOOTER
============================================================ */
.footer {
    background: linear-gradient(to right, rgba(17,143,194,0.9), rgba(61,178,84,1));
    color: #fff;
}
.footer a:hover { color: #062033; }
.footer h6 {
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    margin-bottom: 30px;
}
.footer-single { line-height: 24px; }
.footer-single li { line-height: 32px; }
.footer-single p i { margin: 0 10px; }
.copyright {
    color: #fff;
    margin-top: 100px;
}
#back-top {
    bottom: 20px;
    position: fixed;
    right: 25px;
    z-index: 9;
}

/* ============================================================
    11. BUTTONS & ANIMATED GRADIENTS
============================================================ */
/* General Button Focus */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
/* Floating Form Placeholders */
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}
.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* Animated Gradient Buttons */
.btn-gradient-primary-animated {
    background: linear-gradient(45deg, #0d6efd, #6610f2, #0d6efd);
    background-size: 200% 200%;
    border: none;
    color: white;
    animation: gradientShift 3s ease infinite;
    transition: all 0.3s ease;
}

.btn-gradient-primary-animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 110, 253, 0.4);
    color: white;
}

.btn-gradient-success-animated {
    background: linear-gradient(45deg, #198754, #20c997, #198754);
    background-size: 200% 200%;
    border: none;
    color: white;
    animation: gradientShift 3s ease infinite;
    transition: all 0.3s ease;
}

.btn-gradient-success-animated:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 135, 84, 0.4);
    color: white;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Add glow effect to bi-arrow-up-circle icon */
.bi-arrow-up-circle {
    position: relative;
    color: white; /* Adjust icon color */
}

    .bi-arrow-up-circle::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 80%;
        border-radius: 50%;
        box-shadow: 0 0 20px 5px rgba(61,178,83,.5), inset 0 0 20px 15px rgba(61,178,83,1); /* Adjusted glow color to match navbar */
        z-index: -1;
    }

/* ============================================================
    12. HOME PAGE (Index.cshtml) STYLES
    (Relocated from Index.cshtml for maintainability)
============================================================ */
/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(17,143,194,0.4) 0%, rgba(17,143,194,0.2) 100%);
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="0.3" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.4" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}
.hero-content { position: relative; z-index: 2; }
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}
.hero-tagline {
    font-size: 1.3rem;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 3rem;
    opacity: 0.85;
}
/* Quote Section */
.quote-section {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem 0;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: rgba(0,0,0,0.8);
}
.quote-author {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(0,0,0,0.7);
}
/* CTA Buttons */
.cta-container { margin-top: 3rem; }
.cta-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 500;
}
.btn-group-enhanced {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}
.btn-enhanced {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: 160px;
    text-align: center;
}
.btn-primary-enhanced {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0,123,255,0.4);
}
.btn-primary-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.6);
    color: white;
}
.btn-secondary-enhanced {
    background: rgba(255,255,255,0.9);
    color: #333;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}
.btn-secondary-enhanced:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: #333;
}
.btn-success-enhanced {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(40,167,69,0.4);
}
.btn-success-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.6);
    color: white;
}
/* Responsive Design for Hero/Index */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-tagline { font-size: 1.1rem; }
    .btn-group-enhanced {
        flex-direction: column;
        gap: 1rem;
    }
    .btn-enhanced {
        width: 100%;
        max-width: 300px;
    }
    .quote-section {
        padding: 2rem;
        margin: 2rem 0;
    }
}
/* Animation for Hero Content */
.hero-content > * {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}
.about-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(17,143,194,0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(40,167,69,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #007bff, #28a745);
    border-radius: 2px;
}
.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.about-image:hover { transform: scale(1.02); }
.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
}
.about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
}
.about-text:first-of-type {
    font-weight: 500;
    color: #333;
}
.learn-more-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 1rem;
}
.learn-more-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.4);
}
@media (max-width: 768px) {
    .about-section { padding: 60px 0; }
    .section-title { font-size: 2rem; margin-bottom: 2rem; }
    .about-content {
        padding-left: 0;
        margin-top: 2rem;
        text-align: center;
    }
    .about-image { height: 300px; }
    .learn-more-btn { align-self: center; }
}

/* Programs Section */
.programs-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}
.programs-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(17,143,194,0.08) 0%, transparent 50%), radial-gradient(circle at 70% 80%, rgba(40,167,69,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}
.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 400;
}
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0 3rem 0;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(45deg, #007bff, #28a745);
    max-width: 80px;
}
.divider i {
    margin: 0 1rem;
    color: #007bff;
    font-size: 1.5rem;
}
.program-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}
.program-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(45deg, #007bff, #28a745);
}
.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
}
.program-card:nth-child(2) .program-icon {
    background: linear-gradient(45deg, #28a745, #20c997);
}
.program-card:nth-child(3) .program-icon {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
}
.program-icon i {
    font-size: 2rem;
    color: white;
}
.program-card:hover .program-icon { transform: scale(1.1); }
.program-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}
.program-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
}
.program-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.program-features li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}
.program-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}
.cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: rgba(255,255,255,0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}
.cta-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}
.cta-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}
.cta-button:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.4);
}
.cta-button.secondary {
    background: linear-gradient(45deg, #28a745, #20c997);
}
.cta-button.secondary:hover {
    box-shadow: 0 5px 15px rgba(40,167,69,0.4);
}
@media (max-width: 768px) {
    .programs-section { padding: 60px 0; }
    .section-title { font-size: 2.2rem; }
    .program-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    .cta-button {
        display: block;
        margin: 0.5rem auto;
        max-width: 250px;
    }
}
/* Animation for Programs Section */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ====== End Index.cshtml Styles ====== */