/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Variables - Enhanced Red Palette */
    --primary-color: #d04245;
    --secondary-color: #b31f23;
    --accent-color: #94080c;
    --dark-red: #700003;
    --darkest-red: #460002;
    --text-color: #333333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #d04245 0%, #b31f23 100%);
    --gradient-secondary: linear-gradient(135deg, #b31f23 0%, #94080c 100%);
    --gradient-accent: linear-gradient(135deg, #94080c 0%, #700003 100%);
    --gradient-dark: linear-gradient(135deg, #700003 0%, #460002 100%);
    --gradient-light: linear-gradient(135deg, rgba(208, 66, 69, 0.1) 0%, rgba(179, 31, 35, 0.1) 100%);
    
    /* Enhanced Shadows */
    --shadow-light: 0 2px 10px rgba(208, 66, 69, 0.1);
    --shadow-medium: 0 5px 20px rgba(208, 66, 69, 0.15);
    --shadow-heavy: 0 10px 30px rgba(208, 66, 69, 0.2);
    --shadow-accent: 0 5px 20px rgba(148, 8, 12, 0.3);
}

body {
    font-family: 'Poppins', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===== Navigation Bar ===== */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
    display: inline-block;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-trigger .fa-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-trigger .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: rgba(208, 66, 69, 0.1);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===== Hero Section & Carousel ===== */
.hero {
    position: relative;
}

.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    position: relative;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: auto;
    min-height: 500px;
    max-height: 700px;
    object-fit: contain;
    object-position: center;
    background-color: #f8f9fa;
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.indicator.active {
    background-color: var(--white) !important;
}
.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--white);
}

/* ===== Mission Section ===== */
.mission-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.mission-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.mission-text-wrapper {
    text-align: left;
}

.section-title {
    text-align: left;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    font-size: 2rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1rem 0;
    border-radius: 2px;
}

.mission-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #555;
}

.mission-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

.mission-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mission-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mission-stat i {
    font-size: 1.6rem;
    color: var(--primary-color);
}

.mission-stat span {
    font-weight: 600;
    color: var(--text-color);
}

.mission-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(208, 66, 69, 0.3);
}

/* ===== Education Section ===== */
.education-section {
    padding: 100px 0;
    background: white;
    position: relative;
    /* Debug: ensure visibility */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.education-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 4rem;
}

.campus-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.campus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.1), transparent);
    transition: left 0.6s ease;
}

.campus-card:hover::before {
    left: 100%;
}

.campus-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.campus-icon {
    width: 65px;
    height: 65px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.campus-card h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.campus-card h4 {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.campus-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.campus-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.campus-features span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.9rem;
}

.campus-features i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.campus-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
}

.campus-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

/* Courses Section */
.courses-section {
    margin: 4rem 0;
    /* Debug: ensure visibility */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.courses-section h3 {
    text-align: center;
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.courses-section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 1rem auto;
    border-radius: 2px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.course-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.course-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.course-item h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.course-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Leadership Section */
.leadership-section {
    margin: 4rem 0;
    /* Debug: ensure visibility */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.leadership-section h3 {
    text-align: center;
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.leadership-section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 1rem auto;
    border-radius: 2px;
}

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

.leader-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.leader-avatar {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(208, 66, 69, 0.3);
}

.leader-card h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.leader-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.leader-description {
    color: #666;
    line-height: 1.6;
}

/* Contact Information */
.contact-info {
    margin: 4rem 0;
    /* Debug: ensure visibility */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.contact-info h3 {
    text-align: center;
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.contact-info h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-secondary);
    margin: 1rem auto;
    border-radius: 2px;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: #666;
    margin-bottom: 0.3rem;
}

/* ===== Services Section ===== */
.services-section {
    padding: 80px 0;
    /* Debug: ensure visibility */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(208, 66, 69, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.service-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 1.5rem 0;
    text-align: left;
}

.service-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.service-features i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.service-link {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 10px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.service-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

/* ===== Statistics Section ===== */
.stats-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    /* Debug: ensure visibility */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.stats-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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-item h3 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.stat-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.stat-progress::after {
    content: '';
    display: block;
    width: 0%;
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: progressFill 2s ease-out forwards;
}

@keyframes progressFill {
    to {
        width: 100%;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== Call to Action Section ===== */
.cta-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Debug: ensure visibility */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(208, 66, 69, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(208, 66, 69, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(208, 66, 69, 0.1);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(208, 66, 69, 0.3);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(148, 8, 12, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(148, 8, 12, 0.4);
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
    /* Debug: ensure visibility */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3::after,
.footer-section h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    margin-top: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #bdc3c7;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-section a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #bdc3c7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(208, 66, 69, 0.3);
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1.5rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.contact-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(208, 66, 69, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ===== Donation Page Specific Styles ===== */
.donation-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
}

.donation-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.amount-btn {
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.amount-btn:hover,
.amount-btn.selected {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.custom-amount {
    margin: 20px 0;
}

.custom-amount input {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: var(--transition);
}

.custom-amount input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.payment-methods {
    margin: 30px 0;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.payment-card {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.payment-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.payment-card.selected {
    border-color: var(--primary-color);
    background-color: #e8f5e9;
}

.donor-form {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.donate-submit {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.donate-submit:hover {
    background-color: #45a049;
    transform: scale(1.02);
}

/* ===== Events Page Specific Styles ===== */
.events-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

/* Event Details Button */
.event-details-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.event-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

/* Event Modal Styles */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.event-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s ease;
}

.event-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.event-modal-close:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.event-modal-header {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 25px;
}

.modal-event-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-event-info h2 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.modal-event-date {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.modal-event-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-event-status.status-upcoming {
    background: #e3f2fd;
    color: var(--secondary-color);
}

.modal-event-status.status-past {
    background: #f5f5f5;
    color: #666;
}

.event-modal-body {
    padding: 30px;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.event-detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.event-detail-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.event-detail-item h4 {
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 1rem;
}

.event-detail-item p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.event-description-section,
.event-requirements-section {
    margin-bottom: 25px;
}

.event-description-section h4,
.event-requirements-section h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-description-section p,
.event-requirements-section p {
    color: #555;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.event-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Enhanced Event Card Hover Effects */
.event-card:hover .event-img {
    transform: scale(1.05);
    cursor: pointer;
}

.event-img {
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.event-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-image {
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fallback for images that fail to load */
.event-image:has(img[src*="error"])::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 3rem;
    color: #ccc;
}

.event-content {
    padding: 20px;
}

.event-date {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.event-title {
    color: var(--text-color);
    margin-bottom: 10px;
}

.event-description {
    color: #666;
    margin-bottom: 15px;
}

.event-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-upcoming {
    background-color: #e3f2fd;
    color: var(--secondary-color);
}

.status-past {
    background-color: #f5f5f5;
    color: #666;
}

/* ===== About Page Specific Styles ===== */
.about-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://via.placeholder.com/1200x400/4CAF50/FFFFFF?text=About+Us');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 150px 0 80px;
    text-align: center;
}

.timeline {
    position: relative;
    padding: 50px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 45%;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.team-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.member-name {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.member-role {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* ===== Media Queries ===== */
@media screen and (max-width: 768px) {
    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Mobile Dropdown Styles */
    .nav-item {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(208, 66, 69, 0.05);
        margin: 0;
        padding: 0;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown-menu.show {
        max-height: 300px;
        padding: 0.5rem 0;
    }
    
    .dropdown-item {
        padding: 0.75rem 2rem;
        justify-content: center;
    }
    
    .dropdown-item:hover {
        padding-left: 2rem;
    }
    
    .dropdown-trigger .fa-chevron-down {
        margin-left: auto;
    }
    
    /* Enhanced Navigation for tablets */
    .nav-container {
        padding: 0.8rem 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Responsive Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption {
        padding: 1.5rem 2rem;
        bottom: 30px;
        width: 95%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Mission Section */
    .mission-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .section-title {
        text-align: center;
    }
    
    .section-title::after {
        margin: 1rem auto;
    }
    
    .mission-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Education Section */
    .education-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .campus-card {
        padding: 2rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    /* CTA Section */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Back to Top Button */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* Timeline */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px !important;
    }
    
    .timeline-dot {
        left: 30px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .carousel {
        height: 350px;
    }
    
    .carousel-item img {
        height: 350px;
    }
    
    .carousel-caption {
        padding: 1rem 1.5rem;
        bottom: 20px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    /* Mission Section */
    .mission-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .mission-stats {
        gap: 10px;
    }
    
    .mission-stat {
        padding: 15px;
    }
    
    /* Education Section */
    .education-section {
        padding: 60px 0;
    }
    
    .campus-card {
        padding: 1.5rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .course-item {
        padding: 1.5rem;
    }
    
    /* Services */
    .services-section {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Stats */
    .stats-section {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    /* CTA */
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    /* Back to Top Button */
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .donation-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    /* Event Modal Responsive */
    .event-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .event-modal-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .modal-event-image {
        width: 100px;
        height: 100px;
    }
    
    .event-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .event-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(208, 66, 69, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(208, 66, 69, 0.4);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.loading-screen::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="loading-dots" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23loading-dots)"/></svg>');
    opacity: 0.4;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    0% { transform: translateX(-100px) translateY(-100px); }
    100% { transform: translateX(100px) translateY(100px); }
}

.loading-screen.hide {
    opacity: 0;
    visibility: hidden;
}

/* Fallback: Hide loading screen after 3 seconds even without JavaScript */
@media (min-width: 1px) {
    .loading-screen {
        animation: hideLoading 3s ease forwards;
    }
}

@keyframes hideLoading {
    0%, 90% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo-img {
    width: auto;
    height: 120px;
    max-width: 200px;
    margin: 0 auto 1.5rem;
    display: block;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

.loading-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Enhanced Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback for when JavaScript is disabled */
.no-js .animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== Additional Donation Page Styles ===== */
.donation-section {
    padding: 60px 0;
}

.donation-container {
    max-width: 1000px;
    margin: 0 auto;
}

.donation-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.donation-box h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.donation-box p {
    color: #666;
    margin-bottom: 20px;
}

/* Donation Amount Selection */
.donation-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.amount-btn {
    background-color: var(--light-bg);
    border: 2px solid transparent;
    padding: 15px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-color);
}

.amount-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.amount-btn.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Custom Amount Input */
.custom-amount {
    margin-bottom: 25px;
}

.custom-amount label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.custom-amount input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.custom-amount input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(208, 66, 69, 0.1);
}

/* Donation Frequency */
.donation-frequency {
    margin-bottom: 25px;
}

.donation-frequency h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.frequency-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.frequency-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.frequency-option:hover {
    background-color: var(--light-bg);
}

.frequency-option input[type="radio"] {
    margin-right: 12px;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    margin-right: 8px;
}

.frequency-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Payment Methods */
.payment-methods {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.payment-methods h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.payment-card {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.payment-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.payment-card.selected {
    border-color: var(--primary-color);
    background-color: #e8f5e9;
}

.payment-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.payment-card h4 {
    margin-bottom: 8px;
    color: var(--text-color);
}

.payment-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Bank Account Details */
.bank-details {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--primary-color);
}

.bank-details h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.bank-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.bank-note {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff3cd;
    border-radius: 5px;
    color: #856404;
    font-style: italic;
}

/* Enhanced Form Styles */
.donor-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.donor-form h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(208, 66, 69, 0.1);
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: var(--transition);
    min-height: 100px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(208, 66, 69, 0.1);
}

/* Form Options */
.form-options {
    margin: 25px 0;
}

.checkbox-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.checkbox-option:hover {
    background-color: var(--light-bg);
}

.checkbox-option input[type="checkbox"] {
    margin-right: 12px;
    width: auto;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    margin-right: 8px;
    transition: var(--transition);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Submit Button */
.donate-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.donate-submit:hover {
    background-color: #388e3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(208, 66, 69, 0.3);
}

.donate-submit:active {
    transform: translateY(0);
}

/* Impact Information */
.impact-info {
    margin: 40px 0;
    text-align: center;
}

.impact-info h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.impact-item {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
    transition: var(--transition);
}

.impact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.impact-item h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* Security Badge */
.security-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #e8f5e9;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.security-info img {
    flex-shrink: 0;
}

.security-info p {
    margin: 0;
    color: #2e7d32;
}

/* Testimonials */
.testimonials-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

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

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.testimonial-author h4 {
    margin: 0;
    color: var(--text-color);
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design for Donation Page */
@media screen and (max-width: 768px) {
    .donation-container {
        padding: 0 20px;
    }
    
    .donation-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .donation-amounts {
        grid-template-columns: 1fr;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .donation-box,
    .payment-methods,
    .donor-form {
        padding: 20px;
    }
}

/* Volunteer Page Styles */
.volunteer-hero {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 120px 0 80px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.volunteer-hero::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="volunteer-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.15)"/><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="15" r="1.5" fill="rgba(255,255,255,0.12)"/></pattern></defs><rect width="100" height="100" fill="url(%23volunteer-pattern)"/></svg>');
    opacity: 0.4;
    animation: volunteerPattern 25s linear infinite;
}

@keyframes volunteerPattern {
    0% { transform: translateX(-50px) translateY(-50px) rotate(0deg); }
    100% { transform: translateX(50px) translateY(50px) rotate(360deg); }
}

.volunteer-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: slideInUp 1s ease-out;
}

.volunteer-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    animation: slideInUp 1s ease-out 0.2s both;
}

.volunteer-form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.form-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

.volunteer-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(208, 66, 69, 0.1);
    transform: translateY(-1px);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-group label:hover {
    background: rgba(208, 66, 69, 0.1);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.submit-btn:hover {
    background: var(--gradient-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Enhanced Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced Button Styles */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Enhanced Form Animations */
.form-group input,
.form-group select,
.form-group textarea {
    animation: fadeInUp 0.6s ease-out;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Design for Volunteer Page */
@media screen and (max-width: 768px) {
    .volunteer-hero h1 {
        font-size: 2rem;
    }
    
    .form-container {
        margin: 20px;
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Payment Method Inputs */
.payment-inputs-container {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    animation: slideDown 0.3s ease-out;
}

.payment-input {
    margin-bottom: 15px;
}

.payment-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.payment-input input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.payment-input input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(208, 66, 69, 0.1);
}

/* Enhanced Animations */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-in {
    animation: slideInUp 0.8s ease-out forwards;
}

/* Enhanced Service Cards */
.service-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(208, 66, 69, 0.1), transparent);
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Enhanced Stats */
.stat-item {
    transition: all 0.3s ease;
    position: relative;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number::after {
    transform: scaleX(1);
}

/* Enhanced Form Elements */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(208, 66, 69, 0.15);
}

/* Enhanced Buttons */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Enhanced Footer */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #2196F3, #FF9800);
}

.social-link {
    transition: all 0.3s ease;
    position: relative;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(208, 66, 69, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideInUp 0.4s ease-out;
}

.modal-header {
    text-align: center;
    padding: 30px 30px 20px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    margin: 15px 0 0;
    color: #333;
    font-size: 1.8rem;
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.donation-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.donation-summary h4 {
    color: #4CAF50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span:first-child {
    font-weight: 600;
    color: #555;
}

.summary-item span:last-child {
    color: #4CAF50;
    font-weight: 600;
}

.next-steps {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.modal-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(208, 66, 69, 0.3);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(208, 66, 69, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Enhanced Image Styles ===== */
.event-img {
    transition: all 0.3s ease;
}

.event-img:hover {
    transform: scale(1.05);
}

/* Responsive Image Handling */
@media screen and (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }
    
    .event-img {
        height: 150px;
    }
    
    .carousel-caption {
        padding: 1rem 1.5rem;
        bottom: 30px;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .carousel-item img {
        height: 250px;
    }
    
    .event-img {
        height: 120px;
    }
    
    .carousel-caption {
        padding: 0.8rem 1rem;
        bottom: 20px;
    }
    
    .carousel-caption h1 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 0.8rem;
    }
}

/* Image Loading States */
.event-img {
    opacity: 0;
    animation: fadeInImage 0.5s ease forwards;
}

@keyframes fadeInImage {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Enhanced Event Card Hover Effects */
.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.event-card:hover .event-image {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== Image Modal Styles ===== */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    opacity: 1;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.image-modal-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.image-modal-caption {
    padding: 20px;
    text-align: center;
    background: white;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Image Loading States */
.event-img.loading {
    opacity: 0.5;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.event-img.loaded {
    opacity: 1;
}

.event-img.error {
    opacity: 0.3;
    background: #ffebee;
    border: 2px dashed #f44336;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Mission Modal Styles ===== */
.mission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.4s ease;
    backdrop-filter: blur(5px);
}

.mission-modal.show {
    display: flex;
}

.mission-modal-content {
    background: white;
    border-radius: 25px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.5s ease;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: rgba(208, 66, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(90deg);
}

.mission-modal-header {
    background: var(--gradient-light);
    padding: 40px;
    text-align: center;
    border-radius: 25px 25px 0 0;
    position: relative;
    overflow: hidden;
}

.mission-modal-header::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="modal-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(208,66,69,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23modal-pattern)"/></svg>');
    opacity: 0.3;
}

.mission-modal-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.mission-modal-header p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.mission-modal-body {
    padding: 40px;
}

/* ===== Impact Animation Containers ===== */
.impact-animation-container {
    position: relative;
    height: 120px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chain Breaking Animation */
.chain-breaking-animation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chains-icon {
    font-size: 4rem;
    color: var(--dark-red);
    animation: chainBreak 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes chainBreak {
    0%, 60% { transform: scale(1) rotate(0deg); color: #666; }
    70% { transform: scale(1.1) rotate(-10deg); color: var(--accent-color); }
    80% { transform: scale(1.2) rotate(10deg); color: var(--primary-color); }
    90% { transform: scale(0.9) rotate(-5deg); color: var(--secondary-color); }
    100% { transform: scale(1) rotate(0deg); color: var(--primary-color); }
}

.freedom-birds {
    position: absolute;
    top: -20px;
    right: -30px;
    display: flex;
    gap: 15px;
}

.freedom-birds i {
    font-size: 1.8rem;
    color: var(--primary-color);
    animation: flyAway 4s ease-in-out infinite;
    opacity: 0;
}

.freedom-birds i:nth-child(1) { animation-delay: 2s; }
.freedom-birds i:nth-child(2) { animation-delay: 2.5s; }
.freedom-birds i:nth-child(3) { animation-delay: 3s; }

@keyframes flyAway {
    0%, 60% { opacity: 0; transform: translateY(20px) scale(0.5); }
    70% { opacity: 1; transform: translateY(0px) scale(1); }
    100% { opacity: 0; transform: translateY(-50px) translateX(30px) scale(0.8); }
}

/* Lives Pulse Animation */
.lives-pulse {
    animation: livesPulse 2s ease-in-out infinite;
    position: relative;
}

@keyframes livesPulse {
    0%, 100% { transform: scale(1); color: var(--primary-color); }
    50% { transform: scale(1.15); color: var(--secondary-color); 
          filter: drop-shadow(0 0 10px rgba(208, 66, 69, 0.6)); }
}

.mission-stat.lives-impacted-trigger {
    cursor: pointer;
    transition: all 0.3s ease;
}

.mission-stat.lives-impacted-trigger:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(208, 66, 69, 0.3);
}

/* Community Glow Animation */
.community-glow {
    animation: communityGlow 3s ease-in-out infinite;
    position: relative;
}

@keyframes communityGlow {
    0%, 100% { color: var(--primary-color); filter: none; }
    50% { color: var(--accent-color); filter: drop-shadow(0 0 15px rgba(148, 8, 12, 0.8)); }
}

.mission-stat.communities-trigger {
    cursor: pointer;
    transition: all 0.3s ease;
}

.mission-stat.communities-trigger:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(148, 8, 12, 0.3);
}

/* Service Shine Animation */
.service-shine {
    animation: serviceShine 2.5s ease-in-out infinite;
    position: relative;
}

@keyframes serviceShine {
    0%, 100% { color: var(--primary-color); }
    25% { color: var(--secondary-color); }
    50% { color: var(--accent-color); filter: drop-shadow(0 0 12px rgba(112, 0, 3, 0.9)); }
    75% { color: var(--dark-red); }
}

.mission-stat.service-trigger {
    cursor: pointer;
    transition: all 0.3s ease;
}

.mission-stat.service-trigger:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(112, 0, 3, 0.3);
}

/* ===== Impact Stories Styles ===== */
.impact-stories {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.impact-story {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 30px;
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.impact-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(208, 66, 69, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.impact-story:hover::before {
    transform: translateX(100%);
}

.impact-story:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.story-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    height: 80px;
    align-items: center;
}

/* Rescue Animation */
.rescue-animation {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.rescue-hand {
    font-size: 3rem;
    color: var(--primary-color);
    animation: rescueReach 3s ease-in-out infinite;
}

@keyframes rescueReach {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(15px) scale(1.1); }
}

.saved-soul {
    font-size: 2.5rem;
    color: var(--secondary-color);
    animation: soulRise 3s ease-in-out infinite;
    position: relative;
}

@keyframes soulRise {
    0%, 50% { transform: translateY(10px) scale(0.9); opacity: 0.7; }
    100% { transform: translateY(-5px) scale(1.1); opacity: 1; 
           filter: drop-shadow(0 5px 15px rgba(179, 31, 35, 0.4)); }
}

/* Healing Animation */
.healing-animation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.healing-heart {
    font-size: 3.5rem;
    color: var(--primary-color);
    animation: heartHeal 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes heartHeal {
    0%, 100% { transform: scale(1); color: var(--primary-color); }
    50% { transform: scale(1.2); color: #ff6b6b; 
          filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.8)); }
}

.healing-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: healingRipple 2s ease-out infinite;
    opacity: 0;
}

.healing-waves::before,
.healing-waves::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 80px;
    height: 80px;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: healingRipple 2s ease-out infinite;
    opacity: 0;
}

.healing-waves::before { animation-delay: 0.7s; }
.healing-waves::after { animation-delay: 1.4s; }

@keyframes healingRipple {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Education Animation */
.education-animation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flying-cap {
    font-size: 3rem;
    color: var(--accent-color);
    animation: capFly 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes capFly {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    75% { transform: translateY(-15px) rotate(-5deg); }
}

.knowledge-stars {
    position: absolute;
    top: -20px;
    display: flex;
    gap: 10px;
}

.knowledge-stars i {
    font-size: 1.2rem;
    color: #ffd700;
    animation: starTwinkle 2s ease-in-out infinite;
    opacity: 0;
}

.knowledge-stars i:nth-child(1) { animation-delay: 0.5s; }
.knowledge-stars i:nth-child(2) { animation-delay: 1s; }
.knowledge-stars i:nth-child(3) { animation-delay: 1.5s; }

@keyframes starTwinkle {
    0%, 80% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    40% { opacity: 1; transform: scale(1.2) rotate(180deg); }
    100% { opacity: 0; transform: scale(0.8) rotate(360deg); }
}

/* Story Impact Numbers */
.story-impact {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary-color);
}

.impact-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    animation: numberCount 2s ease-out;
}

.impact-label {
    color: var(--text-color);
    font-weight: 600;
    flex: 1;
}

@keyframes numberCount {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== Community Growth Animation ===== */
.community-growth-animation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.village-icons {
    display: flex;
    gap: 30px;
    align-items: center;
}

.village-home {
    font-size: 2.5rem;
    color: var(--primary-color);
    animation: villageGrow 4s ease-in-out infinite;
}

.village-home:nth-child(1) { animation-delay: 0s; }
.village-home:nth-child(2) { animation-delay: 1s; }
.village-home:nth-child(3) { animation-delay: 2s; }

@keyframes villageGrow {
    0%, 70% { transform: scale(0.8); opacity: 0.7; }
    35% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 5px 15px rgba(208, 66, 69, 0.4)); }
    100% { transform: scale(1); opacity: 0.9; }
}

.connection-lines {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    animation: lineConnect 4s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes lineConnect {
    0% { width: 0%; left: 50%; }
    50% { width: 80%; left: 10%; }
    100% { width: 90%; left: 5%; }
}

.helping-hands {
    position: absolute;
    top: -30px;
    font-size: 2rem;
    color: var(--accent-color);
    animation: handsHelp 3s ease-in-out infinite;
}

@keyframes handsHelp {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); 
          filter: drop-shadow(0 5px 15px rgba(148, 8, 12, 0.5)); }
}

/* ===== Communities Grid ===== */
.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.community-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.community-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(208, 66, 69, 0.1), transparent);
    transition: left 0.6s ease;
}

.community-card:hover::before {
    left: 100%;
}

.community-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.community-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    height: 60px;
    align-items: center;
}

/* Food Distribution Animation */
.food-distribution-animation {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.food-bowl {
    font-size: 2.5rem;
    color: #FF9800;
    animation: foodServe 3s ease-in-out infinite;
}

@keyframes foodServe {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(-5deg); filter: drop-shadow(0 5px 15px rgba(255, 152, 0, 0.5)); }
}

.feeding-hands {
    font-size: 2rem;
    color: var(--primary-color);
    animation: feedingMotion 3s ease-in-out infinite;
}

@keyframes feedingMotion {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(10px) scale(1.05); }
}

/* Shelter Animation */
.shelter-animation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shelter-house {
    font-size: 2.8rem;
    color: #9C27B0;
    animation: shelterProtect 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes shelterProtect {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); filter: drop-shadow(0 5px 15px rgba(156, 39, 176, 0.5)); }
}

.protection-shield {
    position: absolute;
    top: -15px;
    right: -10px;
    font-size: 1.5rem;
    color: var(--accent-color);
    animation: shieldGlow 2s ease-in-out infinite;
    opacity: 0;
}

@keyframes shieldGlow {
    0%, 60% { opacity: 0; transform: scale(0.5); }
    80% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.8; transform: scale(1); }
}

/* Empowerment Animation */
.empowerment-animation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empowered-woman {
    font-size: 3rem;
    color: #F44336;
    animation: womanRise 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes womanRise {
    0%, 100% { transform: translateY(5px) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); 
          filter: drop-shadow(0 5px 15px rgba(244, 67, 54, 0.5)); }
}

.rising-up {
    position: absolute;
    bottom: -20px;
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: arrowRise 2s ease-in-out infinite;
}

@keyframes arrowRise {
    0% { transform: translateY(20px); opacity: 0; }
    50% { transform: translateY(0px); opacity: 1; }
    100% { transform: translateY(-15px); opacity: 0; }
}

.community-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.community-stats span {
    background: var(--gradient-light);
    padding: 10px 15px;
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    border-left: 3px solid var(--primary-color);
}

/* ===== Journey Timeline ===== */
.journey-animation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.timeline-path {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
}

.milestone-marker {
    font-size: 2.5rem;
    color: var(--primary-color);
    animation: milestoneWave 3s ease-in-out infinite;
}

@keyframes milestoneWave {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(10deg); 
          filter: drop-shadow(0 5px 15px rgba(208, 66, 69, 0.6)); }
}

.progress-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: lineProgress 4s ease-in-out infinite;
}

@keyframes lineProgress {
    0% { width: 0%; opacity: 0; }
    50% { width: 60px; opacity: 1; }
    100% { width: 60px; opacity: 0.8; }
}

.growth-tree {
    font-size: 3rem;
    color: #4CAF50;
    animation: treeGrow 4s ease-in-out infinite;
    position: relative;
}

@keyframes treeGrow {
    0%, 100% { transform: scale(0.9); }
    50% { transform: scale(1.2); filter: drop-shadow(0 5px 15px rgba(76, 175, 80, 0.5)); }
}

.growing-leaves {
    position: absolute;
    top: -20px;
    display: flex;
    gap: 8px;
}

.growing-leaves i {
    font-size: 1rem;
    color: #8BC34A;
    animation: leafGrow 3s ease-in-out infinite;
    opacity: 0;
}

.growing-leaves i:nth-child(1) { animation-delay: 1s; }
.growing-leaves i:nth-child(2) { animation-delay: 1.5s; }
.growing-leaves i:nth-child(3) { animation-delay: 2s; }

@keyframes leafGrow {
    0%, 60% { opacity: 0; transform: scale(0.3) rotate(0deg); }
    80% { opacity: 1; transform: scale(1.2) rotate(45deg); }
    100% { opacity: 0.8; transform: scale(1) rotate(20deg); }
}

/* ===== Journey Timeline Styles ===== */
.journey-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.timeline-year {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    border-radius: 20px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timeline-year:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-left-color: var(--secondary-color);
}

.year-marker {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--gradient-light);
    padding: 15px 20px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    min-width: 100px;
    text-align: center;
    animation: yearPulse 3s ease-in-out infinite;
}

@keyframes yearPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(208, 66, 69, 0.3); }
}

.year-achievement {
    flex: 1;
}

.achievement-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    height: 50px;
}

/* Achievement Specific Animations */
.first-step i {
    font-size: 2.5rem;
    color: #4CAF50;
    animation: seedGrow 3s ease-in-out infinite;
}

@keyframes seedGrow {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(10deg); filter: drop-shadow(0 5px 15px rgba(76, 175, 80, 0.6)); }
}

.expansion-rings i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    animation: expandRings 3s ease-in-out infinite;
}

@keyframes expandRings {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); filter: drop-shadow(0 0 20px rgba(179, 31, 35, 0.7)); }
}

.education-foundation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.education-foundation i {
    font-size: 2.8rem;
    color: var(--accent-color);
    animation: foundationBuild 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes foundationBuild {
    0%, 100% { transform: scale(1) translateY(0px); }
    50% { transform: scale(1.15) translateY(-8px); 
          filter: drop-shadow(0 8px 20px rgba(148, 8, 12, 0.6)); }
}

.knowledge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(148, 8, 12, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(2); opacity: 0.7; }
}

.transformation-symbol {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transformation-heart {
    font-size: 3rem;
    color: var(--primary-color);
    animation: transformHeart 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes transformHeart {
    0%, 100% { transform: scale(1); color: var(--primary-color); }
    33% { transform: scale(1.2); color: var(--secondary-color); }
    66% { transform: scale(1.1); color: var(--accent-color); 
          filter: drop-shadow(0 0 25px rgba(208, 66, 69, 0.8)); }
}

.impact-ripples {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: impactRipple 3s ease-out infinite;
    opacity: 0;
}

.impact-ripples::before,
.impact-ripples::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 50px;
    height: 50px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    animation: impactRipple 3s ease-out infinite;
    opacity: 0;
}

.impact-ripples::before { animation-delay: 1s; }
.impact-ripples::after { animation-delay: 2s; }

@keyframes impactRipple {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

/* ===== Future Vision ===== */
.future-vision {
    background: var(--gradient-light);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 2px solid var(--primary-color);
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.future-vision::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="future-pattern" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1" fill="rgba(208,66,69,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23future-pattern)"/></svg>');
    opacity: 0.4;
}

.vision-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    height: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.bright-future {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rising-sun {
    font-size: 3.5rem;
    color: #FFC107;
    animation: sunRise 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes sunRise {
    0%, 100% { transform: scale(1) rotate(0deg); color: #FFC107; }
    50% { transform: scale(1.2) rotate(180deg); color: #FF9800; 
          filter: drop-shadow(0 0 30px rgba(255, 193, 7, 0.8)); }
}

.hope-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
}

.hope-rays::before,
.hope-rays::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, #FFC107, transparent);
    transform-origin: center bottom;
    border-radius: 2px;
}

.hope-rays::before {
    transform: translate(-50%, -100%) rotate(45deg);
    animation: rayShine 3s ease-in-out infinite;
}

.hope-rays::after {
    transform: translate(-50%, -100%) rotate(-45deg);
    animation: rayShine 3s ease-in-out infinite 1.5s;
}

@keyframes rayShine {
    0%, 60% { opacity: 0; transform: translate(-50%, -100%) rotate(45deg) scale(0.5); }
    80% { opacity: 1; transform: translate(-50%, -100%) rotate(45deg) scale(1.2); }
    100% { opacity: 0.5; transform: translate(-50%, -100%) rotate(45deg) scale(1); }
}

.future-vision h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.future-vision p {
    color: var(--text-color);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ===== Modal Animations ===== */
@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0px);
    }
}

/* Responsive Design for Mission Modals */
@media screen and (max-width: 768px) {
    .mission-modal-content {
        width: 95%;
        margin: 20px;
        max-height: 85vh;
    }
    
    .mission-modal-header,
    .mission-modal-body {
        padding: 25px;
    }
    
    .impact-animation-container {
        height: 80px;
    }
    
    .chains-icon,
    .healing-heart,
    .flying-cap {
        font-size: 2.5rem;
    }
    
    .impact-stories {
        gap: 25px;
    }
    
    .impact-story {
        padding: 20px;
    }
    
    .communities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline-year {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .year-marker {
        font-size: 1.5rem;
        padding: 12px 16px;
    }
    
    .impact-number {
        font-size: 2rem;
    }
    
    .story-impact {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .mission-modal-content {
        width: 98%;
        margin: 10px;
        border-radius: 15px;
    }
    
    .mission-modal-header {
        padding: 20px;
    }
    
    .mission-modal-header h2 {
        font-size: 1.8rem;
    }
    
    .impact-animation-container {
        height: 60px;
    }
    
    .chains-icon,
    .healing-heart,
    .flying-cap {
        font-size: 2rem;
    }
    
    .impact-story {
        padding: 15px;
    }
    
    .impact-number {
        font-size: 1.8rem;
    }
}

/* ===== Service Modal Styles ===== */

/* Service Icon Color Updates */
.service-icon-education {
    color: #4CAF50;
    transition: all 0.3s ease;
}

.service-icon-healthcare {
    color: #2196F3;
    transition: all 0.3s ease;
}

.service-icon-food {
    color: #FF9800;
    transition: all 0.3s ease;
}

.service-icon-shelter {
    color: #9C27B0;
    transition: all 0.3s ease;
}

.service-icon-empowerment {
    color: #F44336;
    transition: all 0.3s ease;
}

.service-icon-emergency {
    color: #00BCD4;
    transition: all 0.3s ease;
}

/* Service Card Impact Preview */
.service-impact-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(208, 66, 69, 0.1), rgba(148, 8, 12, 0.1));
    border-radius: 12px;
    border: 2px solid rgba(208, 66, 69, 0.2);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.service-impact-preview .impact-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.service-card:hover .service-impact-preview {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(208, 66, 69, 0.3);
}

/* Service Modal Base Styles */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    overflow-y: auto;
    animation: modalFadeIn 0.4s ease-out;
}

.service-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-modal-content {
    position: relative;
    max-width: 1000px;
    width: 95%;
    margin: 2rem auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.5s ease-out;
    overflow: hidden;
    max-height: 90vh;
}

.service-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-animation-container {
    margin-bottom: 1rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    z-index: 2;
    position: relative;
}

.service-modal-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    z-index: 2;
    position: relative;
}

.service-modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Education Modal Animations */
.education-impact-animation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graduation-cap-fly {
    font-size: 3rem;
    color: #4CAF50;
    animation: graduationFly 3s ease-in-out infinite;
}

.knowledge-sparks {
    position: absolute;
    display: flex;
    gap: 1rem;
}

.knowledge-sparks i {
    font-size: 1rem;
    color: #FFD700;
    animation: sparkle 2s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.knowledge-sparks i:nth-child(1) { --delay: 0s; }
.knowledge-sparks i:nth-child(2) { --delay: 0.5s; }
.knowledge-sparks i:nth-child(3) { --delay: 1s; }

@keyframes graduationFly {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(5px) rotate(5deg); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Healthcare Modal Animations */
.healthcare-impact-animation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.healing-pulse {
    font-size: 3rem;
    color: #2196F3;
    animation: healingPulse 2s ease-in-out infinite;
}

.medical-cross {
    position: absolute;
    font-size: 1.5rem;
    color: #FF6B6B;
    animation: crossGlow 3s ease-in-out infinite;
}

@keyframes healingPulse {
    0%, 100% { transform: scale(1); color: #2196F3; }
    50% { transform: scale(1.1); color: #FF6B6B; }
}

@keyframes crossGlow {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Food Modal Animations */
.food-impact-animation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.food-serve {
    font-size: 3rem;
    color: #FF9800;
    animation: foodServe 2.5s ease-in-out infinite;
}

.nourishment-waves {
    position: absolute;
    display: flex;
    gap: 2rem;
}

.nourishment-waves i {
    font-size: 1.2rem;
    color: #FF6B6B;
    animation: nourish 2s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.nourishment-waves i:nth-child(1) { --delay: 0s; }
.nourishment-waves i:nth-child(2) { --delay: 1s; }

@keyframes foodServe {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-3deg); }
}

@keyframes nourish {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Shelter Modal Animations */
.shelter-impact-animation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-build {
    font-size: 3rem;
    color: #9C27B0;
    animation: homeBuild 3s ease-in-out infinite;
}

.protection-dome {
    position: absolute;
    font-size: 2rem;
    color: #4CAF50;
    animation: protectionGlow 2s ease-in-out infinite;
}

@keyframes homeBuild {
    0%, 100% { transform: scale(1) translateY(0); }
    25% { transform: scale(0.95) translateY(-5px); }
    75% { transform: scale(1.05) translateY(2px); }
}

@keyframes protectionGlow {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* Empowerment Modal Animations */
.empowerment-impact-animation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woman-rise {
    font-size: 3rem;
    color: #F44336;
    animation: womanRise 3s ease-in-out infinite;
}

.empowerment-rays {
    position: absolute;
    display: flex;
    gap: 1.5rem;
}

.empowerment-rays i {
    font-size: 1rem;
    color: #FFD700;
    animation: empowermentGlow 2s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.empowerment-rays i:nth-child(1) { --delay: 0s; }
.empowerment-rays i:nth-child(2) { --delay: 0.7s; }
.empowerment-rays i:nth-child(3) { --delay: 1.4s; }

@keyframes womanRise {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

@keyframes empowermentGlow {
    0%, 100% { opacity: 0.4; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(180deg); }
}

/* Emergency Modal Animations */
.emergency-impact-animation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emergency-rush {
    font-size: 3rem;
    color: #00BCD4;
    animation: emergencyRush 2s ease-in-out infinite;
}

.rescue-signals {
    position: absolute;
    display: flex;
    gap: 2rem;
}

.rescue-signals i {
    font-size: 1.5rem;
    color: #FF6B6B;
    animation: rescueSignal 1.5s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.rescue-signals i:nth-child(1) { --delay: 0s; }
.rescue-signals i:nth-child(2) { --delay: 0.75s; }

@keyframes emergencyRush {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@keyframes rescueSignal {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Service Modal Content Styles */
.service-impact-story h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(208, 66, 69, 0.2);
    padding-bottom: 0.5rem;
}

.impact-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.metric-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(208, 66, 69, 0.05), rgba(148, 8, 12, 0.05));
    border-radius: 15px;
    border: 2px solid rgba(208, 66, 69, 0.2);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(208, 66, 69, 0.2);
}

.metric-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.metric-label {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Healthcare Services Styles */
.healthcare-services {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.service-detail {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.service-detail h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.service-stats span {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(208, 66, 69, 0.1);
}

/* Healthcare Specific Animations */
.ambulance-move {
    animation: ambulanceMove 3s ease-in-out infinite;
}

.medicine-dispense {
    animation: medicineDispense 2s ease-in-out infinite;
}

.checkup-glow {
    animation: checkupGlow 2.5s ease-in-out infinite;
}

@keyframes ambulanceMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

@keyframes medicineDispense {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

@keyframes checkupGlow {
    0%, 100% { color: #2196F3; transform: scale(1); }
    50% { color: #4CAF50; transform: scale(1.1); }
}

/* Food Programs Styles */
.food-programs {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.food-program {
    padding: 1.5rem;
    background: linear-gradient(135deg, #FFF8E1, #FFE0B2);
    border-radius: 15px;
    border: 2px solid #FF9800;
}

.food-program h4 {
    color: #E65100;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.food-program ul {
    list-style: none;
    padding: 0;
}

.food-program li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 152, 0, 0.2);
    color: #D84315;
}

.food-program li:before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Food Specific Animations */
.bread-multiply {
    animation: breadMultiply 2s ease-in-out infinite;
}

.emergency-box {
    animation: emergencyShake 1.5s ease-in-out infinite;
}

.sustainable-grow {
    animation: sustainableGrow 3s ease-in-out infinite;
}

@keyframes breadMultiply {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    75% { transform: scale(0.95); }
}

@keyframes emergencyShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

@keyframes sustainableGrow {
    0%, 100% { transform: scale(1) rotate(0deg); color: #4CAF50; }
    50% { transform: scale(1.2) rotate(10deg); color: #8BC34A; }
}

/* Shelter Facilities Styles */
.shelter-facilities {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.facility-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, #F3E5F5, #E1BEE7);
    border-radius: 15px;
    border: 2px solid #9C27B0;
}

.facility-card h4 {
    color: #6A1B9A;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.facility-details p {
    color: #4A148C;
    margin: 0.5rem 0;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(156, 39, 176, 0.2);
}

/* Shelter Specific Animations */
.bed-comfort {
    animation: bedComfort 2.5s ease-in-out infinite;
}

.rebuild-animation {
    animation: rebuildProgress 3s ease-in-out infinite;
}

.transition-support {
    animation: transitionSupport 2s ease-in-out infinite;
}

@keyframes bedComfort {
    0%, 100% { transform: scale(1); color: #9C27B0; }
    50% { transform: scale(1.05); color: #673AB7; }
}

@keyframes rebuildProgress {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.1); }
}

@keyframes transitionSupport {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Empowerment Programs Styles */
.empowerment-programs {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.empowerment-track {
    padding: 1.5rem;
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    border-radius: 15px;
    border: 2px solid #F44336;
}

.empowerment-track h4 {
    color: #C62828;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.track-outcomes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.outcome-stat {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.outcome-stat .stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.outcome-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-top: 0.3rem;
}

.success-stories {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #E8F5E8, #C8E6C9);
    border-radius: 15px;
}

.success-stories h4 {
    color: #2E7D32;
    margin-bottom: 1rem;
}

.story-highlights {
    display: grid;
    gap: 1rem;
}

.story-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
}

.story-highlight i {
    color: #4CAF50;
    font-size: 1.2rem;
}

/* Empowerment Specific Animations */
.nurse-train {
    animation: nurseTrain 2.5s ease-in-out infinite;
}

.support-circle {
    animation: supportCircle 3s ease-in-out infinite;
}

@keyframes nurseTrain {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(-5deg); }
}

@keyframes supportCircle {
    0%, 100% { transform: scale(1); color: #F44336; }
    50% { transform: scale(1.1); color: #FF6B6B; }
}

/* Emergency Response System Styles */
.emergency-response-system {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.response-phase {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #E0F2F1, #B2DFDB);
    border-radius: 15px;
    border: 2px solid #00BCD4;
    position: relative;
}

.phase-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
}

.response-time {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.response-phase h4 {
    color: #00695C;
    margin-bottom: 0.5rem;
}

.response-phase p {
    color: #004D40;
    margin: 0;
}

.emergency-statistics {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    border-radius: 15px;
}

.emergency-statistics h4 {
    color: #E65100;
    margin-bottom: 1rem;
    text-align: center;
}

.emergency-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.emergency-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.emergency-stat i {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-detail .stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.stat-detail .stat-unit {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.stat-detail .stat-description {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-top: 0.2rem;
}

/* Emergency Specific Animations */
.alert-flash {
    animation: alertFlash 1s ease-in-out infinite;
}

.rescue-arrive {
    animation: rescueArrive 3s ease-in-out infinite;
}

.rebuild-commence {
    animation: rebuildCommence 2.5s ease-in-out infinite;
}

@keyframes alertFlash {
    0%, 100% { color: #00BCD4; }
    50% { color: #FF5722; }
}

@keyframes rescueArrive {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-3deg); }
    75% { transform: translateY(3px) rotate(3deg); }
}

@keyframes rebuildCommence {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(10deg); }
}

/* Service Modal Responsive Styles */
@media screen and (max-width: 768px) {
    .service-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .service-modal-header {
        padding: 1.5rem;
    }
    
    .service-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .service-modal-body {
        padding: 1.5rem;
    }
    
    .impact-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .emergency-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .response-phase {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .track-outcomes {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .service-modal-content {
        width: 98%;
        margin: 0.5rem;
        border-radius: 15px;
    }
    
    .service-animation-container {
        height: 60px;
    }
    
    .graduation-cap-fly,
    .healing-pulse,
    .food-serve,
    .home-build,
    .woman-rise,
    .emergency-rush {
        font-size: 2rem;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .metric-number {
        font-size: 2rem;
    }
}

/* ===== ENHANCED ANIMATIONS & TRANSITIONS FRAMEWORK ===== */

/* Core Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animation Utility Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.animate-bounce-in {
    animation: bounceIn 1s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Staggered Animation Delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Enhanced Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(208, 66, 69, 0.2);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(208, 66, 69, 0.4);
}

/* ===== PAYMENT DIALOG SYSTEM ===== */

.payment-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.payment-dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}

.payment-dialog {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-dialog-overlay.active .payment-dialog {
    transform: scale(1) translateY(0);
}

.payment-dialog-header {
    padding: 2rem;
    text-align: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.payment-dialog-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.payment-dialog-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.payment-method-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.payment-dialog-body {
    padding: 2rem;
}

.payment-steps {
    list-style: none;
    padding: 0;
}

.payment-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInRight 0.5s ease-out forwards;
}

.payment-step:nth-child(1) { animation-delay: 0.1s; }
.payment-step:nth-child(2) { animation-delay: 0.2s; }
.payment-step:nth-child(3) { animation-delay: 0.3s; }
.payment-step:nth-child(4) { animation-delay: 0.4s; }
.payment-step:nth-child(5) { animation-delay: 0.5s; }
.payment-step:nth-child(6) { animation-delay: 0.6s; }
.payment-step:nth-child(7) { animation-delay: 0.7s; }

.step-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.step-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.step-highlight {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    margin-top: 0.5rem;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Mobile Phone Simulator */
.phone-simulator {
    background: #333;
    border-radius: 25px;
    padding: 20px 10px;
    margin: 1rem auto;
    width: 280px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    background: white;
    border-radius: 15px;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.phone-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
}

.phone-content {
    padding: 1rem;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.app-button {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    margin: 0.5rem 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.app-button:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.app-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Copy to Clipboard Button */
.copy-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background: #218838;
    transform: scale(1.05);
}

.copy-button.copied {
    background: #17a2b8;
}

.copy-button.copied::after {
    content: " ✓";
}

/* Enhanced Payment Cards */
.payment-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.payment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.payment-card:hover::before {
    left: 100%;
}

.payment-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(208, 66, 69, 0.15);
    border-color: var(--primary-color);
}

.payment-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(208, 66, 69, 0.05), rgba(179, 31, 35, 0.05));
    transform: scale(1.05);
}

.payment-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}

.payment-card:hover .payment-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.payment-card h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.payment-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #28a745;
    stroke-miterlimit: 10;
    margin: 2rem auto;
    box-shadow: inset 0px 0px 0px #28a745;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.success-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #28a745;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #28a745;
    }
}

/* ===== TOUCH INTERACTIONS & MOBILE OPTIMIZATIONS ===== */

/* Touch feedback */
.touch-active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Enhanced button states */
button, .btn, .payment-card, .amount-btn {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Form focus states */
.form-group.focused label {
    transform: translateY(-20px) scale(0.8);
    color: var(--primary-color);
}

.form-group label {
    transition: all 0.3s ease;
    transform-origin: left top;
}

/* Enhanced input animations */
input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(208, 66, 69, 0.1);
    transform: scale(1.02);
}

input.error, select.error, textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Improved mobile scrolling */
@media (max-width: 768px) {
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    .payment-dialog {
        width: 95%;
        max-height: 85vh;
    }
    
    .phone-simulator {
        width: 250px;
    }
    
    .payment-card {
        margin-bottom: 1rem;
    }
    
    .amount-btn {
        min-height: 44px; /* iOS touch target minimum */
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .payment-card {
        border: 2px solid;
    }
    
    .step-highlight {
        border-left-width: 5px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PAYMENT DIALOG STYLES ===== */

.payment-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.payment-dialog-overlay.show {
    opacity: 1;
    visibility: visible;
}

.payment-dialog {
    background: var(--white);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    animation: dialogSlideIn 0.3s ease-out;
    position: relative;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.payment-dialog-header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.payment-dialog-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-dialog-header h2 i {
    font-size: 1.8rem;
}

.close-dialog {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-dialog:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.payment-dialog-body {
    padding: 2rem;
}

.payment-amount-display {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.amount-label {
    display: block;
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.amount-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.payment-steps-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-step {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 10px;
    border-left: 4px solid #ddd;
    transition: var(--transition);
    position: relative;
    opacity: 0.7;
}

.payment-step.active {
    border-left-color: var(--primary-color);
    background: rgba(208, 66, 69, 0.05);
    opacity: 1;
    transform: translateX(10px);
}

.payment-step.completed {
    border-left-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
    opacity: 1;
}

.step-number {
    width: 30px;
    height: 30px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.payment-step.active .step-number {
    background: var(--primary-color);
    color: white;
}

.payment-step.completed .step-number {
    background: #4CAF50;
    color: white;
}

.step-icon {
    margin-right: 1rem;
    color: var(--text-color);
    font-size: 1.2rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.payment-step.active .step-icon {
    color: var(--primary-color);
}

.payment-step.completed .step-icon {
    color: #4CAF50;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-color);
}

.step-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.step-check {
    color: #4CAF50;
    opacity: 0;
    transition: var(--transition);
    margin-left: 1rem;
}

.payment-step.completed .step-check {
    opacity: 1;
}

.payment-progress-bar {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.payment-dialog-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-bg);
    border-radius: 0 0 20px 20px;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-proceed {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-proceed:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-proceed:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Payment Success Animation */
.payment-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.payment-success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-animation {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-heavy);
    animation: successBounceIn 0.5s ease-out;
}

@keyframes successBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-checkmark {
    margin-bottom: 2rem;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
    margin: 10% auto;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4CAF50;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

.icon--order-success svg polyline {
    animation-dashoffset: 18;
}

.icon-line {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.line-tip {
    animation: iconLineTip 0.6s ease;
}

@keyframes iconLineTip {
    0% {
        x1: 0;
        y1: 0;
        x2: 0;
        y2: 0;
    }
    100% {
        x1: 0;
        y1: 0;
        x2: 0;
        y2: 0;
    }
}

.line-long {
    animation: iconLineLong 0.6s ease;
}

@keyframes iconLineLong {
    0% {
        x1: 0;
        y1: 0;
        x2: 0;
        y2: 0;
    }
    100% {
        x1: 0;
        y1: 0;
        x2: 0;
        y2: 0;
    }
}

.icon-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.icon-fix {
    stroke-dasharray: 332;
    stroke-dashoffset: 332;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.success-title {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.success-message {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.success-info {
    margin-bottom: 2rem;
    color: #666;
    font-size: 0.9rem;
}

.btn-success-close {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-success-close:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Animation classes for payment steps */
.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease forwards;
}

.animate-bounce-in {
    animation: bounceIn 0.6s ease forwards;
}

.animate-slide-up {
    animation: slideInUp 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
    from { opacity: 0; transform: scale(0.3); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile responsiveness for payment dialogs */
@media (max-width: 768px) {
    .payment-dialog {
        width: 95%;
        max-height: 85vh;
        margin: 10px;
    }

    .payment-dialog-header,
    .payment-dialog-body {
        padding: 1.5rem;
    }

    .payment-dialog-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .btn-cancel,
    .btn-proceed {
        width: 100%;
        justify-content: center;
    }

    .success-animation {
        padding: 2rem;
        margin: 10px;
    }
}

/* High contrast mode support for dialogs */
@media (prefers-contrast: high) {
    .payment-dialog {
        border: 2px solid var(--text-color);
    }

    .payment-step {
        border-left-width: 5px;
    }

    .step-highlight {
        border-left-width: 5px;
    }
}

/* Reduced motion support for dialogs */
@media (prefers-reduced-motion: reduce) {
    .payment-dialog-overlay,
    .payment-success-overlay,
    .payment-step,
    .success-animation {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .animate-fade-in,
    .animate-slide-right,
    .animate-scale-in,
    .animate-bounce-in,
    .animate-slide-up {
        animation: none !important;
    }
}

/* Dark mode support for dialogs */
@media (prefers-color-scheme: dark) {
    .payment-dialog {
        background: var(--white);
        color: var(--text-color);
    }

    .payment-step {
        background: rgba(255, 255, 255, 0.05);
    }

    .success-animation {
        background: var(--white);
    }
}


/* ===== Logo Image Styling ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

/* ===== Leader Avatar Image Styling ===== */
.leader-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.leader-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(208, 66, 69, 0.2);
}

/* Responsive adjustments for logo */
@media (max-width: 768px) {
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .logo h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .logo h2 {
        font-size: 1rem;
    }
}


/* ===================================
   Donation Page Disabled Overlay
   =================================== */

.donation-disabled-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-in-out;
}

.donation-disabled-overlay .overlay-content {
    text-align: center;
    padding: 3rem;
    max-width: 600px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease-out;
}

.donation-disabled-overlay .overlay-content i.fa-tools {
    color: #d04245;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.donation-disabled-overlay .overlay-content h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.donation-disabled-overlay .overlay-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.donation-disabled-overlay .contact-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #d04245;
}

.donation-disabled-overlay .contact-info p {
    font-size: 1.1rem;
    color: #333;
    margin: 0.5rem 0;
    font-weight: 500;
}

.donation-disabled-overlay .contact-info i {
    color: #d04245;
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.donation-disabled-overlay .btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #d04245;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(208, 66, 69, 0.3);
}

.donation-disabled-overlay .btn-primary:hover {
    background: #b83538;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(208, 66, 69, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design for Overlay */
@media (max-width: 768px) {
    .donation-disabled-overlay .overlay-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        max-width: 90%;
    }

    .donation-disabled-overlay .overlay-content h2 {
        font-size: 2rem;
    }

    .donation-disabled-overlay .overlay-content p {
        font-size: 1rem;
    }

    .donation-disabled-overlay .overlay-content i.fa-tools {
        font-size: 3rem;
    }

    .donation-disabled-overlay .contact-info {
        padding: 1rem;
    }

    .donation-disabled-overlay .contact-info p {
        font-size: 1rem;
    }

    .donation-disabled-overlay .btn-primary {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .donation-disabled-overlay .overlay-content {
        padding: 1.5rem 1rem;
    }

    .donation-disabled-overlay .overlay-content h2 {
        font-size: 1.75rem;
    }

    .donation-disabled-overlay .overlay-content i.fa-tools {
        font-size: 2.5rem;
    }
}


/* ===== EVENT LIGHTBOX STYLES ===== */
.event-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-lightbox.active {
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1;
}

.lightbox-content {
    position: relative;
    z-index: 2;
    width: 90%;
    height: 90%;
    max-width: 1400px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-loading .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev:active,
.lightbox-next:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-counter {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    max-width: 80%;
    text-align: center;
    z-index: 3;
    backdrop-filter: blur(10px);
}

/* Responsive Lightbox Styles */
@media (max-width: 768px) {
    .lightbox-content {
        width: 95%;
        height: 95%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-counter {
        bottom: 60px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .lightbox-caption {
        bottom: 15px;
        font-size: 0.85rem;
        padding: 10px 20px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .lightbox-counter {
        bottom: 50px;
        font-size: 0.85rem;
        padding: 6px 14px;
    }
    
    .lightbox-caption {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .lightbox-prev,
    .lightbox-next {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    .lightbox-close {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.4);
    }
}


/* ===== Impact Stories Grid Enhancement ===== */
.impact-stories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.impact-story-card {
    max-width: 220px;
    max-height: 280px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.impact-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.impact-story-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #f5f5f5;
}

.impact-story-content {
    padding: 15px;
}

.impact-story-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.impact-story-description {
    font-size: 0.85rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    line-height: 1.4;
}

.impact-metric {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.impact-metric i {
    font-size: 0.8rem;
}

/* Responsive breakpoints for impact stories grid */
@media (max-width: 1199px) {
    .impact-stories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .impact-stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .impact-story-card {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .impact-stories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .impact-story-card {
        max-width: 100%;
        margin: 0 auto;
    }
}
