/*
Theme Name: Aetheria Editorial
Theme URI: https://example.com/aetheria-editorial
Author: Antigravity
Author URI: https://example.com
Description: A simple, modern, minimal, complete WordPress theme for a news magazine or portal site. Features high-end typography (Outfit & Lora), responsive Hero and Content grids, client-side light/dark mode, AJAX load more, and smooth micro-animations.
Version: 1.0
Requires PHP: 7.4
Requires at least: 6.0
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aetheria
Tags: blog, news, grid-layout, one-column, two-columns, custom-background, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, translation-ready, rtl-language-support
*/

/* -------------------------------------------------------------
 * 1. DESIGN SYSTEM & VARIABLE DEFINITIONS
 * ------------------------------------------------------------- */
:root {
    /* Colors (Light Mode) */
    --bg-primary: #FBFBFA;       /* Warm paper white */
    --bg-secondary: #F3F2EE;     /* Soft warm grey background */
    --bg-card: #FFFFFF;          /* Pure white for containers */
    --text-primary: #111827;     /* Deep slate dark grey */
    --text-secondary: #4B5563;   /* Medium grey */
    --text-muted: #8E939E;        /* Lighter metadata grey */
    --border-color: #E6E5E2;     /* Warm border divider */
    
    /* Branding Accent & Gradients */
    --accent-color: #6366F1;
    --accent-color-hover: #4F46E5;
    --accent-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    --accent-gradient-hover: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #D946EF 100%);
    
    /* State colors */
    --success: #10B981;
    --error: #EF4444;
    
    /* Layout Dimensions */
    --container-max: 1280px;
    --nav-height: 80px;
    --top-bar-height: 40px;
    
    /* Border Radii */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    /* Typography */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Lora', Georgia, Cambria, "Times New Roman", Times, serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.06), 0 8px 16px rgba(0, 0, 0, 0.03);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bg-primary: #0B0F17;       /* Midnight slate black */
    --bg-secondary: #121824;     /* Deep slate blue background */
    --bg-card: #161F30;          /* Card slate blue */
    --text-primary: #F1F5F9;     /* Off-white */
    --text-secondary: #94A3B8;   /* Light slate grey */
    --text-muted: #64748B;        /* Muted slate grey */
    --border-color: #212C3F;     /* Slate border divider */
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.35);
}

/* -------------------------------------------------------------
 * 2. CORE RESETS & BASE STYLES
 * ------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* Screen reader text standard */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* -------------------------------------------------------------
 * 3. LAYOUT & STRUCTURAL GRID
 * ------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Two-column layout grid for index, archive, single pages */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .layout-grid {
        grid-template-columns: 2.2fr 1fr;
    }
}

/* -------------------------------------------------------------
 * 4. HEADER & NAVIGATION STYLING
 * ------------------------------------------------------------- */
/* Top bar utility navigation */
.top-bar {
    height: var(--top-bar-height);
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: none;
}

@media (min-width: 768px) {
    .top-bar {
        display: block;
    }
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.trending-badge {
    background: var(--accent-gradient);
    color: #FFFFFF;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
}

.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
    width: 300px;
    display: inline-block;
    vertical-align: middle;
}

.ticker-item {
    display: inline-block;
    padding-right: 20px;
    animation: ticker 15s linear infinite;
}

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

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

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

/* Primary Header */
.site-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease, background-color 0.4s ease;
}

.site-header .container {
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand styling */
.site-branding {
    display: flex;
    align-items: center;
}

.logo-link {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

/* Navigation items */
.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: block;
        height: 100%;
    }
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100%;
    align-items: center;
    gap: 30px;
}

.main-menu li {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.main-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 10px 0;
    position: relative;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.main-menu a:hover {
    color: var(--text-primary);
}

.main-menu a:hover::after,
.main-menu .current-menu-item > a::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Sub-menus dropdown style */
.main-menu li.menu-item-has-children {
    position: relative;
}

.main-menu li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu .sub-menu {
    position: absolute;
    top: calc(100% - 10px);
    left: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 10;
}

.main-menu .sub-menu li {
    width: 100%;
    height: auto;
    display: block;
}

.main-menu .sub-menu a {
    display: block;
    padding: 8px 12px;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.main-menu .sub-menu a::after {
    display: none;
}

.main-menu .sub-menu a:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Header actions (Search, Theme Toggle, Mobile Trigger) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    transition: var(--transition-fast);
}

.action-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
    transform: scale(1.05);
}

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 20px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

@media (min-width: 1024px) {
    .hamburger-btn {
        display: none;
    }
}

.hamburger-btn span {
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Mobile Nav Drawer overlay */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    padding: 40px 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 40px;
    border-left: 1px solid var(--border-color);
}

.mobile-nav-drawer.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-items a {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mobile-menu-items .sub-menu {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.95rem;
    border-left: 2px solid var(--border-color);
}

.mobile-menu-items .sub-menu a {
    font-weight: 500;
    color: var(--text-secondary);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 15, 23, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Search Modal styling */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-container {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-modal-close {
    position: absolute;
    top: -60px;
    right: 0;
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 300;
}

.search-modal-form {
    display: flex;
    border-bottom: 2px solid #FFFFFF;
    padding-bottom: 10px;
}

.search-modal-input {
    background: transparent;
    border: none;
    width: 100%;
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 5px 10px;
    outline: none;
}

.search-modal-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-modal-submit {
    color: #FFFFFF;
    font-size: 1.5rem;
    padding: 0 10px;
}

/* -------------------------------------------------------------
 * 5. FRONT PAGE HERO GRID
 * ------------------------------------------------------------- */
.hero-section {
    margin-bottom: 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 2.2fr 1fr;
    }
}

/* Left main featured big post */
.featured-post-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    background-color: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-end;
}

.featured-post-card .post-img-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.featured-post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.featured-post-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 15, 23, 0) 40%, rgba(11, 15, 23, 0.85) 100%);
    z-index: 1;
    pointer-events: none;
}

.featured-post-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    color: #FFFFFF;
    width: 100%;
}

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

.category-badge {
    background: var(--accent-gradient);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 15px;
    transition: var(--transition-fast);
}

.category-badge:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-1px);
}

.featured-post-title {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

@media (min-width: 768px) {
    .featured-post-title {
        font-size: 2.25rem;
    }
}

.featured-post-title a:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.featured-post-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.85;
    margin-bottom: 20px;
    display: none;
    max-width: 800px;
}

@media (min-width: 768px) {
    .featured-post-excerpt {
        display: block;
    }
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.featured-post-content .post-meta {
    color: rgba(255, 255, 255, 0.7);
}

.post-meta-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.post-meta-author {
    color: inherit;
}

/* Right side trending list */
.trending-sidebar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.section-subheading {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subheading::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gradient);
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trending-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

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

.trending-number {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

.trending-body {
    flex-grow: 1;
}

.trending-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

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

/* -------------------------------------------------------------
 * 6. CARDS & GENERAL POST GRID
 * ------------------------------------------------------------- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-gradient);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* General post card styling */
.post-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.2);
}

.post-card-img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

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

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

.post-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-category {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 10px;
    display: inline-block;
}

.post-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}

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

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

.post-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Ajax Load More trigger */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.load-more-btn {
    background: var(--accent-gradient);
    color: #FFFFFF;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spin 0.8s linear infinite;
    display: none;
}

.load-more-btn.loading .spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* -------------------------------------------------------------
 * 7. SIDEBAR WIDGETS
 * ------------------------------------------------------------- */
.sidebar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.widgettitle {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.widgettitle::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gradient);
}

/* Category widget cloud */
.widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget_categories li {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.widget_categories a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

/* Newsletter Widget */
.newsletter-widget {
    background: var(--accent-gradient);
    color: #FFFFFF;
    border: none;
    text-align: center;
}

.newsletter-widget .widgettitle {
    color: #FFFFFF;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.newsletter-widget .widgettitle::after {
    background: #FFFFFF;
}

.newsletter-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-input {
    width: 100%;
    padding: 12px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    background-color: #FFFFFF;
    color: #111827;
    border-color: #FFFFFF;
}

.newsletter-submit {
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    background-color: #FFFFFF;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------------------
 * 8. SINGLE POST TEMPLATE & TYPOGRAPHY
 * ------------------------------------------------------------- */
/* Top reading progress bar */
.reading-progress-bar {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    height: 4px;
    background: var(--accent-gradient);
    width: 0%;
    z-index: 99;
}

/* Custom layout for single column reading layout */
.post-layout-single {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

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

.post-header-single {
    margin-bottom: 30px;
}

.post-title-single {
    font-size: 2rem;
    line-height: 1.15;
    margin-top: 15px;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

@media (min-width: 768px) {
    .post-title-single {
        font-size: 3rem;
    }
}

.single-post-meta {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reading-time-badge {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.post-featured-image-single {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.post-featured-image-single img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
}

/* Article content styling */
.post-content {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .post-content {
        font-size: 1.2rem;
    }
}

.post-content p {
    margin-bottom: 1.8rem;
}

/* Elegant Dropcap for first paragraph */
.post-content > p:first-of-type::first-letter {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 3.5rem;
    float: left;
    line-height: 0.8;
    margin-top: 0.15em;
    margin-right: 0.1em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Styled Blockquotes */
.post-content blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.7;
    margin: 40px 0;
    padding: 10px 0 10px 30px;
    border-left: 4px solid var(--accent-color);
    position: relative;
    color: var(--text-secondary);
}

.post-content blockquote::before {
    content: '“';
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.15;
    position: absolute;
    top: -15px;
    left: 10px;
}

/* Single content media margins */
.post-content figure {
    margin: 40px -24px;
}

@media (min-width: 768px) {
    .post-content figure {
        margin: 45px -40px;
    }
}

.post-content figure img {
    border-radius: var(--radius-md);
    width: 100%;
}

.post-content figcaption {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

/* Social Share Bar */
.share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.share-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.share-btn-fb {
    background-color: #1877F2;
    color: #FFFFFF;
}

.share-btn-fb:hover {
    background-color: #166FE5;
}

.share-btn-tw {
    background-color: #000000;
    color: #FFFFFF;
}

.share-btn-tw:hover {
    background-color: #1e1e1e;
}

.share-btn-copy {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.share-btn-copy:hover {
    background-color: var(--border-color);
}

/* Toast alert notification styling */
.toast-msg {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--text-primary);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-msg.show {
    transform: translateX(-50%) translateY(0);
}

/* Related Posts block */
.related-posts-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* Author Box block */
.author-box {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 640px) {
    .author-box {
        flex-direction: row;
        align-items: center;
    }
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-box-info {
    flex-grow: 1;
}

.author-box-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.author-box-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* -------------------------------------------------------------
 * 9. COMMENTS SECTION
 * ------------------------------------------------------------- */
.comments-area {
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.comment {
    display: flex;
    gap: 20px;
}

.comment-body {
    flex-grow: 1;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-author-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.comment-reply {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-color);
}

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

.comment-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* Nested comments indentation */
.comment-list .children {
    list-style: none;
    padding-left: 20px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-left: 2px solid var(--border-color);
}

@media (min-width: 640px) {
    .comment-list .children {
        padding-left: 40px;
    }
}

/* Comment Form styling */
.comment-respond {
    margin-top: 50px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.comment-reply-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .comment-form-author,
    .comment-form-email {
        grid-column: span 1;
    }
    
    .comment-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

.comment-form-comment {
    grid-column: 1 / -1;
}

.comment-form-cookies-consent {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    background-color: var(--bg-card);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-submit {
    grid-column: 1 / -1;
}

.form-submit input[type="submit"] {
    background: var(--accent-gradient);
    color: #FFFFFF;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
    cursor: pointer;
}

.form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* -------------------------------------------------------------
 * 10. SITE FOOTER
 * ------------------------------------------------------------- */
.site-footer {
    background-color: #0B0F17; /* Always dark bg for footer */
    color: #94A3B8;
    padding-top: 80px;
    border-top: 1px solid #1E293B;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 640px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-widgets {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-widget .widgettitle {
    color: #FFFFFF;
    border-bottom-color: #1E293B;
}

.footer-widget .widgettitle::after {
    background: var(--accent-gradient);
}

.footer-widget a {
    color: #94A3B8;
}

.footer-widget a:hover {
    color: #FFFFFF;
}

.footer-logo {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding: 30px 0;
    font-size: 0.85rem;
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-nav a:hover {
    color: #FFFFFF;
}

/* Scroll To Top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 99;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--accent-color);
    color: #FFFFFF;
    border-color: var(--accent-color);
    transform: scale(1.1);
}

/* -------------------------------------------------------------
 * 11. GENERAL WORDPRESS CLASS FALLBACKS
 * ------------------------------------------------------------- */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.alignright { float: right; margin: 5px 0 20px 20px; }
a img.alignnone { margin: 5px 20px 20px 0; }
a img.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { background: var(--bg-secondary); border: 1px solid var(--border-color); max-width: 96%; padding: 5px 3px 10px; text-align: center; }
.wp-caption.alignnone { margin: 5px 20px 20px 0; }
.wp-caption.alignleft { margin: 5px 20px 20px 0; }
.wp-caption.alignright { margin: 5px 0 20px 20px; }
.wp-caption img { border: 0 none; height: auto; margin: 0; padding: 0; width: auto; }
.wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; margin: 0; padding: 0 4px 5px; }

/* Responsive utility margins */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

.text-center { text-align: center; }
