@media (max-width: 900px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .yojana-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .header-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-search {
        width: 100%;
    }
    .header-search input {
        width: 100%;
    }
    .cat-grid,
    .yojana-grid {
        grid-template-columns: 1fr;
    }
    .hero-section h1 {
        font-size: 22px;
    }
}

@media (max-width: 900px) {
    .central-grid,
    .region-grid,
    .cat-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .central-grid,
    .region-grid,
    .cat-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Desktop par toggle button chhupa rahega */
.menu-toggle {
    display: none;
}

/* Mobile Header & Toggle Menu (768px se chhoti screen par) */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .site-logo-img,
    .custom-logo {
        max-height: 54px;
    }

    .header-search {
        width: 100%;
    }

    .header-search input {
        width: 100%;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        background-color: #0f172a;
        color: #ffffff;
        border: none;
        padding: 13px 16px;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
    }

    .nav-menu-wrap {
        display: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .nav-menu-wrap.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list li a {
        padding: 13px 12px;
        width: 100%;
    }
}

/* Mobile Single Post & Overflow Fix */
html,
body,
.site-wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 850px) {
    .container {
        padding: 0 12px;
    }

    .single-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .single-article-card,
    .single-sidebar,
    .sidebar-widget {
        min-width: 0;
        max-width: 100%;
    }

    .single-article-card {
        padding: 16px 14px;
    }

    .single-title {
        font-size: 20px;
        line-height: 1.35;
        overflow-wrap: break-word;
    }

    .entry-content {
        font-size: 15px;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .entry-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .entry-content img,
    .entry-content figure {
        max-width: 100% !important;
        height: auto !important;
    }
}