/*
Theme Name: NewsArc
Theme URI: https://techseya.lk
Author: Techseya Digital Innovations
Author URI: https://techseya.lk
Description: NewsArc is a premium news and media portal theme developed by Techseya.
Version: 9.9.9
Update URI: false
Text Domain: news-theme
*/

:root {
    --primary-color: #1e3a8a; /* Primary Blue */
    --accent-color: #CC1F2D;  /* Secondary Red */
    --text-color: #1f2937;    /* Slate Gray */
    --text-muted: #6b7280;    /* Gray */
    --bg-color: #f9fafb;      /* Light Gray / White Background */
    --card-bg: #FFFFFF;       /* White */
    --border-radius: 8px;
    --border-color: #e5e7eb;
    --hover-bg: #f3f4f6;
    --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);
    --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    --footer-bg: #1e3a8a;
    --footer-text: #f3f4f6;
    --footer-heading: #FFFFFF;
    --footer-muted: #d1d5db;
    --footer-bottom: #172554;
    --footer-border: rgba(255,255,255,0.1);
}

[data-theme="dark"] {
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --border-color: #334155;
    --hover-bg: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --footer-bg: #020617;
    --footer-text: #e2e8f0;
    --footer-heading: #ffffff;
    --footer-muted: #94a3b8;
    --footer-bottom: #000000;
    --footer-border: rgba(255,255,255,0.08);
}

body {
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* Sticky cluster: breaking bar + header move together */
.site-top-fixed {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-bar .site-top-fixed {
    top: 32px;
}

/* Header */
.site-header {
    background-color: var(--primary-color);
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-top { padding: 1.5rem 0; }
.header-top .container,
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-top-row { flex-wrap: wrap; }

.header-top-aside {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    flex-shrink: 0;
}

.site-branding {
    min-width: 0;
    flex: 1 1 auto;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.header-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.header-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}

.header-menu-toggle:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.header-menu-toggle .menu-toggle-icon-close {
    display: none;
}

.header-menu-toggle.is-open .menu-toggle-icon-open {
    display: none;
}

.header-menu-toggle.is-open .menu-toggle-icon-close {
    display: block;
}

.header-menu-toggle i {
    font-size: 1.25rem;
    line-height: 1;
}

.header-search-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.header-search-toggle:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}

.header-search-toggle:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.header-search-toggle i {
    font-size: 1.15rem;
    line-height: 1;
}

.custom-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    background: #ffffff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
    font-size: 2rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.logo-main-text {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1px;
}

.dot-red { color: #ff4d4d; }
.news-badge {
    background: #CC1F2D;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 6px;
    margin-left: 8px;
    font-size: 1.25rem;
    font-weight: 900;
    display: inline-block;
}

.logo-tagline {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin-top: 5px;
    font-weight: 400;
}

.header-meta-info {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    font-weight: 400;
}

.meta-sep { margin: 0 12px; opacity: 0.4; }

.header-bottom { 
    background: rgba(0,0,0,0.2); 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding: 8px 0;
}

.header-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.main-navigation {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.main-navigation::-webkit-scrollbar {
    display: none;
}

.main-navigation ul { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    display: flex; 
    flex-wrap: nowrap;
    gap: 2rem; 
    width: max-content;
}

.main-navigation li {
    flex-shrink: 0;
}

.main-navigation a { 
    display: block; 
    padding: 0.8rem 0; 
    font-size: 1.1rem; 
    font-weight: 600; 
    color: rgba(255,255,255,0.85); 
    transition: all 0.2s; 
    position: relative;
    white-space: nowrap;
}

.main-navigation a:hover { color: #ffffff; }

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_ancestor > a,
.main-navigation li.active > a { 
    color: #CC1F2D !important; 
}

.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after,
.main-navigation .current-menu-ancestor > a::after,
.main-navigation li.active > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #CC1F2D;
}

/* Header search — pill bar for dark nav */
.nav-search {
    width: min(320px, 34vw);
    max-width: 100%;
    flex-shrink: 0;
}

.nav-search .search-form {
    width: 100%;
}

.nav-search .search-input-group {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    min-height: 44px;
    height: auto !important;
    padding: 4px 5px 4px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
}

.nav-search .search-input-group:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
}

.nav-search .search-input-group:focus-within {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(204, 31, 45, 0.65);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(204, 31, 45, 0.22);
}

.nav-search .search-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin: 0 !important;
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.72) !important;
    background: rgba(0, 0, 0, 0.12);
}

.nav-search .search-field {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    width: 100% !important;
    min-width: 0;
    height: auto !important;
    min-height: 0;
    padding: 0 4px 0 0 !important;
    outline: none !important;
}

.nav-search .search-field::placeholder {
    color: rgba(255, 255, 255, 0.42) !important;
    font-weight: 400 !important;
}

.nav-search .search-submit {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--accent-color);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.nav-search .search-submit:hover {
    background: #b01b28;
}

.nav-search .search-submit:active {
    transform: scale(0.96);
}

.nav-search .search-submit:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.nav-search .search-submit i {
    font-size: 0.85rem;
}

/* Ensure no default styles interfere */
.nav-search input[type="search"]::-webkit-search-decoration,
.nav-search input[type="search"]::-webkit-search-cancel-button,
.nav-search input[type="search"]::-webkit-search-results-button,
.nav-search input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-top-fixed {
        top: 46px;
    }
}

/* Header: tablet & mobile */
@media (max-width: 1024px) {
    .header-top {
        padding: 1rem 0;
    }

    .header-menu-toggle {
        display: flex;
    }

    .header-search-toggle {
        display: flex;
    }

    .header-location-wrap {
        display: none !important;
    }

    .header-meta-info {
        font-size: 0.875rem;
        text-align: right;
    }

    .logo-main-text {
        font-size: 1.65rem;
    }

    .news-badge {
        font-size: 1rem;
        margin-left: 4px;
        padding: 2px 8px;
    }

    .logo-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .logo-tagline {
        font-size: 0.8rem;
    }

    .site-custom-logo {
        max-height: 48px !important;
    }

    .header-bottom {
        max-height: 0;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
        border-top-color: transparent;
        transition: max-height 0.35s ease, padding 0.35s ease, border-color 0.2s ease;
    }

    .header-bottom.active {
        max-height: min(85vh, 640px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 8px;
        padding-bottom: 12px;
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .header-bottom .container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .nav-search {
        order: -1;
        width: 100%;
    }

    .main-navigation {
        order: 1;
        flex: none;
        min-width: auto;
        width: 100%;
        overflow-x: visible;
    }

    .main-navigation ul {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        width: 100%;
    }

    .main-navigation a {
        padding: 0.85rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-navigation li:last-child > a {
        border-bottom: none;
    }

    .main-navigation .current-menu-item > a::after,
    .main-navigation .current_page_item > a::after,
    .main-navigation .current-menu-ancestor > a::after,
    .main-navigation li.active > a::after {
        bottom: 0.5rem;
        height: 2px;
    }
}

@media (max-width: 900px) {
    .mobile-only { display: flex !important; }
    .header-search { display: none; }
}

@media (max-width: 640px) {
    .header-top-row {
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .header-meta-info {
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        text-align: right;
    }

    .logo-main-text {
        font-size: 1.35rem;
    }

    .news-badge {
        font-size: 0.85rem;
    }

    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }

    .logo-tagline {
        display: none;
    }
}

@media (max-width: 400px) {
    .header-meta-info .current-date {
        display: none;
    }
}

/* Layouts */
.msn-feature-section { display: flex; gap: 1rem; margin-bottom: 2rem; }
.news-main-column { flex: 1; min-width: 0; position: relative; }
.news-sidebar { 
    width: 380px; 
    flex-shrink: 0; 
}

.trending-sidebar-box {
    height: 360px !important;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* News Cards - MSN Premium Style */
.news-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1), 0 6px 6px rgba(0,0,0,0.08);
}

.post-thumbnail {
    aspect-ratio: 16/9;
    background: var(--hover-bg);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .post-thumbnail img {
    transform: scale(1.08);
}

.post-content {
    padding: 0.8rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta-small {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta-small::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}

.post-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

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

/* Hero Slider - MSN Style Overlay */
.msn-hero-slider {
    position: relative;
    height: 360px;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.slider-wrapper, .slider-item, .slider-item a {
    height: 100%;
}

.hero-card-thumb img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
}

.slider-item {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slider-item.active {
    opacity: 1;
    z-index: 2;
    position: relative;
}

.slider-item a {
    display: block;
    height: 100%;
    position: relative;
}

.hero-card-thumb {
    height: 100%;
    width: 100%;
}

.hero-card-thumb img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.hero-card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    color: #fff;
    z-index: 5;
}

.slider-nav {
    position: absolute;
    bottom: 15px !important;
    right: 15px !important;
    z-index: 10;
}

.hero-card .post-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
    line-height: 1.1;
}

.hero-card .post-meta-small {
    color: rgba(255,255,255,0.8);
}

/* Widgets - Synced with Cards */
.currency-widget-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
    border: none;
    height: 100%; 
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.msn-widget-title-small { 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: var(--primary-color); 
    margin: 0 0 1.25rem 0; 
}

.currency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    flex: 1;
}
.trending-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    flex: 1;
    overflow-y: auto;
}
.trending-list::-webkit-scrollbar { width: 4px; }
.trending-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }

.trending-list li { border-bottom: 1px solid var(--border-color); }
.trending-list a { display: flex; gap: 0.75rem; padding: 0.8rem 1rem; transition: background 0.2s; }
.trending-list a:hover { background: var(--hover-bg); }
.trending-thumb { width: 60px; height: 60px; border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.trending-info h4 { margin: 0; font-size: 0.95rem; line-height: 1.3; }

/* Featured Wide Card Styles */
.news-card.featured-wide {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
    height: 100%;
}
.featured-wide a {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}
.featured-wide .post-thumbnail {
    width: 50%;
    height: 100%;
    min-height: auto;
}
.featured-wide .post-content {
    width: 50%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-wide .post-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Category Discovery Grid */
.msn-cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* 5 Column Grid Responsive Overrides */
/* News Article Layout */
.news-layout {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.news-main-column {
    flex: 1;
    min-width: 0;
}

.news-sidebar {
    width: 380px;
    flex-shrink: 0;
}

.entry-title {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

@media (max-width: 1200px) {
    .container { max-width: 960px; }
    .news-layout { gap: 1.5rem; }
    .news-sidebar { width: 320px; }
    .msn-finance-row, .msn-cat-grid, .news-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .hero-card .post-title { font-size: 1.8rem; }
    .category-layout, .news-layout { flex-direction: column; }
    .category-sidebar, .news-sidebar { width: 100%; grid-template-columns: repeat(3, 1fr); display: grid !important; }
}

@media (max-width: 992px) {
    .container { max-width: 720px; }
    .msn-feature-section {
        flex-direction: column;
    }
    .category-sidebar, .news-sidebar {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        display: grid !important;
        gap: 1.5rem;
    }
    .entry-title { font-size: 2.25rem; }
    .msn-finance-row, .msn-cat-grid, .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .container { max-width: 100%; padding: 0 1.5rem; }
    .hero-card .post-title { font-size: 1.4rem; }
    .entry-title { font-size: 1.8rem; }
    .msn-hero-slider { height: 280px; }
    .category-sidebar, .news-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .msn-finance-row, .news-grid {
        grid-template-columns: 1fr !important;
    }
    .news-card.featured-wide {
        grid-column: span 1 !important;
    }
    .featured-wide a { flex-direction: column; }
    .featured-wide .post-thumbnail, .featured-wide .post-content { width: 100%; }
    .featured-wide .post-title { font-size: 1.25rem; }
    .msn-cat-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0.5rem 1rem 1.5rem;
        margin: 0 -1rem 2rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .msn-cat-grid::-webkit-scrollbar { display: none; }
    .msn-cat-card {
        flex: 0 0 160px;
        scroll-snap-align: start;
        padding: 1.5rem 1rem !important;
    }
    .category-sidebar { grid-template-columns: 1fr; }
    .currency-widget-card {
        grid-column: span 1 !important;
    }
    .currency-grid { grid-template-columns: 1fr; }
    .msn-hero-slider { height: 240px; }
    .hero-card { padding: 3rem 1rem 1rem; }
    .hero-card .post-title { font-size: 1.2rem; }
}

.msn-cat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
    box-shadow: var(--shadow-sm);
}

.msn-cat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--hover-bg);
}

.msn-cat-card h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
}

.msn-cat-card .cat-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Fix for flag alignment */
.fi {
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 2px;
}

/* --- Compact Footer Design --- */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 3rem;
    font-family: var(--font-family);
    border-top: 1px solid var(--footer-border);
}

.footer-main {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--footer-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--footer-heading);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-muted);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-column h4 {
    color: var(--footer-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--footer-muted);
    text-decoration: none;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-bottom {
    padding: 1.5rem 0;
    background: var(--footer-bottom);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-info {
    color: var(--footer-muted);
    font-size: 0.85rem;
}

.site-info strong {
    color: var(--footer-heading);
}

#backToTop {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

#backToTop:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-column:last-child { display: none; }
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: span 2; text-align: center; }
    .footer-brand .footer-logo { justify-content: center; }
    .footer-social { justify-content: center; }
    .bottom-flex { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .footer-column { text-align: center; }
    .footer-column h4::after { left: 50%; transform: translateX(-50%); }
}

/* Breaking News Ticker (pinned with .site-top-fixed) */
.breaking-news-ticker {
    background: linear-gradient(90deg, var(--accent-color) 0%, #E53E3E 100%);
    color: #ffffff;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.ticker-wrapper {
    display: flex;
    align-items: center;
}

.ticker-label {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 5px 14px;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    margin-right: 18px;
    flex-shrink: 0;
    font-size: 0.8rem;
    letter-spacing: 1px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 40s linear infinite;
    will-change: transform;
}

.ticker-item {
    padding: 0 20px;
    display: inline-block;
}

.ticker-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.ticker-item a:hover {
    opacity: 0.8;
}

.ticker-separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    margin: 0 5px;
}

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

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