/*
* DonateAlfa - Charity & Donation Template
* Responsive Stylesheet
*/

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 48px;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }

    .hero-section {
        height: auto;
        padding: 100px 0;
    }

    .hero-image {
        position: relative;
        width: 100%;
        height: 400px;
        margin-top: 50px;
    }

    .hero-title {
        font-size: 42px;
    }

    .features-grid,
    .causes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-wrapper,
    .impact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        order: -1;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .newsletter-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .newsletter-form {
        width: 100%;
    }

    /* Team grid for tablets */
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Partner logos */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Responsive images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Make sure images maintain aspect ratio */
    .cause-image img,
    .team-member-image img,
    .about-image img,
    .hero-image img {
        object-fit: cover;
        width: 100%;
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }

    .header-wrapper {
        height: 70px;
    }

    .logo img {
        height: 40px;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        transition: all 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav .nav-list {
        flex-direction: column;
        padding: 20px 0;
    }

    .nav-item {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav-item a {
        display: block;
        padding: 10px 0;
    }

    .mobile-menu-toggle {
        display: block;
        margin-left: 20px;
    }

    .hero-section {
        margin-top: 70px;
        padding: 80px 0;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

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

    .hero-buttons .btn {
        width: 100%;
    }

    .features-grid,
    .causes-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }

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

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

    /* Team grid for mobile */
    .team-grid {
        grid-template-columns: 1fr !important;
    }

    /* Partner logos */
    .partners-grid {
        grid-template-columns: 1fr !important;
    }

    /* Responsive images */
    .team-member-image {
        height: 300px !important;
    }

    .hero-image {
        height: 250px;
    }

    /* Make mission action section responsive */
    .mission-action-wrapper {
        grid-template-columns: 1fr !important;
    }

    /* Adjust testimonial author image size */
    .author-image {
        width: 50px;
        height: 50px;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .hero-title {
        font-size: 32px;
    }

    .btn-lg {
        padding: 12px 30px;
        font-size: 16px;
    }

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

    .form-group {
        flex-direction: column;
        gap: 15px;
    }

    .form-group .btn {
        width: 100%;
    }

    /* Responsive images */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Team member images */
    .team-member-image {
        height: 250px !important;
    }

    /* Partner logos */
    .partner-logo {
        height: 120px !important;
    }

    .partner-logo img {
        max-height: 80px !important;
    }

    /* Cause images */
    .cause-image {
        height: 180px;
    }

    /* About section image */
    .about-image img {
        border-radius: 10px;
    }

    /* Hero image */
    .hero-image {
        height: 300px;
    }
}
