 /* =========================================================
           1. GLOBAL COLOR VARIABLES & TYPOGRAPHY
        ========================================================= */

@font-face {
    font-family: 'font1';
    src: url("../fonts/Bangla(1).ttf") format('truetype');
    font-display: swap;
}

:root {
    --primary-navy: #0b1c2d;
    --secondary-navy: #081625;
    --accent-red: #ff3b30;
    --accent-red-hover: #e03126;
    --gold-accent: #ffb703;
    --light-bg: #f8f9fa;

    --text-dark: #0b1325;
    --text-muted: #6c757d;
    --text-light: #a0aec0;
    --text-white: #ffffff;

    --border-color: #e9ecef;
    --input-bg: #11253e;
    --input-border: #1a365d;

    /*--font-bangla123: 'Hind Siliguri', sans-serif;*/
    --font-bangla: 'font1', sans-serif;
    --font-english-title: 'Merriweather', serif;

    --title-font-size:15px;

    /* Typography scale; Admin > Theme Options > Font Settings overrides these */
    --font-heading: var(--font-bangla);
    --fs-topbar: 18px;
    --fs-menu: 15px;
    --fs-submenu: 15px;
    --fs-section: 16px;
    --fs-headline: 26px;
    --fs-excerpt: 13px;
    --fs-meta: 12px;
    --fs-ticker: 14px;
    --fs-caption: 17px;
    --fs-footer: 15px;
    --fs-footer-brand: 22px;
    --fs-article-title: 30px;
    --article-font-size: 15px;
    --lh-title: 1.35;
    --lh-text: 1.45;
    --lh-article: 1.85;

    /* Font of each text group: titles follow the heading font, the rest the main font */
    --ff-topbar: var(--font-bangla);
    --ff-menu: var(--font-bangla);
    --ff-submenu: var(--font-bangla);
    --ff-section: var(--font-heading);
    --ff-headline: var(--font-heading);
    --ff-title: var(--font-heading);
    --ff-excerpt: var(--font-bangla);
    --ff-meta: var(--font-bangla);
    --ff-ticker: var(--font-bangla);
    --ff-caption: var(--font-bangla);
    --ff-footer: var(--font-bangla);
    --ff-article-title: var(--font-heading);
    --ff-article: var(--font-bangla);

    /* Max width of the content area on large screens */
    --container-width: 1600px;
}

@media (min-width: 1200px) {
    .container {
        max-width: var(--container-width);
    }
}

body {
    font-family: var(--font-bangla);
    background-color: var(--light-bg);
    color: var(--text-dark);
}

        /* Top Bar */
        .top-bar {
            font-size:var(--fs-topbar);
            color:#000;
            border-bottom: 1px solid var(--border-color);
            padding: 6px 0;
            background: #fff;
            position: relative;
            font-family: var(--ff-topbar);
        }
        .top-bar a {
            color:#000;
            text-decoration: none;
        }
        .top-bar a.topbar-epaper {
            background-color: var(--accent-red);
            color: #fff;
            padding: 2px 10px;
            border-radius: 3px;
            font-size: 0.9em;
            white-space: nowrap;
        }
        .top-bar a.topbar-epaper:hover,
        .top-bar a.topbar-epaper.active {
            background-color: var(--accent-red-hover, #b0141f);
        }

        /* Main Header */
        .main-header {
            background-color: #ffffff;
            padding: 15px 0;
            position: relative;
        }
        .site-title {
            font-family: var(--font-english-title);
            font-weight: 900;
            font-size: 2.2rem;
            letter-spacing: 1px;
            color: var(--text-dark);
            margin-bottom: 0;
        }
        .site-logo-img {
            max-height: 80px;
            max-width: 100%;
            object-fit: contain;
        }
        .site-subtitle {
            font-size: 0.85rem;
            color: var(--text-muted);
            letter-spacing: 0.5px;
            margin-bottom: 0;
        }

        /* Navigation Area */
        .header-nav-wrapper {
            position: relative;
        }
        .main-nav {
            background-color: var(--primary-navy);
        }
.main-nav .nav-link {
    color: var(--text-white) !important;
    font-size: 0.95rem;
    padding: 12px 15px !important;
    font-weight: 600;
    font-size: var(--fs-menu);
    font-family: var(--ff-menu);
}
        .main-nav .dropdown-item,
        .offcanvas-body .dropdown-item {
            font-size: var(--fs-submenu);
            font-family: var(--ff-submenu);
        }
        .main-nav .nav-link:hover, 
        .main-nav .nav-link.active {
            color: var(--accent-red) !important;
        }

        /* Clean Search Icon Button (No Background) */
        .search-trigger-btn {
            background: transparent !important;
            color: var(--text-white);
            border: none;
            padding: 0;
            font-size: 1.15rem;
            cursor: pointer;
            transition: color 0.2s ease;
        }
        .search-trigger-btn:hover {
            color: var(--accent-red);
        }
        .top-bar .search-trigger-btn {
            color: var(--text-muted);
        }
        .top-bar .search-trigger-btn:hover {
            color: var(--accent-red);
        }

        /* =========================================================
           2. FLOATING SEARCH POPUP (EXACT DESIGN)
        ========================================================= */
        .search-wrapper-relative {
            position: relative;
        }

        .search-popup-card {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            width: 420px;
            background: #ffffff;
            padding:10px;
            border-top: 4px solid var(--accent-red);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
            z-index: 1090;
            margin-top: 10px;
            border-radius: 0 0 4px 4px;
        }

        /* Pill Container */
        .search-pill-form {
            display: flex;
            background: #ffffff;
            border: 1px solid #b0b0b0;
            border-radius: 50px;
            overflow: hidden;
        }

        .search-pill-input {
            border: none !important;
            outline: none !important;
            box-shadow: none !important;
            padding: 10px 20px;
            font-size: 1rem;
            color: #333;
            background: transparent;
            flex-grow: 1;
        }

        .search-pill-btn {
            background-color: var(--accent-red);
            color: #ffffff;
            border: none;
            padding: 10px 25px;
            font-size: 1rem;
            font-weight: 600;
            border-top-right-radius: 50px;
            border-bottom-right-radius: 50px;
            transition: background 0.2s;
            white-space: nowrap;
        }

        .search-pill-btn:hover {
            background-color: var(--accent-red-hover);
        }

        /* Red Floating Close Circle */
        .search-close-btn {
            position: absolute;
            top: -15px;
            right: -10px;
            width: 32px;
            height: 32px;
            background-color: var(--accent-red);
            color: #ffffff;
            border-radius: 50%;
            border: 2px solid #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transition: transform 0.2s;
        }

        .search-close-btn:hover {
            background-color: var(--accent-red-hover);
            transform: scale(1.1);
        }

        /* Mobile Offcanvas Drawer Customization */
        .offcanvas-header {
            background-color: var(--primary-navy);
            color: var(--text-white);
            border-bottom: 1px solid var(--input-border);
        }
        .offcanvas-body {
            background-color: var(--primary-navy);
            color: var(--text-white);
        }
        .offcanvas-body .nav-link {
            color: var(--text-white) !important;
            padding: 10px 0 !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }
        .offcanvas-body .dropdown-menu {
            background-color: var(--input-bg);
            border: none;
        }
        .offcanvas-body .dropdown-item {
            color: #cbd5e1;
        }

        /* Breaking News Ticker */
        .breaking-news-bar {
            background-color: var(--border-color);
            border-bottom: 1px solid #dee2e6;
            overflow: hidden;
            position: relative;
            z-index: 1;
        }
        .breaking-btn {
            background-color: var(--accent-red);
            color: var(--text-white);
            font-weight: bold;
            padding: 8px 16px;
            font-size: var(--fs-ticker);
            font-family: var(--ff-ticker);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
            z-index: 2;
        }
        .ticker-wrapper {
            flex-grow: 1;
            overflow: hidden;
        }
        .ticker-content {
            display: inline-block;
            white-space: nowrap;
            padding-left: 100%;
            animation: marquee 25s linear infinite;
        }
        .ticker-content:hover {
            animation-play-state: paused;
        }
        .ticker-item {
            display: inline-block;
            font-size: var(--fs-ticker);
            font-family: var(--ff-ticker);
            color: var(--text-dark);
            margin-right: 40px;
        }
        .ticker-item i {
            color: var(--accent-red);
            margin-right: 8px;
            font-size: 0.6rem;
            vertical-align: middle;
        }

        @keyframes marquee {
            0% { transform: translate3d(0, 0, 0); }
            100% { transform: translate3d(-100%, 0, 0); }
        }

        /* Footer Styles */
        .footer-section {
            background-color: var(--secondary-navy);
            color: var(--text-light);
            padding-top: 50px;
            padding-bottom: 30px;
        }
        .footer-title {
            color: var(--text-white);
            font-weight: 600;
            font-size: calc(var(--fs-section) * 1.1);
            font-family: var(--ff-section);
            margin-bottom: 20px;
            position: relative;
        }
        .footer-title::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 0;
            width: 30px;
            height: 2px;
            background-color: var(--accent-red);
        }
        .footer-about-title {
            font-family: var(--font-english-title);
            color: var(--text-white);
            font-size: var(--fs-footer-brand);
            font-weight: bold;
        }
        .footer-text {
            font-size: var(--fs-footer);
            font-family: var(--ff-footer);
            line-height: 1.6;
        }
        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .footer-links li {
            margin-bottom: 10px;
            font-size:var(--fs-footer);
            font-family: var(--ff-footer);
        }
        .footer-links a {
            color: var(--text-light);
            text-decoration: none;
            transition: 0.2s;
        }
        .footer-links a:hover {
            color: var(--text-white);
        }
        .social-btn {
            width: 32px;
            height: 32px;
            background-color: var(--input-bg);
            color: var(--text-white);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 3px;
            text-decoration: none;
            margin-right: 4px;
            font-size: 0.85rem;
        }
        .social-btn:hover {
            background-color: var(--accent-red);
        }
        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }
        .contact-icon {
            width: 32px;
            height: 32px;
            background-color: var(--accent-red);
            color: var(--text-white);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 3px;
            margin-right: 10px;
            flex-shrink: 0;
        }
        .contact-text label {
            display: block;
            font-size: 0.72rem;
            font-family: var(--ff-footer);
            color: #718096;
            margin: 0;
            line-height: 1.2;
            font-size:var(--fs-footer);
        }
        .contact-text span, 
        .contact-text a {
            color: #e2e8f0;
            text-decoration: none;
            font-size: 0.82rem;
            font-family: var(--ff-footer);
            word-break: break-all;
            font-size:var(--fs-footer);
        }
        .subscribe-input {
            background-color: var(--text-white);
            border: 1px solid var(--input-border);
            color: var(--text-dark);
            font-size: 0.85rem;
            font-family: var(--ff-footer);
            padding: 8px 12px;
            font-size:var(--fs-footer);
        }
        .subscribe-input::placeholder {
            color: var(--text-dark);
        }
        .subscribe-input:focus {
            background-color: var(--text-white);
            color: var(--text-dark);
            border-color: var(--accent-red);
            box-shadow: none;
        }
        .btn-subscribe {
            background-color: var(--accent-red)!important;
            color: var(--text-white)!important;
            font-weight: 600;
            font-size: 0.85rem;
            font-family: var(--ff-footer);
            width: 100%;
            padding: 8px;
            border: none;
            border-radius: 3px;
            font-size:var(--fs-footer);
        }
        .btn-subscribe:hover {
            background-color: var(--accent-red-hover);
        }
        .bottom-bar {
            background-color: #050d17;
            padding: 15px 0;
            font-size: 0.8rem;
            color: #718096;
            border-top: 1px solid #0f233a;
            font-size: var(--fs-footer);
  font-family: var(--ff-footer);
        }
        .bottom-bar a {
            color: var(--gold-accent);
            text-decoration: none;
            font-weight: 600;
        }

        /* Mobile Adjustments */
        @media (max-width: 991.98px) {
            .site-title { font-size: 1.4rem; }
            .site-logo-img { max-height: 50px; }
            .site-subtitle { font-size: 0.65rem; }
            .search-popup-card {
                width: 310px;
                right: 0;
            }
        }



       /* ==============*/
        /* ==========================================
       Format 1: Category News Section
    ========================================== */
    .cat-format-1-section {
        padding: 15px 0;
        background-color: var(--light-bg, #f8f9fa);
        font-family: var(--font-bangla);
        color: var(--text-dark, #212529);
    }

    /* Category Title Header Bar */
    .cat-header-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: #e7f0f7;
        height: 42px;
        margin-bottom: 15px;
        overflow: hidden;
    }

    .cat-header-title {
        background-color: var(--primary-navy, #0b1c2d);
        color: var(--text-white, #fff);
        font-weight: 700;
        font-size: calc(var(--fs-section) * 1.15);
        font-family: var(--ff-section);
        height: 100%;
        display: flex;
        align-items: center;
        padding: 0 30px 0 16px;
        margin: 0;
        position: relative;
        clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);
    }

    .cat-header-more {
        color: var(--accent-red, #dc3545);
        font-weight: 700;
        text-decoration: none;
        font-size: calc(var(--fs-section) * 0.95);
        font-family: var(--ff-section);
        padding-right: 15px;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: color 0.2s ease;
    }

    .cat-header-more:hover {
        color: var(--accent-red-hover, #a71d2a);
        text-decoration: none;
    }

    /* Equal Height Alignment Fixes */
    .cat-format-1-section .main-row {
        display: flex;
        flex-wrap: wrap;
    }

    .news-grid-container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .news-grid-container > .row {
        height: 100%;
    }

    .news-grid-container .news-col {
        display: flex;
        flex-direction: column;
    }

    /* News Card Design */
    .f1-news-card {
        background: var(--text-white, #fff);
        border: 1px solid var(--border-color, #dee2e6);
        border-radius: 0px;
        overflow: hidden;
        height: 100%;
        display: flex;
        flex-direction: column;
        transition: all 0.25s ease;
        text-decoration: none;
        color: inherit;
    }

    .f1-news-card:hover {
        transform: translateY(-3px);
        border-color: var(--primary-navy, #0b1c2d);
        box-shadow: 0 4px 12px rgba(11, 28, 45, 0.08);
        color: inherit;
    }

    .f1-news-thumb {
        width: 100%;
        height: 130px;
        overflow: hidden;
        position: relative;
        background-color: var(--secondary-navy, #162b40);
        flex-shrink: 0;
    }

    .f1-news-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

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

    .f1-news-body {
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-grow: 1;
    }

    .f1-news-title {
        font-size:var(--title-font-size);
        font-family: var(--ff-title);
        font-weight: 700;
        color: var(--text-dark, #212529);
        margin-bottom: 6px;
        line-height: var(--lh-title);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.2s ease;
    }

    .f1-news-card:hover .f1-news-title {
        color: var(--accent-red, #dc3545);
    }

    .f1-news-excerpt {
        font-size: calc(var(--fs-excerpt) * 0.96);
        font-family: var(--ff-excerpt);
        color: var(--text-muted, #6c757d);
        line-height: var(--lh-text);
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .f1-news-meta {
        font-size: calc(var(--fs-meta) * 0.96);
        font-family: var(--ff-meta);
        color: var(--text-light, #8c98a4);
        display: flex;
        align-items: center;
        gap: 4px;
        margin-top: auto;
    }

    /* Right Side Sidebar Ad Slots */
    .f1-ad-wrapper {
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .f1-ad-banner {
        background-color: var(--text-white, #fff);
        border: 1px solid var(--border-color, #dee2e6);
        border-radius: 0px;
        width: 100%;
        flex: 1 1 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .f1-ad-banner a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .f1-ad-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Responsive adjustments */
    @media (max-width: 991.98px) {
        .f1-ad-wrapper {
            margin-top: 10px;
            height: 350px;
        }
    }
       /* ==============*/





/* Column Header Bar */
.section-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--primary-navy);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.section-cat-title {
    font-size: calc(var(--fs-section) * 1.05);
    font-family: var(--ff-section);
    font-weight: 700;
    color: var(--primary-navy);
    margin: 0;
}

.section-cat-more {
    color: var(--accent-red);
    font-size: calc(var(--fs-section) * 0.82);
    font-family: var(--ff-section);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.section-cat-more:hover {
    color: var(--accent-red-hover);
}



/* Talkshow Section Custom Styles */
.talkshow-section {
  background-color: #f8f9fa;
  /*border-top: 2px solid var(--primary-navy);*/
  /*border-bottom: 1px solid var(--border-color);*/
}

/* Section Header Styles Fix */
.ts-header {
  border-color: #e2e8f0 !important;
}

.ts-badge {
  background-color: var(--accent-red) !important;
  font-size: 0.8125rem;
  line-height: 1;
}

.ts-badge .spinner-grow {
  width: 7px;
  height: 7px;
}

.ts-title {
  color: var(--primary-navy);
  font-size: calc(var(--fs-section) * 1.125);
  font-family: var(--ff-section);
  line-height: 1.2;
}

/* "সব পর্ব" Button Fix */
.ts-btn-main {
  background-color: var(--primary-navy) !important;
  color: #ffffff !important;
  font-size: 0.75rem;
  border: none;
  transition: all 0.2s ease-in-out;
}

.ts-btn-main:hover {
  background-color: var(--accent-red) !important;
  color: #ffffff !important;
}

.ts-card {
  background: #ffffff;
  border-color: var(--border-color) !important;
}

.ts-episode-badge {
  background-color: var(--gold-accent);
  font-size: 0.6875rem;
}

.ts-date {
  font-size: calc(var(--fs-meta) * 0.917);
  font-family: var(--ff-meta);
}

.ts-main-headline {
  color: var(--text-dark);
  line-height: var(--lh-title);
  font-size: calc(var(--fs-headline) * 0.692);
  font-family: var(--ff-headline);
}

.ts-desc {
  font-size: var(--fs-excerpt);
  font-family: var(--ff-excerpt);
  line-height: var(--lh-text);
}

.ts-person-box {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.ts-host-img {
  border: 2px solid var(--primary-navy);
}

.ts-guest-img {
  border: 2px solid var(--gold-accent);
}

.ts-role-host {
  font-size: 0.5625rem;
  color: var(--accent-red);
}

.ts-role-guest {
  font-size: 0.5625rem;
  color: var(--text-muted);
}

.ts-person-name {
  font-size: 0.8125rem;
  color: var(--primary-navy);
}

.ts-sidebar-heading {
  color: var(--primary-navy);
  font-size: calc(var(--fs-section) * 0.9375);
  font-family: var(--ff-section);
}

.ts-icon-red {
  color: var(--accent-red);
}

.ts-archive-badge {
  background-color: var(--secondary-navy);
  color: #ffffff;
  font-size: 0.625rem;
}

/* Playlist Custom Scrollbar & Heights */
.ts-playlist-scroll {
  max-height: 480px;
  overflow-y: auto;
}

/* Slim Custom Scrollbar for Playlist */
.ts-playlist-scroll::-webkit-scrollbar {
  width: 4px;
}
.ts-playlist-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.ts-playlist-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-navy);
  border-radius: 2px;
}

/* Talk show episode in a list (talkshow/_item): the same size on every page */
.ts-ep {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--border-color);
  background-color: #fff;
  text-decoration: none;
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ts-ep:hover {
  border-color: var(--primary-navy);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  color: var(--text-dark);
}
.ts-ep-thumb {
  position: relative;
  flex: 0 0 150px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: #0b1c2d;
}
.ts-ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ts-ep:hover .ts-ep-thumb img {
  transform: scale(1.05);
}
.ts-ep-length {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 3px;
}
.ts-ep-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ts-ep-no {
  color: var(--accent-red);
  font-family: var(--ff-meta);
  font-size: calc(var(--fs-meta) * 1.25);
  font-weight: 700;
}
.ts-ep-title {
  font-family: var(--ff-title);
  font-size: calc(var(--title-font-size) * 1.1);
  font-weight: 700;
  line-height: var(--lh-title);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.ts-ep:hover .ts-ep-title {
  color: var(--accent-red);
}
.ts-ep-time {
  font-family: var(--ff-meta);
  font-size: calc(var(--fs-meta) * 1.083);
  color: var(--text-muted);
}
@media (max-width: 400px) {
  .ts-ep-thumb { flex-basis: 120px; }
}

.ts-item {
  border: 1px solid var(--border-color);
  background-color: #fafafa;
  transition: all 0.2s ease-in-out;
}

.ts-item:hover {
  background-color: #ffffff;
  border-color: var(--primary-navy);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.ts-thumb {
  height: 68px;
}

.ts-duration {
  background: rgba(0, 0, 0, 0.85);
  font-size: 0.625rem;
  color: #ffffff;
}

.ts-item-ep {
  font-size: calc(var(--fs-meta) * 1.083);
  font-family: var(--ff-meta);
  color: var(--accent-red);
}

/*.ts-item-title {
  font-size: 0.8125rem;
  color: var(--text-dark);
  line-height: 1.35;
}*/

.ts-item-time {
  font-size: calc(var(--fs-meta) * 1.083);
  font-family: var(--ff-meta);
  color: var(--text-muted);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: var(--title-font-size);
    font-family: var(--ff-title);
    font-weight: 700;
    color: var(--text-dark, #212529);
    margin-bottom: 6px;
    line-height: var(--lh-title);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.talkshowbtn {
    padding: 10px 10px 5px 10px;
    border-radius: 0px;
}

/* Empty advertisement slot */
.ad-placeholder {
    width: 100%;
    height: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(45deg, #f8f9fa, #f8f9fa 10px, #f1f3f5 10px, #f1f3f5 20px);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Shared by news details and talk show pages */
/* Article Body Text */
.news-body-content {
    color: var(--text-dark);
    font-size: var(--article-font-size);
    font-family: var(--ff-article);
    line-height: var(--lh-article);
}

.news-body-content p {
    margin-bottom: 20px;
}

.news-body-content blockquote {
    background-color: var(--light-bg);
    border-left: 4px solid var(--primary-navy);
    padding: 15px 20px;
    margin: 25px 0;
    font-style: italic;
    font-weight: 600;
    color: var(--primary-navy);
}

/* Social Share Bar */
.news-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    margin-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.share-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 5px;
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.share-btn.facebook { background-color: #1877f2; }
.share-btn.twitter { background-color: #000000; } /* X / Twitter */
.share-btn.whatsapp { background-color: #25d366; }
.share-btn.linkedin { background-color: #0a66c2; }
.share-btn.copy-link { background-color: var(--secondary-navy); }

/* Shared by news details, category and subcategory pages */
/* --- Right Column: Sidebar Latest News --- */
.sidebar-widget {
    background: var(--text-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.sidebar-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--primary-navy);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.sidebar-title {
    font-size: calc(var(--fs-section) * 1.1);
    font-family: var(--ff-section);
    font-weight: 700;
    color: var(--primary-navy);
    margin: 0;
}

.sidebar-post-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-post-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.sidebar-post-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--secondary-navy);
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-post-card:hover .sidebar-post-thumb img {
    transform: scale(1.08);
}

.sidebar-post-title {
    font-size: var(--title-font-size);
    font-weight: 700;
    color: var(--text-dark);
    line-height: var(--lh-title);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
    font-size: var(--title-font-size);
  font-family: var(--ff-title);
}

.sidebar-post-card:hover .sidebar-post-title {
    color: var(--accent-red);
}

.sidebar-post-time {
    font-size: calc(var(--fs-meta) * 0.96);
    font-family: var(--ff-meta);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================
   Breadcrumb & Social Share Additions
========================================== */
/* Breadcrumb */
.news-breadcrumb {
    padding: 12px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.news-breadcrumb ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.news-breadcrumb li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-breadcrumb li a:hover {
    color: var(--accent-red);
}

.news-breadcrumb li.active {
    color: var(--primary-navy);
    font-weight: 600;
}

.news-breadcrumb .separator {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* =========================================================
   CARD POLISH
   One visual language for every card on the front-end: soft border,
   rounded corners, light shadow, lift + image zoom on hover.
   Only visual properties change; widths, heights and grids stay as
   designed. Selectors start with "body" so they win over the
   page-level <style> blocks.
   ========================================================= */
:root {
    --card-radius: 0;
    --thumb-radius: 0;
    --card-border: #e6e9ef;
    --card-border-hover: #d3d9e2;
    --card-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.04);
    --card-shadow-hover: 0 14px 30px -12px rgba(16, 24, 40, 0.22);
    --meta-color: #7a8494;
}

body {
    background-color: #f3f5f8;
}

/* Card surfaces */
body .news-card,
body .f1-news-card,
body .latest-card,
body .f3-cat-column,
body .f4-cat-block,
body .video-outer-box,
body .gallery-outer-box,
body .most-read-sidebar,
body .f1-ad-banner,
body .ad-banner-card,
body .news-details-card,
body .sidebar-widget,
body .video-thumb-card {
    background-color: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

body .ts-card {
    border: 1px solid var(--card-border) !important;
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow) !important;
    overflow: hidden;
}

/* Clickable cards lift on hover */
body .news-card,
body .f1-news-card,
body .latest-card,
body .video-thumb-card,
body .ts-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

body .news-card:hover,
body .f1-news-card:hover,
body .latest-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-border-hover);
    box-shadow: var(--card-shadow-hover);
}

/* Image zoom on hover */
body .main-featured-img-wrapper img,
body .side-news-img-wrapper img,
body .f1-news-thumb img,
body .f3-post-thumb img,
body .f4-main-thumb,
body .f4-sub-thumb img,
body .thumb-img-box img,
body .sidebar-post-thumb img,
body .ts-thumb {
    transition: transform 0.5s ease;
}

body .news-card:hover .main-featured-img-wrapper img,
body .news-card:hover .side-news-img-wrapper img,
body .f1-news-card:hover .f1-news-thumb img,
body .f3-post-card:hover .f3-post-thumb img,
body .f4-main-post:hover .f4-main-thumb,
body .f4-sub-item:hover .f4-sub-thumb img,
body .video-thumb-card:hover .thumb-img-box img,
body .sidebar-post-card:hover .sidebar-post-thumb img,
body .ts-item:hover .ts-thumb {
    transform: scale(1.05);
}

/* Titles turn red on hover */
body .main-featured-title a,
body .side-news-title a,
body .f1-news-title,
body .latest-card-title,
body .most-read-title,
body .f3-post-title,
body .f4-sub-title,
body .sidebar-post-title,
body .ts-item-title,
body .thumb-details h6 {
    transition: color 0.2s ease;
}

body .news-card:hover .main-featured-title a,
body .news-card:hover .side-news-title a,
body .f1-news-card:hover .f1-news-title,
body .latest-card:hover .latest-card-title,
body .most-read-title:hover,
body .f3-post-card:hover .f3-post-title,
body .f4-sub-item:hover .f4-sub-title,
body .sidebar-post-card:hover .sidebar-post-title,
body .ts-item:hover .ts-item-title,
body .video-thumb-card:hover .thumb-details h6 {
    color: var(--accent-red);
}

/* Small thumbnails get rounded corners */
body .latest-card img,
body .f3-post-thumb,
body .f4-sub-thumb,
body .thumb-img-box,
body .sidebar-post-thumb,
body .ts-thumb {
    border-radius: var(--thumb-radius) !important;
}

body .latest-card img {
    object-fit: cover;
    width: 100%;
}

/* Category badges on images */
body .category-badge-main,
body .category-badge-side {
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

body .category-badge-main {
    padding: 4px 12px;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.35);
}

body .category-badge-side {
    background-color: rgba(11, 28, 45, 0.88);
    backdrop-filter: blur(2px);
}

/* Date / time lines */
body .news-meta,
body .news-time-text,
body .f1-news-meta,
body .f3-post-meta,
body .f4-sub-meta,
body .sidebar-post-time,
body .thumb-details span,
body .ts-item-time {
    color: var(--meta-color);
}

/* Section header bars: rounded with a navy underline */
body .cat-header-bar,
body .news-header-bar,
body .section-title-bar {
    border-radius: 0;
    background-color: #eaf1f8;
    box-shadow: inset 0 -2px 0 var(--primary-navy);
}

body .video-gallery-section .section-title-bar {
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

body .video-outer-box {
    border-top: none;
    border-radius: 0 0 var(--card-radius) var(--card-radius);
}

body .gallery-outer-box .section-title-bar {
    border-radius: 0;
}

/* "সর্বশেষ খবর": active card gets a red accent instead of a heavy border */
body .latest-card.active-card {
    border: 1px solid var(--card-border);
    box-shadow: inset 3px 0 0 var(--accent-red), var(--card-shadow);
}

/* "সর্বাধিক পঠিত": grows with its content (nothing gets cut off) */
body .most-read-sidebar {
    position: static !important;
    height: auto !important;
    min-height: 100%;
    padding: 6px 16px !important;
}

body .most-read-list {
    flex: 1 1 auto;
    height: auto !important;
}

/* On small screens the box no longer needs a reserved height (it was for the old absolute layout) */
@media (max-width: 991.98px) {
    body .sidebar-wrapper {
        min-height: 0;
    }

    body .most-read-list {
        justify-content: flex-start !important;
    }
}

body .most-read-item {
    padding: 7px 0 !important;
    border-bottom: 1px dashed var(--card-border) !important;
}

body .most-read-item:last-child {
    border-bottom: none !important;
}

body .rank-badge {
    background-color: var(--primary-navy);
    box-shadow: none;
    font-weight: 700;
}

body .most-read-item:nth-child(-n+3) .rank-badge {
    background-color: var(--accent-red);
    box-shadow: 0 3px 8px rgba(255, 59, 48, 0.3);
}

/* Three-column category lists: one card per column, clean rows inside */
body .f3-cat-column {
    padding: 12px 14px;
}

body .f3-cat-header {
    position: relative;
}

body .f3-cat-header::after,
body .sidebar-title-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 48px;
    height: 2px;
    background-color: var(--accent-red);
}

body .sidebar-title-wrap {
    position: relative;
}

body .f3-post-card {
    border: none;
    border-bottom: 1px solid #eef1f5;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    transition: background-color 0.2s ease;
}

body .f3-post-card:last-child {
    border-bottom: none;
}

body .f3-post-card:hover {
    background-color: #f5f8fb;
    border-color: #eef1f5;
    box-shadow: none;
    transform: none;
}

/* Category blocks with a hero image */
body .f4-main-overlay {
    background: linear-gradient(to top, rgba(5, 13, 23, 0.95) 0%, rgba(5, 13, 23, 0.55) 55%, transparent 100%);
}

body .f4-sub-item:hover {
    background-color: #f5f8fb;
}

/* Video and talk show playlists */
body .video-thumb-card {
    border-radius: 0;
}

body .video-thumb-card:hover,
body .video-thumb-card.active {
    border-color: var(--card-border-hover);
    background-color: #f5f8fb;
    box-shadow: inset 3px 0 0 var(--accent-red), var(--card-shadow);
}

body .main-video-wrapper {
    border-radius: 0;
}

body .ts-item {
    border-radius: 0 !important;
    background-color: #fff;
    border-color: var(--card-border);
}

body .ts-item:hover {
    background-color: #f5f8fb;
    border-color: var(--card-border-hover);
    box-shadow: var(--card-shadow);
}

/* Photo gallery caption */
body .gallery-caption-overlay {
    background: linear-gradient(to top, rgba(5, 13, 23, 0.9) 0%, rgba(5, 13, 23, 0.55) 60%, transparent 100%);
}

/* News details page */
body .news-featured-img-wrap {
    border-radius: 0;
}

body .news-details-card {
    padding: 24px;
}

body .sidebar-post-card {
    border-radius: 0;
}

/* Talk show */
body .ts-person-box {
    border-radius: 0 !important;
}

body .ts-duration,
body .ts-episode-badge,
body .ts-archive-badge {
    border-radius: 4px !important;
}

body a.ts-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body a.ts-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-border-hover) !important;
    box-shadow: var(--card-shadow-hover) !important;
}

body a.ts-card img {
    transition: transform 0.5s ease;
}

body a.ts-card:hover img {
    transform: scale(1.05);
}

/* Respect "reduce motion" system settings */
@media (prefers-reduced-motion: reduce) {
    body *,
    body *::before,
    body *::after {
        transition-duration: 0.01ms !important;
    }
}

/* "সর্বশেষ খবর" grid fills the column, so both sides of the section end at the same line */
body .latest-grid .latest-card {
    width: 100%;
    display: flex;
    align-items: center;
}

body .latest-grid .latest-card > .row {
    flex: 1 1 auto;
}

/* Card images: 3:2 ratio (e.g. 285 x 190) with square corners.
   The height follows the card width, so every card image has the same shape. */
body .f1-news-thumb,
body .side-news-img-wrapper,
body .f3-post-thumb,
body .f4-sub-thumb,
body .sidebar-post-thumb {
    height: auto !important;
    aspect-ratio: 3 / 2;
}

body .latest-card img {
    height: auto !important;
    aspect-ratio: 3 / 2;
}

body a.ts-card img {
    aspect-ratio: 3 / 2 !important;
}

/* Hero: the big lead image grows to match the taller side cards, so the two sides stay level */
@media (min-width: 992px) {
    body .hero-news-section .col-lg-7 .news-card > .main-featured-img-wrapper {
        flex: 1 1 auto;
        height: auto;
        min-height: 350px;
    }

    body .hero-news-section .col-lg-7 .news-card > .main-featured-img-wrapper img {
        position: absolute;
        inset: 0;
    }

    body .hero-news-section .col-lg-7 .news-card > div {
        flex-grow: 0 !important;
    }
}

/* =========================================================
   CATEGORY / SUBCATEGORY LISTING
   ========================================================= */
.listing-section {
    padding: 15px 0 40px;
    font-family: var(--font-bangla);
}

.listing-section .cat-header-bar {
    margin-bottom: 14px;
}

.listing-count {
    margin-left: auto;
    padding-right: 14px;
    font-size: var(--fs-meta);
    font-family: var(--ff-meta);
    color: var(--meta-color, #7a8494);
    white-space: nowrap;
}

.listing-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.listing-chip {
    padding: 6px 14px;
    border: 1px solid var(--card-border, #e6e9ef);
    background-color: #fff;
    color: var(--text-dark);
    font-size: var(--fs-menu);
    font-family: var(--ff-menu);
    text-decoration: none;
    transition: all 0.2s ease;
}

.listing-chip:hover {
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.listing-chip.active {
    background-color: var(--primary-navy);
    border-color: var(--primary-navy);
    color: #fff;
}

/* Lead news on the first page */
body .f1-lead .f1-news-body {
    padding: 16px 18px;
}

body .f1-lead .f1-news-title {
    font-size: calc(var(--fs-headline) * 0.92);
    font-family: var(--ff-headline);
    -webkit-line-clamp: 3;
}

body .f1-lead .f1-news-excerpt {
    font-size: calc(var(--fs-excerpt) * 1.15);
    -webkit-line-clamp: 3;
}

.listing-empty {
    background-color: #fff;
    border: 1px solid var(--card-border, #e6e9ef);
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.listing-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #c5ccd6;
}

.listing-pagination {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.listing-pagination .page-link {
    color: var(--primary-navy);
    border-radius: 0 !important;
}

.listing-pagination .page-item.active .page-link {
    background-color: var(--primary-navy);
    border-color: var(--primary-navy);
    color: #fff;
}

.listing-section .news-breadcrumb {
    margin-bottom: 12px;
}

/* Sidebar sticks while scrolling the news list */
@media (min-width: 992px) {
    .listing-section .sidebar-widget {
        position: sticky;
        top: 15px;
    }
}

/* Pagination: hide Laravel's English "Showing x to y of z results" line */
.listing-pagination p.small.text-muted,
.cat-format-1-section .pagination-wrap p.small.text-muted {
    display: none;
}

.listing-pagination nav > .d-sm-flex {
    justify-content: center !important;
}

/* ==========================================
   Accounts & reader tools (login, comments, likes, read later)
========================================== */

/* Header account menu */
.header-login-link {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-login-link:hover {
    color: var(--accent-red);
}

.header-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    padding: 0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.header-account-btn img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.header-account .dropdown-menu {
    border-radius: 0;
    font-size: 0.92rem;
    min-width: 220px;
}

.header-account .dropdown-header {
    color: var(--text-dark);
    font-weight: 700;
    white-space: normal;
}

.header-account .dropdown-header small {
    color: var(--text-muted);
    font-weight: 400;
}

/* Login & register */
.auth-section {
    padding: 48px 0 64px;
    background: var(--light-bg);
}

.auth-card {
    max-width: 460px;
    margin: 0 auto;
    background: #fff;
    padding: 32px 28px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
    border-top: 3px solid var(--accent-red);
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 22px;
}

.auth-card .form-control {
    border-radius: 0;
    padding: 10px 12px;
}

.auth-submit {
    border-radius: 0;
    padding: 10px;
    font-weight: 700;
}

.auth-switch {
    text-align: center;
    margin: 18px 0 0;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--accent-red);
    font-weight: 700;
}

/* News page: preview notice, lead, video, photos */
.preview-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff8e1;
    border-left: 4px solid #f0ad00;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.preview-banner i {
    color: #b88300;
    margin-top: 3px;
}

.news-lead {
    font-size: calc(var(--article-font-size) * 1.12);
    line-height: var(--lh-text);
    color: var(--text-dark);
    font-weight: 600;
    border-left: 3px solid var(--accent-red);
    padding-left: 12px;
    margin-bottom: 16px;
}

.news-video {
    margin: 20px 0;
    background: #000;
}

.news-video-link {
    margin: 16px 0;
}

.news-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin: 20px 0;
}

.news-photo-item img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.news-photo-item:hover img {
    opacity: 0.85;
}

/* Like / read later / report */
.reader-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 14px 0;
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
}

.reader-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-dark);
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.reader-btn:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.reader-btn.active {
    border-color: var(--accent-red);
    background: #fff3f2;
    color: var(--accent-red);
}

.reader-btn:disabled {
    opacity: 0.6;
}

.reader-count {
    background: var(--light-bg);
    padding: 0 8px;
    border-radius: 10px;
    font-size: 0.82rem;
}

.reader-btn-report {
    color: var(--text-muted);
}

/* Comments */
.news-comments {
    background: #fff;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.comment-total {
    font-weight: 400;
    color: var(--text-muted);
}

.comment-form,
.comment-item {
    display: flex;
    gap: 12px;
}

.comment-form {
    margin: 16px 0 8px;
}

.comment-form .form-control,
.reply-form .form-control {
    border-radius: 0;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-login {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: var(--light-bg);
    padding: 14px 16px;
    margin: 16px 0 8px;
}

.comment-login i {
    color: var(--accent-red);
    font-size: 1.2rem;
}

.comment-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
    border-bottom: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-role {
    background: var(--accent-red);
    color: #fff;
    font-size: 0.72rem;
    padding: 1px 7px;
}

.comment-time {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.comment-body {
    white-space: pre-line;
    word-wrap: break-word;
    line-height: 1.6;
}

.comment-actions {
    margin-top: 4px;
}

.comment-link {
    border: 0;
    background: none;
    padding: 0;
    margin-right: 12px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.comment-link:hover {
    color: var(--accent-red);
}

.comment-reply {
    padding: 12px 0 0;
    margin-top: 10px;
    border-bottom: 0;
    border-top: 1px dashed var(--border-color);
}

.comment-reply .comment-avatar {
    width: 32px;
    height: 32px;
}

.reply-form {
    margin-top: 10px;
}

.comment-pending {
    opacity: 0.8;
    background: #fffbea;
    padding: 12px;
}

/* Reader account pages */
.account-section {
    padding: 28px 0 56px;
    background: var(--light-bg);
}

.account-nav,
.account-card {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.account-card {
    padding: 22px;
    margin-bottom: 20px;
}

.account-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 16px;
}

.account-card .form-control {
    border-radius: 0;
}

.account-user {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid var(--border-color);
}

.account-user img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.account-user .name {
    font-weight: 700;
}

.account-user .email {
    font-size: 0.82rem;
    color: var(--text-muted);
    word-break: break-all;
}

.account-nav nav a,
.account-nav nav button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 18px;
    color: var(--text-dark);
    text-decoration: none;
    border: 0;
    border-left: 3px solid transparent;
    background: none;
    text-align: left;
}

.account-nav nav a:hover,
.account-nav nav button:hover {
    background: var(--light-bg);
    color: var(--accent-red);
}

.account-nav nav a.active {
    border-left-color: var(--accent-red);
    background: #fff3f2;
    color: var(--accent-red);
    font-weight: 700;
}

.account-nav nav i {
    width: 18px;
    text-align: center;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.account-stats > * {
    background: #fff;
    padding: 16px;
    text-align: center;
    color: var(--text-dark);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.account-stats b {
    display: block;
    font-size: 1.6rem;
    color: var(--accent-red);
}

.account-stats span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.account-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.saved-item {
    position: relative;
    height: 100%;
}

.saved-remove {
    position: absolute;
    top: 6px;
    right: 6px;
}

.saved-remove button {
    width: 28px;
    height: 28px;
    border: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.8rem;
}

.saved-remove button:hover {
    background: var(--accent-red);
}

.my-comment {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.my-comment:last-child {
    border-bottom: 0;
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 24px 18px;
    }

    .reader-btn-report {
        margin-left: 0 !important;
    }
}
