/* ================================================================
   BBL Digital News - Public Website CSS
   Modern Marathi News Portal Styling
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
    --accent: #e53e1a;
    --accent-dark: #c0320f;
    --accent-glow: rgba(229, 62, 26, 0.15);
    --navy: #0f172a;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --radius: 10px;
    --shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
    --transition: all .22s ease;
}

/* Dark mode */
[data-theme="dark"] {
    --bg: #0f172a;
    --card-bg: #1e293b;
    --border: #334155;
    --text: #f1f5f9;
    --text-gray: #94a3b8;
    --navy: #f1f5f9;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    transition: background .3s, color .3s;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 99px;
}

/* ================================================================
   BREAKING NEWS TICKER
================================================================ */
.breaking-ticker {
    background: var(--accent);
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
}

.ticker-label {
    background: var(--accent-dark);
    padding: 0 16px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticker-label .dot {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

.ticker-scroll {
    display: flex;
    animation: tickerMove 30s linear infinite;
    white-space: nowrap;
}

.ticker-scroll:hover {
    animation-play-state: paused;
}

@keyframes tickerMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    padding: 0 40px 0 0;
    font-size: 13.5px;
    font-weight: 500;
}

.ticker-item::before {
    content: '◆ ';
    font-size: 9px;
    opacity: .6;
}

/* ================================================================
   HEADER
================================================================ */
.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-top {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.site-logo-text {
    font-size: 26px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.5px;
    line-height: 1;
}

.site-tagline {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-dark-toggle {
    background: none;
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-gray);
    transition: var(--transition);
}

.btn-dark-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.search-form {
    display: flex;
    gap: 6px;
}

.search-input {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--bg);
    color: var(--text);
    font-size: 13.5px;
    width: 200px;
    transition: var(--transition);
    outline: none;
}

.search-input:focus {
    border-color: var(--accent);
    width: 260px;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-search {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 99px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.btn-search:hover {
    background: var(--accent-dark);
}

/* NAVBAR */
.main-nav {
    background: var(--navy);
    padding: 0;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-list>li {
    position: relative;
}

.nav-list>li>a {
    display: block;
    padding: 12px 18px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-list>li>a:hover,
.nav-list>li.active>a {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-list>li.accent-cat>a {
    color: #fca5a5;
}

/* Mega dropdown */
.mega-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 16px;
    min-width: 200px;
    z-index: 999;
}

.nav-list>li:hover .mega-dropdown {
    display: block;
}

.mega-dropdown a {
    display: block;
    padding: 7px 12px;
    color: var(--text);
    font-size: 13.5px;
    border-radius: 6px;
    transition: var(--transition);
}

.mega-dropdown a:hover {
    background: var(--acccent-glow);
    color: var(--accent);
    padding-left: 16px;
}

/* ================================================================
   NEWS CARDS
================================================================ */
.news-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
}

.news-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.news-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.news-card:hover .news-card-img-wrap img {
    transform: scale(1.04);
}

.news-card-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
}

.news-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title:hover {
    color: var(--accent);
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-light);
    margin-top: auto;
}

.news-card-meta i {
    font-size: 13px;
}

.news-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Breaking badge on card */
.badge-breaking {
    background: #dc2626;
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    animation: pulse-red .8s infinite alternate;
}

@keyframes pulse-red {
    from {
        opacity: 1
    }

    to {
        opacity: .6
    }
}

/* ================================================================
   HERO / FEATURED SECTION
================================================================ */
.hero-section {
    padding: 28px 0 0;
}

.hero-main {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    height: 420px;
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-main-cat {
    background: var(--accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.hero-main-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 10px;
}

.hero-main-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-side-item {
    display: flex;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.hero-side-item:hover {
    transform: translateX(4px);
    border-color: var(--accent);
}

.hero-side-thumb {
    width: 90px;
    height: 68px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.hero-side-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-side-meta {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 5px;
}

/* ================================================================
   SECTION HEADINGS
================================================================ */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--accent);
    border-radius: 99px;
    display: block;
}

.section-link {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

.section-link:hover {
    color: var(--accent-dark);
}

/* Content section */
.content-section {
    padding: 36px 0;
}

/* ================================================================
   TRENDING SLIDER
================================================================ */
.trending-wrap {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 36px;
}

.trending-wrap .section-title {
    color: #fff;
}

.trending-wrap .section-title::before {
    background: #f59e0b;
}

.swiper-trending {
    overflow: hidden;
}

.trending-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.trending-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.trending-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.trending-card-body {
    padding: 12px;
}

.trending-num {
    font-size: 28px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
    float: left;
    margin-right: 8px;
    line-height: 1;
}

.trending-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-cat {
    font-size: 11px;
    color: #f59e0b;
    margin-top: 4px;
    font-weight: 600;
}

/* ================================================================
   SIDEBAR
================================================================ */
.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: var(--accent);
}

.sidebar-news-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-news-item:last-child {
    border-bottom: none;
}

.sidebar-news-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-news-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-news-title:hover {
    color: var(--accent);
}

.sidebar-news-meta {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Category pills in sidebar */
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    margin: 4px;
    transition: var(--transition);
}

.cat-pill:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ================================================================
   VIDEO SECTION
================================================================ */
.video-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.video-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.video-card:hover .video-overlay {
    background: rgba(0, 0, 0, 0.55);
}

.play-btn {
    width: 54px;
    height: 54px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    transition: var(--transition);
}

.video-card:hover .play-btn {
    transform: scale(1.12);
}

.video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

/* ================================================================
   LOAD MORE / INFINITY SCROLL
================================================================ */
#load_more_btn {
    margin: 32px auto 0;
    display: flex;
    padding: 12px 36px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px var(--accent-glow);
}

#load_more_btn:hover {
    background: var(--accent-dark);
}

#load_more_btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ================================================================
   LIVE SEARCH RESULTS DROPDOWN
================================================================ */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    max-height: 340px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.search-result-item:hover {
    background: var(--accent-glow);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item img {
    width: 44px;
    height: 34px;
    object-fit: cover;
    border-radius: 5px;
}

.search-result-title {
    font-size: 13px;
    font-weight: 600;
}

.search-result-cat {
    font-size: 11px;
    color: var(--text-light);
}

/* ================================================================
   SOCIAL SHARE
================================================================ */
.share-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.share-btn.whatsapp {
    background: #25d366;
    color: #fff;
}

.share-btn.facebook {
    background: #1877f2;
    color: #fff;
}

.share-btn.twitter {
    background: #1da1f2;
    color: #fff;
}

.share-btn.copy {
    background: var(--border);
    color: var(--text);
}

/* ================================================================
   FOOTER
================================================================ */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
    padding: 48px 0 0;
}

.footer-brand {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
}

.footer-tagline {
    font-size: 13px;
    opacity: .6;
    margin-top: 4px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--accent);
}

.footer-link {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-link:hover {
    color: #fff;
    padding-left: 6px;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 36px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 991.98px) {
    .main-nav .nav-list {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hero-main {
        height: 260px;
    }

    .hero-main-title {
        font-size: 17px;
    }
}

@media (max-width: 575.98px) {
    .search-input {
        width: 120px;
    }

    .search-input:focus {
        width: 160px;
    }

    .section-title {
        font-size: 17px;
    }
}