/* ==========================================================================
   Mobile Responsive Styles - Digital Apply
   ========================================================================== */

/* Tablet & Smaller Desktops */
@media screen and (max-width: 1024px) {
    .da-sarkari-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .da-main-wrapper {
        grid-template-columns: 1fr;
    }
    
    .da-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

/* Mobile Screens (Under 768px) */
@media screen and (max-width: 768px) {
    body {
        font-size: 0.925rem;
        padding-bottom: 60px; /* Space for mobile bottom bar */
    }

    .da-container {
        padding: 0 12px;
    }

    /* Top bar adjustments */
    .da-top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .da-top-socials {
        width: 100%;
        justify-content: space-between;
    }
    
    .da-social-btn {
        flex: 1;
        justify-content: center;
    }

    /* Header adjustments */
    .da-header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .da-branding {
        flex: 1;
    }

    .da-site-title {
        font-size: 1.25rem;
    }

    .da-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .da-header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 4px;
    }

    /* Hide desktop nav bar */
    .da-nav-bar {
        display: none;
    }

    /* Sarkari Grid single column */
    .da-sarkari-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .da-hero-banner {
        padding: 1rem 0.75rem;
    }

    .da-hero-banner h1 {
        font-size: 1.15rem;
    }

    .da-hero-banner p {
        font-size: 0.825rem;
    }

    .da-social-strip {
        grid-template-columns: 1fr;
    }

    .da-seo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .da-faq-question {
        font-size: 0.875rem;
        padding: 10px 12px;
    }

    .da-faq-answer {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    /* Tools grid 2 columns */
    .da-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .da-tool-card {
        padding: 8px;
        gap: 8px;
    }

    .da-tool-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .da-tool-info h4 {
        font-size: 0.85rem;
    }

    .da-tool-info p {
        display: none;
    }

    /* Article Single */
    .da-article {
        padding: 1rem;
    }

    .da-article-title {
        font-size: 1.25rem;
    }

    .da-article-meta {
        font-size: 0.75rem;
        gap: 8px;
    }

    .da-post-social-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .da-post-social-actions {
        width: 100%;
    }

    .da-post-social-actions .da-social-btn {
        flex: 1;
        justify-content: center;
        padding: 7px 12px;
    }

    /* Author card mobile */
    .da-author-box,
    .da-author-header-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .da-author-details h4,
    .da-author-header-info h1 {
        justify-content: center;
    }

    /* Footer Mobile */
    .da-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Mobile Bottom App Bar */
    .da-mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: #ffffff;
        border-top: 1px solid var(--da-border);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
        z-index: 999;
        justify-content: space-around;
        align-items: center;
    }

    .da-bottom-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #475569;
        font-size: 0.7rem;
        font-weight: 600;
        text-decoration: none !important;
        flex: 1;
        height: 100%;
    }

    .da-bottom-item.active,
    .da-bottom-item:hover {
        color: var(--da-primary);
    }

    .da-bottom-item svg {
        width: 20px;
        height: 20px;
        margin-bottom: 2px;
    }
}

/* Off-Canvas Mobile Drawer Menu */
.da-mobile-drawer {
    position: fixed;
    top: 0;
    left: -290px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.da-mobile-drawer.open {
    left: 0;
}

.da-drawer-header {
    background: var(--da-primary);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.da-drawer-title {
    font-size: 1.1rem;
    font-weight: 800;
}

.da-drawer-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.da-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.da-drawer-menu li a {
    display: block;
    padding: 10px 18px;
    color: var(--da-text);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--da-border);
    text-decoration: none;
}

.da-drawer-menu li a:hover {
    background: var(--da-primary-light);
    color: var(--da-primary);
}

.da-drawer-menu .sub-menu {
    background: #f8fafc;
}

.da-drawer-menu .sub-menu li a {
    padding-left: 30px;
    font-size: 0.85rem;
    font-weight: 500;
}

.da-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.da-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}
