/* =====================================================
   DESIGN SYSTEM - "THAMARAI" (தாமரை)
   Shared frontend stylesheet for all public pages
===================================================== */
:root {
    --brand-deep: #1B0A2E;
    --brand-primary: #B8001F;
    --brand-accent: #E63946;
    --brand-gold: #D4A853;
    --brand-warm: #FFF8F0;
    --brand-cream: #FFFDF7;
    --text-primary: #1A1A1A;
    --text-secondary: #555;
    --text-muted: #888;
    --border-light: #E8E0D8;
    --surface-elevated: #FFFFFF;
    --gradient-hero: linear-gradient(135deg, #1B0A2E 0%, #2D1B4E 40%, #4A1942 100%);
    --gradient-warm: linear-gradient(180deg, var(--brand-warm) 0%, #fff 100%);
    --shadow-card: 0 2px 16px rgba(27, 10, 46, 0.06);
    --shadow-hover: 0 8px 32px rgba(27, 10, 46, 0.12);
    --radius: 8px;
    --radius-lg: 14px;
    --font-tamil: 'Noto Sans Tamil', sans-serif;
    --font-display: 'Playfair Display', serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-tamil);
    /* background: var(--brand-cream); */
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--brand-primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   TOP BAR
===================================================== */
.top-bar {
    background: #f8f9fa9c;
    color: #212529;
    font-size: 0.78rem;
    padding: 6px 0;
    letter-spacing: 0.02em;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.7);
}

.top-bar a:hover {
    color: var(--brand-gold);
}

.top-bar .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    margin-left: 5px;
    font-size: 0.75rem;
    transition: var(--transition);
}

.top-bar .social-icons a:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* =====================================================
   STICKY HEADER WRAPPER
===================================================== */
.sticky-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
    background: var(--surface-elevated);
    /* border-bottom: 3px solid var(--brand-primary); */
    padding: 6px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.site-logo {
    font-family: var(--font-tamil);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--brand-deep);
    line-height: 1.1;
}

.site-logo span {
    color: var(--brand-primary);
}

.site-logo small {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.header-search {
    position: relative;
    max-width: 280px;
}

.header-search input {
    border: 2px solid var(--border-light);
    border-radius: 50px;
    padding: 7px 40px 7px 16px;
    font-size: 0.85rem;
    font-family: var(--font-tamil);
    width: 100%;
    background: var(--brand-warm);
    transition: var(--transition);
}

.header-search input:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: #fff;
}

.header-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: var(--brand-primary);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
}

/* =====================================================
   NAVIGATION
===================================================== */
.main-nav {
    /* background: var(--brand-deep); */

    background: #F8F9FA;
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav .nav-list::-webkit-scrollbar {
    display: none;
}

.main-nav .nav-list li a {
    display: block;
    /* color: rgba(255, 255, 255, 0.85); */
    color: #212529;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.main-nav .nav-list li a:hover,
.main-nav .nav-list li a.active {
    /* color: #fff; */
    color: var(--brand-primary);
    background: rgba(255, 255, 255, 0.05);
    /* border-bottom-color: var(--brand-gold); */
}

.nav-home-icon {
    color: var(--brand-primary) !important;
    font-size: 1rem;
}

/* =====================================================
   BREAKING NEWS TICKER
===================================================== */
.breaking-ticker {
    background: linear-gradient(90deg, var(--brand-primary) 0%, #C41230 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.breaking-label {
    background: var(--brand-deep);
    color: var(--brand-gold);
    padding: 8px 16px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    position: relative;
}

.breaking-label::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 0;
    bottom: 0;
    width: 24px;
    background: var(--brand-deep);
    clip-path: polygon(0 0, 0 100%, 100% 50%);
}

.breaking-label .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--brand-accent);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

.ticker-wrap {
    overflow: hidden;
    flex: 1;
    padding: 8px 0;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-content a {
    color: #fff;
    padding: 0 40px;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
}

.ticker-content a::after {
    content: '●';
    position: absolute;
    right: 12px;
    color: var(--brand-gold);
    font-size: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.ticker-content a:hover {
    color: var(--brand-gold);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =====================================================
   HERO SECTION
===================================================== */
.hero-section {
    padding: 24px 0 0;
}

.hero-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #222;
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-main:hover img {
    transform: scale(1.03);
}
.hero-section a{
    height:100%;
    display:block;
}
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 28px 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
}

.hero-overlay .cat-badge {
    display: inline-block;
    background: var(--brand-primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.hero-overlay h2 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 6px;
}

.hero-overlay .meta {
    font-size: 0.75rem;
    opacity: 0.8;
}

.hero-side-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.hero-side-item {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: #222;
    min-height: 100px;
}

.hero-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-side-item:hover img {
    transform: scale(1.05);
}

.hero-side-item .side-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 14px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.hero-side-item .side-overlay h6 {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

/* =====================================================
   SECTION HEADERS
===================================================== */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    position: relative;
}

.section-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--brand-primary);
}

.section-head h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-deep);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-head h3 .icon {
    color: var(--brand-primary);
}

.section-head .view-all {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* =====================================================
   NEWS CARDS
===================================================== */
.news-card {
    background: var(--surface-elevated);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.news-card .card-img-wrap {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.news-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .card-img-wrap img {
    transform: scale(1.06);
}

.news-card .card-img-wrap .cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--brand-primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
}

.news-card .card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card .card-body h5 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 6px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .card-body h5 a:hover {
    color: var(--brand-primary);
}

.news-card .card-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-card-h {
    display: flex;
    background: var(--surface-elevated);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    margin-bottom: 12px;
}

.news-card-h:hover {
    box-shadow: var(--shadow-hover);
}

.news-card-h .card-img-h {
    width: 130px;
    min-height: 90px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-card-h .card-img-h img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card-h:hover .card-img-h img {
    transform: scale(1.06);
}

.news-card-h .card-body-h {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card-h .card-body-h h6 {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-h .card-body-h .card-meta {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* =====================================================
   TRENDING SIDEBAR
===================================================== */
.trending-list {
    counter-reset: trending;
}

.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    counter-increment: trending;
    transition: var(--transition);
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover {
    padding-left: 4px;
}

.trending-item::before {
    content: counter(trending, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--border-light);
    line-height: 1;
    min-width: 36px;
    transition: var(--transition);
}

.trending-item:hover::before {
    color: var(--brand-primary);
}

.trending-item h6 {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 4px;
}

.trending-item h6 a:hover {
    color: var(--brand-primary);
}

.trending-item .card-meta {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* =====================================================
   CATEGORY SECTION
===================================================== */
.cat-section {
    padding: 28px 0;
}

/* .cat-section:nth-child(even) {
    background: var(--brand-warm);
} */

.cat-lead-article {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: #222;
}

.cat-lead-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-lead-article .lead-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 20px 18px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
}

.cat-lead-article .lead-overlay h4 {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.45;
}

/* =====================================================
   DISTRICT SECTION
===================================================== */
.district-card {
    background: var(--surface-elevated);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border-left: 4px solid var(--brand-gold);
}

.district-card:hover {
    box-shadow: var(--shadow-hover);
    border-left-color: var(--brand-primary);
}

.district-card .district-name {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.district-card h6 {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
}

/* =====================================================
   EBOOK SECTION
===================================================== */
.ebook-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 16px;
}

.ebook-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.ebook-cover {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: linear-gradient(135deg, #f0e6d9, #e8ddd0);
}

.ebook-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ebook-card h6 {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 12px 12px 4px;
    line-height: 1.4;
}

.ebook-card .dl-count {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* =====================================================
   AD PLACEMENTS
===================================================== */
.ad-space {
    text-align: center;
    margin: 16px 0;
}

.ad-space img {
    max-width: 100%;
    border-radius: var(--radius);
}

.ad-space small {
    display: block;
    font-size: 0.6rem;
    color: #ccc;
    margin-top: 2px;
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
    /* background: var(--brand-deep); */
    background: #F8F9FA;
    color: #212529;
    padding: 40px 0 0;
}

.footer-logo {
    font-family: var(--font-tamil);
    font-size: 1.4rem;
    font-weight: 900;
    color: #212529;
    margin-bottom: 10px;
}

.footer-logo span {
    color: #212529;
}

.site-footer h6 {
    color: #212529;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer ul li {
    margin-bottom: 6px;
}

.site-footer ul li a {
    color: #212529;
    font-size: 0.82rem;
    transition: var(--transition);
    font-weight: 600;
}

.site-footer ul li a:hover {
    color: var(--brand-primary);
    padding-left: 4px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    margin-right: 6px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--brand-primary);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    margin-top: 30px;
    font-size: 0.75rem;
    text-align: center;
}

/* =====================================================
   BACK TO TOP
===================================================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(184, 0, 31, 0.3);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* =====================================================
   MOBILE
===================================================== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--brand-deep);
    font-size: 1.5rem;
    cursor: pointer;
}
.district-news ul{
    columns: 4;
}
/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 991.98px) {
    .district-news ul,
    .category ul{
    columns: 2;
}
    .hero-overlay h2 {
        font-size: 1.2rem;
    }

    .site-logo {
        font-size: 1.4rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .desktop-nav {
        display: none;
    }

    .hero-side-list {
        flex-direction: row;
        gap: 8px;
        margin-top: 10px;
    }

    .hero-side-item {
        min-height: 120px;
    }
}

@media (max-width: 575.98px) {
    .site-header {
        padding: 8px 0;
    }

    .site-logo {
        font-size: 1.2rem;
    }

    .hero-overlay h2 {
        font-size: 1rem;
    }

    .hero-overlay {
        padding: 30px 16px 14px;
    }

    .section-head h3 {
        font-size: 1rem;
    }

    .news-card-h .card-img-h {
        width: 100px;
        min-height: 75px;
    }

    .cat-lead-article {
        aspect-ratio: 16/10;
    }
}

/* =====================================================
   CATEGORY PAGE
===================================================== */
.cat-hero {
    background: var(--brand-deep);
    color: #fff;
    padding: 30px 0;
    margin-bottom: 24px;
}

.cat-hero h1 {
    font-size: 1.6rem;
    font-weight: 900;
}

.cat-hero p {
    opacity: 0.7;
    font-size: 0.85rem;
    margin: 6px 0 0;
}

.article-grid-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    margin-bottom: 16px;
}

.article-grid-item:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.article-grid-item img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.article-grid-item .body {
    padding: 14px;
}

.article-grid-item h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 6px;
}

.article-grid-item .excerpt {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-grid-item .meta {
    font-size: 0.72rem;
    color: #999;
    margin-top: 8px;
}

/* ── Mobile: image left, content right ── */
@media (max-width: 767px) {
    .article-grid-item {
        display: flex;
        align-items: stretch;
        margin-bottom: 0;
    }
    .article-grid-item img {
        width: 110px;
        flex-shrink: 0;
        aspect-ratio: unset;
        min-height: 95px;
        border-radius: 0;
    }
    .article-grid-item .body {
        padding: 10px 12px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .article-grid-item h3 {
        font-size: 0.82rem;
        line-height: 1.4;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 4px;
    }
    .article-grid-item .excerpt { display: none; }
}

/* =====================================================
   ARTICLE PAGE
===================================================== */
.article-header {
    padding: 24px 0 16px;
}

.breadcrumb-nav {
    font-size: 0.78rem;
    margin-bottom: 14px;
}

.breadcrumb-nav a {
    color: var(--brand-primary);
}

.breadcrumb-nav span {
    color: #999;
    margin: 0 6px;
}

.article-title {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.45;
    margin-bottom: 12px;
    color: var(--brand-deep);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.article-meta i {
    color: var(--brand-primary);
    margin-right: 4px;
}

.featured-img {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.featured-img img {
    width: 100%;
    display: block;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2a2a2a;
    max-width: 780px;
    font-weight:500;
}

.article-content p {
    margin-bottom: 1.2em;
}

.article-content h2,
.article-content h3 {
    font-weight: 800;
    margin: 1.5em 0 0.5em;
    color: var(--brand-deep);
}

.article-content img {
    border-radius: 8px;
    margin: 1em 0;
    max-width: 100%;
    height: auto;
}

.article-content blockquote {
    border-left: 4px solid var(--brand-gold);
    padding: 12px 20px;
    background: var(--brand-warm);
    margin: 1em 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.share-bar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.share-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.share-fb {
    background: #1877f2;
}

.share-tw {
    background: #1da1f2;
}

.share-wa {
    background: #25d366;
}

.share-tg {
    background: #0088cc;
}

.share-copy {
    background: #666;
}

.tags-list {
    margin: 20px 0;
}

.tags-list a {
    display: inline-block;
    padding: 4px 14px;
    background: var(--brand-warm);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.78rem;
    margin: 3px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tags-list a:hover {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

@media (max-width: 767px) {
    .article-title {
        font-size: 1.3rem;
    }

    .article-content {
        font-size: 0.95rem;
    }

    .share-bar {
        flex-direction: row;
        position: static;
        justify-content: center;
        margin: 16px 0;
    }
}

/* =====================================================
   LAZY LOAD & ANIMATIONS
===================================================== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s;
}

img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
    opacity: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* ── District image card ── */
.district-img-card { display: block; text-decoration: none; }
.district-img-wrap {
    position: relative; border-radius: 10px; overflow: hidden;
    aspect-ratio: 4/3;
}
.district-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.district-img-card:hover .district-img-wrap img { transform: scale(1.06); }
.district-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.1) 55%);
    padding: 14px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.district-img-overlay .district-name {
    align-self: flex-start;
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; color: #fff;
    background: var(--brand-primary, #B8001F);
    padding: 2px 8px; border-radius: 3px;
    margin-bottom: 6px;
}
.district-img-overlay h6 {
    color: #fff; font-size: 0.82rem; font-weight: 700;
    line-height: 1.4; margin: 0 0 6px;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.district-img-overlay small { color: rgba(255,255,255,0.55); font-size: 0.65rem; }

/* Mobile body — hidden on desktop */
.district-mob-body { display: none; }

/* ── Mobile: left image + right content ── */
@media (max-width: 767px) {
    .district-img-card {
        display: flex; align-items: stretch;
        background: #fff; border-radius: 10px; overflow: hidden;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
        transition: box-shadow 0.3s;
    }
    .district-img-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

    /* Left: fixed-width image, no overlay */
    .district-img-wrap {
        width: 110px; flex-shrink: 0;
        aspect-ratio: unset; min-height: 95px;
        border-radius: 0;
    }
    .district-img-overlay { display: none; }

    /* Right: text content */
    .district-mob-body {
        display: flex; flex-direction: column; justify-content: center;
        padding: 10px 12px; flex: 1;
    }
    .district-mob-name {
        align-self: flex-start;
        font-size: 0.58rem; font-weight: 700; letter-spacing: 0.05em;
        text-transform: uppercase; color: #fff;
        background: var(--brand-primary, #B8001F);
        padding: 2px 7px; border-radius: 3px;
        margin-bottom: 6px;
    }
    .district-mob-body h6 {
        font-size: 0.82rem; font-weight: 700; color: #1a1a1a;
        line-height: 1.45; margin: 0 0 6px;
        display: -webkit-box; -webkit-line-clamp: 3;
        -webkit-box-orient: vertical; overflow: hidden;
    }
    .district-img-card:hover .district-mob-body h6 { color: var(--brand-primary, #B8001F); }
    .district-mob-body small { font-size: 0.65rem; color: #aaa; }
}

/* ═══════════════════════════════════════════
   HOMEPAGE-1 SPECIFIC STYLES
═══════════════════════════════════════════ */

/* -- Hero -- */
.hp1-main-card {
    position: relative; display: block;
    border-radius: 10px; overflow: hidden;
    height: 440px;
}
.hp1-main-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .45s ease;
}
.hp1-main-card:hover img { transform: scale(1.04); }
.hp1-main-card .ov {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.05) 60%);
    padding: 24px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.hp1-main-card .ov h2 {
    color: #fff; font-size: 1.5rem; font-weight: 800;
    line-height: 1.35; margin: 0 0 8px;
}
.hp1-main-card .ov .excerpt {
    color: rgba(255,255,255,.72); font-size: .8rem;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 8px;
}

.hp1-side-card {
    position: relative; display: block;
    border-radius: 8px; overflow: hidden;
    height: 208px; margin-bottom: 14px;
}
.hp1-side-card:last-child { margin-bottom: 0; }
.hp1-side-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.hp1-side-card:hover img { transform: scale(1.05); }
.hp1-side-card .ov {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,0) 55%);
    padding: 14px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.hp1-side-card .ov h6 {
    color: #fff; font-size: .88rem; font-weight: 700;
    line-height: 1.35; margin: 0;
}

/* -- Latest Scrollable Strip -- */
.latest-strip {
    background: var(--brand-deep, #1a1a2e);
    padding: 9px 0; border-top: 3px solid var(--brand-red, #c0392b);
}
.latest-strip .label {
    background: var(--brand-red, #c0392b); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: 1px;
    padding: 4px 14px; border-radius: 3px;
    white-space: nowrap; flex-shrink: 0; margin-right: 14px;
}
.latest-strip .scroll-track {
    display: flex; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; gap: 0;
}
.latest-strip .scroll-track::-webkit-scrollbar { display: none; }
.latest-strip .scroll-track a {
    color: rgba(255,255,255,.8); font-size: .78rem;
    white-space: nowrap; padding: 0 16px; text-decoration: none;
    border-right: 1px solid rgba(255,255,255,.15);
    transition: color .2s;
}
.latest-strip .scroll-track a:last-child { border-right: none; }
.latest-strip .scroll-track a:hover { color: #fff; }

/* -- Category Tabs -- */
.cat-tabs-wrap {
    background: #f5f5f5; padding: 32px 0;
}
.cat-tabs-wrap .nav-tabs {
    border-bottom: 2px solid var(--brand-red, #c0392b); gap: 3px; flex-wrap: nowrap;
    overflow-x: auto; scrollbar-width: none; padding-bottom: 0;
}
.cat-tabs-wrap .nav-tabs::-webkit-scrollbar { display: none; }
.cat-tabs-wrap .nav-tabs .nav-link {
    border: none; border-radius: 4px 4px 0 0;
    background: #ddd; color: #555;
    font-weight: 700; font-size: .82rem;
    padding: 7px 18px; white-space: nowrap;
    transition: background .2s, color .2s;
}
.cat-tabs-wrap .nav-tabs .nav-link:hover { background: #c8c8c8; }
.cat-tabs-wrap .nav-tabs .nav-link.active {
    background: var(--brand-red, #c0392b); color: #fff;
}

.tab-lead-img {
    display: block; border-radius: 8px; overflow: hidden;
    position: relative; height: 270px;
}
.tab-lead-img img { width: 100%; height: 100%; object-fit: cover; }
.tab-lead-img .ov {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,0) 50%);
    padding: 16px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.tab-lead-img .ov h5 {
    color: #fff; font-size: 1rem; font-weight: 700;
    line-height: 1.4; margin: 0;
}

.tab-row-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 9px 0; border-bottom: 1px solid #e4e4e4;
    text-decoration: none;
}
.tab-row-item:last-child { border-bottom: none; }
.tab-row-item img {
    width: 72px; height: 56px; object-fit: cover;
    border-radius: 5px; flex-shrink: 0;
}
.tab-row-item h6 {
    font-size: .81rem; font-weight: 600; color: #222;
    line-height: 1.4; margin: 0 0 3px;
}
.tab-row-item .meta { font-size: .69rem; color: #999; }
.tab-row-item:hover h6 { color: var(--brand-red, #c0392b); }

/* -- Ranked Trending -- */
.ranked-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 10px 0; border-bottom: 1px solid #eee;
    text-decoration: none;
}
.ranked-item:last-child { border-bottom: none; }
.ranked-item .num {
    font-size: 1.9rem; font-weight: 900; line-height: 1;
    color: #e0e0e0; flex-shrink: 0; width: 32px; text-align: center;
}
.ranked-item h6 {
    font-size: .81rem; font-weight: 600; color: #222;
    line-height: 1.4; margin: 0;
}
.ranked-item .cat-tag {
    font-size: .68rem; font-weight: 700;
    color: var(--brand-red, #c0392b); margin-top: 3px;
}
.ranked-item:hover h6 { color: var(--brand-red, #c0392b); }

/* -- Latest 4-col grid -- */
.latest-grid-item {
    display: block; border-radius: 8px; overflow: hidden;
    position: relative; text-decoration: none;
    height: 220px;
}
.latest-grid-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.latest-grid-item:hover img { transform: scale(1.04); }
.latest-grid-item .ov {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 55%);
    padding: 14px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.latest-grid-item .cat-pill {
    font-size: .63rem; font-weight: 700;
    background: var(--brand-red, #c0392b); color: #fff;
    padding: 2px 8px; border-radius: 3px;
    display: inline-block; margin-bottom: 5px;
}
.latest-grid-item h6 {
    color: #fff; font-size: .84rem; font-weight: 700;
    line-height: 1.35; margin: 0;
}
.latest-grid-item .ts {
    color: rgba(255,255,255,.6); font-size: .68rem; margin-top: 4px;
}

/* -- HP1 District Cards -- */
.district-strip { background: var(--brand-warm, #fdf6ec); padding: 32px 0; }
.dist-card {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px; background: #fff;
    border-radius: 8px; border: 1px solid #ece8e0;
    text-decoration: none; height: 100%;
    transition: box-shadow .2s, transform .2s;
}
.dist-card:hover { box-shadow: 0 5px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.dist-card img {
    width: 82px; height: 72px; object-fit: cover;
    border-radius: 6px; flex-shrink: 0;
}
.dist-card .txt .dist-badge {
    font-size: .63rem; font-weight: 700;
    background: var(--brand-red, #c0392b); color: #fff;
    padding: 2px 8px; border-radius: 3px;
    display: inline-flex; align-items: center; gap: 4px;
    margin-bottom: 5px;
}
.dist-card .txt h6 {
    font-size: .8rem; font-weight: 600; color: #222;
    line-height: 1.4; margin: 0;
}
.dist-card:hover .txt h6 { color: var(--brand-red, #c0392b); }
.dist-card .txt .ts { font-size: .67rem; color: #bbb; margin-top: 4px; }

/* HP1 Responsive */
@media (max-width: 991px) {
    .hp1-main-card { height: 260px; }
    .hp1-side-card  { height: 150px; margin-bottom: 10px; }
    .tab-lead-img   { height: 200px; }
    .latest-grid-item { height: 180px; }
}
@media (max-width: 575px) {
    .hp1-main-card .ov h2 { font-size: 1.1rem; }
}

/* ═══════════════════════════════════════════
   HOMEPAGE-2 "CHANNEL SHOWCASE" STYLES
═══════════════════════════════════════════ */

/* ── Mosaic Hero ── */
.mosaic-wrap { background: #0d0d0d; padding: 10px 0 0; }

.mosaic-main {
    position: relative; display: block;
    border-radius: 10px 10px 0 0; overflow: hidden;
    height: 420px;
}
.mosaic-main img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.mosaic-main:hover img { transform: scale(1.04); }
.mosaic-main .ov {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,0) 55%);
    padding: 28px 24px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.mosaic-main .ov .cat-pill {
    font-size: .68rem; font-weight: 800; letter-spacing: .8px;
    background: var(--brand-primary, #B8001F); color: #fff;
    padding: 3px 10px; border-radius: 3px;
    display: inline-block; margin-bottom: 10px; text-transform: uppercase;
}
.mosaic-main .ov h1 {
    color: #fff; font-size: 1.65rem; font-weight: 900;
    line-height: 1.3; margin: 0 0 10px;
}
.mosaic-main .ov p {
    color: rgba(255,255,255,.7); font-size: .8rem;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 8px;
}
.mosaic-main .ov .ts { color: rgba(255,255,255,.5); font-size: .7rem; }

.mosaic-tile {
    position: relative; display: block;
    border-radius: 0; overflow: hidden;
    height: 100%; min-height: 130px;
}
.mosaic-tile img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.mosaic-tile:hover img { transform: scale(1.06); }
.mosaic-tile .ov {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.05) 60%);
    padding: 12px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.mosaic-tile .ov h6 {
    color: #fff; font-size: .82rem; font-weight: 700;
    line-height: 1.35; margin: 0;
}
.mosaic-tile .ov .ts { color: rgba(255,255,255,.5); font-size: .67rem; margin-top: 4px; }
.mosaic-tile .ov .cat-micro {
    font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    color: rgba(255,255,255,.7); margin-bottom: 4px;
}

.mosaic-right { height: 420px; display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.mosaic-right .mosaic-right-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mosaic-right .mosaic-right-top .mosaic-tile { border-radius: 0 10px 0 0; }
.mosaic-right .mosaic-right-top .mosaic-tile:first-child { border-radius: 0; }
.mosaic-right .mosaic-bottom .mosaic-tile { border-radius: 0 0 10px 0; }

/* ── Headline Ticker ── */
.hp2-ticker {
    background: var(--brand-deep, #1B0A2E);
    border-top: 3px solid var(--brand-primary, #B8001F);
    padding: 8px 0; overflow: hidden;
}
.hp2-ticker .ticker-inner {
    display: flex; align-items: center; gap: 0;
}
.hp2-ticker .lbl {
    background: var(--brand-primary, #B8001F); color: #fff;
    font-size: .7rem; font-weight: 800; letter-spacing: 1px;
    padding: 4px 14px; white-space: nowrap; flex-shrink: 0;
    text-transform: uppercase; margin-right: 16px; border-radius: 2px;
}
.hp2-ticker .track {
    display: flex; overflow: hidden; flex: 1;
}
.hp2-ticker .marquee-content {
    display: flex; animation: hp2-scroll 35s linear infinite;
    white-space: nowrap;
}
.hp2-ticker .marquee-content:hover { animation-play-state: paused; }
.hp2-ticker .marquee-content a {
    color: rgba(255,255,255,.78); font-size: .78rem;
    padding: 0 22px; border-right: 1px solid rgba(255,255,255,.15);
    text-decoration: none; flex-shrink: 0;
    transition: color .2s;
}
.hp2-ticker .marquee-content a:hover { color: var(--brand-gold, #D4A853); }
@keyframes hp2-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Sticky Category QuickNav ── */
.cat-quicknav {
    position: sticky; top: 0; z-index: 900;
    background: #fff;
    border-bottom: 1px solid #e4e0d8;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    padding: 0;
}
.cat-quicknav .inner {
    display: flex; overflow-x: auto; scrollbar-width: none; gap: 0;
}
.cat-quicknav .inner::-webkit-scrollbar { display: none; }
.cat-quicknav .qn-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px; font-size: .78rem; font-weight: 700;
    white-space: nowrap; text-decoration: none;
    color: #444; border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
    flex-shrink: 0;
}
.cat-quicknav .qn-btn .dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.cat-quicknav .qn-btn:hover,
.cat-quicknav .qn-btn.active { color: #111; }

/* ── Category Showcase Sections ── */
.cat-showcase {
    padding: 40px 0; border-bottom: 1px solid #ececec;
}
.cat-showcase:nth-child(even) { background: #fafafa; }
.cat-showcase:nth-child(odd)  { background: #fff; }

.cat-showcase-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 2px solid;
}
.cat-showcase-head .name {
    font-size: 1.2rem; font-weight: 900; display: flex; align-items: center; gap: 10px;
}
.cat-showcase-head .name .bar {
    width: 5px; height: 28px; border-radius: 3px; flex-shrink: 0;
}
.cat-showcase-head .view-more {
    font-size: .78rem; font-weight: 700;
    padding: 5px 14px; border-radius: 4px; color: #fff;
    text-decoration: none; white-space: nowrap;
    transition: opacity .2s;
}
.cat-showcase-head .view-more:hover { opacity: .85; }

.cs-lead {
    display: block; border-radius: 10px; overflow: hidden;
    position: relative; height: 300px; text-decoration: none;
}
.cs-lead img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.cs-lead:hover img { transform: scale(1.04); }
.cs-lead .ov {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,0) 50%);
    padding: 20px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.cs-lead .ov h4 {
    color: #fff; font-size: 1.05rem; font-weight: 800;
    line-height: 1.35; margin: 0 0 6px;
}
.cs-lead .ov .excerpt {
    color: rgba(255,255,255,.7); font-size: .76rem;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.cs-lead .ov .ts { color: rgba(255,255,255,.5); font-size: .68rem; margin-top: 6px; }

.cs-row {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 11px 0; border-bottom: 1px solid #ebebeb;
    text-decoration: none;
}
.cs-row:last-child { border-bottom: none; }
.cs-row .thumb {
    width: 86px; height: 68px; object-fit: cover;
    border-radius: 6px; flex-shrink: 0;
}
.cs-row .txt h6 {
    font-size: .83rem; font-weight: 700; color: #1a1a1a;
    line-height: 1.4; margin: 0 0 4px;
}
.cs-row .txt .ts { font-size: .68rem; color: #aaa; }
.cs-row:hover .txt h6 { color: var(--brand-primary, #B8001F); }

.cs-micro-grid { margin-top: 14px; }
.cs-micro-card {
    display: flex; gap: 8px; align-items: center;
    padding: 8px 10px; background: #f5f5f5; border-radius: 6px;
    text-decoration: none; height: 100%;
}
.cs-micro-card img {
    width: 52px; height: 42px; object-fit: cover;
    border-radius: 4px; flex-shrink: 0;
}
.cs-micro-card span {
    font-size: .75rem; font-weight: 600; color: #222;
    line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.cs-micro-card:hover span { color: var(--brand-primary, #B8001F); }

/* ── HP2 District Mosaic ── */
.district-showcase { background: var(--brand-deep, #1B0A2E); padding: 40px 0; }
.district-showcase .section-head h3 { color: #fff; }
.district-showcase .section-head h3 .icon { background: rgba(255,255,255,.1); }

.dist-img-card {
    display: block; border-radius: 8px; overflow: hidden;
    position: relative; height: 180px; text-decoration: none;
}
.dist-img-card img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(.75);
    transition: filter .35s, transform .35s;
}
.dist-img-card:hover img { filter: brightness(.9); transform: scale(1.04); }
.dist-img-card .ov {
    position: absolute; inset: 0; padding: 14px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.dist-img-card .ov .dist-badge {
    font-size: .62rem; font-weight: 800; letter-spacing: .6px;
    background: var(--brand-primary, #B8001F); color: #fff;
    padding: 3px 9px; border-radius: 3px; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 4px;
    margin-bottom: 6px; width: fit-content;
}
.dist-img-card .ov h6 {
    color: #fff; font-size: .8rem; font-weight: 700; line-height: 1.35; margin: 0;
}
.dist-img-card .ov .ts { color: rgba(255,255,255,.5); font-size: .66rem; margin-top: 3px; }

/* ── Ebooks horizontal strip ── */
.ebook-strip-wrap { padding: 36px 0; background: var(--brand-warm, #FFF8F0); }
.ebook-strip {
    display: flex; gap: 18px; overflow-x: auto; scrollbar-width: thin;
    scroll-snap-type: x mandatory; padding-bottom: 6px;
}
.ebook-strip::-webkit-scrollbar { height: 4px; }
.ebook-strip::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.ebook-strip-item {
    flex: 0 0 160px; scroll-snap-align: start;
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; text-align: center;
}
.ebook-strip-item .cover {
    width: 120px; height: 168px; object-fit: cover;
    border-radius: 6px;
    box-shadow: 4px 4px 14px rgba(0,0,0,.18);
    transition: transform .35s, box-shadow .35s;
}
.ebook-strip-item:hover .cover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: 6px 10px 22px rgba(0,0,0,.25);
}
.ebook-strip-item h6 {
    font-size: .76rem; font-weight: 700; color: #222;
    margin: 10px 0 3px; line-height: 1.35;
}
.ebook-strip-item .dl { font-size: .68rem; color: #aaa; }

/* HP2 Responsive */
@media (max-width: 991px) {
    .mosaic-main   { height: 270px; border-radius: 8px 8px 0 0; }
    .mosaic-right  { height: auto; grid-template-rows: auto auto; }
    .mosaic-right .mosaic-right-top .mosaic-tile { min-height: 130px; }
    .mosaic-right .mosaic-bottom .mosaic-tile    { min-height: 110px; }
    .cs-lead { height: 230px; }
    .dist-img-card { height: 150px; }
    .mosaic-right .mosaic-right-top .mosaic-tile:first-child { border-radius: 0; }
    .mosaic-right .mosaic-bottom .mosaic-tile { border-radius: 0 0 8px 0; }
}
@media (max-width: 575px) {
    .cat-quicknav .qn-btn { padding: 8px 12px; font-size: .72rem; }
    .mosaic-main .ov h1  { font-size: 1.1rem; }
}

/* ═══════════════════════════════════════════
   CATEGORY2 — LOAD-MORE PAGE
═══════════════════════════════════════════ */

/* ── Hero ── */
.cat2-hero {
    position: relative; overflow: hidden;
    background: var(--brand-deep, #1B0A2E);
    padding: 42px 0 36px;
    color: #fff;
}
.cat2-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.cat2-hero .inner { position: relative; z-index: 2; }
.cat2-hero .breadcrumb-row {
    font-size: .75rem; color: rgba(255,255,255,.5);
    margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.cat2-hero .breadcrumb-row a { color: rgba(255,255,255,.6); text-decoration: none; }
.cat2-hero .breadcrumb-row a:hover { color: #fff; }
.cat2-hero h1 {
    font-size: 2rem; font-weight: 900; margin: 0 0 8px; line-height: 1.2;
}
.cat2-hero h1 .en {
    font-size: .75rem; font-weight: 400; color: rgba(255,255,255,.4);
    letter-spacing: .1em; text-transform: uppercase; margin-left: 8px;
}
.cat2-hero .desc {
    color: rgba(255,255,255,.65); font-size: .85rem; max-width: 520px; margin: 0 0 16px;
}
.cat2-hero .count-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.85); font-size: .78rem; font-weight: 600;
    padding: 5px 14px; border-radius: 50px; backdrop-filter: blur(4px);
}
.cat2-hero .count-pill i { color: var(--brand-gold, #D4A853); }

/* ── Sticky Toolbar ── */
.cat2-toolbar {
    position: sticky; top: 0; z-index: 800;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e8e0d8;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    padding: 10px 0;
}
.cat2-toolbar .inner {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.cat2-toolbar .sort-group {
    display: flex; align-items: center; gap: 6px;
}
.cat2-toolbar .sort-group label {
    font-size: .75rem; font-weight: 600; color: #888; white-space: nowrap;
}
.sort-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 14px; border-radius: 50px; border: 1.5px solid #ddd;
    background: #fff; color: #555; font-size: .78rem; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: all .25s; white-space: nowrap;
}
.sort-btn.active, .sort-btn:hover {
    border-color: var(--brand-primary, #B8001F);
    color: var(--brand-primary, #B8001F);
    background: rgba(184,0,31,.05);
}
.sort-btn.active { font-weight: 800; }
.view-toggle { display: flex; gap: 4px; }
.view-btn {
    width: 34px; height: 34px; border-radius: 6px;
    border: 1.5px solid #ddd; background: #fff; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: #aaa; font-size: 1rem; transition: all .25s;
}
.view-btn.active, .view-btn:hover {
    border-color: var(--brand-primary, #B8001F);
    color: var(--brand-primary, #B8001F);
    background: rgba(184,0,31,.05);
}
.count-label { font-size: .75rem; color: #aaa; white-space: nowrap; }
.count-label strong { color: #333; }

/* ── Article Grid ── */
#articlesGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 28px 0;
    transition: gap .3s;
}
#articlesGrid.list-mode {
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (max-width: 991px) {
    #articlesGrid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 575px) {
    #articlesGrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    #articlesGrid.list-mode { grid-template-columns: 1fr; gap: 10px; }
}

/* ── Card — Grid mode ── */
.cat2-article {
    display: flex; flex-direction: column;
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 14px rgba(27,10,46,.06);
    transition: transform .35s cubic-bezier(.25,.46,.45,.94),
                box-shadow .35s cubic-bezier(.25,.46,.45,.94);
    text-decoration: none; height: 100%;
    border-bottom: 3px solid transparent;
}
.cat2-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(27,10,46,.13);
    border-bottom-color: var(--brand-primary, #B8001F);
}

.cat2-article .img-wrap {
    position: relative; overflow: hidden;
    aspect-ratio: 16/10; flex-shrink: 0;
}
.cat2-article .img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.cat2-article:hover .img-wrap img { transform: scale(1.07); }

.reveal-ov {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(27,10,46,.94) 0%, rgba(27,10,46,.3) 65%, transparent 100%);
    padding: 18px; display: flex; flex-direction: column; justify-content: flex-end;
    opacity: 0; transition: opacity .35s;
}
.cat2-article:hover .reveal-ov { opacity: 1; }
.reveal-ov .excerpt {
    color: rgba(255,255,255,.82); font-size: .78rem; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 10px;
}
.reveal-ov .read-btn {
    color: var(--brand-gold, #D4A853); font-size: .75rem;
    font-weight: 700; display: inline-flex; align-items: center; gap: 4px;
}

.time-tag {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,.55); color: rgba(255,255,255,.9);
    font-size: .62rem; padding: 3px 9px; border-radius: 30px;
    backdrop-filter: blur(4px); pointer-events: none;
}

.cat2-article .card-body {
    padding: 14px 16px 16px; flex: 1;
    display: flex; flex-direction: column; justify-content: space-between;
    border-left: 3px solid transparent;
    transition: border-color .3s;
}
.cat2-article:hover .card-body { border-left-color: var(--brand-primary, #B8001F); }

.cat2-article .title {
    font-size: .93rem; font-weight: 700; line-height: 1.5;
    margin: 0 0 8px; color: #1a1a1a;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    transition: color .25s;
}
.cat2-article:hover .title { color: var(--brand-primary, #B8001F); }

.cat2-article .list-excerpt {
    font-size: .78rem; color: #777; line-height: 1.55;
    display: none;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin: 0 0 8px;
}
.cat2-article .meta {
    font-size: .68rem; color: #bbb;
    display: flex; gap: 10px; align-items: center; margin-top: 6px;
}
.cat2-article .meta i { color: #ccc; }

/* ── Card — List mode overrides ── */
#articlesGrid.list-mode .cat2-article {
    flex-direction: row; border-radius: 10px; border-bottom: none;
    border-left: 4px solid var(--brand-primary, #B8001F);
    transform: none !important;
}
#articlesGrid.list-mode .cat2-article:hover {
    box-shadow: 0 6px 24px rgba(27,10,46,.12);
    transform: translateX(4px) !important;
}
#articlesGrid.list-mode .cat2-article .img-wrap {
    width: 160px; aspect-ratio: unset; flex-shrink: 0; align-self: stretch;
    border-radius: 0;
}
#articlesGrid.list-mode .cat2-article .img-wrap img { height: 100%; }
#articlesGrid.list-mode .reveal-ov { display: none; }
#articlesGrid.list-mode .time-tag  { display: none; }
#articlesGrid.list-mode .cat2-article .card-body {
    border-left: none; justify-content: center;
}
#articlesGrid.list-mode .cat2-article .title { -webkit-line-clamp: 2; }
#articlesGrid.list-mode .cat2-article .list-excerpt {
    display: -webkit-box;
}
@media (max-width: 575px) {
    #articlesGrid.list-mode .cat2-article .img-wrap { width: 100px; }
}

/* ── Fade-in for new cards ── */
@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.grid-item.entering { animation: cardIn .42s ease both; }

/* ── Progress & Load-More ── */
.load-more-area { padding: 32px 0 48px; text-align: center; }

.articles-progress {
    background: #e8e8e8; border-radius: 50px;
    height: 5px; overflow: hidden;
    max-width: 340px; margin: 0 auto 8px;
}
.articles-progress .bar {
    height: 100%; background: var(--brand-primary, #B8001F);
    border-radius: 50px; transition: width .6s ease;
}
.progress-label {
    font-size: .74rem; color: #aaa; margin-bottom: 20px;
}
.progress-label strong { color: #444; }

.load-more-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 40px; border-radius: 50px;
    background: var(--brand-deep, #1B0A2E); color: #fff;
    font-size: .9rem; font-weight: 700; border: none; cursor: pointer;
    transition: background .3s, transform .3s, box-shadow .3s;
    position: relative; overflow: hidden;
}
.load-more-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,.15), transparent 70%);
    opacity: 0; transition: opacity .3s;
}
.load-more-btn:hover {
    background: var(--brand-primary, #B8001F);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(184,0,31,.3);
}
.load-more-btn:hover::before { opacity: 1; }
.load-more-btn:active { transform: translateY(0); }
.load-more-btn.loading { pointer-events: none; opacity: .85; }

.btn-spinner {
    display: none; width: 17px; height: 17px;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: #fff; border-radius: 50%;
    animation: spin .65s linear infinite; flex-shrink: 0;
}
.load-more-btn.loading .btn-spinner { display: block; }
.load-more-btn.loading .btn-lbl { opacity: .8; }
.load-more-btn.loading .btn-icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.all-loaded-msg {
    display: none;
    color: #4caf50; font-size: .85rem; font-weight: 600;
    align-items: center; justify-content: center; gap: 7px;
}
.all-loaded-msg i { font-size: 1.1rem; }

/* ── Empty state ── */
.empty-state {
    text-align: center; padding: 70px 0; color: #bbb;
}
.empty-state i { font-size: 3rem; display: block; margin-bottom: 12px; }

@media (max-width: 575px) {
    .cat2-hero h1 { font-size: 1.45rem; }
    .cat2-toolbar .count-label { display: none; }
}

/* ── Footer ad bar ── */
.footer-ad-bar {
    background: #f5f5f5;
    padding: 12px 0;
    text-align: center;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

/* =====================================================
   ராசி பலன் (Rasi Palan) Styles
===================================================== */

/* ── Hero bar ── */
.rasi-hero {
    background: var(--gradient-hero);
    color: #fff;
    padding: 28px 0 20px;
}
.rasi-hero h1 { font-size: 1.7rem; font-weight: 800; }
.rasi-hero p { font-size: 0.88rem; opacity: 0.8; }
.rasi-breadcrumb {
    font-size: 0.75rem; opacity: 0.7;
    display: flex; align-items: center; gap: 6px;
}
.rasi-breadcrumb a { color: #fff; text-decoration: none; }
.rasi-breadcrumb i { font-size: 0.6rem; }

/* ── Period tabs ── */
.rasi-tabs {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    gap: 2px; border-bottom: 2px solid var(--border-light);
}
.rasi-tabs::-webkit-scrollbar { display: none; }
.rasi-tabs .nav-link {
    white-space: nowrap; font-size: 0.85rem; font-weight: 600;
    color: var(--text-secondary); padding: 8px 18px; border-radius: 0;
    border-bottom: 3px solid transparent; transition: var(--transition);
    text-decoration: none;
}
.rasi-tabs .nav-link:hover { color: var(--brand-primary); }
.rasi-tabs .nav-link.active {
    color: var(--brand-primary);
    border-bottom-color: var(--brand-primary);
    background: transparent;
}

/* ── Period date label ── */
.rasi-period-label {
    font-size: 0.82rem; color: var(--text-muted);
    background: var(--brand-warm);
    border-left: 3px solid var(--brand-gold);
    padding: 8px 16px;
    border-radius: 0 var(--radius) var(--radius) 0;
    display: inline-block;
}

/* ── Full-page rasi cards ── */
.rasi-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    padding: 20px 14px 16px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex; flex-direction: column; align-items: center;
    border: 2px solid transparent;
}
.rasi-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    border-color: var(--brand-primary);
}
.rasi-card--selected {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(212,168,83,0.25), var(--shadow-hover);
}
.rasi-card--empty { opacity: 0.55; }
.rasi-card__symbol { font-size: 2.2rem; line-height: 1; margin-bottom: 8px; color: var(--brand-primary); }
.rasi-card__name { font-size: 1rem; font-weight: 800; color: var(--brand-deep); margin-bottom: 10px; }
.rasi-card__text { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.7; text-align: left; margin: 0; flex: 1; }
.rasi-card__text--empty { color: var(--text-muted); font-style: italic; text-align: center; }

/* ── Empty state ── */
.rasi-empty { text-align: center; padding: 64px 0; color: var(--text-muted); }
.rasi-empty i { font-size: 3rem; display: block; margin-bottom: 12px; opacity: 0.3; }
.rasi-empty p { font-size: 1rem; margin: 0 0 4px; }
.rasi-empty small { font-size: 0.78rem; }

/* ── Homepage mini rasi cards ── */
.rasi-home-card {
    background: var(--surface-elevated);
    border-radius: var(--radius);
    padding: 12px 8px 10px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
}
.rasi-home-card:hover {
    box-shadow: var(--shadow-hover); transform: translateY(-2px);
    color: var(--brand-primary); text-decoration: none;
}
.rasi-home-symbol { font-size: 1.7rem; line-height: 1; margin-bottom: 5px; color: var(--brand-primary); }
.rasi-home-name { font-size: 0.75rem; font-weight: 700; color: var(--brand-deep); margin-bottom: 4px; }
.rasi-home-preview {
    font-size: 0.68rem; color: var(--text-muted); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 575.98px) {
    .rasi-card { padding: 14px 10px 12px; }
    .rasi-card__symbol { font-size: 1.6rem; }
    .rasi-card__name { font-size: 0.88rem; }
    .rasi-card__text { font-size: 0.78rem; }
    .rasi-home-symbol { font-size: 1.3rem; }
    .rasi-home-name { font-size: 0.68rem; }
    .rasi-home-preview { display: none; }
    .rasi-tabs .nav-link { padding: 6px 12px; font-size: 0.78rem; }
}