/**
 * Azharica Theme - Responsive Stylesheet
 * Mobile-First & Adaptive Breakpoints
 */

/* ====================================================
   Tablet & Medium Devices (max-width: 1024px)
   ==================================================== */
@media screen and (max-width: 1024px) {
    .azh-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .azh-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

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

    .azh-hero-visual {
        margin-top: 10px;
    }

    .azh-hero-badge-float {
        right: 10px;
        bottom: -15px;
    }

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

    .azh-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .azh-vision-wrapper {
        grid-template-columns: 1fr;
    }

    .azh-vision-img {
        min-height: 240px;
        max-height: 300px;
    }

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

    .azh-testimonials-track {
        grid-template-columns: 1fr;
    }
    .azh-testimonial-card:not(:first-child) {
        display: none;
    }

    .azh-bottom-cta-card {
        grid-template-columns: 1fr;
        padding: 36px 30px;
        text-align: center;
    }
    .azh-bottom-cta-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .azh-compact-ppdb-header {
        justify-content: center;
    }

    .azh-footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* ====================================================
   Mobile & Small Devices (max-width: 768px)
   ==================================================== */
@media screen and (max-width: 768px) {
    body {
        padding-bottom: 74px;
    }

    .azh-mobile-sticky-bar {
        display: block !important;
    }

    .azh-nav-primary {
        display: none;
    }

    .azh-menu-toggle {
        display: flex;
    }

    .azh-hero-section {
        padding-top: 36px;
        padding-bottom: 40px;
    }

    .azh-hero-sub {
        font-size: 1.6rem;
    }
    .azh-hero-title-highlight {
        font-size: 2.4rem;
    }

    .azh-hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .azh-hero-buttons .azh-btn {
        width: 100%;
    }

    .azh-hero-nav-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .azh-hero-nav-bar {
        width: auto;
        padding: 6px 14px;
    }

    .azh-stats-section {
        margin-top: -16px;
    }

    /* Dedicated 2x2 Mobile Grid for PPDB Stats */
    .azh-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .azh-stat-card {
        padding: 18px 16px;
    }
    .azh-stat-number {
        font-size: 1.8rem;
    }
    .azh-stat-promo-card {
        grid-column: span 2;
        padding: 20px 18px;
    }

    .azh-about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .azh-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .azh-feature-card {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        text-align: left;
        padding: 20px;
    }
    .azh-feature-icon-box {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .azh-vision-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .azh-vision-card {
        padding: 28px 20px;
    }

    .azh-achievements-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .azh-achievement-card {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 18px;
    }
    .azh-trophy-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .azh-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
        gap: 12px;
    }
    .azh-gallery-item-2 {
        grid-column: span 2;
    }
    .azh-gallery-item-3 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .azh-news-grid {
        grid-template-columns: 1fr;
    }

    .azh-section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .azh-footer-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    /* Mobile Drawer */
    .azh-mobile-drawer {
        position: fixed;
        inset: 0;
        z-index: 2100;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .azh-mobile-drawer.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .azh-mobile-drawer-inner {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 82%;
        max-width: 320px;
        background-color: var(--azh-white);
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
    }
    .azh-mobile-drawer.is-open .azh-mobile-drawer-inner {
        transform: translateX(0);
    }

    .azh-mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--azh-gray-200);
    }

    .azh-mobile-drawer-close {
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--azh-dark);
        line-height: 1;
    }

    .azh-mobile-nav-container .azh-menu-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .azh-mobile-nav-container .azh-menu-list li a {
        display: block;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--azh-gray-700);
        padding: 6px 0;
    }
    .azh-mobile-nav-container .azh-menu-list li.current-menu-item a {
        color: var(--azh-primary);
    }

    .azh-mobile-drawer-footer {
        margin-top: auto;
        padding-top: 24px;
    }
}
