/*
================================================================================
 COSMINEWS MODERN EDITORIAL DESIGN SYSTEM (SQUARED / SHARP BORDERS ONLY)
 Inspired by: The New York Times, Reuters, BBC, The Verge, Bloomberg
================================================================================
*/

:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;

    --brand-primary: #1d4ed8;
    --brand-primary-hover: #1e40af;
    --brand-accent: #ea580c;
    --brand-danger: #dc2626;
    --brand-success: #16a34a;

    --cat-gundem: #dc2626;
    --cat-politika: #4338ca;
    --cat-ekonomi: #047857;
    --cat-teknoloji: #0284c7;
    --cat-dunya: #2563eb;
    --cat-spor: #d97706;
    --cat-saglik: #0d9488;
    --cat-bilim: #7c3aed;
    --cat-kultur: #db2777;

    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition-fast: 0.18s ease-in-out;
    --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-bs-theme="dark"] {
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   GLOBAL RESET: STRICTLY NON-OVAL / SQUARED / SHARP EDGES
   ========================================================================== */

*,
*::before,
*::after,
.btn,
.badge,
.card,
.card-header,
.card-body,
.card-footer,
.form-control,
.form-select,
.input-group,
.input-group-text,
.dropdown-menu,
.dropdown-item,
.modal-content,
.alert,
.pagination .page-link,
.hero-main-card,
.hero-sub-card,
.news-card,
.news-card-img,
.news-main-img,
.related-thumb,
.author-avatar,
.author-avatar-lg,
.tag-pill,
.btn-share,
.image-caption,
.brand-badge,
.popular-rank,
.editors-pick-item img,
.rounded,
.rounded-0,
.rounded-1,
.rounded-2,
.rounded-3,
.rounded-4,
.rounded-5,
.rounded-top,
.rounded-bottom,
.rounded-start,
.rounded-end,
.rounded-circle,
.rounded-pill {
    border-radius: 0 !important;
}

/* ==========================================================================
   BASE TYPOGRAPHY & BODY
   ========================================================================== */

body {
    font-family: var(--font-primary);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    line-height: 1.6;
    letter-spacing: -0.012em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
    font-weight: 700;
}

.fw-extrabold {
    font-weight: 800;
}

a {
    transition: color var(--transition-fast);
}

/* ==========================================================================
   TOP HEADER & UTILITY BAR
   ========================================================================== */

.top-header-bar {
    position: relative;
    z-index: 1040;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--bs-border-color);
    letter-spacing: -0.005em;
}

.top-header-bar .dropdown {
    position: relative;
}

.top-header-bar .dropdown-menu,
.country-dropdown .dropdown-menu,
.language-dropdown .dropdown-menu {
    z-index: 1060 !important;
}

.language-flag, .flag-icon-xs {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 0 !important;
    border: 1px solid rgba(0,0,0,0.1);
    vertical-align: middle;
}

.theme-toggle {
    font-size: 1rem;
    color: var(--bs-body-color);
    transition: transform var(--transition-fast);
}
.theme-toggle:hover {
    transform: rotate(15deg);
    color: var(--brand-primary);
}

/* ==========================================================================
   MAIN NAVBAR & BRAND MASTHEAD
   ========================================================================== */

.main-navbar-sticky {
    border-bottom: 2px solid var(--bs-border-color);
    backdrop-filter: blur(10px);
    z-index: 1020;
}

.navbar-brand {
    letter-spacing: -0.035em;
}

.brand-badge {
    background-color: var(--brand-primary);
    width: 38px;
    height: 38px;
}

/* Mobile Header Actions (Country & Language Selectors) */
.mobile-header-actions {
    flex-shrink: 0;
}

.mobile-header-actions .btn {
    font-size: 0.75rem;
    height: 32px;
    padding: 0.2rem 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
    box-shadow: none;
}

.mobile-header-actions .btn:hover,
.mobile-header-actions .btn:focus {
    background-color: var(--bs-tertiary-bg);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.mobile-header-actions .dropdown-menu {
    min-width: 220px;
    max-width: 90vw;
}

@media (max-width: 400px) {
    .navbar-brand .fs-4 {
        font-size: 1.15rem !important;
    }
    .brand-badge {
        width: 32px;
        height: 32px;
    }
    .brand-badge .fs-4 {
        font-size: 1.15rem !important;
    }
    .mobile-header-actions .btn {
        padding: 0.2rem 0.35rem;
        font-size: 0.7rem;
    }
}

.news-nav-links .nav-link {
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.75rem 0.85rem;
    color: var(--bs-body-color);
    position: relative;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}

.news-nav-links .nav-home-link .nav-home-country {
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.75;
}

.news-nav-links .nav-link:hover, 
.news-nav-links .nav-link.active {
    color: var(--brand-primary) !important;
}

.news-nav-links .nav-link.active .nav-home-country {
    opacity: 0.9;
    color: var(--brand-primary) !important;
}

.news-nav-links .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.85rem;
    right: 0.85rem;
    height: 3px;
    background: var(--brand-primary);
}

.search-bar-nav .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: none;
}

/* ==========================================================================
   BREAKING NEWS TICKER (Containerized, Sleek Gray, Modern Pill)
   ========================================================================== */

.breaking-news-bar {
    background-color: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.breaking-badge {
    background: #0f172a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #ef4444;
    display: inline-block;
    border-radius: 50% !important;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.breaking-marquee {
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.breaking-ticker-track {
    display: inline-block;
    animation: marquee 35s linear infinite;
}

.breaking-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   MANŞET NUMBERED SLIDER (TURKISH PORTAL STYLE)
   HERO / MANŞET SLIDER (Numbered 1-10 + Sidebar Highlight)
   ========================================================================== */

.manset-hero-section {
    margin-bottom: 2rem;
}

.manset-hero-section .row {
    align-items: stretch;
}

.manset-hero-section .col-lg-9,
.manset-hero-section .col-lg-8,
.manset-hero-section .col-lg-4,
.manset-hero-section .col-lg-3 {
    display: flex;
    flex-direction: column;
}

.manset-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    background-color: #0b0f19;
    overflow: hidden;
    border-radius: 0 !important;
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.hero-ads-stack {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.hero-ad-item {
    flex: 1 1 0;
    display: flex;
    min-height: 0;
    width: 100%;
}

.hero-ad-item .google-ad-link {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.hero-ad-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    display: block;
}

@media (max-width: 991.98px) {
    .manset-slider-container {
        height: 440px;
        min-height: 440px;
    }
    .hero-ads-stack {
        height: auto;
        gap: 1rem;
    }
    .hero-ad-item {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    .manset-slider-container {
        height: 360px;
        min-height: 360px;
    }
    .hero-ad-item {
        height: 140px;
    }
}

.manset-slides {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    height: calc(100% - 46px);
    overflow: hidden;
}

.manset-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.02);
    pointer-events: none;
    z-index: 1;
}

.manset-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

.manset-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    opacity: 0.96;
}

.manset-slide:hover .manset-img {
    transform: scale(1.04);
    opacity: 1;
}

.manset-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.2) 30%, rgba(15, 23, 42, 0.85) 70%, rgba(10, 15, 30, 0.98) 100%);
    z-index: 3;
    padding: 2.5rem 3rem 5.25rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

@media (max-width: 991.98px) {
    .manset-overlay {
        padding: 1.75rem 2rem 4.5rem 2rem;
    }
}

@media (max-width: 575.98px) {
    .manset-overlay {
        padding: 1.25rem 1.25rem 4rem 1.25rem;
    }
}

.manset-title {
    font-size: clamp(1.35rem, 2.5vw, 1.95rem);
    line-height: 1.28;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.manset-title a {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.manset-title a:hover {
    color: #93c5fd;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.6);
}

.manset-desc {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    max-width: 90%;
}

/* Floating Prev / Next arrows */
.manset-arrow-nav {
    position: absolute;
    top: calc(50% - 23px);
    transform: translateY(-50%);
    width: 44px;
    height: 56px;
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    border-radius: 6px;
}

.manset-prev-btn {
    left: 12px;
}

.manset-next-btn {
    right: 12px;
}

.manset-arrow-nav:hover {
    background: var(--brand-primary);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.45);
    border-color: var(--brand-primary);
}

/* Progress bar */
.manset-progress-bar {
    position: absolute;
    bottom: 46px;
    left: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #38bdf8, var(--brand-primary));
    width: 0%;
    z-index: 18;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

/* Numbered Navigation Bar */
.manset-nav-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 46px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 20;
    display: flex;
    align-items: stretch;
}

.manset-nav-arrow {
    width: 40px;
    min-width: 40px;
    background: #090d16;
    color: #94a3b8;
    border: none;
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.manset-nav-arrow:last-child {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.manset-nav-arrow:hover {
    background: var(--brand-primary);
    color: #ffffff;
}

.manset-nav-tabs {
    display: flex;
    flex-grow: 1;
    overflow-x: auto;
    overflow-y: hidden;
}

.manset-tab-btn {
    flex: 1;
    min-width: 32px;
    background: transparent;
    color: #94a3b8;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    position: relative;
}

.manset-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.manset-tab-btn.active {
    background: var(--brand-primary) !important;
    color: #ffffff !important;
    font-weight: 900;
    box-shadow: 0 0 16px rgba(13, 110, 253, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

/* Side Box */
.manset-side-box {
    background-color: var(--bs-card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.manset-side-box:hover {
    border-color: rgba(13, 110, 253, 0.3);
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.12);
}

.manset-side-box .card-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #004ecc 100%) !important;
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.75rem 1rem;
}

.manset-side-hero {
    height: 195px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #0b0f19;
}

.manset-side-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

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

.manset-side-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.manset-side-list-item {
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid var(--bs-border-color-translucent);
    font-size: 0.885rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.manset-side-list-item:last-child {
    border-bottom: none;
}

.manset-side-list-item:hover {
    background-color: var(--bs-tertiary-bg);
    transform: translateX(4px);
}

[dir="rtl"] .manset-side-list-item:hover {
    transform: translateX(-4px);
}

/* Hero Sidebar Ads Stack (Two Ads) */
.hero-ads-stack {
    height: 540px;
    max-height: 540px;
}

.hero-ad-item {
    height: calc(50% - 8px);
    border-radius: 0 !important;
    overflow: hidden;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero-ad-item:hover {
    transform: translateY(-3px);
    opacity: 0.95;
}

.hero-ad-item a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
    overflow: hidden;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

.hero-ad-item img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    border: none;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

@media (max-width: 991.98px) {
    .hero-ads-stack {
        height: auto;
        max-height: none;
    }
    .hero-ad-item {
        height: 240px;
    }
}

.bullet-red, .bullet-primary {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: linear-gradient(135deg, #38bdf8, var(--brand-primary));
    margin-right: 10px;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(13, 110, 253, 0.4);
}

[dir="rtl"] .bullet-red, [dir="rtl"] .bullet-primary {
    margin-right: 0;
    margin-left: 10px;
}

/* Sub-Lead Mini Cards */
.sub-lead-card {
    background-color: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.sub-lead-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.14);
    border-color: var(--brand-primary);
}

.sub-lead-thumb {
    height: 150px;
    overflow: hidden;
    position: relative;
    background-color: #0b0f19;
}

.sub-lead-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.sub-lead-card:hover .sub-lead-thumb img {
    transform: scale(1.06);
}

.sub-lead-thumb .badge {
    background: rgba(13, 110, 253, 0.92) !important;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    letter-spacing: 0.04em;
}

/* Fallback hero cards for other views */
.hero-headlines-grid {
    margin-bottom: 2rem;
}

.hero-main-card {
    min-height: 460px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background-color: #0b0f19;
}

.hero-main-img {
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1);
    opacity: 0.92;
}

.hero-main-card:hover .hero-main-img {
    transform: scale(1.035);
    opacity: 1;
}

.hero-sub-card {
    min-height: 220px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background-color: #0b0f19;
}

.hero-sub-img {
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    opacity: 0.9;
}

.hero-sub-card:hover .hero-sub-img {
    transform: scale(1.04);
    opacity: 1;
}

/* ==========================================================================
   MAIN FEED NEWS CARDS
   ========================================================================== */

.news-card {
    background-color: var(--bs-card-bg);
    border: 1px solid var(--bs-border-color) !important;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover) !important;
    border-color: var(--brand-primary) !important;
}

.news-card-img-wrap {
    overflow: hidden;
    background-color: var(--bs-tertiary-bg);
}

.news-card-img {
    transition: transform 0.5s ease;
}

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

.hover-primary:hover {
    color: var(--brand-primary) !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */

.editors-pick-item {
    transition: transform var(--transition-fast);
}

.editors-pick-item:hover {
    transform: translateX(4px);
}

.popular-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 800;
    border: 1px solid var(--bs-border-color);
}

.popular-item {
    transition: transform var(--transition-fast);
    border-bottom: 1px dashed var(--bs-border-color);
    padding-bottom: 0.85rem;
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-item:hover {
    transform: translateX(4px);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 60%, #2563eb 100%);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   ARTICLE DETAIL PAGE
   ========================================================================== */

.news-article {
    border: 1px solid var(--bs-border-color) !important;
}

.news-headline {
    font-size: clamp(1.85rem, 3.8vw, 2.85rem);
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.news-summary {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 400;
    border-left: 3px solid var(--brand-primary);
    padding-left: 1rem;
}

.news-body-content {
    --article-font-size: 1.15rem;
    font-family: var(--font-serif);
    font-size: var(--article-font-size) !important;
    line-height: 1.85;
    color: var(--bs-body-color);
    transition: font-size 0.15s ease-in-out;
}

.news-body-content p,
.news-body-content div,
.news-body-content li,
.news-body-content span,
.news-body-content blockquote {
    font-size: inherit;
}

.news-body-content p {
    margin-bottom: 1.6rem;
}

.news-body-content h2, .news-body-content h3 {
    font-family: var(--font-display);
    font-weight: 700;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    color: var(--bs-heading-color);
}

.btn-font-resizer .btn {
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    transition: all 0.2s ease-in-out;
}

.btn-font-resizer .btn.active {
    background-color: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
}

.news-quote {
    padding: 1.25rem 1.75rem;
    margin: 2rem 0;
    border-left: 4px solid var(--brand-primary);
    background-color: var(--bs-tertiary-bg);
    font-style: italic;
    font-size: 1.15rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    border-radius: 50%;
}

.author-avatar-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

/* News Meta Bar Single-Row Layout */
.news-meta-bar {
    border-color: var(--bs-border-color) !important;
}

.news-meta-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-meta-actions .btn {
    white-space: nowrap;
}

.news-meta-details {
    font-size: 0.835rem;
}

/* Audio Wave Animation */
.audio-wave {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.audio-wave span {
    width: 3px;
    background-color: currentColor;
    animation: wave 1s infinite ease-in-out;
}

.audio-wave span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.audio-wave span:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.audio-wave span:nth-child(3) { height: 8px; animation-delay: 0.2s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

/* Social Share Buttons */
.btn-share {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px;
    font-size: 1.1rem;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}

.btn-share:hover,
.btn-share:focus {
    transform: translateY(-2px);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    filter: brightness(1.08);
    outline: none !important;
}

.btn-share:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-share i {
    color: #ffffff !important;
    pointer-events: none;
}

.btn-whatsapp {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
}
.btn-whatsapp:hover,
.btn-whatsapp:focus,
.btn-whatsapp:active {
    background-color: #1eb857 !important;
    border-color: #1eb857 !important;
    color: #ffffff !important;
}

.btn-x {
    background-color: #111111 !important;
    border-color: #111111 !important;
}
.btn-x:hover,
.btn-x:focus,
.btn-x:active {
    background-color: #2a2a2a !important;
    border-color: #2a2a2a !important;
    color: #ffffff !important;
}

.btn-facebook {
    background-color: #1877F2 !important;
    border-color: #1877F2 !important;
}
.btn-facebook:hover,
.btn-facebook:focus,
.btn-facebook:active {
    background-color: #1365cf !important;
    border-color: #1365cf !important;
    color: #ffffff !important;
}

.btn-telegram {
    background-color: #229ED9 !important;
    border-color: #229ED9 !important;
}
.btn-telegram:hover,
.btn-telegram:focus,
.btn-telegram:active {
    background-color: #1b87ba !important;
    border-color: #1b87ba !important;
    color: #ffffff !important;
}

.btn-copy {
    background-color: #475569 !important;
    border-color: #475569 !important;
}
.btn-copy:hover,
.btn-copy:focus,
.btn-copy:active {
    background-color: #334155 !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}

.tag-pill {
    transition: var(--transition-fast);
}
.tag-pill:hover {
    background-color: var(--brand-primary) !important;
    color: #fff !important;
}

.related-thumb {
    transition: transform 0.3s ease;
}
.related-news-item:hover .related-thumb {
    transform: scale(1.04);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   RTL (RIGHT-TO-LEFT) FOR ARABIC SCRIPT LANGUAGES (ar, arz, ur, pnb)
   ========================================================================== */
html[dir="rtl"],
html[dir="rtl"] body {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .manset-title,
html[dir="rtl"] .brand-title {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .top-header-bar,
html[dir="rtl"] .navbar,
html[dir="rtl"] .news-breadcrumb,
html[dir="rtl"] .card-header,
html[dir="rtl"] .card-body,
html[dir="rtl"] .manset-overlay,
html[dir="rtl"] .breaking-news-bar {
    text-align: right;
}

html[dir="rtl"] .breaking-ticker-track {
    animation: marquee-rtl 35s linear infinite;
}

@keyframes marquee-rtl {
    0% { transform: translateX(0%); }
    100% { transform: translateX(50%); }
}

html[dir="rtl"] .breaking-badge {
    padding: 4px 10px !important;
    margin: 0 !important;
}

html[dir="rtl"] .manset-arrow-nav.manset-prev-btn {
    right: 15px;
    left: auto;
}

html[dir="rtl"] .manset-arrow-nav.manset-next-btn {
    left: 15px;
    right: auto;
}

html[dir="rtl"] .manset-overlay {
    background: linear-gradient(0deg, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.6) 60%, rgba(11, 15, 25, 0) 100%);
}

html[dir="rtl"] .bullet-red {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* ==========================================================================
   FLAG ICONS & WORLD HOVER COUNTRY DROPDOWN
   ========================================================================== */

.flag-icon-xs {
    width: 18px;
    height: 12px;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.language-flag {
    width: 16px;
    height: 11px;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Nav World Dropdown with Hover & Flag Icons */
.nav-world-dropdown {
    position: relative;
}

.nav-world-dropdown .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.nav-world-dropdown .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.35em;
    vertical-align: 0.15em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.25em solid transparent;
    border-bottom: 0;
    border-left: 0.25em solid transparent;
    transition: transform 0.2s ease;
}

[dir="rtl"] .nav-world-dropdown .dropdown-toggle::after {
    margin-left: 0;
    margin-right: 0.35em;
}

.nav-world-dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Desktop Hover Transition */
@media (min-width: 992px) {
    .nav-world-dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .nav-world-dropdown > .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(6px);
        transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
        margin-top: 0;
    }
}

.nav-country-menu {
    min-width: 230px;
    max-height: 380px;
    overflow-y: auto;
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
    padding: 6px 0;
}

.nav-country-menu .dropdown-item {
    font-size: 0.85rem;
    padding: 7px 14px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-country-menu .dropdown-item:hover {
    background-color: var(--bs-tertiary-bg);
    color: var(--brand-primary);
}

.nav-country-menu .dropdown-item.active {
    background-color: var(--brand-primary);
    color: #fff;
}

/* ==========================================================================
   NAVBAR RIGHT CONTROLS (COUNTRY DROPDOWN + LANGUAGE DROPDOWN + SEARCH BAR)
   ========================================================================== */

.navbar-right-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.navbar-right-actions .country-dropdown .btn,
.navbar-right-actions .language-dropdown .btn {
    font-size: 0.8125rem;
    font-weight: 600;
    height: 32px;
    display: inline-flex;
    align-items: center;
    border-color: var(--bs-border-color);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    padding: 0 0.55rem;
    transition: all 0.15s ease;
}

.navbar-right-actions .country-dropdown .btn:hover,
.navbar-right-actions .language-dropdown .btn:hover {
    border-color: var(--brand-primary);
    background-color: var(--bs-tertiary-bg);
    color: var(--brand-primary);
}

.navbar-right-actions .search-bar-nav {
    min-width: 170px;
    max-width: 220px;
    flex-shrink: 0;
}

.navbar-right-actions .search-bar-nav .input-group {
    flex-wrap: nowrap !important;
    width: 100%;
}

.navbar-right-actions .search-bar-nav .form-control {
    font-size: 0.8125rem;
    height: 32px;
    min-width: 0 !important;
    border-color: var(--bs-border-color);
    border-start-start-radius: 6px !important;
    border-end-start-radius: 6px !important;
    border-start-end-radius: 0 !important;
    border-end-end-radius: 0 !important;
}

.navbar-right-actions .search-bar-nav .btn {
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    flex-shrink: 0;
    border-start-start-radius: 0 !important;
    border-end-start-radius: 0 !important;
    border-start-end-radius: 6px !important;
    border-end-end-radius: 6px !important;
}

@media (max-width: 991.98px) {
    .navbar-right-actions {
        flex-wrap: wrap;
        padding-top: 0.75rem;
        border-top: 1px solid var(--bs-border-color);
        margin-top: 0.75rem;
    }
    .navbar-right-actions .search-bar-nav {
        min-width: 100%;
        max-width: 100%;
        margin-top: 0.4rem;
    }
}

/* ==========================================================================
   Google Ads Image Units
   ========================================================================== */
.partner-spots-wrapper {
    margin: 1.5rem 0;
}

.partner-spots-wrapper .spot-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bs-body-bg);
    border-radius: 0 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-spots-wrapper .spot-frame:hover,
.sidebar-ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.google-ad-link {
    display: block;
    width: 100%;
    text-decoration: none;
    line-height: 0;
}

.google-ad-link img {
    border-radius: 0 !important;
    transition: opacity 0.2s ease;
}

.google-ad-link:hover img {
    opacity: 0.95;
}