/* ===================================================
   Responsive Styles
   =================================================== */

/* Extra Large screens */
@media (min-width: 1400px) {
    .container { max-width: 1240px; }
    .single-title { font-size: 2.5rem; }
    .hero-main-title { font-size: 2.25rem; }
}

/* Large screens */
@media (max-width: 1199.98px) {
    .hero-main { min-height: 360px; }
    .hero-main-img { min-height: 360px; }
    .hero-side-post { min-height: 110px; }
    .single-title { font-size: 1.75rem; }
}

/* Medium screens */
@media (max-width: 991.98px) {
    :root {
        --sb-header-height: 60px;
    }

    .hero-section { padding: 1rem 0; }
    .hero-main { min-height: 300px; }
    .hero-main-img { min-height: 300px; }
    .hero-main-title { font-size: 1.4rem; }
    .hero-main-excerpt { display: none; }
    .hero-side-posts {
        flex-direction: row;
        gap: .5rem;
        margin-top: .5rem;
    }
    .hero-side-post { min-height: 150px; }

    .sidebar-sticky { position: relative; top: 0; }

    .single-title { font-size: 1.6rem; }
    .featured-title { font-size: 1.4rem; }

    .archive-controls {
        width: 100%;
        justify-content: space-between;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .post-nav-link { padding: .75rem; }

    .footer-top { padding: 2rem 0; }
}

/* Small screens */
@media (max-width: 767.98px) {
    .hero-main { min-height: 250px; }
    .hero-main-img { min-height: 250px; }
    .hero-main-content { padding: 1.25rem; }
    .hero-main-title { font-size: 1.15rem; }
    .hero-main-meta { font-size: .7rem; gap: .4rem; }

    .hero-side-posts { flex-direction: column; }
    .hero-side-post { min-height: 100px; }
    .hero-side-title { font-size: .8rem; }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .archive-controls {
        flex-direction: column;
        gap: .5rem;
    }
    .filter-controls {
        flex-direction: column;
        width: 100%;
    }
    .filter-controls .form-select {
        width: 100%;
    }
    .layout-switcher {
        align-self: flex-end;
    }

    .post-card-image { aspect-ratio: 16/9; }

    .post-card-h-body { padding: 1rem; }
    .post-card-h-meta {
        flex-direction: column;
        gap: .3rem;
    }

    .single-hero-image img { height: 300px; }
    .single-title { font-size: 1.35rem; }
    .entry-content { font-size: .95rem; }
    .entry-content h2 { font-size: 1.3rem; }
    .entry-content h3 { font-size: 1.15rem; }

    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .share-links {
        justify-content: center;
    }
    .share-total {
        text-align: center;
        margin-left: 0;
    }

    .post-meta { font-size: .75rem; gap: .5rem; }

    .rating-star { font-size: 1.25rem; }

    .related-posts .col-lg-3 { flex: 0 0 50%; max-width: 50%; }

    .comments-title { font-size: 1.1rem; }

    .archive-header-section { padding: 1.5rem 0; }
    .archive-title { font-size: 1.35rem; }
    .archive-icon { width: 48px; height: 48px; font-size: 1.25rem; }

    .back-to-top { bottom: 1rem; right: 1rem; width: 40px; height: 40px; }

    .error-number { font-size: 5rem; }

    .newsletter-card { padding: 1.5rem; }

    .footer-widget-title::after { left: 50%; transform: translateX(-50%); }

    .topbar { display: none !important; }
}

/* Extra small screens */
@media (max-width: 575.98px) {
    .container { padding-left: 1rem; padding-right: 1rem; }

    .hero-main { min-height: 200px; }
    .hero-main-img { min-height: 200px; }

    .post-card-body { padding: 1rem; }
    .post-card-footer { padding: .6rem 1rem; }
    .post-card-title { font-size: .95rem; }

    .single-hero-image img { height: 220px; }
    .single-title { font-size: 1.2rem; }

    .site-stats-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }

    .related-posts .row > div { flex: 0 0 100%; max-width: 100%; }

    .post-card-stats { display: none; }

    .subcategories-grid .col-6 { flex: 0 0 50%; }

    .comment-body { padding: .75rem; }
    .comment-header { flex-wrap: wrap; }
    .comment-actions { width: 100%; margin-top: .25rem; }
}

/* Print */
@media print {
    .site-header, .topbar, .breadcrumbs-bar,
    .site-footer, .sidebar, .share-buttons,
    .post-rating, .related-posts, .comments-section,
    .back-to-top, .reading-progress-bar,
    .table-of-contents-wrapper, .post-navigation,
    .archive-controls, .layout-switcher,
    .infinite-scroll-trigger { display: none !important; }

    .site-main { padding: 0; }
    body { color: #000; background: #fff; font-size: 12pt; }
    a { color: #000; text-decoration: underline; }
    .entry-content img { max-width: 100%; }
}