:root {
    --primary: #2A5C82;
    --secondary: #3A9E7C;
    --accent: #E8A643;
    --aqua: #4ECDC4;
    --dark: #4A5568;
    --light: #F8F9FA;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none !important;
}

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

.btn-primary:hover {
    background-color: #1f4557 !important;
}

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

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

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 700px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-item.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease-out 0.2s backwards;
}

.hero-buttons {
    animation: fadeInUp 1.2s ease-out 0.4s backwards;
}

.hero-mission {
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease-out 0.3s backwards;
}

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

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.stats-section {
    padding: 80px 0;
}

.stat-card {
    padding: 30px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(42, 92, 130, 0.2);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
}

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.service-card {
    padding: 30px;
    border-radius: 10px;
    background: white;
    border-left: 5px solid var(--secondary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(42, 92, 130, 0.2);
    border-left-color: var(--accent);
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.service-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

.feature-box {
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: rgba(42, 92, 130, 0.05);
}

.feature-box h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-banner {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 92, 130, 0.6);
}

.hero-banner h1,
.hero-banner p {
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-top: 4px solid var(--secondary);
}

.testimonial-card .fa-quote-left {
    font-size: 2.5rem;
    opacity: 0.5;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    line-height: 1.8;
}

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

.team-card {
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-card img {
    border-radius: 15px;
    object-fit: cover;
    height: 300px;
    width: 100%;
}

.team-card h4 {
    color: var(--primary);
    margin-top: 15px;
    font-weight: 600;
}

.value-card {
    padding: 20px;
    transition: all 0.3s ease;
}

.value-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card h4 {
    color: var(--primary);
    margin-top: 15px;
    font-weight: 600;
}

.cert-badge {
    padding: 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.cert-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(42, 92, 130, 0.15);
}

.accordion-button {
    font-weight: 600;
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: white;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 2rem;
    background: #f9f9f9;
}

.contact-info {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.contact-info:last-child {
    border-bottom: none;
}

.emergency-contact {
    border-top: 4px solid #dc3545;
}

.emergency-contact h5 {
    font-weight: 600;
    font-size: 1.1rem;
}

.emergency-contact .btn {
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.floating-btn.whatsapp {
    background: #25D366;
}

.floating-btn.whatsapp:hover {
    background: #20BA5F;
}

.floating-btn.sms {
    background: #007AFF;
}

.floating-btn.sms:hover {
    background: #0056B3;
}

.floating-btn.phone {
    background: var(--primary);
}

.floating-btn.phone:hover {
    background: #1f4557;
}

.floating-btn.back-to-top {
    background: var(--accent);
    display: none;
}

.floating-btn.back-to-top.show {
    display: flex;
}

.floating-btn.back-to-top:hover {
    background: #D89234;
}

.our-story {
    padding: 80px 0;
}

.our-story p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.mission-vision {
    padding: 80px 0;
}

.mission-vision .card {
    transition: all 0.3s ease;
}

.mission-vision .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(42, 92, 130, 0.15) !important;
}

.card-body {
    padding: 40px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(42, 92, 130, 0.25);
}

.needs-validation {
    max-width: 600px;
}

.map-section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .hero-gradient {
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .emergency-contact {
        flex-direction: column !important;
        text-align: center;
    }

    .emergency-contact .col-md-6 {
        margin-bottom: 10px;
    }

    .floating-actions {
        bottom: 20px;
        right: 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .counter {
        font-size: 2rem;
    }

    .footer-section {
        margin-bottom: 30px;
    }

    .social-icon-footer {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-gradient {
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem !important;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        margin: 0 !important;
    }

    .emergency-contact .col-md-6 {
        text-align: center;
    }

    .emergency-contact .btn {
        display: inline-block;
        margin: 5px !important;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .timeline-item {
        margin-left: 0;
        padding-left: 0;
    }

    .timeline::before {
        display: none;
    }

    .timeline-marker {
        position: static;
        margin-bottom: 15px;
        width: 50px;
        height: 50px;
    }

    .service-item {
        margin-top: 15px;
    }

    .service-number {
        position: static;
        margin-bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-brand {
    font-size: 1.5rem;
}

footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    margin-top: 80px;
}

.footer-modern {
    position: relative;
}

.footer-section {
    transition: transform 0.3s ease;
}

.footer-link {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--accent) !important;
    transform: translateX(5px);
}

.social-icon-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    color: white;
    margin-right: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-footer:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    box-shadow: 0 8px 20px rgba(42, 92, 130, 0.3);
}

.footer-contact-info {
    padding: 20px 0;
}

.footer-cta {
    animation: fadeInUp 1s ease-out;
}

footer a:hover {
    color: var(--accent) !important;
}

.error-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.error-animation h1 {
    letter-spacing: 10px;
    opacity: 0.8;
}

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

.error-icon {
    animation: fadeInUp 1s ease-out;
}

.error-actions {
    animation: fadeInUp 1.2s ease-out 0.2s backwards;
}

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

.transition-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
}

.service-item {
    padding: 25px;
    background: white;
    border-radius: 10px;
    border-left: 5px solid var(--primary);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(42, 92, 130, 0.15);
}

.service-number {
    position: absolute;
    top: -15px;
    left: 25px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(42, 92, 130, 0.3);
}

.service-item h5 {
    color: var(--primary);
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    margin-bottom: 40px;
    margin-left: 100px;
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -95px;
    top: 5px;
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(58, 158, 124, 0.2);
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--secondary);
}

.timeline-content h4 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.islamic-content h4 {
    color: var(--primary);
    font-weight: 600;
}

.benefit-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(42, 92, 130, 0.15);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
    display: block;
}

.benefit-card h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

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

.expert-box {
    padding: 25px;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.expert-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.expert-box h5 {
    color: var(--primary);
    font-weight: 600;
    margin-top: 15px;
}

.service-feature {
    background: white;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--secondary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.service-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(42, 92, 130, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
}

.service-feature h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.service-feature p {
    color: #666;
    font-size: 0.95rem;
}

.needs-validation .was-validated {
    display: block;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

.pillar-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(42, 92, 130, 0.2);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: rgba(232, 166, 67, 0.1);
    border-radius: 50%;
}

.pillar-card h4 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.pillar-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.treatment-list {
    list-style: none;
    padding: 0;
}

.treatment-list li {
    padding-left: 30px;
    margin-bottom: 12px;
    position: relative;
    color: #666;
}

.treatment-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.team-principle {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.team-principle:hover {
    box-shadow: 0 4px 12px rgba(42, 92, 130, 0.1);
}

.team-principle h5 {
    font-weight: 600;
}

.team-principle p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.philosophy-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.philosophy-box:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(42, 92, 130, 0.1);
}

.philosophy-box h5 {
    font-weight: 600;
    font-size: 0.95rem;
}

.philosophy-box p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.philosophy-feature {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.philosophy-feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(42, 92, 130, 0.2);
}

.philosophy-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
}

.philosophy-feature h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.philosophy-feature p {
    color: #666;
    font-size: 0.95rem;
}

.commitment-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    transition: all 0.3s ease;
}

.commitment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(42, 92, 130, 0.15);
}

.commitment-number {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.commitment-card h5 {
    font-weight: 600;
    margin-bottom: 15px;
}

.commitment-card p {
    color: #666;
    font-size: 0.95rem;
}

.religious-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.religious-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(42, 92, 130, 0.15);
}

.religious-box h5 {
    font-weight: 600;
    margin-bottom: 12px;
}

.religious-box p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.religious-feature-home {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.religious-feature-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(42, 92, 130, 0.2);
}

.religious-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--secondary), var(--aqua));
    color: white;
    border-radius: 50%;
}

.religious-feature-home h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.religious-feature-home p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.protection-list {
    list-style: none;
    padding: 0;
}

.protection-list li {
    padding-left: 30px;
    margin-bottom: 12px;
    position: relative;
    color: #666;
}

.protection-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.child-advocacy-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.child-advocacy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(58, 158, 124, 0.2);
}

.advocacy-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--secondary), var(--aqua));
    color: white;
    border-radius: 50%;
}

.child-advocacy-card h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.child-advocacy-card p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.child-advocacy-message {
    background: rgba(58, 158, 124, 0.05);
    padding: 40px;
    border-radius: 10px;
    border-left: 5px solid var(--secondary);
}

.child-advocacy-message p {
    color: #555;
    line-height: 1.8;
}

.gallery-section {
    background: white;
    padding: 80px 0;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.gallery-item {
    flex: 1 1 calc(33.333% - 25px);
    min-width: 250px;  /* prevents them from getting too small */
    height: 300px;
}


.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }

.gallery-item:hover {
        transform: translateY(-12px) scale(1.02);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease-out;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(239, 241, 243, 0.85) 0%, rgba(58, 158, 124, 0.85) 100%);
    display: flex;
    opacity: 0;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-out;
    z-index: 10;
}

.gallery-item:hover .gallery-overlay {
    opacity: 0;
}

.gallery-overlay i {
    color: white;
    opacity: 0;
    font-size: 2.5rem;
    transition: transform 0.3s ease-out;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-item {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .gallery-item {
        height: 200px;
    }
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.gallery-marquee {
    background: white;
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 15px;
    animation: marqueeScroll 45s linear infinite;
    width: 200%;
}

.marquee-item {
    flex: 0 0 120px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marquee-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(42, 92, 130, 0.15);
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .marquee-item {
        flex: 0 0 90px;
        height: 75px;
    }
    
    .marquee-track {
        animation: marqueeScroll 40s linear infinite;
    }
}

@media (max-width: 576px) {
    .gallery-marquee {
        padding: 30px 0;
    }
    
    .marquee-item {
        flex: 0 0 70px;
        height: 60px;
    }
    
    .marquee-track {
        animation: marqueeScroll 35s linear infinite;
    }
}
