/*
Theme Name: The Fourth
Theme URI: 
Author: Arabi
Author URI: 
Description: A custom WordPress theme converted from a static HTML template for a news portal.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-fourth
*/
/* ============================================================
   দ্য ফোর্থ — Premium News Portal Stylesheet
   ============================================================ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Noto+Serif+Bengali:wght@400;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    --primary: #060d42;
    /* Deep Logo Blue */
    --primary-light: #101e66;
    /* Lighter Blue */
    --primary-lighter: #223896;
    --accent: #c62632;
    /* Vibrant Red */
    --accent-soft: #d9454f;
    --gold: #f4a261;
    --gold-light: #e9c46a;
    --surface: #f5f7fa;
    /* Clean light gray for body */
    --card-bg: #ffffff;
    --text: #2b2d42;
    /* Dark text for visibility */
    --text-muted: #6c757d;
    /* Muted text */
    --border-color: #e2e8f0;

    --gradient-nav: #ffffff;
    --gradient-footer: linear-gradient(135deg, #060d42 0%, #030722 100%);
    --gradient-accent: linear-gradient(135deg, #c62632 0%, #de444f 100%);
    --gradient-gold: linear-gradient(135deg, #f4a261 0%, #e9c46a 100%);
    --gradient-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);

    --shadow-xs: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, .12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, .18);
    --shadow-card-hover: 0 12px 36px rgba(0, 0, 0, .15);

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-pill: 50px;

    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
    --transition-fast: all .2s cubic-bezier(.4, 0, .2, 1);
    --transition-slow: all .5s cubic-bezier(.4, 0, .2, 1);
}

/* ── Global Reset & Base ───────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', 'Noto Serif Bengali', sans-serif;
    color: var(--text);
    background-color: var(--surface);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: fadeInBody .6s ease-out;
}

@keyframes fadeInBody {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-text {
    font-family: 'Noto Serif Bengali', serif;
    font-weight: 700;
    color: var(--text);
}

a {
    transition: var(--transition-fast);
}

p {
    line-height: 1.85;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection color */
::selection {
    background: var(--primary);
    color: #fff;
}

/* ── Top Bar ───────────────────────────────────────────────── */
.top-bar {
    background: #0a1128 !important;
    border-bottom: none !important;
    font-size: 0.85rem;
}

.top-bar .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.top-links a {
    position: relative;
    padding-bottom: 2px;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
}

.top-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-fast);
}

.top-links a:hover::after {
    width: 100%;
}

.top-links a:hover {
    color: #fff !important;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.8rem;
    transition: var(--transition);
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-sm);
}

.social-icons a:nth-child(1):hover {
    background: #1877f2;
    color: #fff !important;
}

.social-icons a:nth-child(2):hover {
    background: #1da1f2;
    color: #fff !important;
}

.social-icons a:nth-child(3):hover {
    background: #ff0000;
    color: #fff !important;
}

.social-icons a:nth-child(4):hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff !important;
}

/* ── Main Header / Logo ────────────────────────────────────── */
header {
    background: #ffffff !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    border-bottom: 2px solid var(--accent) !important;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(198, 38, 50, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.logo-text {
    color: var(--primary) !important;
    text-shadow: none;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.logo-text a {
    color: var(--primary) !important;
    text-decoration: none !important;
    position: relative;
}

.logo-text a:hover,
.logo-text:hover {
    color: var(--primary-light) !important;
}

header .text-muted {
    color: var(--text-muted) !important;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    font-weight: 600;
    position: relative;
}

header .text-muted::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
    background: var(--card-bg) !important;
    box-shadow: var(--shadow-sm);
    padding: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.navbar-nav .nav-link {
    color: var(--text) !important;
    font-size: 0.95rem;
    font-weight: 600;
    padding: .85rem 1rem;
    position: relative;
    transition: var(--transition);
    font-family: 'Hind Siliguri', sans-serif;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
    transform: translateX(-50%);
    transition: var(--transition);
}

/* Override Bootstrap dropdown toggle ::after */
.navbar-nav .dropdown-toggle::after {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    background: none;
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-left: .3em solid transparent;
    border-radius: 0;
    left: auto;
    bottom: auto;
    margin-left: .255em;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background-color: var(--surface);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Don't apply underline pseudo to dropdown toggle */
.navbar-nav .dropdown-toggle:hover::after,
.navbar-nav .dropdown-toggle.active::after {
    width: auto;
    background: none;
}

.navbar .form-control {
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
}

.navbar .form-control::placeholder {
    color: var(--text-muted);
}

.navbar .form-control:focus {
    background: var(--card-bg);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 81, 168, .15);
}

.navbar .btn-outline-light {
    border-radius: var(--radius-pill);
    border-color: var(--primary);
    color: var(--primary);
    font-size: 0.85rem;
}

.navbar .btn-outline-light:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Dropdown menu */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: .5rem;
    animation: dropdownFadeIn .25s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: .5rem .75rem;
    font-size: .9rem;
    color: var(--text);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--surface);
    color: var(--primary);
    padding-left: 1rem;
}

/* ── Breaking News Ticker ──────────────────────────────────── */
.breaking-ticker {
    background: var(--card-bg);
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.breaking-badge {
    background: var(--gradient-accent);
    padding: 8px 18px;
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breaking-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(.6);
    }
}

.ticker-wrap {
    overflow: hidden;
    flex: 1;
    position: relative;
}

.ticker-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, var(--primary), transparent);
    z-index: 1;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    font-family: 'Noto Serif Bengali', serif;
    font-size: .9rem;
    color: var(--text);
    padding: 8px 0;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-separator {
    display: inline-block;
    margin: 0 24px;
    color: var(--primary);
    font-weight: 700;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    border-radius: var(--radius) !important;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color) !important;
    background: var(--card-bg);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card.border-0 {
    border: none !important;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover) !important;
}

.card-img-top {
    transition: var(--transition-slow);
}

.card:hover .card-img-top {
    transform: scale(1.06);
}

.card-body {
    padding: 1.25rem;
    min-width: 0;
}

.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title a {
    color: var(--text) !important;
    text-decoration: none !important;
    display: inline;
    background-image: linear-gradient(var(--primary), var(--primary));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size .4s ease;
}

.card-title a:hover {
    color: var(--primary) !important;
    background-size: 100% 2px;
}

.card-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Lead story overlay card */
.lead-story {
    position: relative;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    min-height: 420px;
}

.lead-story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 420px;
}

.lead-story .lead-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: var(--gradient-overlay);
    color: #fff;
}

.lead-story .lead-overlay h2 {
    color: #fff;
    font-size: 1.75rem;
    line-height: 1.5;
    margin-bottom: .5rem;
}

.lead-story .lead-overlay h2 a {
    color: #fff !important;
    text-decoration: none !important;
    background-image: none;
}

.lead-story .lead-overlay h2 a:hover {
    text-decoration: underline !important;
}

.lead-story .lead-overlay p {
    color: rgba(255, 255, 255, .8);
    font-size: .9rem;
}

.lead-story .lead-overlay small {
    color: rgba(255, 255, 255, .65);
}

.lead-story .category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

/* Category badge pill */
.category-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: var(--gradient-accent);
    color: #fff;
}

.category-badge.gold {
    background: var(--gradient-gold);
    color: var(--primary);
}

/* Sub-featured cards */
.sub-card {
    position: relative;
}

.sub-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.sub-card .card-body {
    padding: 1rem 1.25rem;
}

/* ── Sidebar Widgets ───────────────────────────────────────── */
/* Top News numbered list */
.top-news-widget {
    border: none !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
}

.top-news-widget .card-header {
    background: #fff;
    border-bottom: 2px solid var(--surface);
    padding: 1rem 1.25rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    padding-left: 14px;
}

.widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-accent);
    border-radius: 4px;
}

.numbered-news {
    list-style: none;
    padding: 0;
    margin: 0;
}

.numbered-news li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.numbered-news li:last-child {
    border-bottom: none;
}

.numbered-news li:hover {
    background: var(--surface);
}

.news-number {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    min-width: 28px;
    opacity: .6;
}

.numbered-news li:hover .news-number {
    opacity: 1;
}

.numbered-news li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.5;
    transition: var(--transition-fast);
}

.numbered-news li:hover a {
    color: var(--primary);
}

/* Live widget */
.live-widget {
    border-radius: var(--radius-lg) !important;
    border: none !important;
    overflow: hidden;
    position: relative;
}

.live-widget img {
    filter: brightness(.5);
    transition: var(--transition-slow);
}

.live-widget:hover img {
    filter: brightness(.4);
    transform: scale(1.05);
}

.live-badge {
    background: var(--accent);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulseDot 1s infinite;
}

/* Tabs widget */
.nav-tabs-header .nav-link {
    border: none !important;
    border-bottom: 3px solid transparent !important;
    color: var(--text-muted) !important;
    background: var(--surface) !important;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: .9rem;
    transition: var(--transition-fast);
    padding: .85rem 1rem;
}

.nav-tabs-header .nav-link:hover {
    color: var(--primary) !important;
    background: #fff !important;
}

.nav-tabs-header .nav-link.active {
    color: var(--primary) !important;
    border-bottom-color: var(--primary) !important;
    background: #fff !important;
}

.tab-content .list-group-item {
    border-color: var(--border-color);
    padding: .75rem 1.25rem;
    transition: var(--transition-fast);
}

.tab-content .list-group-item:hover {
    background: var(--surface);
}

.tab-content .list-group-item a {
    color: var(--text) !important;
    font-weight: 500;
}

.tab-content .list-group-item:hover a {
    color: var(--primary) !important;
}

/* ── Category Page ─────────────────────────────────────────── */
.category-header {
    border-bottom: 2px solid var(--border-color) !important;
    padding-bottom: 1rem;
}

.category-header h2 {
    color: var(--primary) !important;
    position: relative;
    padding-left: 16px;
}

.category-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    background: var(--gradient-accent);
    border-radius: 4px;
}

/* Hover elevate */
.hover-elevate {
    transition: var(--transition);
}

.hover-elevate:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover) !important;
}

/* Pagination */
.pagination .page-link {
    border: none;
    color: var(--text);
    font-weight: 600;
    padding: .5rem .85rem;
    margin: 0 3px;
    border-radius: var(--radius-pill) !important;
    font-size: .85rem;
    transition: var(--transition-fast);
    background: var(--card-bg);
    box-shadow: var(--shadow-xs);
}

.pagination .page-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 26, 46, .3);
}

.pagination .page-item.disabled .page-link {
    background: var(--surface);
    color: var(--text-muted);
    opacity: .6;
}

/* Staggered card animation */
.news-page .col {
    animation: cardFadeIn .5s ease-out both;
}

.news-page .col:nth-child(1) {
    animation-delay: .05s;
}

.news-page .col:nth-child(2) {
    animation-delay: .1s;
}

.news-page .col:nth-child(3) {
    animation-delay: .15s;
}

.news-page .col:nth-child(4) {
    animation-delay: .2s;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ad placeholder */
.ad-placeholder {
    border: 2px dashed var(--border-color) !important;
    background: var(--surface) !important;
    border-radius: var(--radius) !important;
    color: var(--text-muted);
    font-size: .85rem;
}

/* ── Article Page ──────────────────────────────────────────── */
.article-body {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text);
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body .lead {
    font-size: 1.2rem;
    color: var(--text);
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

/* Pull quote */
.article-quote {
    border-left: 4px solid var(--gold) !important;
    background: linear-gradient(135deg, #fffcf0, #fef9e7) !important;
    border-radius: 0 var(--radius) var(--radius) 0 !important;
    padding: 1.5rem !important;
    margin: 2rem 0;
    position: relative;
}

.article-quote::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--gold);
    position: absolute;
    top: -10px;
    left: 16px;
    opacity: .3;
    line-height: 1;
}

.article-quote p {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text);
    position: relative;
    z-index: 1;
}

/* Social share buttons */
.social-share .btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    transition: var(--transition);
}

.social-share .btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-sm);
}

.social-share .btn-outline-primary:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.social-share .btn-outline-info:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: #fff;
}

.social-share .btn-outline-success:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

/* Related news sidebar */
.related-news li {
    transition: var(--transition-fast);
    padding-bottom: .75rem;
    margin-bottom: .75rem;
}

.related-news li:hover {
    padding-left: 6px;
}

.related-news li a {
    transition: var(--transition-fast);
}

.related-news li:hover a {
    color: var(--primary) !important;
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1rem;
    font-size: .85rem;
}

.breadcrumb-item a {
    color: var(--text-muted) !important;
}

.breadcrumb-item a:hover {
    color: var(--primary) !important;
}

.breadcrumb-item.active {
    color: var(--primary);
}

/* ── Contact Page ──────────────────────────────────────────── */
.icon-circle {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--surface), #fff) !important;
    color: var(--primary) !important;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.icon-circle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 4px rgba(26, 26, 46, .08);
    transform: translateY(-1px);
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    padding: .65rem 1rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-accent) !important;
    border: none !important;
    border-radius: var(--radius) !important;
    font-weight: 600;
    letter-spacing: .5px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
    transition: left .5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 26, 46, .3) !important;
}

/* Contact card header */
.card-header.bg-primary {
    background: var(--gradient-nav) !important;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
    background: var(--gradient-footer) !important;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--primary-lighter), var(--accent));
}

footer h5 {
    color: #fff !important;
    font-size: 1rem;
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
    display: inline-block;
    margin-bottom: 1.25rem !important;
}

footer h5::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 3px;
    margin-top: 8px;
}

.footer-logo {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .25rem;
}

footer p.small {
    color: rgba(255, 255, 255, .5) !important;
    line-height: 1.8;
}

footer .list-unstyled li {
    margin-bottom: .5rem;
}

footer .list-unstyled a {
    color: rgba(255, 255, 255, .5) !important;
    text-decoration: none !important;
    position: relative;
    padding-left: 0;
    transition: var(--transition-fast);
}

footer .list-unstyled a::before {
    content: '→';
    position: absolute;
    left: -16px;
    opacity: 0;
    transition: var(--transition-fast);
    color: var(--gold);
}

footer .list-unstyled a:hover {
    color: var(--gold) !important;
    padding-left: 18px;
}

footer .list-unstyled a:hover::before {
    opacity: 1;
    left: 0;
}

footer .social-icons a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .7) !important;
    font-size: .9rem;
}

footer .social-icons a:hover {
    color: #fff !important;
}

footer .border-top {
    border-color: rgba(255, 255, 255, .1) !important;
}

footer .border-top .text-muted {
    color: rgba(255, 255, 255, .55) !important;
}

/* ── Scroll-to-Top Button ──────────────────────────────────── */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient-nav);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 9999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-accent);
}

/* ── Utility Classes ───────────────────────────────────────── */
.border-top-3 {
    border-top-width: 3px !important;
}

.hover-primary:hover {
    color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.text-gold {
    color: var(--gold);
}

.object-fit-cover {
    object-fit: cover;
}

/* ── Language Toggle ───────────────────────────────────────── */
/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: .6rem 1rem;
        font-size: .9rem;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .lead-story {
        min-height: 300px;
    }

    .lead-story img {
        min-height: 300px;
    }

    .lead-story .lead-overlay h2 {
        font-size: 1.3rem;
    }

    .lead-story .lead-overlay {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .top-bar .social-icons {
        display: none !important;
    }

    .lead-story {
        min-height: 250px;
    }

    .lead-story img {
        min-height: 250px;
    }

    .lead-story .lead-overlay h2 {
        font-size: 1.1rem;
    }

    .lead-story .lead-overlay p {
        display: none;
    }

    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: .9rem;
    }

    header .display-4 {
        font-size: 2rem !important;
    }
}

/* ── Podcast Page ───────────────────────────────────────────── */
.podcast-hero {
    background: var(--gradient-nav);
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.podcast-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233, 69, 96, .15) 0%, transparent 70%);
    border-radius: 50%;
}

.podcast-hero h2 {
    color: #fff;
    font-weight: 800;
    font-size: 2rem;
}

.podcast-hero p {
    color: rgba(255, 255, 255, .7);
    font-size: .95rem;
}

.podcast-hero .podcast-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-right: .75rem;
}

/* Podcast Grid Card */
.podcast-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.podcast-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-soft);
}

.podcast-card .podcast-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.podcast-card .podcast-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.podcast-card:hover .podcast-thumb img {
    transform: scale(1.05);
}

.podcast-card .podcast-thumb .episode-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: var(--gradient-accent);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .3rem .7rem;
    border-radius: var(--radius-pill);
    letter-spacing: .5px;
}

.podcast-card .podcast-thumb .duration-badge {
    position: absolute;
    bottom: .75rem;
    right: .75rem;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    padding: .25rem .6rem;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}

.podcast-card .podcast-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.podcast-card .podcast-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: .5rem;
    line-height: 1.5;
}

.podcast-card .podcast-meta {
    font-size: .78rem;
    color: var(--text-muted);
    margin-bottom: .75rem;
}

.podcast-card .podcast-desc {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

/* Audio Player */
.podcast-card audio {
    width: 100%;
    height: 40px;
    border-radius: var(--radius-pill);
    outline: none;
}

.podcast-card audio::-webkit-media-controls-panel {
    background: var(--surface);
    border-radius: var(--radius-pill);
}

/* Now Playing Indicator */
.now-playing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 6px;
    animation: nowPlayingPulse 1.5s ease-in-out infinite;
}

@keyframes nowPlayingPulse {

    0%,
    100% {
        opacity: .4;
    }

    50% {
        opacity: 1;
    }
}

/* Featured Podcast (large card) */
.podcast-featured {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.podcast-featured:hover {
    box-shadow: var(--shadow-lg);
}

.podcast-featured .featured-thumb {
    position: relative;
    overflow: hidden;
}

.podcast-featured .featured-thumb img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform .4s ease;
}

.podcast-featured:hover .featured-thumb img {
    transform: scale(1.03);
}

.podcast-featured .featured-body {
    padding: 1.75rem;
}

.podcast-featured .featured-body h3 {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: .75rem;
}

.podcast-featured audio {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-pill);
    outline: none;
}

/* ── Podcast Page Specifics ── */
.podcast-sidebar-list .list-group-item {
    transition: background-color .2s;
}

.podcast-sidebar-list .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.podcast-grid-card {
    transition: transform .3s, box-shadow .3s;
    border: none;
}

.podcast-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.podcast-grid-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.custom-audio-player-light {
    height: 36px;
    border-radius: 20px;
}

/* Multimedia Section Contrast Fix */
.multimedia-section .section-title {
    color: #fff !important;
}

/* Custom Audio Player */
.custom-audio-player {
    transition: var(--transition-fast);
}
.custom-audio-player .audio-progress-container {
    overflow: hidden;
    height: 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    cursor: pointer;
}
.custom-audio-player .audio-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.1s linear;
}
.custom-audio-player.theme-dark .audio-progress-container {
    background: rgba(255,255,255,0.2);
}
.custom-audio-player.theme-dark .audio-time {
    color: rgba(255,255,255,0.7) !important;
}
.custom-audio-player .play-pause-btn {
    transition: transform 0.2s;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.custom-audio-player .play-pause-btn:active {
    transform: scale(0.9);
}

/* ── Extracted from index.html inline styles ──────────────── */
.lead-story-card img { transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
                                .lead-story-card:hover img { transform: scale(1.04); }
                                .lead-story-text-box { transition: box-shadow 0.4s ease, transform 0.4s ease; }
                                .lead-story-card:hover .lead-story-text-box { box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important; transform: translateY(-3px); }
                                .sub-card img { transition: transform 0.6s ease; }
                                .sub-card:hover img { transform: scale(1.08); }
                                .sub-card-title { transition: color 0.3s; font-family: 'Noto Serif Bengali', serif; }
                                .sub-card:hover .sub-card-title { color: var(--primary) !important; }
#mm-sidebar-tabs .nav-link.active { background: rgba(255,255,255,0.1) !important; border-bottom: 2px solid #dc3545; }
.site-header img { transform: scale(1.3); transform-origin: center; }

/* ── Sidebar Widgets ──────────────────────────────────────── */
.sidebar-top-news {
    background:#fff; border-radius:16px; overflow:hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #eaecf0; margin-bottom:1.5rem;
}
.sidebar-top-news .stn-header {
    background: var(--primary); color:#fff;
    padding: 0.85rem 1.25rem;
    display:flex; align-items:center; gap:8px;
}
.sidebar-top-news .stn-header h5 {
    font-size:1rem; font-weight:700; color:#fff; margin:0;
}
.stn-item {
    display:flex; align-items:flex-start; gap:10px;
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid #f0f2f5;
    text-decoration:none; transition: background 0.2s;
}
.stn-item:last-child { border-bottom:none; }
.stn-item:hover { background:#f8f9fb; }
.stn-item .stn-num {
    font-family:'Noto Serif Bengali', serif;
    font-size:1.4rem; font-weight:700;
    color: var(--accent); opacity:0.5; line-height:1;
    min-width:26px; flex-shrink:0; transition: opacity 0.2s;
}
.stn-item:hover .stn-num { opacity:1; }
.stn-item .stn-text h6 {
    font-size:0.86rem; font-weight:600; color: var(--text);
    line-height:1.5; margin: 0 0 3px; transition: color 0.2s;
}
.stn-item:hover .stn-text h6 { color: var(--primary); }
.stn-item .stn-text small { font-size:0.72rem; color: var(--text-muted); }

/* Latest / Most Read tabs */
.sidebar-tabs-widget {
    background:#fff; border-radius:16px; overflow:hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #eaecf0; margin-bottom:1.5rem;
}
.stw-tabs { display:flex; border-bottom: 2px solid #eaecf0; }
.stw-tab-btn {
    flex:1; background:none; border:none;
    padding: 0.85rem 0.5rem;
    font-family:'Noto Serif Bengali', serif;
    font-size:0.9rem; font-weight:600;
    color: var(--text-muted); cursor:pointer; transition: all 0.2s;
    border-bottom: 3px solid transparent; margin-bottom:-2px;
}
.stw-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.stw-tab-btn:hover:not(.active) { color: var(--text); background:#f9fafb; }
.stw-pane { display:none; }
.stw-pane.active { display:block; }
.stw-item {
    display:flex; align-items:flex-start; gap:10px;
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid #f0f2f5;
    text-decoration:none; transition: background 0.2s;
}
.stw-item:last-child { border-bottom:none; }
.stw-item:hover { background:#f8f9fb; }
.stw-item .stw-num {
    font-family:'Noto Serif Bengali', serif;
    font-size:1.35rem; font-weight:700;
    min-width:26px; flex-shrink:0;
    line-height:1; opacity:0.45; transition: opacity 0.2s;
}
.stw-item:hover .stw-num { opacity:1; }
.stw-item .stw-text h6 {
    font-size:0.84rem; font-weight:600; color: var(--text);
    line-height:1.5; margin: 0 0 3px; transition: color 0.2s;
}
.stw-item:hover .stw-text h6 { color: var(--primary); }
.stw-item .stw-text small { font-size:0.72rem; color: var(--text-muted); }
.stw-num.latest-num  { color: var(--accent); }
.stw-num.popular-num { color: #f4a261; }

/* New Thumbnail Styles for Tabs Widget */
.stw-thumb {
    width: 65px; height: 50px;
    border-radius: 6px; overflow: hidden; flex-shrink: 0;
}
.stw-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.stw-item:hover .stw-thumb img {
    transform: scale(1.05);
}

/* Sidebar Photo widget */
.sidebar-photo-widget {
    background:#fff; border-radius:16px; overflow:hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #eaecf0; margin-bottom:1.5rem;
}
.sidebar-photo-widget .sph-header {
    background: linear-gradient(135deg,#1a1a2e,#16213e);
    color:#fff; padding: 0.85rem 1.25rem;
    display:flex; align-items:center; gap:8px;
}
.sidebar-photo-widget .sph-header h5 {
    font-size:1rem; font-weight:700; color:#fff; margin:0;
}
.sph-img-wrap { position:relative; overflow:hidden; }
.sph-img-wrap img { width:100%; aspect-ratio:4/3; object-fit:cover; transition: transform 0.4s; }
.sph-img-wrap:hover img { transform: scale(1.05); }
.sph-overlay {
    position:absolute; inset:0;
    background: linear-gradient(to top,rgba(0,0,0,0.75) 0%,transparent 60%);
    display:flex; align-items:flex-end; padding:1rem;
}
.sph-overlay p { color:#fff; font-size:0.85rem; font-weight:600; margin:0; line-height:1.4; }
