/* === RESPONSIVE STYLES === */

@media (max-width: 1024px) {
    .grid-12 {
        grid-template-columns: repeat(6, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .calc-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .container {
        padding: 0 16px;
    }

    .header-shell {
        padding-inline: 16px;
    }

    #primary-navigation {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--border);
        padding: 16px;
        box-shadow: var(--shadow-md);
    }

    #primary-navigation.open {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .nav-menu>li>a {
        padding: 12px 8px;
    }

    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--bg-section);
        border-radius: var(--radius-sm);
        margin: 4px 0 8px;
    }

    .nav-toggle {
        display: flex;
    }

    .header-actions .btn-apply-now {
        display: none;
    }

    .header-actions .btn-header-secondary {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2n) {
        border-right: none;
    }

    .uni-cards-grid {
        grid-template-columns: 1fr;
    }

    .program-cards-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .sticky-mobile-cta {
        display: flex !important;
    }

    body {
        padding-bottom: 70px;
    }

    .hero-section {
        padding: 48px 0 56px;
    }

    .hero-search-wrap {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
        background: transparent;
        box-shadow: none;
    }

    .hero-search-input {
        width: 100%;
        margin-bottom: 8px;
        border-radius: var(--radius-md);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .hero-search-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-quick-links {
        gap: 6px;
        margin-top: 20px;
    }

    .quick-link {
        font-size: 0.8rem;
        padding: 6px 14px;
        gap: 5px;
    }

    .quick-link i {
        font-size: 0.9rem;
    }
}
