/* ==============================================================
   NUTRIGUIDE NEWSPAPER & MAGAZINE PORTAL THEME
   Fast, Clean, Ultra-Readable & Mobile-Responsive
   ============================================================== */

:root {
    --primary-color: #1b5e20;
    --primary-hover: #2e7d32;
    --accent-color: #f57f17;
    --text-color: #222222;
    --text-muted: #666666;
    --bg-color: #f7f9fa;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --font-heading: 'Merriweather', 'Georgia', serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-max: 1240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 17px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Bar & Header --- */
.top-bar {
    background: #111;
    color: #bbb;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid #222;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    background: #fff;
    padding: 24px 0;
    border-bottom: 2px solid #111;
}

.brand-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #111;
    text-transform: uppercase;
}

.brand-tagline {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 2px;
}

/* --- Navigation Bar --- */
.main-nav {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 12px 0;
}

.nav-links li a {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    padding: 6px 0;
}

.nav-links li a:hover,
.nav-links li.active a {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    text-decoration: none;
}

/* --- Ad Container Slots --- */
.ad-slot-container {
    margin: 20px auto;
    text-align: center;
    overflow: hidden;
    max-width: 100%;
}

/* --- Main Layout Grid --- */
.layout-wrapper {
    display: flex;
    gap: 35px;
    margin: 30px auto;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.content-area.full-width {
    width: 100%;
}

.sidebar-area {
    width: 340px;
    flex-shrink: 0;
}

.sidebar-area.is-sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 75px;
    align-self: flex-start;
}

/* --- Newspaper Featured Hero & Grids --- */
.hero-story-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hero-story-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    background: #e2e8f0;
}

.hero-story-body {
    padding: 28px;
}

.cat-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.hero-story-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
    color: #111;
}

.hero-story-desc {
    font-size: 16px;
    color: #444;
    margin-bottom: 18px;
    line-height: 1.7;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

/* --- 2 & 3 Column Article Grids --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.article-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.article-card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    background: #e2e8f0;
}

.article-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #111;
}

.article-card-snippet {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    flex: 1;
}

/* --- Single Article View --- */
.single-article-container {
    background: #fff;
    padding: 35px 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.article-header {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.single-title {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
    color: #111;
    margin: 10px 0 15px;
}

.single-featured-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 6px;
    margin: 20px 0;
    display: block;
    background: #e2e8f0;
}

.article-entry-content {
    font-size: 18px;
    line-height: 1.85;
    color: #2b2b2b;
}

.article-entry-content h2 {
    font-family: var(--font-heading, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 38px 0 16px;
    border-left: 5px solid var(--primary-color, #1b5e20);
    padding-left: 15px;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.article-entry-content h3 {
    font-family: var(--font-heading, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 21px;
    font-weight: 700;
    color: #1e293b;
    margin: 30px 0 14px;
    line-height: 1.4;
    border-left: 3px solid #cbd5e1;
    padding-left: 12px;
}

.article-entry-content h4 {
    font-family: var(--font-heading, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    margin: 22px 0 10px;
    line-height: 1.45;
}

.article-entry-content p {
    margin-bottom: 20px;
}

.article-entry-content ul, .article-entry-content ol {
    margin: 20px 0 25px 30px;
}

.article-entry-content li {
    margin-bottom: 8px;
}

.article-entry-content blockquote {
    background: #f1f8e9;
    border-left: 4px solid var(--primary-color);
    padding: 18px 24px;
    margin: 25px 0;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}

.article-body-figure {
    margin: 32px auto;
    text-align: center;
    max-width: 100%;
}

.article-body-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: block;
    margin: 0 auto;
}

.article-body-figure figcaption {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    font-style: italic;
}

.article-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.article-entry-content th, .article-entry-content td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.article-entry-content th {
    background: var(--primary-color);
    color: #fff;
}

/* --- Sidebar Widgets --- */
.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 22px;
    margin-bottom: 25px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.widget-title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    color: #111;
}

.popular-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border-color);
}

.popular-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-thumb {
    width: 75px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #e2e8f0;
}

.popular-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #222;
}

/* --- Footer --- */
.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 50px 0 25px;
    margin-top: 60px;
    border-top: 3px solid var(--primary-color);
    font-size: 14px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.footer-nav a {
    color: #d1d5db;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-copy {
    text-align: center;
    border-top: 1px solid #1f2937;
    padding-top: 20px;
    font-size: 13px;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .layout-wrapper {
        flex-direction: column;
    }
    .sidebar-area {
        width: 100%;
    }
    .brand-title {
        font-size: 32px;
    }
    .single-article-container {
        padding: 20px;
    }
    .hero-story-img {
        height: 260px;
    }
}

/* --- Flexible Column Layouts (1x, 2x, 3x, 4x, and List View) --- */
.articles-grid.layout-1x {
    grid-template-columns: 1fr;
}
.articles-grid.layout-2x {
    grid-template-columns: repeat(2, 1fr);
}
.articles-grid.layout-3x {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.articles-grid.layout-4x {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.articles-grid.layout-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.articles-grid.layout-list .article-card {
    flex-direction: row;
}
.articles-grid.layout-list .article-card-img {
    width: 240px;
    height: auto;
    min-height: 160px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .articles-grid.layout-2x,
    .articles-grid.layout-3x,
    .articles-grid.layout-4x {
        grid-template-columns: 1fr;
    }
    .articles-grid.layout-list .article-card {
        flex-direction: column;
    }
    .articles-grid.layout-list .article-card-img {
        width: 100%;
        height: 200px;
    }
}

/* --- Clean Numbered Pagination Styling --- */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}
.page-btn:hover {
    background: #f1f5f9;
    color: var(--primary-color);
    border-color: var(--primary-color);
    text-decoration: none;
}
.page-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ==============================================================
   FORM CONTROLS & MODERN COMMENT BOX STYLES
   ============================================================== */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1e293b;
}
.form-control {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    background-clip: padding-box !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    outline: none !important;
}
.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.18) !important;
    background-color: #ffffff !important;
}
.form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}
textarea.form-control {
    min-height: 120px !important;
    resize: vertical !important;
}

.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 700 !important;
    text-align: center !important;
    vertical-align: middle !important;
    user-select: none !important;
    border: 1px solid transparent !important;
    padding: 12px 26px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    text-decoration: none !important;
}
.btn-primary {
    color: #ffffff !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 6px rgba(27, 94, 32, 0.25) !important;
}
.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.35) !important;
    text-decoration: none !important;
}
.btn-primary:active {
    transform: translateY(0) !important;
}

/* Comment Box Container */
.comment-form-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 28px 32px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    margin-top: 25px !important;
}
.comment-form-card h4 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 6px !important;
}
.comment-form-card p.subtitle {
    font-size: 13px !important;
    color: #64748b !important;
    margin-bottom: 22px !important;
    line-height: 1.5 !important;
}
@media (max-width: 640px) {
    .comment-form-grid {
        grid-template-columns: 1fr !important;
    }
    .comment-form-card {
        padding: 20px 16px !important;
    }
}

/* ==============================================================
   TOP MAGAZINE 5-TILE SHOWCASE GRID & SLIDER (Exact User Reference)
   ============================================================== */
.top-magazine-showcase {
    position: relative;
    margin: 15px auto 25px auto;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    background: #0f172a;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.showcase-slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.showcase-slide {
    min-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
}

/* Row 1: 2 Big Tiles */
.showcase-row-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    height: 330px;
}

/* Row 2: 3 Smaller Tiles */
.showcase-row-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    height: 230px;
}

/* Individual Tile */
.showcase-tile {
    position: relative;
    overflow: hidden;
    background: #1e293b;
    display: block;
    text-decoration: none;
    height: 100%;
}

.showcase-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    background: #1e293b;
}

.showcase-tile:hover img {
    transform: scale(1.05);
}

/* Dark Gradient Overlay for optimal white text legibility */
.showcase-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.82) 100%);
    pointer-events: none;
    transition: background 0.3s ease;
}

.showcase-tile:hover::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.88) 100%);
}

/* Content Container Inside Tile */
.showcase-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    pointer-events: none;
}

.showcase-cat {
    align-self: flex-start;
    background: var(--primary-color, #1b5e20);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 3px;
    line-height: 1;
}

.showcase-title {
    color: #ffffff;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.75);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showcase-row-top .showcase-title {
    font-size: 21px;
}

.showcase-row-bottom .showcase-title {
    font-size: 15px;
    -webkit-line-clamp: 2;
}

.showcase-author {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.85);
    margin-top: 2px;
}

/* Prev / Next Navigation Arrows */
.showcase-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    font-weight: 900;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.showcase-nav-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.showcase-prev {
    left: 8px;
}

.showcase-next {
    right: 8px;
}

/* Indicators */
.showcase-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.showcase-dot.active {
    width: 22px;
    border-radius: 10px;
    background: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .showcase-row-top { height: 260px; }
    .showcase-row-bottom { height: 200px; }
    .showcase-row-top .showcase-title { font-size: 18px; }
    .showcase-row-bottom .showcase-title { font-size: 14px; }
}

@media (max-width: 640px) {
    .showcase-row-top { grid-template-columns: 1fr; height: auto; }
    .showcase-row-bottom { grid-template-columns: 1fr; height: auto; }
    .showcase-row-top .showcase-tile, .showcase-row-bottom .showcase-tile { height: 200px; }
    .showcase-nav-btn { display: none; }
}


/* ==============================================================
   UNIVERSAL MOBILE RESPONSIVE ENGINE (ALL SMARTPHONES & TABLETS)
   Modeled on Apple, Google, CoinDesk, Substack & Digital-Network-Hub
   ============================================================== */

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Ensure no media or ad element forces horizontal page overflow */
img, video, iframe, embed, object {
    max-width: 100% !important;
    height: auto;
}

.ad-slot-container {
    max-width: 100% !important;
    overflow: hidden !important;
    text-align: center;
}

.ad-slot-container img,
.ad-slot-container iframe {
    max-width: 100% !important;
    margin: 0 auto;
}

/* Touch-Smooth Horizontal Navigation Across All Themes on Mobile */
@media (max-width: 768px) {
    .goodlife-nav-menu,
    .vb-nav,
    .mn-nav,
    .tp-nav,
    .pp-nav,
    .nav-links {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        padding: 8px 12px !important;
        gap: 14px !important;
        white-space: nowrap !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .goodlife-nav-menu::-webkit-scrollbar,
    .vb-nav::-webkit-scrollbar,
    .mn-nav::-webkit-scrollbar,
    .tp-nav::-webkit-scrollbar,
    .pp-nav::-webkit-scrollbar,
    .nav-links::-webkit-scrollbar {
        display: none !important;
    }

    .goodlife-nav-menu li,
    .vb-nav li,
    .mn-nav li,
    .tp-nav li,
    .pp-nav li,
    .nav-links li {
        flex-shrink: 0 !important;
        display: inline-block !important;
    }

    .nav-more-dropdown .nav-dropdown-menu {
        position: fixed !important;
        top: 60px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
        z-index: 99999 !important;
    }
}

/* Container & Layout Fluid Scaling */
@media (max-width: 992px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
    }
    .layout-wrapper {
        flex-direction: column !important;
        gap: 25px !important;
    }
    .content-area,
    .sidebar-area {
        width: 100% !important;
        max-width: 100% !important;
    }
    .sidebar-area.is-sticky-sidebar {
        position: static !important;
        top: auto !important;
    }
}

/* Single Article & Category Archive Mobile Polish */
@media (max-width: 768px) {
    .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .single-article-container {
        padding: 20px 14px !important;
        border-radius: 8px !important;
    }

    .single-title {
        font-size: 23px !important;
        line-height: 1.32 !important;
        letter-spacing: -0.3px !important;
    }

    .meta-row {
        flex-wrap: wrap !important;
        gap: 8px 12px !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
    }

    .article-entry-content {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }

    .article-entry-content h2 {
        font-size: 20px !important;
        line-height: 1.35 !important;
        margin: 24px 0 12px !important;
    }

    .article-entry-content h3 {
        font-size: 18px !important;
        line-height: 1.35 !important;
        margin: 20px 0 10px !important;
    }

    .single-featured-img {
        border-radius: 6px !important;
        margin-bottom: 20px !important;
        max-height: 280px !important;
        object-fit: cover !important;
        width: 100% !important;
    }

    .comments-section {
        padding: 20px 14px !important;
        margin-top: 25px !important;
    }

    /* Grids stack 1-col on phones */
    .articles-grid,
    .articles-grid.layout-2x,
    .articles-grid.layout-3x,
    .articles-grid.layout-4x,
    .theme-articles-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .article-card-img {
        height: 190px !important;
    }

    .hero-story-card {
        flex-direction: column !important;
    }

    .hero-story-img-link,
    .hero-story-img {
        width: 100% !important;
        height: 220px !important;
    }

    .hero-story-content {
        padding: 16px !important;
    }

    .hero-story-title {
        font-size: 20px !important;
        line-height: 1.32 !important;
    }
}

/* Small Handset Breakpoint (< 480px: iPhone SE, Galaxy A series, Foldables folded) */
@media (max-width: 480px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .brand-title {
        font-size: 24px !important;
    }

    .single-article-container {
        padding: 16px 10px !important;
    }

    .single-title {
        font-size: 20px !important;
    }

    .pagination {
        gap: 4px !important;
    }

    .page-btn {
        min-width: 34px !important;
        height: 36px !important;
        padding: 0 8px !important;
        font-size: 12px !important;
    }
}
