/* Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }

    .hero-title {
        font-size: 5rem;
    }

    .shape-pill {
        width: 280px;
        height: 560px;
    }
}

/* Tablet / Intermediate */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero.section-split {
        padding: 100px 0 120px;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    /* Navbar */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        /* Matches navbar height */
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 40px 0;
        gap: var(--spacing-lg);
        height: calc(100vh - 80px);
        /* Full height minus header */
        overflow-y: auto;
        /* Allow scrolling if menu is long */
    }

    /* Mobile Dropdown */
    .dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        /* Hidden by default, toggled via JS or hover? Hover doesn't work well on mobile. */
        width: 100%;
        background-color: var(--off-white);
        margin-top: 0;
        padding: 10px 0;
        opacity: 1;
        transform: none;
    }

    /* Show on hover for simplicity or add JS toggle. 
       For "when taped", we usually need JS or :focus.
       Let's use a simple :hover fallback or active class for now. 
    */
    .dropdown:hover .dropdown-content,
    .dropdown.active .dropdown-content {
        display: block;
    }

    .nav-donate-btn {
        display: none;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger .bar {
        display: block;
        width: 28px;
        height: 3px;
        margin: 6px auto;
        transition: all 0.3s ease-in-out;
        background-color: var(--dark-text);
        border-radius: 2px;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hero (High-End Split) */
    .hero.section-split {
        padding: 60px 0 80px;
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin: 0 auto var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: 0 20px;
    }

    .hero-visual-content {
        height: 350px;
        margin-top: var(--spacing-xl);
    }

    .shape-pill {
        width: 120px;
        height: 240px;
    }

    .pill-1 {
        left: calc(50% - 130px);
    }

    .pill-2 {
        left: calc(50% + 10px);
    }

    /* Updates Section */
    .updates-section {
        margin-top: 0;
        /* Remove overlap on mobile */
        padding-top: var(--spacing-xl);
    }

    .updates-wrapper {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Programs */
    .program-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    /* About */
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .about-btns {
        justify-content: center;
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .image-wrapper-circle {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        /* Stack columns on mobile */
        text-align: center;
        gap: var(--spacing-xl);
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
        /* Center underline on mobile */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-visual-content {
        transform: scale(0.9);
    }

    .shape-pill {
        width: 100px;
        height: 200px;
    }

    .pill-1 {
        left: calc(50% - 110px);
    }

    .pill-2 {
        left: calc(50% + 10px);
    }
}

@media (max-width: 380px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn-glow,
    .btn-outline-dark,
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .shape-pill {
        display: none;
        /* Hide shapes on very small screens to save space */
    }

    .hero-visual-content {
        height: auto;
        margin-top: var(--spacing-md);
    }
}