.ph-img--both {
    display: block;
}

.ph-img--mobile {
    display: block;
}

.ph-img--desktop {
    display: none;
}

@media (min-width: 768px) {
    .ph-img--mobile {
        display: none;
    }

    .ph-img--desktop,
    .ph-img--both {
        display: block;
    }
}

/* ── Premium Article Cards ────────────────────────────────── */
.premium-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

[data-theme="dark"] .premium-card {
    background-color: #182030;
    border-color: #2a354c;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .premium-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
}

.premium-card-tag {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.premium-card-title {
    font-family: 'Mukta', 'Noto Sans Devanagari', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.4;
    color: #111827;
    transition: color 0.2s;
}

.premium-card:hover .premium-card-title {
    color: var(--color-primary);
}

[data-theme="dark"] .premium-card-title {
    color: #f1f5f9;
}

.premium-card-summary {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #4b5563;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

[data-theme="dark"] .premium-card-summary {
    color: #94a3b8;
}

.premium-pub-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    margin-right: 0.375rem;
}

/* ── Latest News: collapsible category panels ─────────────── */
.latest-cat-panel {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.latest-cat-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    cursor: pointer;
    user-select: none;
    gap: 0.5rem;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.15s;
}

.latest-cat-panel__header:hover {
    background: #e9eaec;
}

.latest-cat-panel__title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    flex: 1;
}

.latest-cat-panel__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.latest-cat-panel__more {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.latest-cat-panel__more:hover {
    text-decoration: underline;
}

.latest-cat-panel__chevron {
    width: 1rem;
    height: 1rem;
    color: #6b7280;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.latest-cat-panel__chevron--collapsed {
    transform: rotate(-90deg);
}

.latest-cat-panel__body {
    padding: 0.75rem 0.75rem 0.75rem;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.latest-cat-panel__body--collapsed {
    display: none;
}

/* Dark mode */
[data-theme="dark"] .latest-cat-panel {
    background: #1a2234;
    border-color: #374151;
}

[data-theme="dark"] .latest-cat-panel__header {
    background: #111827;
    border-bottom-color: #374151;
}

[data-theme="dark"] .latest-cat-panel__header:hover {
    background: #1a2234;
}

[data-theme="dark"] .latest-cat-panel__title {
    color: #f9fafb;
}

[data-theme="dark"] .latest-cat-panel__chevron {
    color: #9ca3af;
}

/* ── Top Hero + Reels Grid ────────────────────────────────── */
.home-top-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.home-top-hero {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.home-top-reels {
    width: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .home-top-grid {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 2rem;
        align-items: stretch;
    }

    .home-top-hero section,
    .home-top-hero .hero-card-wrapper,
    .home-top-hero .hero-section-card {
        height: 100% !important;
        min-height: 100% !important;
    }

    .home-top-hero .hero-section-media-link {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .home-top-hero .hero-section-media {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

.top-reels-container {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0.875rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .top-reels-container,
.dark .top-reels-container {
    background-color: #182030;
    border-color: #2a354c;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
}

/* ── Sticky Sidebar Scrollbar ────────────────────────────── */
.sidebar-scrollable {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.4) transparent;
}
.sidebar-scrollable::-webkit-scrollbar {
    width: 5px;
}
.sidebar-scrollable::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-scrollable::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.4);
    border-radius: 9999px;
}
.sidebar-scrollable::-webkit-scrollbar-thumb:hover {
    background-color: rgba(156, 163, 175, 0.7);
}

/* ── Inshorts Style Feed Card ─────────────────────────────── */
.inshorts-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1.25rem;
    position: relative;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .inshorts-card {
        flex-direction: row;
        align-items: stretch;
    }
}

.inshorts-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

[data-theme="dark"] .inshorts-card {
    background-color: #182030;
    border-color: #2a354c;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .inshorts-card:hover {
    border-color: #3b4760;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.35);
}

/* ── Media (Image) Container ──────────────────────────────── */
.inshorts-card__media {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    height: 220px;
    background-color: #f1f5f9;
}

@media (min-width: 640px) and (max-width: 767px) {
    .inshorts-card__media {
        height: 250px;
    }
}

@media (min-width: 768px) {
    .inshorts-card__media {
        flex: 0 0 310px;
        width: 310px;
        min-width: 310px;
        max-width: 310px;
        height: auto;
        min-height: 240px;
        align-self: stretch;
    }
}

@media (min-width: 1024px) {
    .inshorts-card__media {
        flex: 0 0 330px;
        width: 330px;
        min-width: 330px;
        max-width: 330px;
    }
}

[data-theme="dark"] .inshorts-card__media {
    background-color: #0f172a;
}

.inshorts-card__media a,
.inshorts-card__media-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

@media (min-width: 768px) {
    .inshorts-card__media a,
    .inshorts-card__media-link {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

.inshorts-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.inshorts-card:hover .inshorts-card__img {
    transform: scale(1.03);
}

.inshorts-card__img-fallback {
    width: 100%;
    height: 100%;
    min-height: 220px;
    background: linear-gradient(135deg, var(--color-primary, #dc2626), #1e293b);
}

/* ── Content Container ────────────────────────────────────── */
.inshorts-card__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    min-width: 0;
    padding: 1.15rem 1.25rem 1rem 1.25rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .inshorts-card__content {
        padding: 1.25rem 1.5rem 1.15rem 1.5rem;
    }
}

.inshorts-card__meta-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.inshorts-card__title {
    font-family: 'Mukta', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 800;
    font-size: 1.225rem;
    line-height: 1.32;
    color: #090d16;
    margin-top: 0.35rem;
    margin-bottom: 0.65rem;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

@media (min-width: 768px) {
    .inshorts-card__title {
        font-size: 1.35rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
}

.inshorts-card:hover .inshorts-card__title {
    color: var(--color-primary);
}

[data-theme="dark"] .inshorts-card__title {
    color: #f8fafc;
}

.inshorts-card__byline {
    font-size: 0.775rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

[data-theme="dark"] .inshorts-card__byline {
    color: #94a3b8;
}

.inshorts-card__summary {
    font-family: 'Mukta', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.925rem;
    font-weight: 400;
    line-height: 1.68;
    color: #475569;
    margin-bottom: 1rem;
    word-break: break-word;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

@media (min-width: 768px) {
    .inshorts-card__summary {
        font-size: 0.95rem;
        line-height: 1.68;
    }
}

[data-theme="dark"] .inshorts-card__summary {
    color: #cbd5e1;
}

.inshorts-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 0.5rem;
}

[data-theme="dark"] .inshorts-card__footer {
    border-top-color: #242f44;
}

.inshorts-card__readmore {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: opacity 0.2s;
}

.inshorts-card__readmore:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.inshorts-card__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ── Hero Article Distinctive Feed Styling ── */
.inshorts-card--hero {
    border-left: 4px solid var(--color-primary, #dc2626) !important;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.02) 0%, #ffffff 25%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

[data-theme="dark"] .inshorts-card--hero {
    border-left: 4px solid var(--color-primary, #dc2626) !important;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, #182030 25%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* ── Featured Article Distinctive Feed Styling ── */
.inshorts-card--featured {
    border-left: 4px solid #f59e0b !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, #ffffff 25%);
}

[data-theme="dark"] .inshorts-card--featured {
    border-left: 4px solid #f59e0b !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, #182030 25%);
}

.inshorts-card__title--hero {
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    line-height: 1.28 !important;
    margin-bottom: 0.75rem !important;
}

@media (min-width: 768px) {
    .inshorts-card__title--hero {
        font-size: 1.5rem !important;
        line-height: 1.28 !important;
        margin-bottom: 0.85rem !important;
    }
}
