/* ========== RESPONSIVE STYLES ========== */
/* @media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
} */

/* Desktop - Hide mobile button */
.btn-volunteer-mobile {
    display: none;
}

@media (max-width: 992px) {
    /* .hero {
        grid-template-columns: 1fr;
        padding-top: 80px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }

    .hero-title .highlight::after {
        bottom: 2px;
        height: 8px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        justify-content: center;
    }

    .image-container {
        height: 60vh;
    } */

    .video-section .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .video-content {
        text-align: center;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .main-nav.active {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .btn-volunteer {
        display: none;
    }

    .btn-volunteer-mobile {
        display: inline-block;
        margin-top: 20px;
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    } */

    .impact-stats .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .testimonial-content {
        padding: 30px 20px;
    }

    .newsletter .container {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 50px;
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: 50px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    /* .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    } */

    .btn {
        width: 100%;
    }

    .image-container {
        height: 50vh;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}


/* ========== ABOUT PAGE RESPONSIVE STYLES ========== */

@media (max-width: 992px) {
    .about-intro .container,
    .founder-section .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
        right: 0;
    }
    
    .founder-image {
        text-align: center;
    }
    
    .founder-image img {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .about-content h2,
    .founder-content h2,
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .founder-image img {
        max-width: 100%;
    }
    
    .founder-signature {
        flex-direction: column;
        text-align: center;
    }
    
    .experience-badge {
        width: 80px;
        height: 80px;
        font-size: 0.9rem;
    }
    
    .experience-badge span {
        font-size: 2rem;
    }
}


/* ========== PROGRAMS PAGE RESPONSIVE STYLES ========== */

@media (max-width: 992px) {
    .program-details {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .reverse {
        direction: ltr;
    }
    
    .program-badge {
        width: 100px;
        height: 100px;
        right: 0;
    }
    
    .program-features,
    .program-services,
    .livelihood-features {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .programs-hero {
        padding: 120px 0 80px;
    }
    
    .programs-hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .program-content h3 {
        font-size: 1.8rem;
    }
    
    .programs-nav ul {
        justify-content: flex-start;
        padding: 15px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .programs-hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .program-badge {
        width: 80px;
        height: 80px;
        font-size: 0.9rem;
    }
    
    .program-badge span {
        font-size: 2rem;
    }
    
    .stat {
        min-width: 80px;
        padding: 10px;
    }
    
    .stat span {
        font-size: 1.5rem;
    }
    
    .success-stories {
        max-width: calc(100% - 40px);
    }
}


/* ========== GALLERY PAGE RESPONSIVE STYLES ========== */

@media (max-width: 992px) {
    .gallery-hero {
        padding: 120px 0 80px;
    }
    
    .gallery-hero h1 {
        font-size: 2.5rem;
        padding-top: 20px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .gallery-grid,
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 100px 0 60px;
    }
    
    .gallery-hero h1 {
        font-size: 2.2rem;
    }
    
    .gallery-filter ul {
        justify-content: flex-start;
        padding: 15px 0;
    }
    
    .lightbox-content {
        padding: 20px;
    }
    
    .close-lightbox {
        top: 15px;
        right: 15px;
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .gallery-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-filter li {
        margin: 0 5px;
    }
    
    .gallery-filter a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}


/* Responsive adjustments for Contact Page */

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr; /* Info on left, Form on right for medium screens */
    }

    .contact-info {
        padding: 50px; /* More padding on larger screens */
    }

    .contact-form-wrapper {
        padding: 50px; /* More padding on larger screens */
    }
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 2fr; /* More space for form on large screens */
    }
}

/* Ensure hero section text scales appropriately */
@media (max-width: 767px) {
    .contact-hero{
        padding-top: 70px;
    }
    .contact-hero h1 {
        font-size: 2.5rem;
        padding-top: 70px;
    }

    .contact-hero p {
        font-size: 1rem;
    }

    .contact-content {
        padding: 60px 0;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 30px;
    }
}


/* Responsive adjustments for Volunteer Page */

@media (min-width: 768px) {
    /* .volunteer-hero{
        padding-top: 70px;
    } */
    .volunteer-hero h1 {
        /* display: none; */
        font-size: 3.8rem;
        /* padding-top: 80px !important; */
    }

    .volunteer-hero p {
        font-size: 1.3rem;
    }

    .why-volunteer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }

    .volunteer-form-wrapper {
        padding: 60px; /* More padding on larger screens */
    }
}

@media (min-width: 992px) {
    .why-volunteer-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on larger desktops */
    }
}

@media (max-width: 767px) {
    .volunteer-hero {
        padding: 80px 0;
    }

    .volunteer-hero h1 {
        font-size: 2.8rem;
    }

    .volunteer-hero p {
        font-size: 1.1rem;
    }

    .why-volunteer-grid {
        margin-top: 30px;
    }

    .reason-item {
        padding: 25px;
    }

    .reason-item .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .volunteer-form-wrapper {
        padding: 30px;
        margin: 30px auto 0;
    }

    .volunteer-form-wrapper .main-form .checkbox-group {
        flex-direction: column; /* Stack checkboxes on very small screens */
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .volunteer-hero h1 {
        font-size: 2.2rem;
    }

    .volunteer-hero p {
        font-size: 1rem;
    }
}


/* Media Queries */
/* Large Tablets */
@media (max-width: 992px) {    
    .scroll-to-top {
        width: 45px;
        height: 45px;
    }
}

/* Small Tablets */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 25px;
        right: 25px;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    
    .scroll-to-top {
        width: 36px;
        height: 36px;
        bottom: 20px;
        right: 20px;
    }
}