/* 
 * Infaq Foundation - Custom Styles
 * Clean, minimal design with NGO-appropriate colors
 */

/* Color Variables - NGO Flat Colors Only */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #059669;
    --secondary-dark: #047857;
    --accent-color: #dc2626;
    --accent-dark: #b91c1c;
    --success-color: #16a34a;
    --warning-color: #ca8a04;
    --dark-color: #1f2937;
    --light-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #e5e7eb;
    --bg-white: #ffffff;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --border-color: #d1d5db;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 800;
    letter-spacing: -0.05em;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-gray);
    line-height: 1.6;
}

.text-light-gray {
    color: var(--light-gray) !important;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary-dark) !important;
    transform: scale(1.05);
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.5rem;
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(99, 102, 241, 0.15);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Buttons - Clean and Flat */
.btn {
    font-weight: 600;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-outline-light {
    color: white;
    border-color: rgba(255, 255, 255, 0.8);
    background: transparent;
}

.btn-outline-light:hover {
    background-color: white;
    border-color: white;
    color: var(--primary-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
}

/* Hero Section - Background Slideshow */
.hero-section {
    color: white;
    padding: 100px 0;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section .hero-title,
.hero-section .hero-subtitle {
    color: #ffffff;
}

.hero-bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-bg-slide:nth-child(1) {
    background-image: url('../../pics/home.jpeg');
}

.hero-bg-slide:nth-child(2) {
    background-image: url('../../pics/home2.jpeg');
}

.hero-bg-slide:nth-child(3) {
    background-image: url('../../pics/home3.jpeg');
}

.hero-bg-slide:nth-child(4) {
    background-image: url('../../pics/home4.jpeg');
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}


/* Hero slideshow indicators */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1;
}

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

.hero-indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* Enhanced floating cards animation */
.floating-card {
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.floating-card .card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.15);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0.98;
    color: #ffffff;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    max-width: 720px;
}

/* Cards - Clean and Flat */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0;
}

/* Impact Stats - Clean and Flat */
.stat-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-description {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Programs Section - Clean Icons */
.program-icon {
    display: none;
}

.program-image {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.program-image:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.program-card {
    text-align: center;
    padding: 3rem 2rem;
    height: 100%;
    position: relative;
}

.program-card h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.program-card p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Testimonials */
.testimonial-card {
    background-color: var(--light-color);
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    margin: 1rem 0;
}

/* Value cards on About page */
.value-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.value-image:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* About - Vertical Timeline */
.timeline {
    position: relative;
    padding: 1rem 0;
}

/* Mission & Vision feature blocks */
.feature-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 1.5rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

/* Section-specific adjustment: ensure Medical image matches content height better */
#medical .feature-image {
    height: 460px;
}

.feature-image:hover {
    transform: scale(1.03);
    filter: brightness(0.95);
    box-shadow: var(--shadow-md);
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: block;
    margin: 2rem 0;
}

.timeline-marker {
    position: absolute;
    top: 1.2rem;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.timeline-content {
    width: 46%;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 1.5rem;
    opacity: 0;
    transform: translateY(16px);
    transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.3s ease;
}

.timeline-item.left .timeline-content {
    margin-right: auto;
    transform: translateX(-36px);
}

.timeline-item.right .timeline-content {
    margin-left: auto;
    transform: translateX(36px);
}

.timeline-item.in .timeline-content {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.timeline-year {
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-text {
    color: var(--text-gray);
    margin: 0;
}

@media (max-width: 992px) {
    .timeline::before {
        left: 10px;
        transform: none;
    }
    .timeline-marker {
        left: 10px;
        transform: translateY(-50%);
    }
    .timeline-content {
        width: 100%;
        margin-left: 2rem !important;
        margin-right: 0 !important;
    }
}

.testimonial-quote {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark-color);
}

/* CTA Sections */
.cta-section {
    background-image: url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-actions .btn-light {
    background-color: #ffffff;
    color: var(--text-dark);
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.cta-actions .btn-light:hover {
    background-color: #f3f4f6;
    border-color: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cta-actions .btn-outline-light {
    color: #ffffff;
    border-color: rgba(255,255,255,0.8);
    background-color: transparent;
    transition: all 0.3s ease;
}

.cta-actions .btn-outline-light:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cta-trust {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    border-radius: 8px;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.cta-trust small {
    letter-spacing: 0.3px;
    color: var(--text-gray);
}

/* Contact Statistics */
.stat-card {
    background-color: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon-wrapper {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.stat-card:hover .stat-number {
    color: var(--primary-dark);
}

.stat-label {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* How We Help Cards */
.help-card {
    background-color: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    text-align: center;
    height: 100%;
}

.help-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.help-icon {
    width: 100px;
    height: 100px;
    background: var(--bg-gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: white;
    transition: all 0.4s ease;
}

.help-card:hover .help-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

/* Team Cards */
.team-card {
    background-color: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-image-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.team-card:hover .team-image-wrapper {
    border-color: var(--primary-dark);
    transform: scale(1.05);
}

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

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

.team-contact {
    margin-top: auto;
}

/* Map Section */
.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-light);
}

.map-iframe {
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.map-embed-full {
    width: 100%;
}

.map-embed-full .map-iframe-full {
    width: 100%;
    height: 520px;
    border: 0;
}

/* Programs Page Styles */
.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-icon-small {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.program-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.service-icon {
    width: 45px;
    height: 45px;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.donation-icon {
    width: 70px;
    height: 70px;
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto;
    border: 2px solid var(--border-color);
}

.donation-card {
    padding: 2rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.definition-card {
    background-color: rgba(37, 99, 235, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.beneficiary-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.collaboration-note {
    background-color: rgba(5, 150, 105, 0.05);
    border-left: 4px solid var(--secondary-color);
    border-radius: 8px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed var(--border-color);
}

.map-content {
    text-align: center;
    color: var(--text-gray);
}

.map-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.map-icon-large {
    font-size: 3rem;
    color: var(--primary-color);
}

.office-hours {
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.office-hours > div {
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.office-hours > div:last-child {
    border-bottom: none;
}

.map-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.map-icon:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Find Us cards */
.find-us-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background-color: #fff;
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Emergency Contact */
.emergency-card {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #f87171;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.emergency-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(248, 113, 113, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.emergency-icon {
    width: 100px;
    height: 100px;
    background-color: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.emergency-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #dc2626;
    margin: 1rem 0;
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

footer a:hover {
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}

/* Form Styles */
.form-control {
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Contact page icons */
.contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    background-color: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-icon:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Progress Bars */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e5e7eb;
}

.progress-bar {
    background-color: var(--secondary-color);
    border-radius: 5px;
}

/* Section Padding */
.section-padding {
    padding: 80px 0;
}

/* Mobile Responsiveness - Mobile First Design */
@media (max-width: 992px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .program-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .card-body {
        padding: 1.5rem 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .contact-info .program-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    
    .program-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
}

/* Contact Page Styles */
.contact-icon-large {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-method-card {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border-radius: 16px;
    height: 100%;
}

.contact-method-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.contact-method-card:hover .contact-icon-large {
    background-color: var(--secondary-color);
    transform: scale(1.06);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* Contact methods spacing tweaks */
.contact-methods .card-body {
    display: flex;
    flex-direction: column;
}

.contact-methods .card-body .btn {
    margin-top: auto;
}

.contact-methods .card h5 {
    margin-top: 0.25rem;
}

.contact-methods .card p {
    line-height: 1.5;
}

@media (max-width: 425px) {
    .hero-section {
        padding: 30px 0;
    }
    
    .display-4 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .display-5 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .program-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .contact-info .program-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        font-size: 0.95rem;
        padding: 0.65rem 1.25rem;
    }
    
    .timeline .row {
        margin-bottom: 2rem !important;
    }
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-light-custom {
    background-color: var(--light-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* Donation Progress */
.donation-progress {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.goal-amount {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.raised-amount {
    font-size: 1rem;
    color: var(--text-gray);
}

/* Additional Clean Styles */
.hero-badge .badge {
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -3s;
}

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

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.program-stats {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.hero-stats {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    color: var(--text-dark);
}

.hero-stats .fw-bold,
.hero-stats .fs-4,
.hero-stats small,
.hero-stats span {
    color: var(--text-dark) !important;
}

/* Badge Styles */
.bg-primary-subtle {
    background-color: rgba(37, 99, 235, 0.1) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Clean Testimonials */
.testimonial-modern {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.testimonial-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Clean CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
}

.feature-card h5 {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Donation page specific styles */
.donation-card-hover {
    transition: all 0.3s ease;
}

.donation-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.donation-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.progress {
    border-radius: 10px;
    background-color: #f8f9fa;
}

.progress-bar {
    border-radius: 10px;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    color: #6c757d;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}
