/* ==============================================================
   Urdu News Pro - Responsive Stylesheet
   Breakpoints:
     - Mobile: < 600px
     - Tablet: 600px - 992px
     - Desktop: > 992px
   ============================================================== */

/* ---------- Large Desktop (default styles in main.css) ---------- */

/* ---------- Tablet (max-width: 992px) ---------- */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .site-content {
        padding: 20px 0;
    }

    .site-header {
        padding: 20px 0;
    }

    .site-title {
        font-size: 30px;
    }

    .entry-title {
        font-size: 26px;
    }

    .entry-content {
        font-size: 16px;
        line-height: 1.9;
    }

    .single-article,
    .comments-area,
    .archive-header,
    .page-header,
    .widget-area.sidebar .widget {
        padding: 20px;
    }

    .hero-card-large .hero-card-image {
        height: 380px;
    }

    .section-title {
        font-size: 20px;
    }

    .footer-widgets .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Mobile (max-width: 768px) ---------- */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 12px;
    }

    .top-bar {
        font-size: 12px;
        padding: 6px 0;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 5px;
    }

    .top-date {
        margin-left: 0;
    }

    .site-header {
        padding: 15px 0;
        text-align: center;
    }

    .header-inner {
        flex-direction: column;
    }

    .site-branding {
        flex-direction: column;
        text-align: center;
    }

    .site-logo {
        margin: 0 auto;
    }

    .site-logo img {
        max-height: 60px;
    }

    .site-title {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .site-description {
        font-size: 13px;
    }

    .header-ad-area {
        width: 100%;
    }

    .main-navigation {
        position: relative;
    }

    .nav-inner {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
        order: 2;
    }

    .search-toggle {
        order: 3;
        margin-right: 0;
    }

    .primary-menu-list,
    .fallback-menu {
        order: 4;
        width: 100%;
        flex-direction: column;
        background: #7a0015;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .primary-menu-list.is-open,
    .fallback-menu.is-open {
        max-height: 2000px;
        padding: 10px 0;
    }

    .primary-menu-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .primary-menu-list li a {
        padding: 12px 18px;
        font-size: 15px;
    }

    .primary-menu-list .sub-menu {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        display: none;
    }

    .primary-menu-list .sub-menu.is-open {
        display: block;
    }

    .header-search {
        order: 5;
        position: static;
    }

    /* Hero section */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-card-large {
        height: auto;
    }

    .hero-card-large .hero-card-image {
        height: 220px;
    }

    .hero-card-large .hero-card-overlay {
        position: static;
        background: #fff;
        color: #1a1a1a;
        padding: 15px;
    }

    .hero-card-large .hero-card-title {
        color: #1a1a1a;
        font-size: 18px;
        margin: 8px 0;
    }

    .hero-card-large .hero-card-meta {
        color: #777;
    }

    .hero-card-large .hero-card-meta .meta-sep {
        color: #ccc;
    }

    .hero-card-small {
        height: auto;
        min-height: 100px;
    }

    .hero-card-small .hero-card-image {
        width: 35%;
        min-height: 90px;
    }

    .hero-card-small .hero-card-title {
        font-size: 14px;
    }

    /* Posts Grid */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .post-card-title {
        font-size: 16px;
    }

    .post-card-body {
        padding: 14px;
    }

    /* Category section */
    .category-section {
        padding: 15px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cat-card-feature .cat-card-title {
        font-size: 18px;
    }

    .cat-card-thumb {
        width: 80px;
        height: 60px;
        margin-left: 10px;
    }

    .cat-card-small .cat-card-title {
        font-size: 14px;
    }

    /* Section headings */
    .section-heading {
        flex-wrap: wrap;
        gap: 8px;
    }

    .section-title {
        font-size: 18px;
        gap: 8px;
    }

    .title-bar {
        height: 22px;
    }

    .section-more {
        font-size: 13px;
    }

    /* Single article */
    .single-article,
    .comments-area {
        padding: 18px;
    }

    .entry-title {
        font-size: 22px;
        line-height: 1.4;
    }

    .entry-content {
        font-size: 15px;
    }

    .entry-content h2 { font-size: 22px; }
    .entry-content h3 { font-size: 19px; }
    .entry-content h4 { font-size: 17px; }

    .breadcrumb {
        font-size: 12px;
    }

    /* Author box */
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    /* Sidebar */
    .widget-area.sidebar {
        padding: 20px 0;
    }

    .widget-area.sidebar .widget {
        padding: 15px;
    }

    /* Footer */
    .footer-widgets .container {
        grid-template-columns: 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-menu-list {
        justify-content: center;
    }

    /* 404 page */
    .error-404 {
        padding: 40px 20px;
    }

    .error-code {
        font-size: 80px;
    }

    .error-title {
        font-size: 22px;
    }
}

/* ---------- Extra Small (max-width: 480px) ---------- */
@media (max-width: 480px) {
    .site-title {
        font-size: 20px;
    }

    .entry-title {
        font-size: 20px;
    }

    .hero-card-large .hero-card-image {
        height: 180px;
    }

    .section-title {
        font-size: 16px;
    }

    .post-card-meta,
    .cat-card-meta {
        font-size: 11px;
    }
}

/* ---------- Print Styles ---------- */
@media print {
    .top-bar,
    .main-navigation,
    .header-ad-area,
    .site-footer,
    .menu-toggle,
    .search-toggle,
    .comments-area,
    .related-posts,
    .section-more,
    .header-search,
    .widget-area.sidebar {
        display: none !important;
    }

    body {
        font-size: 12pt;
        background: #fff;
        color: #000;
    }

    .single-article {
        box-shadow: none;
        border: 0;
        padding: 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}