/* ==================== HOME PAGE STYLES ==================== */

/* ==================== UNIVERSAL OVERFLOW-X PREVENTION ==================== */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    body {
        overflow-x: hidden;
        width: 100vw;
        max-width: 100%;
    }

    body>* {
        max-width: 100%;
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .recommended-card {
        padding: 20px 0px;
    }
}

/* ==================== POST-HERO PREMIUM BAND ==================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    --ie-accent: #d52631;
    --ie-text: #101828;
    --ie-muted: #667085;
    --ie-border: #a5a5a5;
    --ie-headline: "PT Serif", "Merriweather", serif;
    --ie-ui: "Roboto", sans-serif;
    --ie-quote: "Marcellus", serif;
}

/* NEWS & POLITICS */
.dual-category-section {
    background: #fff;
    border-top: 1px dotted var(--ie-border);
    border-bottom: 1px dotted var(--ie-border);
    padding: 32px 20px;
}

.dual-category-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 0px 0px 0px;
}

.dual-category-header {
    margin-bottom: 25px;
}

.dual-category-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 24px;
}

.dual-category-title a {
    color: var(--ie-text);
    text-decoration: none;
}

.dual-category-title a:hover {
    color: var(--ie-accent);
}

.dual-category-featured {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.dual-category-featured-copy {
    min-width: 0;
}

.dual-category-featured-link {
    text-decoration: none;
    color: inherit;
}

.dual-category-featured-title {
    margin: 0 0 12px;
    font-family: var(--ie-headline);
    font-size: 22px;
    line-height: 1.14;
    font-weight: 700;
    color: #111;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    display: -webkit-box;
    overflow: hidden;
    word-break: break-all;
}

.dual-category-featured-meta {
    font-family: var(--ie-ui);
    font-size: 0.78rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dual-category-featured-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    background: #f3f4f6;
}

.dual-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    border-top: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
}

.dual-category-grid-item {
    padding: 18px 0px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.dual-category-grid-item:nth-child(2n) {
    border-right: none;
}

.dual-category-grid-item:nth-last-child(-n + 2) {
    border-bottom: none;
}

.dual-category-card {
    padding: 16px;
}

.dual-category-grid-link {
    display: block;
    color: #222;
    font-family: var(--ie-headline);
    font-size: 1rem;
    line-height: 1.55;
    text-decoration: none;
    font-weight: 700;
}

.dual-category-grid-link:hover {
    color: var(--ie-accent);
}

@media (max-width: 900px) {
    .dual-category-featured {
        grid-template-columns: 1fr;
    }
}

.business-chip-nav {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
}

.business-chip-nav .business-chip {
    order: 2;
}

.business-chip-nav .business-chip.is-active {
    order: 1 !important;
}

@media (max-width: 768px) {
    .dual-category-card {
        padding: 0px;
    }

    .dual-category-section-inner {
        grid-template-columns: 1fr;
    }

    .dual-category-grid {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .dual-category-grid-item {
        border-right: none;
    }

    .dual-category-grid-item:nth-child(2n) {
        border-right: none;
    }

    .dual-category-grid-item:nth-last-child(-n + 2) {
        border-bottom: 1px solid #e5e7eb;
    }

    .dual-category-grid-link {
        font-weight: unset;
    }
}

/* OPINION SECTION */
.opinion-section {
    background: #ffffff;
    border-top: 1px dotted var(--ie-border);
    border-bottom: 1px dotted var(--ie-border);
}

.opinion-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 20px;
}

.opinion-section-title {
    margin: 0 0 22px;
    color: #202020;
    font: 700 1.05rem/1 var(--ie-ui);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.opinion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #dfdfd9;
    border-bottom: 1px solid #dfdfd9;
}

.opinion-card {
    padding: 22px 20px 24px;
    background: #f9f9f7;
}

.opinion-card+.opinion-card {
    border-left: 1px solid #dfdfd9;
}

.opinion-headline {
    margin: 0 0 14px;
    font: 700 1.34rem/1.35 var(--ie-headline);
    color: #111;
}

/* LOCAL & BUSINESS SECTION */
.local-business-section {
    background: #fff;
    padding: 24px 20px;
}

.local-business-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    background: #fff;
}

.local-business-card {
    position: relative;
    padding: 16px;
    background: #fff;
}

.local-business-card--local {
    border-right: 1px solid #e5e7eb;
}

.local-business-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.local-business-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.25;
    letter-spacing: 0.04em;
}

.local-business-title a {
    color: var(--ie-text);
    text-decoration: none;
}

.local-business-title a:hover {
    color: var(--ie-accent);
}

.local-business-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.local-city-label {
    font: 600 0.72rem/1 var(--ie-ui);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4b5563;
}

.local-city-select {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 8px 30px 8px 12px;
    font: 600 0.84rem/1 var(--ie-ui);
    color: #111827;
    background: #fff;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #6b7280 50%),
        linear-gradient(135deg, #6b7280 50%, transparent 50%);
    background-position:
        calc(100% - 14px) calc(50% - 2px),
        calc(100% - 9px) calc(50% - 2px);
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
    min-width: 150px;
}

.local-city-select:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08);
}

.business-chip-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.business-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 7px 13px;
    font: 600 0.78rem/1 var(--ie-ui);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #fff;
}

.business-chip:hover,
.business-chip.is-active {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.local-business-featured {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 6px;
}

.local-business-featured-copy {
    min-width: 0;
}

.local-business-featured-link {
    text-decoration: none;
    color: inherit;
}

.local-business-featured-title {
    margin: 0 0 10px;
    font-family: var(--ie-headline);
    font-size: 1.38rem;
    line-height: 25px;
    color: #111;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    word-break: break-all;
}

.local-business-featured-summary {
    margin: 0 0 9px;
    color: #4b5563;
    font: 400 0.89rem/1.45 var(--ie-ui);
}

.local-business-featured-meta {
    color: #6b7280;
    font: 600 0.72rem/1 var(--ie-ui);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.local-business-featured-thumb-link {
    display: block;
}

.local-business-featured-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: #f3f4f6;
}

.local-business-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
}

.local-business-grid-item {
    padding: 13px 12px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.local-business-grid-item:nth-child(2n) {
    border-right: none;
}

.local-business-grid-item:nth-last-child(-n + 2) {
    border-bottom: none;
}

.local-business-grid-link {
    display: block;
    color: #1f2937;
    font-family: var(--ie-headline);
    font-size: 1.01rem;
    font-weight: 700;
    line-height: 1.46;
    text-decoration: none;
}

.local-business-grid-link:hover {
    color: var(--ie-accent);
}

.local-business-empty {
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 22px 16px;
    text-align: center;
    color: #6b7280;
    font: 500 0.92rem/1.4 var(--ie-ui);
}

.local-business-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border-radius: 6px;
    z-index: 3;
}

.local-business-card.is-loading .local-business-loader {
    opacity: 1;
}

.local-business-spinner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    border-top-color: var(--ie-accent);
    animation: localBusinessSpin 0.85s linear infinite;
}

@keyframes localBusinessSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .local-business-featured {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .local-business-section-inner {
        grid-template-columns: 1fr;
    }

    .local-business-card {
        padding: 14px 0;
    }

    .local-business-card--local {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 12px;
        padding-bottom: 20px;
    }

    .local-business-header {
        padding: 0 0;
        flex-wrap: wrap;
    }

    .local-business-controls,
    .business-chip-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .local-business-grid {
        grid-template-columns: 1fr;
        border-left: none;
    }

    .local-business-grid-item {
        border-right: none;
        padding-left: 0;
        padding-right: 0;
    }

    .local-business-grid-item:nth-last-child(-n + 2) {
        border-bottom: 1px solid #e5e7eb;
    }

    .local-business-grid-item:last-child {
        border-bottom: none;
    }
}

.opinion-headline a {
    color: inherit;
    text-decoration: none;
}

.opinion-headline a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.opinion-excerpt {
    margin: 0 0 16px;
    color: #525252;
    font: 400 0.97rem/1.55 var(--ie-ui);
}

.opinion-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 6px;
}

.opinion-author-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: #ecece7;
    border: 1px solid #deded9;
    flex: 0 0 64px;
}

.opinion-author-meta {
    min-width: 0;
}

.opinion-author-name {
    display: block;
    font: 700 0.94rem/1.2 var(--ie-ui);
    color: #171717;
}

.opinion-author-designation {
    display: block;
    margin-top: 3px;
    font: 400 0.84rem/1.3 var(--ie-ui);
    color: #666;
}

.opinion-time {
    display: block;
    margin-top: 6px;
    font: 500 0.79rem/1.2 var(--ie-ui);
    color: #8a8a8a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 992px) {
    .opinion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .opinion-card:nth-child(2n + 1) {
        border-left: none;
    }
}

@media (max-width: 700px) {
    .opinion-section-inner {
        padding: 26px 16px;
    }

    .opinion-grid {
        grid-template-columns: 1fr;
    }

    .opinion-card {
        padding: 18px 0 20px;
        border-left: none !important;
        border-bottom: 1px solid #e4e4de;
    }

    .opinion-card:last-child {
        border-bottom: none;
    }

    .opinion-headline {
        font-size: 1.22rem;
    }
}

.post-hero-premium {
    background: #fff;
}

.post-hero-premium-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 20px 34px;
}

.post-hero-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ie-text);
    margin-bottom: 20px;
}

.post-hero-block-title::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 2px;
    background: var(--ie-accent);
}

.premium-stories-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 1px 8px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.premium-stories-track::-webkit-scrollbar {
    height: 6px;
}

.premium-stories-track::-webkit-scrollbar-thumb {
    background: #cfd4dc;
    border-radius: 999px;
}

.premium-stories-slider {
    position: relative;
}

.premium-stories-controls {
    position: absolute;
    right: 14px;
    top: -50px;
    display: flex;
    gap: 10px;
    z-index: 5;
    pointer-events: none;
}

.premium-stories-controls button {
    pointer-events: auto;
}

.premium-stories-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.premium-stories-nav:hover {
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-1px);
}

.premium-stories-nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.premium-stories-nav svg {
    width: 25px;
    height: 25px;
}

@media (max-width: 767px) {
    .premium-stories-controls {
        display: none;
    }
}

.premium-story-card {
    position: relative;
    flex: 0 0 clamp(152px, 17vw, 219px);
    aspect-ratio: 9 / 14;
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: start;
    isolation: isolate;
    text-decoration: none;
    color: #fff;
    background: #f3f4f6;
}

.premium-story-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.82) 0%,
            rgba(0, 0, 0, 0.2) 45%,
            rgba(0, 0, 0, 0) 75%);
    z-index: 1;
    pointer-events: none;
}

.premium-story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.premium-story-card:hover .premium-story-image {
    transform: scale(1.04);
}

.premium-story-overlay {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 12px 10px 11px;
}

.premium-story-kicker {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--ie-ui);
}

.premium-story-title {
    margin: 0;
    font-family: var(--ie-headline);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.premium-story-link {
    text-decoration: none;
    color: inherit;
}

.post-hero-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.post-hero-news-grid--single {
    grid-template-columns: 1fr;
}

.quick-reads-section {
    background: #fff;
    border-top: 1px dotted var(--ie-border);
    border-bottom: 1px dotted var(--ie-border);
    padding: 24px 0px;
    margin-top: 30px;
}

.quick-reads-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.quick-reads-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-reads-title-link {
    font-family: "PT Serif", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.quick-reads-title-link:hover {
    color: #d52631;
}

.quick-reads-underline {
    flex: 1 1 auto;
    min-width: 80px;
    height: 1px;
    background: #ddd;
}

.quick-reads-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
}

.quick-reads-grid::-webkit-scrollbar {
    height: 6px;
}

.quick-reads-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
}

.quick-read-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    padding: 18px 0px;
    background: #fff;
    border-radius: 4px;
    scroll-snap-align: start;
}

.quick-read-card-content {
    flex: 1 1 auto;
}

.quick-read-title-link {
    font-family: "PT Serif", Georgia, serif;
    font-size: 1.075rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.quick-read-title-link:hover {
    color: #d52631;
}

.quick-read-meta {
    margin-top: auto;
    font-family: var(--ie-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #666;
}

@media (min-width: 768px) {
    .quick-reads-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
        overflow-x: visible;
    }

    .quick-read-card {
        border: none;
        padding-left: 24px;
    }

    .quick-read-card:first-child {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .quick-reads-section {
        padding: 18px 0px;
    }

    .quick-read-title-link {
        font-size: 1rem;
    }
}

.premium-longreads-column,
.premium-trending-column {
    min-width: 0;
}

.premium-longread-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    padding: 0 0 24px;
    border-bottom: 1px dotted var(--ie-border);
    margin-bottom: 20px;
    margin-top: 18px;
}

.premium-longread-image-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.premium-longread-image {
    width: 100%;
    height: -webkit-fill-available;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.premium-longread-image-link:hover .premium-longread-image {
    transform: scale(1.03);
}

.premium-longread-body {
    display: flex;
    flex-direction: column;
}

.premium-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0 0 9px;
}

.premium-category-tag {
    font-family: var(--ie-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ie-accent);
    text-decoration: none;
}

.premium-time {
    font-family: var(--ie-ui);
    font-size: 12px;
    color: var(--ie-muted);
}

.premium-longread-title {
    margin: 0 0 10px;
    font-family: var(--ie-headline);
    font-size: 27px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--ie-text);
}

.premium-longread-title a {
    color: inherit;
    text-decoration: none;
}

.premium-longread-title a:hover,
.premium-trending-link:hover,
.premium-longread-subtitle a:hover {
    color: var(--ie-accent);
}

.premium-longread-excerpt {
    margin: 0;
    font-family: var(--ie-ui);
    font-size: 14px;
    color: #475467;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.premium-longread-list {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.premium-longread-item {
    display: grid;
    gap: 14px;
    align-items: start;
    border-right: 1px dotted var(--ie-border);
}

.premium-longread-item .premium-longread-image-link {
    border-radius: 6px;
    height: 110px;
}

.premium-longread-subtitle {
    margin: 0 0 8px;
    font-family: var(--ie-headline);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ie-text);
}

.premium-longread-subtitle a {
    color: inherit;
    text-decoration: none;
}

.premium-longread-brief {
    margin: 0;
    font-family: var(--ie-ui);
    font-size: 13px;
    line-height: 1.6;
    color: #475467;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.premium-trending-panel {
    border: 1px dotted var(--ie-border);
    border-radius: 8px;
    padding: 16px 16px 8px;
    background: #fff;
}

.premium-trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-trending-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px dotted var(--ie-border);
}

.premium-trending-item:last-child {
    border-bottom: none;
    padding-bottom: 6px;
}

.premium-trending-rank {
    font-family: var(--ie-headline);
    font-size: 21px;
    line-height: 1.1;
    font-weight: 700;
    color: #1f2937;
}

.premium-trending-link {
    display: block;
    margin: 0 0 8px;
    font-family: var(--ie-headline);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--ie-text);
    text-decoration: none;
}

.premium-trending-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1024px) {
    .post-hero-premium-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .post-hero-news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .premium-trending-column {
        order: 1;
    }

    .premium-longreads-column {
        order: 2;
    }
}

@media (max-width: 768px) {
    .post-hero-premium-inner {
        padding-top: 22px;
        padding-bottom: 24px;
    }

    .post-hero-block-title {
        font-size: 13px;
    }

    .premium-stories-track {
        gap: 12px;
    }

    .premium-story-card {
        flex-basis: 150px;
    }

    .premium-longread-featured {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-bottom: 20px;
        margin-bottom: 16px;
    }

    .premium-longread-title {
        font-size: 23px;
    }

    .premium-longread-item {
        gap: 12px;
    }

    .premium-longread-subtitle {
        font-size: 17px;
    }

    .premium-trending-panel {
        padding: 14px 14px 6px;
    }

    .premium-trending-link {
        font-size: 16px;
    }
}

/* ==================== HERO SECTION (3-COLUMN INDIAN EXPRESS STYLE) ==================== */
.hero-section {
    background: #fff;
    border-bottom: 1px solid #eeeeee;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 24px;
    align-items: start;
}

/* ---- HERO LEFT: QUICK READS ---- */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-quick-reads-title {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 8px;
}

.hero-quick-read-item {
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-quick-read-item:first-child {
    padding-top: 0px;
}

.hero-quick-read-item:last-child {
    border-bottom: none;
}

#bdgx11 {
    font-size: 9px;
    color: #f58220;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-quick-read-title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.hero-quick-read-title:hover {
    color: #f58220;
}

.hero-quick-read-time {
    font-size: 11px;
    color: #999;
}

/* ---- HERO CENTER: TOP STORY ---- */
.hero-center {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-top-story-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-story-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ff4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.hero-main-title {
    font-size: 36px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    font-family: "PT Serif", "Georgia", serif;
    margin: 0;
    display: block;
}

.hero-main-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.hero-main-title a:hover {
    color: #f58220;
}

.hero-image-wrap {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-image-wrap:hover .hero-image {
    transform: scale(1.02);
}

.hero-lead {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-byline {
    font-size: 12px;
    color: #888;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-byline span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-byline i {
    font-size: 11px;
}

/* Secondary Stories Below Top Story */
.hero-secondary-stories {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #eeeeee;
    padding-top: 12px;
}

.hero-secondary-story {
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.hero-secondary-story:last-child {
    border-bottom: none;
}

.hero-secondary-thumb {
    position: relative;
    width: 170px;
    height: 95px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}

.hero-secondary-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-secondary-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero-secondary-title {
    font-size: 12px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-secondary-title:hover {
    color: #f58220;
}

.hero-secondary-description {
    font-size: 11px;
    color: #777;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-secondary-time {
    font-size: 10px;
    color: #999;
}

/* ---- HERO RIGHT: LATEST NEWS ---- */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-latest-title {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ff4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    text-transform: uppercase;
}

.hero-live-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-latest-item {
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero-latest-item:last-child {
    border-bottom: none;
}

.hero-latest-category {
    font-size: 9px;
    color: #f58220;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-latest-headline {
    font-size: 12px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-latest-headline:hover {
    color: #f58220;
}

.hero-latest-time {
    font-size: 10px;
    color: #999;
}

.hero-side-art-title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.hero-side-art-title a {
    color: inherit;
    text-decoration: none;
}

.hero-side-art-title a:hover {
    color: #f58220;
}

.hero-side-time {
    font-size: 11px;
    color: #bbb;
}

/* ==================== HERO RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-left,
    .hero-right {
        display: none;
    }

    .hero-center {
        gap: 12px;
    }

    .hero-main-title {
        font-size: 28px;
    }

    .hero-image-wrap {
        height: 280px;
    }

    .hero-secondary-story {
        padding: 8px 0;
    }

    .hero-secondary-thumb {
        width: 140px;
        height: 78px;
    }

    .hero-secondary-title {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        border-bottom: 1px solid #eeeeee;
    }

    .hero-inner {
        padding: 16px 15px;
        gap: 12px;
    }

    .hero-center {
        gap: 10px;
    }

    .hero-main-title {
        font-size: 22px;
        line-height: 1.35;
    }

    .hero-image-wrap {
        height: 200px;
    }

    .hero-lead {
        font-size: 13px;
        line-height: 1.5;
    }

    .hero-byline {
        font-size: 11px;
        gap: 8px;
    }

    .hero-secondary-stories {
        padding-top: 8px;
    }

    .hero-secondary-story {
        padding: 6px 0;
        gap: 8px;
    }

    .hero-secondary-thumb {
        width: 140px;
        height: 78px;
    }

    .hero-secondary-title {
        font-size: 11px;
    }

    .hero-secondary-time {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .hero-inner {
        padding: 12px 12px;
    }

    .hero-main-title {
        font-size: 18px;
        line-height: 1.3;
    }

    .hero-image-wrap {
        height: 160px;
    }

    .hero-lead {
        font-size: 12px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .hero-byline {
        font-size: 10px;
        gap: 6px;
    }
}

/* ---- MAIN BODY LAYOUT ---- */
.home-body-layout {
    max-width: 1200px;
    margin: 28px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
    align-items: start;
}

/* ---- CATEGORY SECTIONS ---- */
.category-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 28px;
    overflow: hidden;
}

.cat-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 12px;
    border-bottom: 2px solid #f58220;
    background: #fff;
}

.cat-section-name {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-section-name::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #f58220;
    border-radius: 2px;
}

.cat-more-link {
    font-size: 12px;
    color: #f58220;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.cat-more-link:hover {
    color: #d46e10;
}

/* The 2-column grid inside each section */
.cat-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 20px 20px;
}

/* Hero story (left) */
.cat-hero-story {
    padding-right: 20px;
    border-right: 1px solid #eee;
}

.cat-hero-image-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 3px;
    background: #eee;
    margin-bottom: 12px;
}

.cat-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cat-hero-image-wrap:hover .cat-hero-image {
    transform: scale(1.04);
}

.cat-hero-premium {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f58220;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.cat-hero-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 1.45;
    margin-bottom: 8px;
    font-family: "Merriweather", serif;
}

.cat-hero-title a {
    color: inherit;
    text-decoration: none;
}

.cat-hero-title a:hover {
    color: #f58220;
}

/* Bookmark Icon in Cards */
.card-bookmark {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.card-bookmark.far {
    color: #999;
}

.card-bookmark.fas {
    color: #f58220;
}

.card-bookmark:hover {
    transform: scale(1.15);
    background: white;
}

.cat-hero-image-wrap {
    position: relative;
}

.cat-hero-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.55;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-hero-meta {
    font-size: 12px;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* List stories (right) */
.cat-list-stories {
    padding-left: 20px;
}

.cat-list-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    align-items: flex-start;
}

.cat-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cat-list-item:first-child {
    padding-top: 0;
}

.cat-list-thumb {
    width: 76px;
    height: 54px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.cat-list-thumb-wrap {
    position: relative;
    width: 76px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
}

.cat-list-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}

.cat-list-title a {
    color: inherit;
    text-decoration: none;
}

.cat-list-title a:hover {
    color: #f58220;
}

.cat-list-meta {
    font-size: 11px;
    color: #bbb;
    display: flex;
    gap: 10px;
}

/* ---- SIDEBAR ---- */
.home-sidebar {
    position: sticky;
    top: 125px;
}

.sidebar-widget-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 18px;
    margin-bottom: 20px;
}

.sidebar-widget-box-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f58220;
    margin-bottom: 4px;
}

.trending-item-hp {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    align-items: flex-start;
}

.trending-item-hp:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-item-hp:first-child {
    padding-top: 0;
}

.sidebar-widget-thumb-wrap {
    position: relative;
    width: 64px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
}

.trending-num {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: #f58220;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.trending-cat-hp {
    font-size: 10px;
    color: #f58220;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.trending-title-hp {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3px;
}

.trending-title-hp a {
    color: inherit;
    text-decoration: none;
}

.trending-title-hp a:hover {
    color: #f58220;
}

.trending-views-hp {
    font-size: 11px;
    color: #bbb;
}

.ad-placeholder-hp {
    background: #f5f5f5;
    border: 2px dashed #ddd;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* ---- RECOMMENDED FOR YOU ---- */
.recommended-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 28px;
    overflow: hidden;
}

.recommended-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
    gap: 5px;
    padding: 14px 20px 12px;
    border-bottom: 2px solid #f58220;
}

.recommended-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommended-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #f58220;
    border-radius: 2px;
}

.recommended-header-copy {
    font-size: 12px;
    color: #7a7a7a;
    font-weight: 500;
    margin-left: 12px;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.recommended-card {
    padding: 16px;
    border-right: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.recommended-card:last-child {
    border-right: none;
}

.recommended-card:hover {
    background: #fafafa;
}

@media (max-width: 768px) {
    .recommended-card-img-wrap {
        height: 200px !important;
    }
}

.recommended-card-img-wrap {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 3px;
    background: #eee;
    margin-bottom: 10px;
}

.recommended-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.recommended-card-img-wrap:hover .recommended-card-img {
    transform: scale(1.05);
}

.recommended-card-cat {
    font-size: 10px;
    color: #f58220;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.recommended-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.recommended-card-title a {
    color: inherit;
    text-decoration: none;
}

.recommended-card-title a:hover {
    color: #f58220;
}

.recommended-card-meta {
    font-size: 11px;
    color: #bbb;
    display: flex;
    gap: 8px;
}

/* ---- MOBILE TRENDING BLOCK (visible only on mobile) ---- */
.mobile-trending-block {
    display: none;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 18px;
    margin-bottom: 20px;
}

.mobile-trending-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f58220;
    margin-bottom: 4px;
}

.mobile-trending-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    align-items: flex-start;
}

.mobile-trending-item:last-child {
    border-bottom: none;
}

.mobile-trending-num {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background: #f58220;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.mobile-trending-ttl {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-trending-ttl a {
    color: inherit;
    text-decoration: none;
}

.mobile-trending-ttl a:hover {
    color: #f58220;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .home-body-layout {
        grid-template-columns: 1fr 260px;
        gap: 24px;
    }

    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .explainer-grid {
        grid-template-columns: 1.1fr 1fr 1fr;
        gap: 20px;
    }

    .explainer-featured-image-wrap {
        height: 240px;
    }

    .explainer-medium-image-wrap {
        height: 200px;
    }
}

@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    html,
    body {
        width: 100%;
        overflow-x: hidden;
        max-width: 100vw;
    }

    body {
        overflow-x: hidden;
    }

    main {
        width: 100%;
        overflow-x: hidden;
        max-width: 100%;
    }

    section {
        overflow-x: hidden;
        max-width: 100%;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        overflow-x: hidden;
    }

    .hero-side {
        display: none;
    }

    .hero-image-wrap {
        height: 240px;
    }

    .hero-title {
        font-size: 20px;
    }

    .home-body-layout {
        grid-template-columns: 1fr;
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
        max-width: 100%;
    }

    .home-sidebar {
        display: none;
    }

    .cat-section-grid {
        grid-template-columns: 1fr;
    }

    .cat-hero-story {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 16px;
        margin-bottom: 4px;
    }

    .cat-list-stories {
        padding-left: 0;
    }

    .explainer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .explainer-featured-image-wrap {
        height: 200px;
    }

    .explainer-medium-image-wrap {
        height: 200px;
    }

    /* ====== FIX MOBILE OVERFLOW-X ====== */
    .visual-stories-section {
        margin: 0;
        padding: 20px 0;
        overflow: hidden;
        width: 100%;
    }

    .visual-stories-wrapper {
        /* padding: 0 15px; */
        max-width: 100%;
        overflow: hidden;
    }

    .visual-stories-container {
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .visual-stories-container::-webkit-scrollbar {
        height: 3px;
        display: none;
    }

    .story-item {
        transition: transform 0.2s;
        flex-shrink: 0;
    }

    .story-thumbnail-wrap {
        width: 65px;
        height: 65px;
        border: 2px solid #f58220;
        flex-shrink: 0;
    }

    .story-label {
        font-size: 10px;
        max-width: 65px;
    }

    .explainer-wrapper {
        padding: 0 15px;
        max-width: 100%;
        overflow: hidden;
    }

    .explainer-section {
        margin: 20px 0;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
    }

    .mobile-latest-strip {
        overflow: hidden;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .mobile-trending-block {
        overflow: hidden;
        max-width: 100%;
        padding: 18px 15px;
        margin: 0;
    }

    .category-section {
        overflow: hidden;
        max-width: 100%;
        padding: 0 15px;
        margin: 5px 0;
    }

    .recommended-section {
        overflow: hidden;
        max-width: 100%;
        padding: 0 15px;
        margin: 0;
    }

    /* ====== END OVERFLOW-X FIX ====== */

    /* MOBILE REORDERING: flex column with order */
    main {
        display: flex;
        flex-direction: column;
    }

    .visual-stories-section {
        order: 1;
    }

    .mobile-latest-strip {
        order: 2;
    }

    .mobile-trending-block {
        display: block;
        order: 3;
    }

    .explainer-section {
        order: 4;
    }

    .category-section {
        order: 5;
    }

    .recommended-section {
        order: 6;
    }

    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-list-thumb {
        width: 64px;
        height: 48px;
    }

    .cat-list-thumb-wrap {
        width: 64px;
        height: 48px;
    }
}

@media (max-width: 480px) {

    html,
    body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
    }

    main,
    section {
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-image-wrap {
        height: 200px;
    }

    .recommended-grid {
        grid-template-columns: 1fr;
    }

    .recommended-card {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 16px 0px;
    }

    .recommended-card:last-child {
        border-bottom: none;
    }

    .explainer-title {
        font-size: 16px;
    }

    .explainer-featured-title {
        font-size: 16px;
    }

    .explainer-medium-title {
        font-size: 13px;
    }
}

/* ==================== SIDEBAR USER SECTION ==================== */
.sidebar-user-section {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.sidebar-user-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.sidebar-user-avatar {
    flex-shrink: 0;
}

.sidebar-user-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 2px solid #f58220; */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-user-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f58220, #ff9f43);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid #f58220;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.sidebar-user-name {
    font-weight: 600;
    color: #021324;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-link,
.sidebar-logout-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    text-decoration: none;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-user-link:hover {
    background: white;
    color: #f58220;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-logout-link:hover {
    background: #ffebee;
    color: #d32f2f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Guest Auth Section */
.sidebar-auth-section {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
}

.sidebar-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 8px 16px;
    background: #f58220;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-signin-btn:hover {
    background: #e67219;
    box-shadow: 0 4px 12px rgba(245, 130, 32, 0.3);
}

/* Mobile responsive for sidebar user section */
@media (max-width: 768px) {
    .sidebar-user-section {
        padding: 12px;
        gap: 10px;
    }

    .sidebar-user-avatar img,
    .sidebar-user-placeholder {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .sidebar-user-name {
        font-size: 13px;
    }

    .sidebar-user-email {
        font-size: 11px;
    }

    .sidebar-user-link,
    .sidebar-logout-link {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .sidebar-signin-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sidebar-user-section {
        padding: 10px;
        gap: 8px;
    }

    .sidebar-user-avatar img,
    .sidebar-user-placeholder {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .sidebar-user-name {
        font-size: 12px;
    }

    .sidebar-user-email {
        font-size: 10px;
    }

    .sidebar-user-link,
    .sidebar-logout-link {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .navbar-container {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 997;
    }

    body {
        padding-top: 100px;
    }
}

/* ==================== HOMEPAGE MULTI-CATEGORY + ON THIS DAY ==================== */
.grid-cols-1 {
    display: grid;
    grid-template-columns: 1fr;
}

.p-4 {
    padding: 34px 16px;
}

.gap-6 {
    gap: 24px;
}

.homepage-multi-layout {
    max-width: 1200px;
    margin: 0px auto;
    border-top: 1px dotted #a5a5a5;
    align-items: start;
}

.homepage-multi-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.homepage-multi-card {
    padding: 0 0 4px;
    border-bottom: 1px solid #ececec;
}

.homepage-multi-card-header {
    margin-bottom: 14px;
}

.homepage-multi-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
}

.homepage-multi-card-title a {
    color: #111827;
    text-decoration: none;
}

.homepage-multi-card-title a:hover {
    color: var(--ie-accent);
}

.homepage-multi-card-arrow {
    font-size: 1.05em;
}

.homepage-multi-featured-title-link {
    text-decoration: none;
    color: inherit;
}

.homepage-multi-featured-title {
    margin: 0;
    font-family: var(--ie-headline);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.homepage-multi-featured-image-link {
    display: block;
}

.homepage-multi-featured-image {
    width: 100%;
    height: 100%;
    min-height: 118px;
    object-fit: cover;
    border-radius: 8px;
    background: #f4f4f4;
}

.homepage-multi-headline-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.homepage-multi-headline-item {
    font-family: var(--ie-headline);
    font-size: 1.06rem;
    line-height: 1.3;
    padding: 11px 0;
    border-top: 1px solid #f1f1f1;
}

.homepage-multi-headline-item a {
    color: #121212;
    text-decoration: none;
}

.homepage-multi-headline-item a:hover {
    color: var(--ie-accent);
}

.homepage-multi-headline-item--empty {
    color: #6b7280;
    font-family: var(--ie-ui);
    font-size: 0.9rem;
}

.homepage-multi-empty {
    border: 1px dashed #d8d8d8;
    border-radius: 8px;
    padding: 18px 14px;
    color: #6b7280;
    font: 500 0.92rem/1.4 var(--ie-ui);
    margin-bottom: 12px;
}

.homepage-multi-sidebar {
    position: sticky;
    top: 125px;
}

.on-this-day-widget {
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.on-this-day-header {
    margin-bottom: 12px;
}

.on-this-day-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
    color: #111827;
}

.on-this-day-swiper {
    position: relative;
    padding-bottom: 8px;
}

.on-this-day-slide {
    border: 1px solid #efefef;
    border-radius: 8px;
    padding: 14px;
    background-color: #fdfaf4;
    background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 0);
}

.on-this-day-year {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f58220;
    color: #fff;
    font: 700 0.75rem/1 var(--ie-quote);
    font-optical-sizing: auto;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    margin-bottom: 10px;
}

.on-this-day-event-title {
    margin: 0 0 8px;
    font-family: var(--ie-quote);
    font-optical-sizing: auto;
    font-size: 1.08rem;
    line-height: 1.4;
    color: #333;
}

.on-this-day-event-description {
    margin: 0 0 12px;
    color: #444;
    font: 400 0.9rem/1.55 var(--ie-quote);
    font-optical-sizing: auto;
}

.on-this-day-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fbe5b9;
    color: #222;
    font: 600 0.72rem/1 var(--ie-quote);
    font-optical-sizing: auto;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 5px 9px;
}

.on-this-day-nav {
    position: absolute;
    top: 92%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
}

.on-this-day-nav:hover {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.on-this-day-nav-prev {
    left: 140px;
}

.on-this-day-nav-next {
    right: 10px;
}

.on-this-day-swiper .swiper-button-lock {
    display: none !important;
}

.homepage-sidebar-ad-label {
    margin-top: 12px;
    margin-bottom: 6px;
    text-align: center;
    font: 500 0.72rem/1 var(--ie-ui);
    color: #7b7b7b;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.homepage-sidebar-ad-slot {
    border: 1px solid #ececec;
    background: #f7f7f7;
    min-height: 250px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.adsense-placeholder {
    color: #b0b0b0;
    font: 600 0.9rem/1.3 var(--ie-ui);
    text-align: center;
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:col-span-3 {
        grid-column: span 3 / span 3;
    }

    .lg\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .homepage-multi-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 26px;
    }

    .homepage-multi-card {
        border-bottom: none;
        border-right: 1px solid #ececec;
        padding-right: 18px;
    }

    .homepage-multi-card:nth-child(3n) {
        border-right: none;
        padding-right: 0;
    }

    /* .homepage-multi-sidebar {
        border-left: 1px solid #e6e6e6;
        padding-left: 24px;
    } */
}

@media (max-width: 1023px) {
    .homepage-multi-layout {
        margin-bottom: 22px;
        grid-template-columns: repeat(4, minmax(1, 1fr));
    }

    .homepage-multi-sidebar {
        position: static;
        margin-top: 8px;
        min-width: -webkit-fill-available;
    }
}

@media (max-width: 768px) {

    /* Mobile Layout Container */
    .homepage-multi-layout {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
        padding: 14px;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    /* Main Content Area */
    .homepage-multi-main {
        width: 100%;
        grid-column: 1 / -1;
    }

    /* Responsive Category Grid */
    .homepage-multi-category-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    /* Card Styling for Mobile */
    .homepage-multi-card {
        padding: 0 0 12px;
        border-bottom: 1px solid #ececec;
        border-right: none;
    }

    .homepage-multi-card:nth-child(3n) {
        border-right: none;
        padding-right: 0;
    }

    /* Card Header and Title */
    .homepage-multi-card-header {
        margin-bottom: 12px;
    }

    .homepage-multi-card-title {
        font-size: 1.08rem;
        font-weight: 700;
        line-height: 1.4;
        margin: 0 0 8px 0;
    }

    .homepage-multi-card-title a {
        display: flex;
        align-items: center;
        padding: 8px 0;
        width: 100%;
    }

    /* Featured Block on Mobile */
    .homepage-multi-featured-block {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }

    .homepage-multi-featured-title-link {
        text-decoration: none;
        color: inherit;
    }

    .homepage-multi-featured-title {
        font-size: 1.1rem;
        font-weight: 700;
        line-height: 1.35;
        margin: 0 0 8px 0;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .homepage-multi-featured-image-link {
        display: block;
        width: 100%;
    }

    .homepage-multi-featured-image {
        width: 100%;
        height: auto;
        max-height: 220px;
        min-height: 150px;
        object-fit: cover;
        border-radius: 8px;
        background: #f4f4f4;
        display: block;
    }

    /* Headline List on Mobile */
    .homepage-multi-headline-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .homepage-multi-headline-item {
        font-size: 0.95rem;
        font-weight: 500;
        line-height: 1.4;
        padding: 10px 0;
        border-top: 1px solid #f1f1f1;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .homepage-multi-headline-item:first-child {
        border-top: none;
        padding-top: 8px;
    }

    .homepage-multi-headline-item a {
        color: #121212;
        text-decoration: none;
        display: block;
        width: 100%;
        padding: 4px 0;
    }

    .homepage-multi-headline-item a:active {
        color: var(--ie-accent);
    }

    /* Empty State Message */
    .homepage-multi-empty {
        border: 1px dashed #d8d8d8;
        border-radius: 6px;
        padding: 16px 12px;
        color: #6b7280;
        font-size: 0.9rem;
        font-weight: 500;
        text-align: center;
        margin-bottom: 12px;
    }

    /* Sidebar on Mobile */
    .homepage-multi-sidebar {
        width: 100%;
        grid-column: 1 / -1;
        position: static;
        border-left: none;
        padding: 0;
        margin-top: 12px;
    }

    /* On This Day Widget */
    .on-this-day-widget {
        border: 1px solid #ececec;
        border-radius: 8px;
        background: #fff;
        padding: 0px;
        width: 100%;
    }

    .on-this-day-header {
        margin-bottom: 12px;
    }

    .on-this-day-title {
        font-size: 0.95rem;
        font-weight: 700;
        padding-left: 14px;
    }

    .on-this-day-nav-prev {
        left: 290px;
    }

    .on-this-day-nav-next {
        right: 14px;
    }

    .on-this-day-nav {
        top: 84%;
    }
}

/* Tablet Responsive Layout (769px - 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {

    /* Layout Container */
    .homepage-multi-layout {
        max-width: 100%;
        margin: 0 auto 24px;
        padding: 16px;
        border-top: 1px dotted #a5a5a5;
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Main Content Area */
    .homepage-multi-main {
        width: 100%;
        grid-column: 1 / -1;
    }

    /* Reduce Grid from 3 to 2 Columns */
    .homepage-multi-category-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
        row-gap: 24px;
        width: 100%;
    }

    /* Card Styling for Tablet */
    .homepage-multi-card {
        padding: 0 16px 12px 0;
        border-bottom: none;
        border-right: 1px solid #ececec;
    }

    .homepage-multi-card:nth-child(2n) {
        border-right: none;
        padding-right: 0;
    }

    .homepage-multi-card:nth-child(3n) {
        border-right: 1px solid #ececec;
        padding-right: 16px;
    }

    /* Card Header and Title */
    .homepage-multi-card-header {
        margin-bottom: 12px;
    }

    .homepage-multi-card-title {
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1.35;
        text-transform: uppercase;
        margin: 0;
    }

    .homepage-multi-card-title a {
        color: #111827;
        text-decoration: none;
        display: flex;
        align-items: center;
    }

    .homepage-multi-card-title a:hover {
        color: var(--ie-accent);
    }

    /* Featured Block */
    .homepage-multi-featured-block {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 12px;
    }

    .homepage-multi-featured-title-link {
        text-decoration: none;
        color: inherit;
    }

    .homepage-multi-featured-title {
        font-size: 1.08rem;
        font-weight: 700;
        line-height: 1.32;
        margin: 0 0 8px 0;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .homepage-multi-featured-image-link {
        display: block;
        width: 100%;
    }

    .homepage-multi-featured-image {
        width: 100%;
        height: auto;
        max-width: 100%;
        min-height: 140px;
        max-height: 200px;
        object-fit: cover;
        border-radius: 8px;
        background: #f4f4f4;
        display: block;
    }

    /* Headline List */
    .homepage-multi-headline-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .homepage-multi-headline-item {
        font-size: 0.98rem;
        font-weight: 500;
        line-height: 1.4;
        padding: 10px 0;
        border-top: 1px solid #f1f1f1;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .homepage-multi-headline-item:first-child {
        border-top: none;
        padding-top: 8px;
    }

    .homepage-multi-headline-item a {
        color: #121212;
        text-decoration: none;
        display: block;
        width: 100%;
        padding: 4px 0;
    }

    .homepage-multi-headline-item a:hover {
        color: var(--ie-accent);
    }

    .homepage-multi-headline-item--empty {
        color: #6b7280;
        font-family: var(--ie-ui);
        font-size: 0.88rem;
    }

    /* Empty State */
    .homepage-multi-empty {
        border: 1px dashed #d8d8d8;
        border-radius: 6px;
        padding: 14px 12px;
        color: #6b7280;
        font-size: 0.88rem;
        font-weight: 500;
        text-align: center;
        margin-bottom: 12px;
    }

    /* Sidebar for Tablet */
    .homepage-multi-sidebar {
        width: 100%;
        grid-column: 1 / -1;
        position: static;
        border-left: none;
        padding: 0;
        margin-top: 12px;
        top: auto;
    }

    /* On This Day Widget */
    .on-this-day-widget {
        border: 1px solid #ececec;
        border-radius: 8px;
        background: #fff;
        padding: 12px;
        width: 100%;
    }

    .on-this-day-header {
        margin-bottom: 10px;
    }

    .on-this-day-title {
        font-size: 0.93rem;
        font-weight: 700;
    }

    .on-this-day-nav-prev {
        left: 4px;
    }

    .on-this-day-nav-next {
        right: 4px;
    }
}

@media (max-width: 768px) {
    .homepage-multi-layout {
        display: flex;
        flex-direction: column;
    }

    .homepage-multi-layout .homepage-multi-sidebar {
        order: 1;
    }

    .homepage-multi-layout .homepage-multi-main {
        order: 2;
    }
}