:root {
    /* Brand Colors */
    --navy: #1a3251;
    --navy-dark: #0f2038;
    --red: #ff3c3c;
    --red-hover: #e02b2b;
    --white: #ffffff;

    /* Grays & Utilities */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Layout */
    --container-max: 1140px;
    --header-height: auto;
    --font-heading: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Shadows & Radii */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius-sm: 4px;
    /* Keeping it sharp/small for news feel */
    --radius-md: 8px;
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--gray-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container-new {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================
   SITE HEADER & NAVIGATION
   ========================================= */

/* Main Header */
.site-header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 101;
}

.site-header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 30px;
    width: auto;
}

/* Header Socials */
.header-socials {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 15px;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: var(--white);
}

.social-btn i {
    pointer-events: none;
}

.social-btn.facebook {
    background-color: #3b5998;
}

.social-btn.twitter {
    background-color: #000000;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.youtube {
    background-color: #ff0000;
}

.social-btn.telegram {
    background-color: #0088cc;
}

@media (max-width: 991px) {
    .header-socials {
        display: none;
    }
}

/* Header Ad Banner (728x90) */
.header-ad {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 16px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .header-ad {
        /* Scale down on small screens, or hide entirely */
        max-width: 100%;
        height: 100px !important;
        margin-bottom: 15px !important;
        padding: 5px;
        font-size: 12px;
    }
}

/* Main Navigation */
.main-nav {
    background-color: var(--red);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Slanted dark blue background on the right */
.main-nav .container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: -50vw;
    /* Extend to edge of screen */
    width: calc(50vw + 100px);
    /* Extends 100px into the inside of the container */
    background-color: var(--navy);
    transform: skewX(-25deg);
    /* The diagonal cut angle */
    z-index: -1;
    pointer-events: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    margin-left: -12px;
    /* Pull left by the padding size of the first item to align visually with the logo */
}

.nav-links li a {
    display: block;
    padding: 14px 12px;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Subtle hover to not clash with navy */
}

/* Dropdown Menu Styles */
.nav-links li {
    position: relative;
}

.nav-links .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--red);
    min-width: 180px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.nav-links li:hover .dropdown-menu {
    display: block;
}

.nav-links .dropdown-menu li a {
    color: var(--white);
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links .dropdown-menu li:last-child a {
    border-bottom: none;
}

.nav-links .dropdown-menu li a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--white);
}

.search-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 10px;
}

/* Breaking News Ticker */
/* Breaking News Ticker */
.breaking-ticker {
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.ticker-inner {
    display: flex;
    align-items: center;
}

/* Arrow ribbon label */
.ticker-label {
    background-color: var(--navy);
    color: var(--white);
    padding: 8px 15px;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    position: relative;
    text-transform: uppercase;
    z-index: 2;
    margin-right: 25px;
}

.ticker-label::after {
    content: "";
    position: absolute;
    right: -14px;
    /* Adjust to match the border size */
    top: 0;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 14px solid var(--navy);
}

/* Flashing text animation */
@keyframes flashWarning {
    0% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
    }

    50% {
        opacity: 0.3;
        text-shadow: none;
    }

    100% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.6);
    }
}

.ticker-label span {
    animation: flashWarning 1.5s infinite;
}

/* The scrolling marquee container */
.ticker-marquee {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 30s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
    /* Pause on hover */
}

.ticker-content a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ticker-content a:hover {
    color: var(--red);
}

.ticker-divider {
    color: var(--red);
    margin: 0 20px;
    font-weight: bold;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Mobile Header adjustments */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--navy);
    cursor: pointer;
}

@media (max-width: 991px) {

    /* Hide the entire top navigation bar on mobile because we use bottom nav */
    .main-nav {
        display: none !important;
    }

    .site-header {
        padding: 12px 0;
        border-bottom: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        /* Soft shadow to make it distinct */
        position: relative;
        z-index: 10;
    }

    .header-inner {
        justify-content: center !important;
        /* Center the logo since other elements are hidden */
    }

    .logo img {
        height: 28px;
    }

    .header-socials {
        display: none;
    }
}

/* =========================================
   LAYOUT GRIDS
   ========================================= */
.main-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 10px 10px;
}

.content-primary {
    flex: 1;
    min-width: 0;
    /* Prevents flex flex-blowouts */
}

.content-sidebar {
    width: auto;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .content-sidebar {
        width: 100%;
    }
}

/* =========================================
   COMPONENTS - CARDS & HERO
   ========================================= */

/* VERY TALL HERO CAROUSEL (MANŞET) */
.hero-manset {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 0px;
    background-color: var(--navy-dark);
}

@media (max-width: 768px) {
    .hero-manset {
        height: 300px;
        min-height: 300px;
    }

    .breaking-ticker,
    .flash-news-banner {
        display: none !important;
    }
}

.hero-manset img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 32, 56, 0.95) 0%, rgba(15, 32, 56, 0.4) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

/* Hero Carousel Indicators */
#heroMansetSlider .carousel-indicators button {
    width: 35px;
    height: 3px;
    background-color: var(--white);
    opacity: 0.4;
    border: none;
    border-radius: 2px;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

#heroMansetSlider .carousel-indicators {
    z-index: 105;
    bottom: 0;
    margin: 0;
    padding: 20px 0 15px 0;
    gap: 8px;
    pointer-events: auto;
}

#heroMansetSlider .carousel-control-prev,
#heroMansetSlider .carousel-control-next {
    z-index: 110;
}

#heroMansetSlider .carousel-indicators button.active {
    opacity: 1;
    background-color: #ff3c3c;
}

/* White Oval Category Pill inside image */
.hero-cat-pill {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--white);
    color: var(--navy);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
}

.hero-title {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title:hover {
    color: var(--gray-200);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 20px;
    }
}

.hero-meta {
    display: flex;
    justify-content: flex-end;
    color: var(--gray-300);
    font-size: 14px;
}

/* Hero Slider Controls */
#heroMansetSlider .carousel-control-prev,
#heroMansetSlider .carousel-control-next {
    width: 60px;
    opacity: 1;
}

#heroMansetSlider .carousel-control-prev-icon,
#heroMansetSlider .carousel-control-next-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    background-size: 20px;
    transition: all 0.2s ease;
}

#heroMansetSlider .carousel-control-prev:hover .carousel-control-prev-icon,
#heroMansetSlider .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--red);
    transform: scale(1.1);
}

/* STANDARD NEWS GRID (3 columns) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

/* news-grid responsive: handled in mobile blocks below (991px = 2col, 576px = 1col) */

/* THE NEW CARD DESIGN (demokrat.az style) */
.news-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s;
    /* Rounded corners as requested */
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
}

.news-card-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: var(--gray-100);
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.03);
}

/* Navy & Red Date Badge Overlay */
.card-date-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
    z-index: 2;
    pointer-events: none;
}

.badge-top,
.badge-bottom {
    display: inline-block;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    text-transform: uppercase;
}

.badge-top {
    background-color: var(--navy);
    border-top-right-radius: var(--radius-sm);
}

.badge-bottom {
    background-color: var(--red);
    border-top-left-radius: var(--radius-sm);
}

.news-card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--navy);
    margin: 0;
}

.news-card-title:hover {
    color: var(--red);
}

/* Sidebar "Xəbər Lenti" Block */
.sidebar-widget {
    border: 1px solid var(--gray-200);
    background: var(--white);
    margin-bottom: 30px;
}

.widget-header {
    background-color: var(--navy);
    color: var(--white);
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 15px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.widget-list a:hover {
    background-color: var(--gray-50);
}

.list-meta {
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    margin-top: 2px;
}

.list-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
}

.widget-list a:hover .list-title {
    color: var(--red);
}

/* Breaking news style for sidebar */
.widget-list li.breaking .list-title {
    color: var(--red);
}

/* Sidebar Ad Banner */
.sidebar-ad {
    width: 100%;
    height: 250px;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 30px;
}

/* =========================================
   STICKY MOBILE FOOTER NAV
   ========================================= */
.mobile-footer-nav {
    display: none;
    /* Hidden on desktop */
}

@media (max-width: 768px) {

    /* Only show on mobile */
    .mobile-footer-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--white);
        border-top: 1px solid var(--gray-200);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        justify-content: space-around;
        padding: 10px 0;
        /* Padding for safe area on modern iPhones */
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    /* Add padding to body so content isn't hidden behind footer */
    body {
        padding-bottom: 80px;
    }
}

.mf-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #1a3251;
    font-size: 10px;
    font-weight: 600;
    flex: 1;
}

.mf-item.active {
    color: var(--red);
}

.mf-icon-fa {
    font-size: 20px;
    margin-bottom: 2px;
}

/* =========================================
   COMPONENTS - CONTENT BLOCKS
   ========================================= */

/* Section Headers */
.section-header {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--gray-200);
    position: relative;
    width: 100%;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--red);
}

/* Tag Component */
.tag-item {
    display: inline-block;
    background-color: var(--navy);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    line-height: 1;
}

.tag-item:hover {
    background-color: var(--red);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(237, 28, 36, 0.3);
}

/* Flash News (Top Bar Above Hero) */
.flash-news-banner {
    display: flex;
    gap: 15px;
    margin-top: 1px;
    /* margin-bottom: -30px; */
    /* Reduced from -30px to bring content closer */
    overflow-x: auto;
    padding: 0 0 5px 0;
    /* Removed top padding */
    scrollbar-width: none;
    width: 100%;
    position: relative;
    z-index: 5;
}

.flash-news-banner::-webkit-scrollbar {
    display: none;
}

.flash-news-item {
    position: relative;
    flex: 0 0 calc(25% - 12px);
    /* 4 items per row */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 5px;
    /* Reduced from 8px */
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
}

.flash-news-item:hover {
    background-color: var(--gray-100);
}

.flash-news-img {
    flex: 0 0 120px !important;
    max-width: 120px !important;
    height: 85px !important;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.flash-news-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.flash-news-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    display: table;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flash-news-item:hover .flash-news-title {
    color: var(--red);
}

@media (max-width: 991px) {
    .flash-news-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .flash-news-item {
        flex: 0 0 100%;
    }
}

/* Asymmetric Block (Qarabağ / Geopolitika) */
.asymmetric-block {
    position: relative;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 20px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 30px;
    width: 100%;
}

.asym-image {
    aspect-ratio: 16/10;
    background: var(--gray-200);
    position: relative;
    height: 100%;
}

.asym-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asym-content {
    padding: 25px 25px 25px 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.asym-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 12px;
}

.asym-title:hover {
    color: var(--red);
}

.asym-excerpt {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .asymmetric-block {
        grid-template-columns: 1fr;
    }

    .asym-image {
        aspect-ratio: 16/9;
    }

    .asym-content {
        padding: 20px;
    }
}

/* Tag Cloud (Mövzular) */
.tag-section-wrapper {
    margin-top: 40px;
    margin-bottom: 40px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* =========================================
   SIDEBAR WIDGETS (PHASE 2)
   ========================================= */

/* Anons Block */
.anons-block {
    background: linear-gradient(135deg, var(--navy) 0%, var(--red) 100%);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: var(--white);
}

.anons-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.anons-block::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

.anons-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.anons-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    backdrop-filter: blur(10px);
    animation: pulse 2s ease-in-out infinite;
    font-size: 20px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.anons-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.anons-content {
    position: relative;
    z-index: 2;
}

.anons-image {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    aspect-ratio: 16/10;
}

.anons-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.anons-block:hover .anons-image img {
    transform: scale(1.05);
}

.anons-text {
    font-size: 14px;
    line-height: 1.6;
}

.anons-text strong {
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: var(--font-heading);
}

/* Keçən İl Bu Gün */
.history-block {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    color: var(--white);
    transition: all 0.3s ease;
}

.history-block:hover {
    transform: translateY(-3px);
}

.history-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.history-icon {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 16px;
}

.history-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.history-content {
    position: relative;
    z-index: 2;
}

.history-image {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 16/9;
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Thumbnail List Widget (Ən Çox Oxunan) */
.thumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.thumb-list li {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.thumb-list li:last-child {
    border-bottom: none;
}

.thumb-list-img {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--gray-100);
}

.thumb-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-list-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thumb-list li:hover .thumb-list-title {
    color: var(--red);
}

/* Buttons */
.btn-archive {
    display: block;
    width: 100%;
    background-color: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    margin-bottom: 25px;
    transition: background 0.2s;
}

.btn-archive:hover {
    background-color: var(--navy-dark);
}

/* Poll Widget */
.poll-widget {
    padding: 15px;
}

.poll-question {
    font-weight: 700;
    font-size: 15px;
    color: var(--navy);
    margin-bottom: 15px;
    line-height: 1.4;
}

.poll-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--gray-800);
}

.poll-btn {
    width: 100%;
    background-color: var(--navy);
    color: var(--white);
    border: none;
    padding: 10px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.poll-btn:hover {
    background-color: var(--red);
}

/* =========================================
   ARTICLE PAGE DETAILS (PHASE 3)
   ========================================= */

/* Article Utilities (Resizer) */
.article-utils {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.text-resize-btn {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    font-size: 14px;
    font-family: var(--font-heading);
    color: var(--navy);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

.text-resize-btn:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* Embeds & Media within Content */
.article-text figure,
.article-text iframe {
    max-width: 100%;
    margin: 30px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.article-text iframe {
    aspect-ratio: 16/9;
}

.article-caption {
    font-size: 13px;
    color: var(--gray-500);
    font-style: italic;
    text-align: center;
    margin-top: 10px;
}

/* Simple Gallery */
.article-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 35px 0;
}

@media (max-width: 576px) {
    .article-gallery {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: zoom-in;
    background: var(--gray-100);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Comments Section */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--gray-200);
}

.comments-header {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 25px;
    font-weight: 700;
}

/* Comment Form */
.comment-form {
    background: var(--gray-50);
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--navy);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26, 50, 81, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: var(--red-hover);
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-200);
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.comment-content {
    flex-grow: 1;
}

.comment-author {
    font-weight: 700;
    color: var(--navy);
    font-size: 16px;
    margin-bottom: 4px;
}

.comment-date {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.comment-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
}

/* =========================================
   GLOBAL & OTHER PAGES (PHASE 4)
   ========================================= */

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    list-style: none;
    padding: 0;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.pagination li a:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.pagination li.active span {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

/* GDPR Cookie Banner */
.gdpr-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 450px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-200);
    padding: 25px;
    z-index: 9999;
    font-family: var(--font-body);
}

.gdpr-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gdpr-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
}

.gdpr-icon {
    font-size: 24px;
}

.gdpr-text {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.gdpr-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.gdpr-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.gdpr-accept {
    background: var(--navy);
    color: var(--white);
}

.gdpr-accept:hover {
    background: var(--red);
}

.gdpr-reject {
    background: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

.gdpr-reject:hover {
    background: var(--gray-100);
    color: var(--navy);
}

@media (max-width: 576px) {
    .gdpr-banner {
        bottom: 80px;
        /* Above mobile nav */
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* Category Header (For Category/Tag Pages) */
.page-header {
    background: var(--gray-50);
    padding: 30px 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 10px 0;
}

.page-desc {
    color: var(--gray-500);
    font-size: 16px;
    max-width: 600px;
}

/* Sidebar Load More Button */
/* Premium Load More Button */
.load-more-btn {
    display: block;
    width: 150px;
    margin: 1px auto 1px;
    padding: 14px 28px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(26, 50, 81, 0.25);
    cursor: pointer;
    letter-spacing: 0.8px;
    text-decoration: none !important;
}

/* =========================================
   SIDEBAR VIDEO CAROUSEL
   ========================================= */
.sidebar-video-carousel {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.sidebar-video-carousel .carousel-inner {
    border-radius: var(--radius-sm);
    aspect-ratio: 16 / 10;
    /* Increased height by ~20px as requested */
    overflow: hidden;
}

/* Vertical Transition Animation */
.sidebar-video-carousel .carousel-item {
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.sidebar-video-carousel .carousel-item-next:not(.carousel-item-start),
.sidebar-video-carousel .active.carousel-item-end {
    transform: translateY(100%);
}

.sidebar-video-carousel .carousel-item-prev:not(.carousel-item-end),
.sidebar-video-carousel .active.carousel-item-start {
    transform: translateY(-100%);
}

.sidebar-video-carousel .carousel-item-next.carousel-item-start,
.sidebar-video-carousel .carousel-item-prev.carousel-item-end {
    transform: translateY(0);
}

/* Disable horizontal shift */
.sidebar-video-carousel .carousel-item-next,
.sidebar-video-carousel .carousel-item-prev,
.sidebar-video-carousel .carousel-item.active {
    left: 0;
}

.sidebar-video-carousel .video-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 62.5%;
    /* 16:10 Aspect Ratio */
    background: #000;
    display: block;
    overflow: hidden;
}

.sidebar-video-carousel .video-thumb-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.3s;
}

.sidebar-video-carousel .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.sidebar-video-carousel .play-btn {
    width: 46px;
    height: 46px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.sidebar-video-carousel a:hover .play-btn {
    transform: scale(1.1);
}

.sidebar-video-carousel .video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px 15px 15px;
    /* Added right padding to avoid indicators */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
    font-size: 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    z-index: 5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-video-carousel .video-thumb-wrapper:hover .video-title {
    color: var(--red);
}

/* Custom Numbered Indicators */
.carousel-indicators.sidebar-video-indicators {
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    margin: 0;
    padding: 0;
    left: auto;
    /* Override Bootstrap default */
    bottom: auto;
    /* Override Bootstrap default */
}

.carousel-indicators.sidebar-video-indicators [data-bs-target] {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-indent: 0;
    /* Show the numbers */
    opacity: 1;
    /* Override Bootstrap default */
}

.carousel-indicators.sidebar-video-indicators button.active {
    background: var(--red) !important;
    color: white !important;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
}

/* Nav Search Bar */
.nav-right {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
}

.nav-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 2px 10px;
    height: 34px;
    width: 170px;
    transition: all 0.2s ease;
}

.nav-search-form:focus-within {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    width: 190px;
}

.nav-search-form input {
    border: none;
    background: none;
    outline: none;
    font-size: 12px;
    color: var(--white);
    flex: 1;
    padding: 0;
}

.nav-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.nav-search-form button {
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    cursor: pointer;
    padding-left: 6px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.nav-search-form button:hover {
    color: var(--white);
}

/* Inline Related News Box */
.inline-related-box {
    background: #f8f9fa;
    border-left: 4px solid var(--red);
    padding: 15px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none !important;
    transition: background-color 0.2s;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Most Read Ranked List */
.most-read-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.most-read-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none !important;
    transition: background-color 0.2s;
}

.most-read-item:last-child {
    border-bottom: none;
}

.most-read-item:hover .most-read-title {
    color: var(--red);
}

.most-read-rank {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
}

.most-read-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    transition: color 0.2s;
}

.inline-related-box:hover {
    background: #f0f1f2;
}

.inline-related-img {
    flex: 0 0 100px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.inline-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inline-related-content {
    flex: 1;
}

.inline-related-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.inline-related-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin: 0;
}

.load-more-btn:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.load-more-btn:active {
    transform: translateY(0);
}

.widget-list li.hidden-news {
    display: none;
}

/* =========================================
   SIDE AD BANNERS (Desktop Only)
   ========================================= */
.side-ad {
    position: fixed;
    top: 150px;
    width: 160px;
    height: 600px;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-200);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
    font-family: var(--font-heading);
    cursor: pointer;
    overflow: hidden;
    /* Hide text if the banner gets too narrow */
    transition: width 0.3s;
}

.side-ad:hover {
    background-color: var(--gray-200);
}

/* ------ Responsive Container & Side Ad Layout ------ */

/* Hide side ads on small screens to prevent overlap altogether */
@media (max-width: 1400px) {
    .side-ad {
        display: none !important;
    }
}

/* Laptops & Standard Monitors (1261px to 1799px) 
   We dynamically scale the container so it perfectly fits between the side ads.
   180px gap reserved on each side (160px ad + 20px padding) = 360px total. */
@media (min-width: 1261px) and (max-width: 1799px) {
    .container-new {
        /* Container auto-adjusts, no overlapping possible */
        max-width: calc(100vw - 360px) !important;
    }

    .side-ad-left {
        left: 10px;
        right: auto;
    }

    .side-ad-right {
        right: 10px;
        left: auto;
    }
}

/* Large/Ultra-wide Monitors (1800px and up)
   Container reaches its absolute maximum size (1440px), 
   and ads stay pinned cleanly to the sides of the container. */
@media (min-width: 1800px) {
    .container-new {
        max-width: 1440px !important;
    }

    .side-ad-left {
        /* Half container (720px) + Gap (10px) = 730px from center */
        right: calc(50% + 730px);
        left: auto;
    }

    .side-ad-right {
        left: calc(50% + 730px);
        right: auto;
    }
}

/* =========================================
   BACK TO TOP BUTTON
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--navy);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.back-to-top:hover {
    background-color: var(--red);
    transform: translateY(-3px);
    color: var(--white);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 80px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* =========================================
   MOBILE MENU PANEL (Partial Slide-in)
   ========================================= */

/* Panel özü: ağ fon */
.mobile-menu-panel {
    width: 80vw !important;
    max-width: 320px !important;
    background: var(--white) !important;
}

/* Header: qırmızı/göy diaqonal fon */
.mobile-menu-header {
    background: linear-gradient(125deg, var(--red) 70%, var(--navy) 70%) !important;
    padding: 16px 18px;
    border-bottom: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* X Düyməsi — ağ çərçivəli */
.mobile-menu-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: var(--white);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(90deg);
}

.mobile-menu-close i {
    pointer-events: none;
    font-size: 15px;
}

/* Menyu item-ləri — ağ fonda tünd göy mətn */
.mobile-menu-panel .mobile-category-list .list-group-item {
    background-color: transparent !important;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid var(--gray-100) !important;
    padding-left: 18px;
    padding-right: 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.mobile-menu-panel .mobile-category-list .list-group-item a {
    color: var(--navy) !important;
    display: block;
    padding: 12px 0;
}

.mobile-menu-panel .mobile-category-list .list-group-item:first-child {
    border-top: none;
}

.mobile-menu-panel .mobile-category-list .list-group-item a:hover {
    color: var(--red) !important;
}

.mobile-menu-panel .mobile-category-list .list-group-item .text-muted {
    color: var(--gray-400) !important;
    opacity: 1;
}

/* =========================================
   MOBILE MODALS (SEARCH & MENU - legacy)
   ========================================= */
.mobile-modal {
    max-width: 100vw;
}

.mobile-modal .offcanvas-header {
    background-color: var(--white);
}

.mobile-category-list .list-group-item {
    border-left: none;
    border-right: none;
    border-top: none;
    padding-left: 20px;
    padding-right: 20px;
}

.mobile-category-list .list-group-item:first-child {
    border-top: none;
}

.mobile-search-form .form-control:focus {
    box-shadow: none;
    border-color: var(--gray-300);
}

.mobile-modal .btn-close {
    font-size: 12px;
}

@media (min-width: 992px) {
    .mobile-modal {
        display: none !important;
    }
}

/* =========================================
   MOBILE FEED MODAL (LENT)
   ========================================= */
#mobileFeedModal .list-group-item {
    border-left: none;
    border-right: none;
    border-top: none;
    padding-left: 15px;
    padding-right: 15px;
}

#mobileFeedModal .list-group-item:active {
    background-color: var(--gray-100);
}

.feed-modal-body::-webkit-scrollbar {
    width: 4px;
}

.feed-modal-body::-webkit-scrollbar-thumb {
    background-color: var(--gray-300);
    border-radius: 4px;
}

/* =========================================
   TASK 5: POLL & OTHER CATEGORIES (MOBILE)
   ========================================= */
.mobile-poll-widget .btn-outline-secondary {
    border-color: var(--gray-300);
    color: var(--navy);
}

.mobile-poll-widget .btn-outline-secondary:hover,
.mobile-poll-widget .btn-outline-secondary:active {
    background-color: var(--danger);
    border-color: var(--danger);
    color: var(--white);
}

.mobile-poll-widget .btn-outline-secondary:hover i,
.mobile-poll-widget .btn-outline-secondary:active i {
    color: var(--white) !important;
}

.mobile-categories-accordion .accordion-button:not(.collapsed) {
    background-color: var(--gray-100);
    color: var(--danger);
    box-shadow: none;
}

.mobile-categories-accordion .accordion-button:focus {
    box-shadow: none;
}

/* Hide these on desktop typically if we only want them on mobile, but let's keep them responsive */
@media (min-width: 992px) {

    .mobile-poll-widget,
    .mobile-categories-accordion {
        display: none;
        /* Just for mobile plan now */
    }
}

/* =========================================
   MOBILE LAYOUT & CARD FIXES (≤ 991px)
   ========================================= */
@media (max-width: 991px) {

    /* --- Body & Main Layout --- */
    body {
        background-color: var(--white);
        padding-bottom: 80px !important;
    }

    .main-layout {
        flex-direction: column;
        gap: 0;
        padding: 10px 0 0;
    }

    /* Keep columns as normal block elements - NO display:contents which breaks card grids */
    .content-primary,
    .content-sidebar {
        width: 100%;
        min-width: 0;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* --- Section Headers --- */
    .section-header {
        font-size: 17px !important;
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }

    .category-section {
        margin-bottom: 20px !important;
    }

    /* --- News Grid: 2 columns on tablet, 1 on phone --- */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px !important;
        margin-bottom: 20px !important;
    }

    /* --- News Cards --- */
    .news-card {
        border-radius: 8px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    }

    .news-card-body {
        padding: 10px !important;
    }

    .news-card-title {
        font-size: 19px !important;
        line-height: 1.4 !important;
    }

    /* --- Sidebar Widgets --- */
    .sidebar-widget {
        margin-bottom: 20px !important;
    }

    .widget-header {
        font-size: 16px !important;
    }

    .thumb-list li {
        padding: 10px 12px !important;
    }

    /* --- Sidebar Ad & Archive Button: hide on mobile --- */
    .sidebar-ad {
        display: none !important;
    }

    .btn-archive {
        display: none !important;
    }

    /* --- Mobile Poll Widget --- */
    .mobile-poll-widget {
        margin-top: 10px !important;
        margin-bottom: 20px !important;
    }

    .mobile-categories-accordion {
        margin-bottom: 20px;
    }
}

/* Phones only: 1-column grid */
@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Köşə Yazıları: 2 items on mobile (initial render before JS) */
@media (max-width: 767px) {
    .kose-item-wrapper {
        flex: 0 0 50% !important;
        min-width: 50% !important;
    }
}

/* =========================================
   BIZNES ADVOKAT BANNER (Variant 1)
   ========================================= */
.biznes-advokat-banner {
    width: 100%;
    height: 100px;
    background: #00013b;
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    text-decoration: none;
    transition: transform 0.2s;
    cursor: pointer;
    margin: 5px auto 30px auto;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.biznes-advokat-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.biznes-advokat-banner .logo-box {
    min-width: 60px;
    height: 60px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-right: 15px;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.1;
    color: #00013b;
    text-align: center;
}

.biznes-advokat-banner .logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.biznes-advokat-banner .logo-text .brand {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.biznes-advokat-banner .content {
    flex-grow: 1;
    padding: 0 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.biznes-advokat-banner .tagline {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    max-width: 400px;
}

.biznes-advokat-banner .cta {
    background: #f3ee0b;
    color: #00013b;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-left: auto;
    white-space: nowrap;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .biznes-advokat-banner {
        height: 90px;
        padding: 0 10px;
        margin: 5px auto;
    }

    .biznes-advokat-banner .logo-box {
        min-width: 50px;
        height: 50px;
        font-size: 16px;
        margin-right: 10px;
    }

    .biznes-advokat-banner .logo-text .brand {
        font-size: 11px;
    }

    .biznes-advokat-banner .content {
        padding: 0 10px;
        margin-left: 10px;
    }

    .biznes-advokat-banner .tagline {
        font-size: 12px;
        max-width: 160px;
    }

    .biznes-advokat-banner .cta {
        padding: 7px 12px;
        font-size: 10px;
    }
}

/* =========================================
   PERLA BANNER (Variant 1)
   ========================================= */
.perla-banner {
    width: 100%;
    height: 90px;
    background: #E30613;
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    font-family: 'Georama', sans-serif;
    margin: 5px auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.perla-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.perla-banner .logo-box {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-right: 15px;
    text-align: center;
    line-height: 1;
}

.perla-banner .logo-box span {
    font-weight: 400;
    font-size: 10px;
    display: block;
    margin-top: -2px;
    letter-spacing: 2px;
}

.perla-banner .content {
    flex-grow: 1;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.perla-banner .tagline {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.perla-banner .sub-tagline {
    font-size: 11px;
    opacity: 0.9;
}

.perla-banner .cta {
    background: #ffffff;
    color: #E30613;
    font-size: 10px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-left: 10px;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .perla-banner {
        height: 90px;
    }

    .perla-banner .tagline {
        font-size: 12px;
    }

    .perla-banner .sub-tagline {
        display: none;
    }

    .perla-banner .logo-box {
        font-size: 20px;
    }
}

/* =========================================
   PERLA SIDEBAR BANNER (300x250)
   ========================================= */
.sidebar-perla-banner {
    width: 100%;
    height: 250px;
    background: #E30613;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-align: center;
    font-family: 'Georama', sans-serif;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.sidebar-perla-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.sidebar-perla-banner .logo-box {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1;
}

.sidebar-perla-banner .logo-box span {
    font-weight: 400;
    font-size: 14px;
    display: block;
    margin-top: 0px;
    letter-spacing: 4px;
}

.sidebar-perla-banner .tagline {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.sidebar-perla-banner .description {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.4;
}

.sidebar-perla-banner .cta {
    background: #ffffff;
    color: #E30613;
    font-size: 12px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 769px) {

    .biznes-advokat-banner.d-md-flex+.carousel+.lower-banners+.category-section,
    .upper-banners+.carousel+.lower-banners+.category-section,
    .carousel+.category-section {
        margin-top: 30px !important;
    }
}

/* Stretched Link Utility */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    content: "";
}

/* Specific restriction for Hero Manset to protect bottom tabs */
.hero-manset .stretched-link::after {
    bottom: 60px;
}

/* Flash News Banner & Items (Containment) */
.flash-news-banner {
    position: relative;
}

/* =========================================
   MOBILE NEWS FEED CARDS (Vertical Version)
   ========================================= */
.mobile-news-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.mobile-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mobile-card-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    background: var(--gray-100);
    overflow: hidden;
}

.mobile-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.mobile-news-card:hover .mobile-card-thumb img {
    transform: scale(1.05);
}

/* Metadata Bar on Image */
.mobile-card-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    z-index: 5;
    height: 24px;
}

.mobile-meta-item {
    font-size: 11px;
    font-weight: 700;
    color: white;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    height: 100%;
}

.mobile-meta-date {
    background: var(--navy);
    flex: 1;
}

.mobile-meta-cat {
    background: var(--red);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex: 2;
}

.mobile-meta-time {
    background: #1a3251;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
}

.mobile-news-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.mobile-news-card-title {
    font-size: 19px !important;
    font-weight: 600 !important;
    color: var(--navy) !important;
    line-height: 1.4 !important;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none !important;
}