/**
 * City Watch News - Modern Mobile-First Stylesheet
 * Inspired by AltrozNews Magazine & Optimized for Gujarati & English News
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Gujarati:wght@400;500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #ec0000;
    --primary-hover: #c40000;
    --dark-color: #111827;
    --dark-surface: #1f2937;
    --body-bg: #f9fafb;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --font-main: 'Nunito', 'Noto Sans Gujarati', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Nunito', 'Noto Sans Gujarati', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--body-bg);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

/* ==================== Top Bar ==================== */
.topbar {
    background-color: #0f172a;
    color: #e2e8f0;
    font-size: 0.835rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    line-height: 1.5;
}

.topbar a {
    color: #f8fafc;
}

.topbar a:hover {
    color: #ffffff;
}

.topbar strong {
    color: #ffffff;
    font-weight: 700;
}

.topbar .text-warning {
    color: #facc15 !important;
}

.topbar .text-info {
    color: #38bdf8 !important;
}

.topbar .text-danger {
    color: #f87171 !important;
}

.topbar-admin-badge {
    background: #dc2626;
    color: #ffffff !important;
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 4px;
    font-weight: 700;
}

.topbar-admin-badge:hover {
    background: #b91c1c;
    color: #ffffff !important;
}

.top-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    margin-left: 6px;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.top-social a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ==================== Header ==================== */
.site-header {
    background: #ffffff;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    max-height: 52px;
    width: auto;
}

.site-title-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.site-title-text span {
    color: var(--primary-color);
}

.site-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
}

.header-ad-banner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* ==================== Navigation Bar ==================== */
.main-navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 2px solid var(--primary-color);
}

.main-navbar .navbar {
    padding: 0;
}

.main-navbar .nav-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-color);
    padding: 14px 14px !important;
    text-transform: capitalize;
    position: relative;
    transition: all 0.2s;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(236, 0, 0, 0.04);
}

.main-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.btn-header-search {
    border: none;
    background: transparent;
    color: var(--dark-color);
    font-size: 1.1rem;
    padding: 8px 12px;
}

.btn-header-search:hover {
    color: var(--primary-color);
}

/* ==================== Breaking News Ticker ==================== */
.breaking-news-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.ticker-wrap {
    display: flex;
    align-items: center;
    overflow: hidden;
    min-width: 0;
}

.ticker-badge {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 15px;
    flex-shrink: 0;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    min-width: 0;
}

.ticker-item {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.ticker-content a {
    font-weight: 700;
    font-size: 0.885rem;
    color: #0f172a;
    line-height: 1.5;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.ticker-content a:hover {
    color: var(--primary-color);
}

/* ==================== Cards & Grid Layouts ==================== */
.news-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.card-thumb-wrap {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #e2e8f0;
}

.card-thumb-wrap a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

.card-thumb-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .card-thumb-wrap img {
    transform: scale(1.05);
}

.card-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 3;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.card-body-news {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body-news .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.55;
    color: #0f172a;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body-news .card-excerpt {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.775rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.card-meta i {
    color: var(--primary-color);
    margin-right: 4px;
}

/* ==================== Hero Multi-Grid ==================== */
.hero-featured-box {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 440px;
    background-color: #0b0f19;
}

.hero-featured-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.88) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-featured-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.5s ease;
}

.hero-featured-box:hover img {
    transform: scale(1.03);
}

.hero-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 26px 30px;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
    color: #ffffff;
    z-index: 2;
}

.hero-overlay-content .hero-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.55;
    margin-top: 8px;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.85);
}

.hero-overlay-content .hero-title a {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.85);
}

.hero-overlay-content .hero-title a:hover {
    color: #fca5a5;
}

.hero-overlay-content .text-white-50 {
    color: #e2e8f0 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Small trending news cards in hero */
.hero-side-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 210px;
    background-color: #0b0f19;
}

.hero-side-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.92) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-side-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.4s ease;
}

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

.hero-side-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 16px;
    background: linear-gradient(0deg, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
    color: #ffffff;
    z-index: 2;
}

.hero-side-content .side-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.55;
    margin-top: 4px;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.hero-side-content .side-title a {
    color: #ffffff;
}

.hero-side-content .side-title a:hover {
    color: #fca5a5;
}

.hero-side-content .text-white-50 {
    color: #cbd5e1 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    display: block;
    margin-top: 2px;
}

/* ==================== Section Headers ==================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--primary-color);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--primary-color);
}

.section-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

.section-link:hover {
    text-decoration: underline;
}

/* ==================== Horizontal News Card ==================== */
.news-card-horizontal {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.news-card-horizontal:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.h-thumb-wrap {
    width: 150px;
    min-width: 150px;
    position: relative;
    background: #e2e8f0;
}

.h-thumb-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.h-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h-body {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.h-title {
    font-size: 0.985rem;
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.h-title a {
    color: #0f172a;
}

.h-title a:hover {
    color: var(--primary-color);
}

/* ==================== Video Card Style ==================== */
.video-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(236,0,0,0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.news-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background: #ec0000;
}

/* ==================== Sidebar ==================== */
.sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #f3f4f6;
    font-weight: 600;
    font-size: 0.9rem;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list .badge-count {
    background: #f3f4f6;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.category-list li:hover a {
    color: var(--primary-color);
}

.category-list li:hover .badge-count {
    background: var(--primary-color);
    color: #fff;
}

/* ==================== Single Article Page ==================== */
.article-header {
    margin-bottom: 24px;
}

.article-category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.article-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--dark-color);
    margin-bottom: 14px;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-meta-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.article-meta-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta-left i {
    color: var(--primary-color);
}

/* Font Resizer Widget */
.font-resizer-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-font-resize {
    border: 1px solid var(--border-color);
    background: #fff;
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-font-resize:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Social Share Bar */
.social-share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff !important;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.share-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
    color: #ffffff !important;
}

.share-whatsapp { background-color: #25D366; }
.share-facebook { background-color: #1877F2; }
.share-twitter  { background-color: #0f172a; }
.share-telegram { background-color: #0088cc; }
.share-copy     { background-color: #475569; }

/* Article Content Body */
.article-lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #f8fafc;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.article-content {
    font-size: 1.085rem;
    line-height: 1.9;
    color: #1e293b;
}

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

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content blockquote {
    padding: 18px 24px;
    margin: 24px 0;
    font-style: italic;
    background: #f8fafc;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    color: #334155;
    line-height: 1.75;
}

.article-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
}

/* ==================== Footer ==================== */
.site-footer {
    background-color: #0b1120;
    color: #cbd5e1;
    padding-top: 50px;
    margin-top: 60px;
    border-top: 3px solid var(--primary-color);
}

.site-footer .text-muted {
    color: #94a3b8 !important;
}

.site-footer p {
    color: #cbd5e1;
    line-height: 1.65;
}

.footer-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-bottom {
    background-color: #030712;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #94a3b8;
}

.footer-bottom .text-muted {
    color: #94a3b8 !important;
}

.footer-bottom strong {
    color: #f1f5f9;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: transform 0.2s ease, bottom 0.2s ease;
}

#backToTop:hover {
    transform: translateY(-3px);
}

body.has-mobile-ad #backToTop {
    bottom: 75px !important;
}

/* Sticky Mobile Bottom Ad */
.mobile-sticky-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    z-index: 1010;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    padding: 4px;
}

.mobile-sticky-ad .close-ad {
    position: absolute;
    top: -24px;
    right: 10px;
    background: #0f172a;
    color: #fff;
    border: none;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px 4px 0 0;
}

/* ==================== WhatsApp Channel Viral Banner ==================== */
.whatsapp-channel-bar {
    background: linear-gradient(90deg, #128c7e 0%, #25d366 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.whatsapp-channel-bar .small {
    font-size: 0.84rem;
    line-height: 1.45;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.wa-badge-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    animation: waPulse 1.8s infinite;
    flex-shrink: 0;
}

@keyframes waPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.btn-wa-join {
    background-color: #ffffff;
    color: #128c7e !important;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.btn-wa-join:hover {
    background-color: #f0fdf4;
    transform: translateY(-1px);
    color: #075e54 !important;
}

/* WhatsApp Status Share Button */
.share-whatsapp-status {
    background-color: #075e54;
}

/* ==================== PWA Mobile Install Banner ==================== */
.pwa-install-banner {
    background: #0f172a;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    position: relative; /* relative prevents collision with sticky navbar! */
    z-index: 1050;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ==================== Global Font Resizer Controls ==================== */
.topbar-font-resizer {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 2px 4px;
    gap: 3px;
}

.topbar-font-resizer .font-ctrl-label {
    font-size: 11px;
    color: #94a3b8;
    margin-right: 2px;
    padding-left: 2px;
    user-select: none;
    font-weight: 600;
}

.btn-font-ctrl {
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.25;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.btn-font-ctrl:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-font-ctrl.active {
    background: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.btn-font-ctrl[data-size="small"] {
    font-size: 10.5px;
}

.btn-font-ctrl[data-size="default"] {
    font-size: 12px;
}

.btn-font-ctrl[data-size="large"] {
    font-size: 13px;
}

.btn-font-ctrl[data-size="xlarge"] {
    font-size: 14px;
    font-weight: 800;
}

/* ==================== Multi-Language Switcher ==================== */
.topbar-lang-switcher .btn-lang-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.topbar-lang-switcher .btn-lang-toggle:hover,
.topbar-lang-switcher .btn-lang-toggle:focus {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.topbar-lang-switcher .dropdown-menu {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px 0;
    min-width: 155px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 1060;
}

.topbar-lang-switcher .dropdown-item {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.topbar-lang-switcher .dropdown-item:hover,
.topbar-lang-switcher .dropdown-item.active {
    background: #dc2626;
    color: #ffffff;
}

.lang-flag {
    font-size: 14px;
    line-height: 1;
}

/* Mobile Drawer Toolbar */
.mobile-menu-toolbar {
    background: #f8fafc;
    border-radius: 8px;
}

.mobile-menu-toolbar .topbar-font-resizer {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.mobile-menu-toolbar .btn-font-ctrl {
    color: #334155;
}

.mobile-menu-toolbar .btn-font-ctrl.active {
    background: #dc2626 !important;
    color: #ffffff !important;
}

/* ==================== Google Translate Clean Overrides ==================== */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

body {
    top: 0px !important;
    position: static !important;
}

.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

/* ==================== Article Tags ==================== */
.article-tags-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.article-tags-wrap .tag-label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-pill:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    transform: translateY(-1px);
}

/* ==================== Interstitial / Vignette Ad Popup ==================== */
.cw-interstitial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: cwFadeIn 0.25s ease-out;
}

@keyframes cwFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.cw-interstitial-dialog {
    background: #ffffff;
    border-radius: 14px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cw-interstitial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.btn-close-interstitial {
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-close-interstitial:hover {
    background: #b91c1c;
    transform: scale(1.02);
}

.cw-interstitial-body {
    padding: 24px;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.interstitial-ad-box {
    width: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

.cw-interstitial-footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* ==================== Instagram Feed & Reels Section ==================== */
.cw-insta-section {
    position: relative;
}

.cw-insta-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.cw-insta-avatar-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(220, 39, 67, 0.25);
    flex-shrink: 0;
}

.cw-insta-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff;
    padding: 4px;
    object-fit: contain;
}

.cw-insta-follow-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    transition: all 0.25s ease;
    font-size: 0.88rem;
}

.cw-insta-follow-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.4);
    color: #ffffff;
}

.cw-insta-carousel-wrap {
    margin: 0 -8px;
    padding: 0 8px;
}

.cw-insta-track {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.cw-insta-track::-webkit-scrollbar {
    height: 6px;
}

.cw-insta-track::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.cw-reel-card {
    width: 250px;
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cw-reel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.cw-reel-inner {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cw-reel-poster {
    position: relative;
    height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background-color: #0f172a;
}

.cw-reel-poster-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 40%, #1e1b4b 70%, #31102b 100%);
    z-index: 1;
}

.cw-reel-top-bar {
    position: relative;
    z-index: 2;
}

.cw-reel-type-badge {
    background: linear-gradient(45deg, rgba(240, 148, 51, 0.85) 0%, rgba(220, 39, 67, 0.85) 100%);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.cw-reel-play-btn {
    position: relative;
    z-index: 2;
    align-self: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding-left: 3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.cw-reel-card:hover .play-icon-circle {
    background: #ec0000;
    border-color: #ffffff;
    transform: scale(1.12);
}

.cw-reel-overlay-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 65%, transparent 100%);
}

.cw-reel-caption {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.cw-reel-action-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cw-open-reel-modal {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
}

.cw-open-reel-modal:hover {
    color: #ff4d4d !important;
}

@media (max-width: 576px) {
    .cw-reel-card {
        width: 210px;
    }
    .cw-reel-poster {
        height: 310px;
    }
    .cw-insta-avatar-ring {
        width: 48px;
        height: 48px;
    }
    .cw-insta-handle {
        font-size: 1.05rem;
    }
}




