/*
Theme Name: News Flyer Professional v2
Theme URI: https://example.com/news-flyer-pro
Author: Professional Developer
Author URI: https://example.com
Description: Enterprise News Theme with Working Floating Dark Mode Toggle, Customizer Controls, International Updates, Clean Social Media Buttons, and Unlocked Dashboard File Editing.
Version: 25.0
Text Domain: news-flyer-pro
*/

:root {
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --bg-main: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 10px 35px 0 rgba(31, 38, 135, 0.08);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    background-attachment: fixed;
    transition: background 0.4s ease, color 0.4s ease;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

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

img, video, iframe {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Reading Progress Bar */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #34d399, #ef4444);
    width: 0%;
    z-index: 99999;
    transition: width 0.1s ease-out;
}

/* Stock Ticker Bar */
.stock-ticker-bar {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 11px;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 2px solid var(--accent-color);
    width: 100%;
}

.stock-ticker-container {
    display: inline-block;
    padding-left: 100%;
    animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
}

.stock-item {
    display: inline-block;
    margin-right: 25px;
}

.stock-item.up { color: #34d399; }
.stock-item.down { color: #f87171; }

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

/* Smart Glass Header */
.site-header-news {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s ease, background 0.4s ease;
}

.site-header-news.header-hidden {
    transform: translateY(-100%);
}

.site-header-news.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12);
}

.header-top-row {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

@media(min-width: 900px) {
    .header-top-row {
        justify-content: center;
        text-align: center;
        padding: 20px 20px;
    }
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media(min-width: 900px) {
    .site-branding {
        align-items: center;
    }
}

.site-title {
    margin: 0;
}

.site-title a {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-color);
    text-transform: uppercase;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}

@media(min-width: 900px) {
    .site-title a {
        font-size: 38px;
        letter-spacing: 2px;
    }
}

.custom-logo {
    max-height: 48px;
    width: auto;
}

@media(min-width: 900px) {
    .custom-logo {
        max-height: 72px;
    }
}

.site-description {
    font-size: 9px;
    color: var(--text-muted);
    margin: 3px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

@media(min-width: 900px) {
    .site-description {
        font-size: 11px;
        margin-top: 5px;
    }
}

.menu-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    flex-shrink: 0;
}

.menu-toggle-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

@media(min-width: 900px) {
    .menu-toggle-btn {
        display: none;
    }
}

.header-nav-row {
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
}

@media(max-width: 899px) {
    .header-nav-row {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        box-shadow: 0 15px 35px rgba(0,0,0,0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .header-nav-row.toggled {
        display: block !important;
    }
}

.main-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    gap: 12px;
}

@media(min-width: 900px) {
    .main-nav-container {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0 20px;
        min-height: 54px;
        gap: 30px;
    }
}

.main-navigation {
    width: 100%;
}

@media(min-width: 900px) {
    .main-navigation {
        width: auto;
    }
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media(min-width: 900px) {
    .main-navigation ul {
        flex-direction: row;
        gap: 12px;
        align-items: center;
        justify-content: center;
    }
}

.main-navigation a {
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    padding: 8px 12px;
    display: block;
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

@media(min-width: 900px) {
    .main-navigation a {
        font-size: 14px;
        padding: 10px 18px;
        display: inline-block;
    }
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 3px 6px 3px 14px;
    transition: var(--transition);
    width: 100%;
}

@media(min-width: 900px) {
    .nav-search-form {
        width: 250px;
    }
}

.nav-search-form:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.nav-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 13px;
    width: 100%;
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.nav-search-btn {
    background: var(--accent-color);
    border: none;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-search-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.03);
}

.site-content {
    max-width: 1280px;
    width: 100%;
    margin: 25px auto;
    padding: 0 16px;
    display: block;
}

@media(min-width: 992px) {
    .site-content {
        margin: 40px auto;
        padding: 0 24px;
    }
}

.content-area {
    width: 100%;
}

.widget-area {
    display: none !important;
}

.section-heading-title {
    font-size: 18px;
    font-weight: 900;
    font-family: 'Georgia', serif;
    color: var(--text-main);
    margin: 24px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    border-left: 4px solid var(--accent-color);
}

@media(min-width: 768px) {
    .section-heading-title {
        font-size: 24px;
        margin: 35px 0 22px 0;
    }
}

.home-section-container {
    margin-bottom: 35px;
    width: 100%;
}

.animated-ticker-banner {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--glass-shadow);
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.ticker-label {
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-news-wrapper {
    overflow: hidden;
    height: 20px;
    flex: 1;
    position: relative;
}

.ticker-news-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-news-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.ticker-news-slide a {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 13px;
}

/* Featured Headlines Slider */
.featured-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    margin-bottom: 35px;
}

.featured-slides-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.hero-post-card {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
}

@media(min-width: 850px) {
    .hero-post-card {
        flex-direction: row;
        align-items: stretch;
    }
}

.hero-post-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1e293b;
}

@media(min-width: 850px) {
    .hero-post-image {
        width: 55%;
        aspect-ratio: auto;
        min-height: 400px;
    }
}

.hero-image-fallback {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.category-empty-message {
    color: var(--text-muted);
    padding: 12px 0;
}

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

.hero-post-card:hover .hero-post-image img {
    transform: scale(1.05);
}

.hero-post-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--danger-color);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
}

.hero-post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media(min-width: 850px) {
    .hero-post-content {
        width: 45%;
        padding: 40px;
    }
}

.hero-post-title {
    font-size: 20px;
    font-weight: 900;
    font-family: 'Georgia', serif;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.hero-post-title a {
    color: var(--text-main);
}

.hero-post-title a:hover {
    color: var(--accent-color);
}

@media(min-width: 850px) {
    .hero-post-title {
        font-size: 28px;
        margin-bottom: 16px;
    }
}

.hero-post-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
}

@media(min-width: 850px) {
    .hero-post-excerpt {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 24px;
    }
}

.featured-slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(15, 23, 42, 0.03);
    border-top: 1px solid var(--border-color);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent-color);
    width: 28px;
    border-radius: 6px;
}

.slider-arrow {
    background: rgba(15, 23, 42, 0.08);
    border: none;
    color: var(--text-main);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--accent-color);
    color: #ffffff;
}

.multi-blog-grid {
    display: grid;
    grid-template-columns: 100%;
    gap: 20px;
    width: 100%;
}

@media(min-width: 600px) {
    .multi-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media(min-width: 992px) {
    .multi-blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

.post-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
    border-color: rgba(37, 99, 235, 0.35);
}

.post-card-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #cbd5e1;
}

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

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

.post-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-title {
    font-size: 16px;
    font-weight: 800;
    font-family: 'Georgia', serif;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text-main);
}

.post-card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.read-more-btn {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

/* Single Post Article */
.single-post-article {
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 18px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

@media(min-width: 768px) {
    .single-post-article {
        padding: 40px;
    }
}

.single-post-title {
    font-size: 24px;
    font-weight: 900;
    font-family: 'Georgia', serif;
    color: var(--text-main);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

@media(min-width: 768px) {
    .single-post-title {
        font-size: 34px;
        margin-bottom: 16px;
    }
}

.single-post-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    align-items: center;
}

.reading-time-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-color);
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
}

.article-share-bar {
    display: flex;
    gap: 12px;
    margin: 25px 0;
    padding: 15px;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.share-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.speech-reader-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.speech-btn {
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.speech-btn:hover {
    background: #059669;
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    word-break: break-word;
}

@media(min-width: 768px) {
    .entry-content {
        font-size: 18px;
    }
}

.lazy-image {
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.6s ease, filter 0.6s ease;
}

.lazy-image.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Action Buttons */
#back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(37, 99, 235, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

#back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-4px) scale(1.05);
}

/* Floating Functional Dark/Light Mode Button (Moon Logo) */
#theme-toggle-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f8fafc;
    border: 2px solid rgba(255, 255, 255, 0.25);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: all 0.35s ease;
    z-index: 9999;
}

#theme-toggle-btn:hover {
    transform: scale(1.12) rotate(15deg);
    background: var(--accent-color);
    border-color: #ffffff;
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.5);
}

/* Dark Mode Overrides */
body.dark-mode {
    --bg-main: #0a0e17;
    --card-bg: rgba(26, 36, 56, 0.88);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --glass-border: rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, #070a10 0%, #0f172a 100%) !important;
    background-attachment: fixed !important;
}

body.dark-mode .site-header-news {
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .site-title a {
    color: #ffffff;
}

body.dark-mode .post-card, 
body.dark-mode .hero-post-card, 
body.dark-mode .featured-slider-wrapper, 
body.dark-mode .single-post-article {
    background: rgba(26, 36, 56, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .hero-post-title a, 
body.dark-mode .post-card-title a, 
body.dark-mode .single-post-title {
    color: #f8fafc;
}

body.dark-mode #theme-toggle-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.2);
}

/* Clean Social Media Footer Links without Broken Emojis */
.footer-social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social-icon:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Footer Styling */
.site-footer {
    background: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #ffffff;
    padding: 45px 0 20px 0;
    margin-top: 60px;
    border-top: 4px solid var(--accent-color);
    width: 100%;
}

.footer-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 100%;
    gap: 20px;
}

@media(min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        padding: 0 24px;
    }
}

.footer-card-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 22px;
    border-radius: 14px;
    width: 100%;
}

.footer-card-box h4 {
    font-size: 16px;
    margin: 0 0 12px 0;
    color: #ffffff;
    font-family: 'Georgia', serif;
}

.footer-card-box p, .footer-card-box a {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 35px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    color: #64748b;
}


/* v25.0: accessible dropdown navigation and icon-only social controls */
.main-navigation .menu,
.main-navigation ul.menu,
.main-navigation ul#primary-menu {
    list-style: none;
}
.main-navigation li {
    position: relative;
}
.main-navigation .sub-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
    z-index: 10000;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu,
.main-navigation li.menu-item-has-children.submenu-open > .sub-menu {
    display: flex;
}
.main-navigation .sub-menu li,
.main-navigation .sub-menu a {
    width: 100%;
}
.main-navigation .sub-menu a {
    display: block;
    color: #0f172a;
    padding: 10px 12px;
    border-radius: 8px;
    white-space: normal;
    text-transform: none;
}
.main-navigation .sub-menu a:hover,
.main-navigation .sub-menu .current-menu-item > a {
    background: #eff6ff;
    color: #1d4ed8;
    transform: none;
}
.main-navigation .menu-item-has-children > a::after {
    content: "⌄";
    display: inline-block;
    margin-left: 7px;
    font-size: 12px;
}
.main-navigation .sub-menu .menu-item-has-children > a::after {
    content: "›";
    float: right;
}
@media (min-width: 900px) {
    .main-navigation .sub-menu .sub-menu {
        top: 0;
        left: calc(100% - 2px);
    }
}
@media (max-width: 899px) {
    .main-navigation .sub-menu {
        position: static;
        min-width: 0;
        margin: 2px 0 6px 12px;
        padding: 5px;
        box-shadow: none;
        background: rgba(15, 23, 42, .16);
        border-color: rgba(255,255,255,.18);
    }
    .main-navigation .sub-menu a {
        color: #fff;
    }
    .main-navigation .sub-menu a:hover,
    .main-navigation .sub-menu .current-menu-item > a {
        background: rgba(255,255,255,.16);
        color: #fff;
    }
    .main-navigation .sub-menu .sub-menu {
        margin-left: 10px;
    }
}
#theme-toggle-btn .theme-icon {
    width: 22px;
    height: 22px;
    display: block;
}
#theme-toggle-btn .theme-icon-sun {
    display: none;
}
body.dark-mode #theme-toggle-btn .theme-icon-moon {
    display: none;
}
body.dark-mode #theme-toggle-btn .theme-icon-sun {
    display: block;
}
.share-icon-btn {
    width: 42px;
    height: 42px;
    padding: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.share-icon-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}
.footer-social-icon {
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: 50%;
}
.footer-social-icon svg {
    width: 21px;
    height: 21px;
    display: block;
}
body.dark-mode .main-navigation .sub-menu {
    background: #111827;
    border-color: #334155;
}
body.dark-mode .main-navigation .sub-menu a {
    color: #f8fafc;
}
body.dark-mode .main-navigation .sub-menu a:hover,
body.dark-mode .main-navigation .sub-menu .current-menu-item > a {
    background: #1e3a8a;
    color: #fff;
}
body.dark-mode .article-share-bar {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
}

/* Category headings link to their archive pages. */
.category-heading-link {
    color: inherit;
    text-decoration: none;
}
.category-heading-link:hover,
.category-heading-link:focus-visible {
    color: var(--accent-color);
}

/* Category story carousel is enabled only when a category has more than four posts. */
.category-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.category-carousel-track {
    display: flex;
    gap: 22px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}
.category-carousel-item {
    flex: 0 0 calc((100% - 44px) / 3);
    min-width: 0;
    display: flex;
}
.category-carousel-item .post-card {
    width: 100%;
}
.category-carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 14px;
}
@media (min-width: 1200px) {
    .category-carousel-item { flex-basis: calc((100% - 66px) / 4); }
}
@media (max-width: 991px) {
    .category-carousel-item { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 599px) {
    .category-carousel-track { gap: 16px; }
    .category-carousel-item { flex-basis: 100%; }
}
