/* ============================================================
   ELEKTROFIZIKCI - News Theme
   Modern Professional Design | Electric Blue + Dark Navy
   Zero border-radius | Clean Sharp Layout
   ============================================================ */

/* ==========================================================
   1. CSS VARIABLES
   ========================================================== */
:root {
    /* Primary Colors */
    --primary: #0077FF;
    --primary-dark: #005FCC;
    --primary-light: #3399FF;
    --primary-rgb: 0, 119, 255;

    /* Secondary */
    --secondary: #00C9A7;
    --secondary-rgb: 0, 201, 167;

    /* Neutral Colors */
    --navy: #0f1923;
    --navy-light: #162331;
    --navy-lighter: #1e3a5f;

    /* Background & Surface */
    --bg: #ffffff;
    --bg-alt: #f0f4f8;
    --bg-alt-2: #f7f9fc;
    --surface: #ffffff;

    /* Text */
    --text: #1a1a2e;
    --text-secondary: #374151;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Borders & Shadows */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --container: 1320px;
    --gap: 24px;
    --gap-sm: 16px;
    --gap-lg: 32px;
    --gap-xl: 48px;

    /* Transitions */
    --transition: 0.2s ease;
    --transition-slow: 0.4s ease;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0077FF 0%, #00C9A7 100%);

    /* Social Colors */
    --facebook: #1877f2;
    --twitter: #14171a;
    --linkedin: #0a66c2;
    --pinterest: #e60023;
    --whatsapp: #25d366;
}

/* ==========================================================
   2. DARK MODE VARIABLES
   ========================================================== */
[data-theme="dark"] {
    --primary: #3399FF;
    --primary-dark: #0077FF;
    --primary-light: #66B3FF;
    --primary-rgb: 51, 153, 255;

    --secondary: #00E4BC;
    --secondary-rgb: 0, 228, 188;

    --bg: #0f1923;
    --bg-alt: #162331;
    --bg-alt-2: #1a2d3f;
    --surface: #162331;

    --text: #e2e8f0;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;

    --border: #1e3a5f;
    --border-light: #162331;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);

    --twitter: #e2e8f0;
}

/* ==========================================================
   3. RESET & BASE
   ========================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

::selection {
    background: var(--primary);
    color: #fff;
}

/* ==========================================================
   4. LAYOUT
   ========================================================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
}

/* ==========================================================
   5. TOP BAR
   ========================================================== */
/* Theme Toggle (in header-actions) */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition);
    cursor: pointer;
}

.theme-toggle:hover {
    color: #fff;
}

.theme-toggle .icon-moon {
    display: none;
}

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

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

/* Footer logo light/dark swap */
.footer-logo-dark {
    display: none;
}

[data-theme="dark"] .footer-logo-light {
    display: none;
}

[data-theme="dark"] .footer-logo-dark {
    display: block;
}

/* ==========================================================
   6. HEADER / NAVIGATION
   ========================================================== */
.site-header {
    background: linear-gradient(135deg, #0f1923 0%, #162640 50%, #0f1923 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

/* Branding */
.site-branding a {
    display: flex;
    align-items: center;
}

.site-branding img {
    height: 34px;
    width: auto;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 14px;
    display: block;
    position: relative;
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

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

.search-toggle,
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.search-toggle:hover,
.mobile-menu-toggle:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform var(--transition), opacity var(--transition);
}

/* ==========================================================
   7. SEARCH MODAL
   ========================================================== */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-modal.active {
    display: flex;
}

.search-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.search-modal-content {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 20px;
}

.search-modal-form {
    display: flex;
    align-items: center;
    background: var(--surface);
    padding: 16px 22px;
    gap: 14px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.search-modal-form svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.search-modal-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.125rem;
    font-family: var(--font-body);
    background: transparent;
    color: var(--text);
}

.search-modal-input::placeholder {
    color: var(--text-muted);
}

.search-modal-form kbd {
    font-size: 0.6875rem;
    padding: 3px 8px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 600;
}

/* ==========================================================
   8. MOBILE MENU
   ========================================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.mobile-menu-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 320px;
    background: var(--surface);
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.mobile-menu-overlay.active .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-header .site-title {
    font-size: 1.25rem;
}

.mobile-menu-close {
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
}

.mobile-menu-close:hover {
    color: var(--text);
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    border-bottom: 1px solid var(--border);
}

.mobile-nav a {
    display: block;
    padding: 14px 0;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color var(--transition);
}

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

/* ==========================================================
   9. SECTION HEADERS
   ========================================================== */
.section-header {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    position: relative;
    padding-left: 12px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--gradient-primary);
}

.section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    min-width: 40px;
}

.section-desc {
    width: 100%;
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-top: -6px;
    padding-left: 12px;
}

.section-header-icon {
    display: flex;
    align-items: center;
    color: var(--primary);
}

/* ==========================================================
   10. HERO SECTION
   ========================================================== */
.hero-section {
    padding: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4px;
    height: 480px;
}

.hero-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    height: 480px;
}

/* ==========================================================
   11. POST CARD OVERLAY (Hero Cards)
   ========================================================== */
.post-card-overlay {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    height: 100%;
}

.hero-main {
    height: 100%;
}

.hero-main .post-card-overlay {
    height: 100%;
}

.hero-main .overlay-link {
    height: 100%;
}

.hero-main .post-card-overlay img {
    height: 100%;
    object-fit: cover;
}

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

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

.overlay-link {
    display: block;
    position: relative;
    height: 100%;
}

.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.55) 35%,
        rgba(0, 0, 0, 0.2) 60%,
        rgba(0, 0, 0, 0.05) 80%,
        transparent 100%
    );
    z-index: 1;
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 2;
    color: #fff;
}

.overlay-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    margin-bottom: 14px;
}

.overlay-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 10px;
}

.overlay-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

.meta-sep {
    opacity: 0.5;
}

/* Overlay Large (Hero Main) */
.overlay-large {
    min-height: 520px;
}

.overlay-large .overlay-content {
    padding: 36px;
}

.overlay-large .overlay-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    max-width: 85%;
}

.overlay-large .overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 18px;
    margin-top: 8px;
    transition: background var(--transition);
}

.overlay-large .overlay-btn:hover {
    background: var(--primary-dark);
}

/* Overlay Small (Hero Side) */
.overlay-small {
    min-height: 258px;
}

.overlay-small .overlay-content {
    padding: 20px;
}

.overlay-small .overlay-title {
    font-size: 1rem;
    font-weight: 700;
}

/* ==========================================================
   12. TRENDING SECTION
   ========================================================== */
.section-trending {
    padding: 32px 0 40px;
    background: var(--bg);
}

.trending-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--gap);
}

.trending-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column: span 2;
    gap: var(--gap);
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.trending-list-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text);
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 2px solid var(--primary);
}

.trending-list .post-card-small {
    position: relative;
    padding-left: 0;
}

/* Trend Badge */
.trend-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    margin-bottom: 4px;
}

.trend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.trend-item:last-child {
    border-bottom: none;
}

.trend-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.25;
    line-height: 1;
    flex-shrink: 0;
    min-width: 32px;
    text-align: center;
}

.trend-image {
    flex-shrink: 0;
    width: 90px;
    height: 68px;
    overflow: hidden;
}

.trend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.trend-item:hover .trend-image img {
    transform: scale(1.05);
}

.trend-body {
    flex: 1;
    min-width: 0;
}

.trend-title {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.trend-title a {
    color: var(--text);
    transition: color var(--transition);
}

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

.trend-body time {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

/* ==========================================================
   13. POST CARD (Standard Vertical)
   ========================================================== */
.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.08) 0%, transparent 40%);
    pointer-events: none;
    transition: opacity var(--transition);
}

.post-card:hover .card-image::after {
    opacity: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.card-body {
    padding: 20px;
}

.card-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    margin-bottom: 10px;
    transition: background var(--transition);
}

.card-badge:hover {
    opacity: 0.9;
    color: #fff;
}

.card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

.card-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 12px;
    transition: gap var(--transition);
}

.card-read-more:hover {
    gap: 8px;
    color: var(--primary-dark);
}

/* ==========================================================
   14. POST CARD SMALL (Horizontal)
   ========================================================== */
.post-card-small {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.post-card-small:last-child {
    border-bottom: none;
}

.card-sm-image {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    overflow: hidden;
}

.card-sm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.card-sm-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-sm-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 6px;
}

.card-sm-title a {
    color: var(--text);
    transition: color var(--transition);
}

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

.card-sm-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================
   15. CATEGORIES SECTION (NEW DESIGN)
   ========================================================== */
.section-categories {
    padding: var(--gap-xl) 0;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--gap-sm);
}

.category-icon-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 28px 16px;
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.category-icon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition);
}

.category-icon-card:hover::before {
    opacity: 1;
}

.category-icon-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.category-icon {
    width: 52px;
    height: 52px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: all var(--transition);
}

.category-icon-card:hover .category-icon {
    background: var(--gradient-primary);
    color: #fff;
}

.category-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.category-icon-card h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.category-icon-card h3 a {
    color: var(--text);
    transition: color var(--transition);
}

.category-icon-card h3 a:hover {
    color: var(--primary);
}

/* Legacy category card styles (for backward compatibility) */
.categories-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl);
    align-items: center;
}

.categories-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.categories-text .section-header {
    margin-bottom: 16px;
}

.categories-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.categories-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.categories-cta svg {
    transition: transform var(--transition);
}

.categories-cta:hover svg {
    transform: translateX(4px);
}

.category-card {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition);
    color: var(--text);
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    color: var(--text);
}

.category-card-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    position: relative;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.category-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--primary);
}

[data-theme="dark"] .category-card-placeholder {
    background: var(--navy-lighter);
}

.section-categories .category-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border: none;
}

.section-categories .category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.section-categories .category-card:hover img {
    transform: scale(1.05);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 1;
}

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}

.category-card-arrow {
    width: 36px;
    height: 36px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: background var(--transition);
}

.category-card:hover .category-card-arrow {
    background: var(--primary-dark);
}

.category-card-body {
    padding: 18px;
}

.category-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.category-card-body p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

/* ==========================================================
   16. LATEST NEWS SECTION
   ========================================================== */
.section-latest {
    padding: var(--gap-xl) 0;
}

.latest-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--gap);
}

.latest-top-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.latest-top-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.latest-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--gap);
}

.latest-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.latest-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.latest-list {
    display: flex;
    flex-direction: column;
}

.latest-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    margin-top: var(--gap);
}

/* ==========================================================
   17. EDITOR'S CHOICE SECTION
   ========================================================== */
.section-editors {
    padding: var(--gap-xl) 0;
    background: var(--bg-alt);
}

.editors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.editor-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition);
}

.editor-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.editor-card-image {
    flex-shrink: 0;
    width: 40%;
    min-height: 140px;
    overflow: hidden;
}

.editor-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.editor-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.editor-card-category {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 8px;
}

.editor-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.editor-card-body h3 a {
    color: var(--text);
    transition: color var(--transition);
}

.editor-card-body h3 a:hover {
    color: var(--primary);
}

.editor-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.editor-card-excerpt {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.editor-card-link,
.editor-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition);
}

.editor-card-link:hover,
.editor-card-readmore:hover {
    gap: 8px;
    color: var(--primary-dark);
}

/* ==========================================================
   18. SIDEBAR
   ========================================================== */
.sidebar {
    position: relative;
}

.sidebar-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: var(--gap);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary);
    position: relative;
}

/* Table of Contents Widget */
.sidebar-toc {
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    z-index: 10;
}

.sidebar-toc.toc-fixed {
    position: fixed;
    top: 72px;
}

.sidebar-toc.toc-bottomed {
    position: absolute;
    bottom: 0;
    top: auto;
}

.toc-placeholder {
    display: none;
}

.sidebar-toc .widget-title {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.toc-header svg {
    color: var(--primary);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.toc-nav {
    max-height: 420px;
    overflow-y: auto;
    padding: 4px 18px 4px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.toc-nav::-webkit-scrollbar {
    width: 3px;
}

.toc-nav::-webkit-scrollbar-track {
    background: transparent;
}

.toc-nav::-webkit-scrollbar-thumb {
    background: var(--border);
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--border);
    margin-left: 18px;
}

.toc-item {
    position: relative;
}

.toc-link {
    display: block;
    padding: 7px 14px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    transition: color 0.15s, border-color 0.15s;
    text-decoration: none;
}

.toc-link:hover {
    color: var(--text);
}

.toc-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 500;
}

.toc-link-sub {
    padding-left: 28px;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.85;
}

.toc-link-sub.active {
    opacity: 1;
}

.toc-progress {
    height: 2px;
    background: var(--border-light);
    position: relative;
}

.toc-progress-bar {
    height: 100%;
    width: 0;
    background: var(--primary);
    transition: width 0.15s linear;
}

/* Hide TOC if no headings found */
.sidebar-toc.toc-empty {
    display: none;
}

/* Widget Posts */
.widget-posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.widget-post-item {
    display: flex;
    gap: 12px;
}

.widget-post-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    overflow: hidden;
}

.widget-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.widget-post-item:hover .widget-post-thumb img {
    transform: scale(1.05);
}

.widget-post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.widget-post-info h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.widget-post-info h4 a {
    color: var(--text);
    transition: color var(--transition);
}

.widget-post-info h4 a:hover {
    color: var(--primary);
}

.widget-post-info time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Widget Categories */
.widget-categories {
    list-style: none;
}

.widget-categories li {
    border-bottom: 1px solid var(--border);
}

.widget-categories li:last-child {
    border-bottom: none;
}

.widget-categories a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition), padding-left var(--transition);
}

.widget-categories a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.widget-categories a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.widget-categories a:hover::before {
    transform: scale(1.3);
}

/* Widget Tags */
.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.widget-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-alt);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.widget-tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Newsletter Widget */
.newsletter-widget p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

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

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.875rem;
    font-family: var(--font-body);
    transition: border-color var(--transition);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    transition: background var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.newsletter-message {
    font-size: 0.8125rem;
    margin-top: 8px;
}

.newsletter-message.success {
    color: #10b981;
}

.newsletter-message.error {
    color: #ef4444;
}

/* ==========================================================
   19. SINGLE POST PAGE - PRO DESIGN
   ========================================================== */
.single-main {
    padding: 0 0 48px;
}

.single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    padding-top: 32px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding: 16px 0;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition);
}

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

.breadcrumb-sep {
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.breadcrumb-current {
    color: var(--primary);
    font-weight: 500;
}

/* Article Header - Full width hero style */
.article-header {
    padding: 32px 0 24px;
}

.article-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 16px;
    margin-bottom: 16px;
    transition: opacity var(--transition);
}

.article-badge:hover {
    opacity: 0.9;
    color: #fff;
}

.article-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-alt);
    border-left: 4px solid transparent;
    border-image: var(--gradient-primary) 1;
    border-image-slice: 0 0 0 1;
}

.article-avatar {
    width: 44px;
    height: 44px;
    object-fit: cover;
    flex-shrink: 0;
}

.article-avatar-placeholder {
    width: 44px;
    height: 44px;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.0625rem;
    flex-shrink: 0;
}

.article-meta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article-author {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
}

.article-author-prefix {
    font-weight: 400;
    color: var(--text-muted);
}

.article-meta-details {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.article-meta-details svg {
    vertical-align: -2px;
    opacity: 0.6;
    margin-right: 2px;
}

.article-meta-details .meta-sep {
    font-size: 0.5rem;
    opacity: 0.6;
}

/* Featured Image */
.article-featured-image {
    margin: 24px 0 32px;
    position: relative;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    display: block;
}

.article-featured-image figcaption {
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-style: italic;
}

/* Article Content */
.article-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    margin-bottom: 32px;
    color: var(--text-secondary);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
    color: var(--text);
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
    color: var(--text);
}

.article-content h4 {
    font-size: 1.125rem;
    margin: 24px 0 10px;
    color: var(--text);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 20px 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid transparent;
    border-image: var(--gradient-primary) 1;
    border-image-slice: 0 0 0 1;
    padding: 20px 24px;
    margin: 32px 0;
    background: var(--bg-alt);
    font-style: italic;
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

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

.article-content pre {
    background: var(--navy);
    color: #e2e8f0;
    padding: 24px;
    margin: 32px 0;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
    border: 1px solid var(--navy-lighter);
}

.article-content code {
    background: var(--bg-alt);
    padding: 2px 6px;
    font-size: 0.875em;
    color: var(--primary);
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-content img {
    margin: 24px 0;
    max-width: 100%;
    height: auto;
}

/* Broken images - graceful fallback */
.article-content img[src=""],
.article-content img:not([src]) {
    display: none;
}

.article-content img.broken-image {
    display: block;
    min-height: 120px;
    background: var(--bg-alt);
    border: 1px dashed var(--border);
    position: relative;
}

/* Responsive table wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
}

.article-content table {
    min-width: 500px;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
    overflow-wrap: break-word;
}

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

/* Prevent content from breaking layout */
.article-content * {
    max-width: 100%;
}

.article-content iframe {
    max-width: 100%;
}

.single-article {
    min-width: 0;
    overflow: hidden;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.article-content table th,
.article-content table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}

.article-content table th {
    background: var(--bg-alt);
    font-weight: 600;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 32px 0;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Tags */
.article-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    margin-bottom: 20px;
}

.tags-label {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text);
}

.tag-chip {
    display: inline-block;
    padding: 5px 14px;
    background: var(--bg-alt);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.tag-chip:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Share */
.article-share {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 0;
    margin-bottom: 28px;
}

.share-label {
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    color: var(--text);
}

.share-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: opacity var(--transition), transform var(--transition);
}

.share-btn:hover {
    opacity: 0.9;
    color: #fff;
    transform: translateY(-1px);
}

.share-btn svg {
    flex-shrink: 0;
}

.share-fb,
.share-facebook {
    background: var(--facebook);
}

.share-tw,
.share-twitter {
    background: var(--twitter);
}

[data-theme="dark"] .share-tw,
[data-theme="dark"] .share-twitter {
    background: #e2e8f0;
    color: #0f1923;
}

/* Dark mode footer */
[data-theme="dark"] .site-footer {
    background: #0d1117;
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .footer-logo {
    color: #fff;
}

[data-theme="dark"] .footer-heading {
    color: #fff;
}

[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-tagline,
[data-theme="dark"] .footer-newsletter-desc {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .footer-posts a {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .footer-posts time {
    color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .footer-posts li {
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .footer-social a {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .footer-newsletter-form input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

[data-theme="dark"] .footer-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .footer-bottom {
    background: #0a0e14;
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .footer-bottom p,
[data-theme="dark"] .footer-bottom-links a {
    color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .footer-newsletter {
    border-color: rgba(255, 255, 255, 0.06);
}

/* Author page dark mode */
[data-theme="dark"] .author-hero {
    background: #0a0e14;
}

[data-theme="dark"] .author-category-tag {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .author-category-tag span {
    background: var(--primary);
}

[data-theme="dark"] .author-section-header h2 {
    color: #fff;
}

/* Category page dark mode */
[data-theme="dark"] .category-hero {
    background: #0a0e14;
}

[data-theme="dark"] .category-subcategory-link {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .category-section-header h2 {
    color: #fff;
}

.share-li,
.share-linkedin {
    background: var(--linkedin);
}

.share-pi,
.share-pinterest {
    background: var(--pinterest);
}

.share-wa {
    background: var(--whatsapp);
}

.share-copy,
.share-copy-btn {
    background: var(--text-muted);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

/* Author Box - Pro Design */
.author-box {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.author-box::after {
    content: '';
    position: absolute;
    top: 32px;
    right: 32px;
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    opacity: 0.04;
    transform: rotate(45deg);
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--bg-alt);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-box-avatar-placeholder {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.author-box-info {
    position: relative;
    z-index: 1;
}

.author-box-label {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    background: var(--gradient-primary);
    padding: 2px 10px;
    margin-bottom: 10px;
}

.author-box-info h4 {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text);
}

.author-box-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================
   20. COMMENTS
   ========================================================== */
.comments-section {
    margin-top: 40px;
    padding: 32px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

.comments-header {
    margin-bottom: 24px;
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--primary);
}

.comments-title svg {
    color: var(--primary);
    flex-shrink: 0;
}

.comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
}

.comments-list {
    margin-bottom: 36px;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-avatar-placeholder {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
}

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

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

/* Comment Form */
.comment-form-wrapper {
    margin-top: 28px;
}

.comment-form-wrapper h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    padding-left: 12px;
    position: relative;
}

.comment-form-wrapper h4 svg {
    color: var(--primary);
    flex-shrink: 0;
}

.comment-form-wrapper h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--gradient-primary);
}

.comment-form-wrapper .comment-form-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-left: 12px;
}

.comment-form .comment-form-message-field,
.comment-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 14px;
    transition: border-color var(--transition);
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.comment-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: border-color var(--transition);
}

.comment-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: var(--text-muted);
}

.comment-form-message {
    margin-top: 10px;
    font-size: 0.8125rem;
}

.comment-form-message.success {
    color: #10b981;
}

.comment-form-message.error {
    color: #ef4444;
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 200;
    transition: width 0.1s linear;
}

/* ==========================================================
   21. RELATED POSTS
   ========================================================== */
.section-related {
    padding: var(--gap-xl) 0;
    background: var(--bg-alt);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

/* ==========================================================
   22. ARCHIVE / SEARCH PAGES
   ========================================================== */
.archive-main {
    padding: 40px 0;
}

.archive-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, transparent 100%) 1;
}

.archive-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.archive-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.archive-count {
    display: inline-block;
    background: var(--bg-alt);
    padding: 4px 14px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 10px;
    border: 1px solid var(--border);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

/* Search Page */
.search-page-form {
    display: flex;
    gap: 0;
    margin-bottom: 36px;
}

.search-page-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-right: none;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color var(--transition);
}

.search-page-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-page-btn {
    padding: 14px 24px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 2px solid var(--primary);
    transition: background var(--transition);
}

.search-page-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results svg {
    color: var(--text-muted);
    margin: 0 auto 16px;
}

.no-results h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ==========================================================
   23. ERROR PAGES (404, 403)
   ========================================================== */
.error-main {
    padding: 80px 0;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.error-content h1 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.error-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.error-search {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.error-search form {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 400px;
}

.error-categories {
    margin-bottom: 32px;
}

.error-categories h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.error-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.chip {
    display: inline-block;
    padding: 6px 18px;
    background: var(--bg-alt);
    color: var(--text);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

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

/* ==========================================================
   24. STATIC PAGES
   ========================================================== */
.page-main {
    padding: 40px 0;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 28px;
}

.page-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

.page-content h2 {
    font-size: 1.5rem;
    margin: 36px 0 16px;
    color: var(--text);
}

.page-content h3 {
    font-size: 1.25rem;
    margin: 28px 0 12px;
    color: var(--text);
}

.page-content p {
    margin-bottom: 18px;
}

.page-content ul,
.page-content ol {
    margin: 0 0 18px 24px;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

.page-featured-image {
    margin-bottom: 32px;
}

/* ==========================================================
   24b. AUTHOR PAGE
   ========================================================== */
.author-main {
    padding-bottom: 60px;
}

/* Author Hero */
.author-hero {
    background: var(--navy);
    padding: 48px 0 40px;
    margin-bottom: 36px;
}

.author-profile {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 32px;
}

.author-profile-avatar {
    flex-shrink: 0;
}

.author-profile-avatar img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.author-profile-initials {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.author-profile-info {
    flex: 1;
    min-width: 0;
}

.author-profile-name {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.author-profile-bio {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 600px;
}

/* Author Social Icons */
.author-profile-social {
    display: flex;
    gap: 8px;
}

.author-profile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all var(--transition);
}

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

/* Author Stats */
.author-stats {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
}

.author-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 32px;
    position: relative;
}

.author-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 2px;
    bottom: 2px;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.author-stat:first-child {
    padding-left: 0;
}

.author-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 4px;
}

.author-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* Author Categories */
.author-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.author-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-alt);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.author-category-tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.author-category-tag span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
}

.author-category-tag:hover span {
    background: rgba(255, 255, 255, 0.25);
}

/* Author Section Header */
.author-section-header {
    margin-bottom: 28px;
}

.author-section-header h2 {
    font-size: 1.375rem;
    font-weight: 800;
    padding-bottom: 14px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, transparent 100%) 1;
    display: inline-block;
}

.section-line {
    display: none;
}

/* ==========================================================
   24c. CATEGORY ARCHIVE PAGE (MODERN)
   ========================================================== */
.page-archive .archive-main {
    padding: 0 0 60px;
}

.category-hero {
    background: var(--navy);
    padding: 48px 0 40px;
    margin-bottom: 36px;
}

.category-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.category-hero-content {
    flex: 1;
    min-width: 0;
}

.category-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.category-hero-badge svg {
    width: 14px;
    height: 14px;
}

.category-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.15;
}

.category-hero-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 560px;
}

.category-hero-stats {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}

.category-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 90px;
}

.category-hero-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 4px;
}

.category-hero-stat-label {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* Sub-categories */
.category-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.category-subcategory-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--bg-alt);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.category-subcategory-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.category-section-header {
    margin-bottom: 28px;
}

.category-section-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    padding-bottom: 14px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, transparent 100%) 1;
    display: inline-block;
}

/* ==========================================================
   25. FOOTER - LIGHT MODERN (ECHOIZ STYLE)
   ========================================================== */
.site-footer {
    background: #f8fafc;
    color: var(--text-secondary);
}

.footer-top-line {
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #6366f1 33%, #ec4899 66%, var(--secondary) 100%);
}

.footer-content {
    padding: 40px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
}

.footer-col {
    min-width: 0;
}

/* Footer Logo */
.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 72px;
    width: auto;
}

.footer-tagline {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

.footer-extra {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

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

.footer-newsletter {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

/* Footer Headings */
.footer-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-primary) 1;
    display: inline-block;
}

/* Footer Links */
.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.8125rem;
    transition: color var(--transition);
}

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

/* Footer Posts */
.footer-posts {
    list-style: none;
}

.footer-posts li {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.footer-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer-posts a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 3px;
    transition: color var(--transition);
}

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

.footer-posts time {
    font-size: 0.6875rem;
    color: var(--text-light);
}

/* Footer Newsletter */
.footer-newsletter-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.6;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-newsletter-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 0.8125rem;
    font-family: var(--font-body);
    margin-bottom: 10px;
    transition: border-color var(--transition);
}

.footer-newsletter-form input::placeholder {
    color: var(--text-light);
}

.footer-newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.footer-newsletter-form button {
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition);
}

.footer-newsletter-form button:hover {
    opacity: 0.9;
}

/* Footer Bottom - Copyright Bar */
.footer-bottom {
    margin-top: 32px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    background: #f1f5f9;
}

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

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--text-light);
    font-size: 0.75rem;
    transition: color var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* ==========================================================
   26. BUTTONS
   ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--navy);
}

.btn-white:hover {
    background: var(--bg-alt);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 0.875rem;
}

/* ==========================================================
   27. PAGINATION
   ========================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 48px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all var(--transition);
}

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

.pagination-current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination-dots {
    padding: 0 8px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================
   28. AD CONTAINERS
   ========================================================== */
.ad-container {
    margin: 24px 0;
    text-align: center;
    padding: 16px;
    border: 1px dashed var(--border);
    background: var(--bg-alt-2);
}

.ad-container img {
    max-width: 100%;
    height: auto;
}

.ad-container-label {
    font-size: 0.6875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

/* ==========================================================
   29. SCROLL TO TOP
   ========================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    opacity: 0.9;
    transform: translateY(-4px);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.4);
}

/* ==========================================================
   30. UTILITY CLASSES
   ========================================================== */
.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--text-muted);
}

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

.text-uppercase {
    text-transform: uppercase;
}

.font-heading {
    font-family: var(--font-heading);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================
   31. ANIMATIONS
   ========================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border-light) 50%, var(--bg-alt) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================
   32. RESPONSIVE - 1200px
   ========================================================== */
@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .overlay-large {
        min-height: 420px;
    }

    .overlay-large .overlay-title {
        font-size: 1.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .categories-layout {
        gap: var(--gap-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-col-brand {
        grid-column: 1 / -1;
    }

    .author-profile-name {
        font-size: 1.625rem;
    }

    .author-stat {
        padding: 0 24px;
    }

    .category-hero h1 {
        font-size: 1.875rem;
    }

    .latest-bottom {
        grid-template-columns: repeat(2, 1fr);
    }

    .latest-top {
        grid-template-columns: 1fr;
    }

    .latest-top-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================
   33. RESPONSIVE - 992px
   ========================================================== */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

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

    .header-social {
        display: none;
    }

    .single-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sidebar-toc.toc-fixed,
    .sidebar-toc.toc-bottomed {
        position: static !important;
    }

    .trending-grid {
        grid-template-columns: 1fr;
    }

    .trending-cards {
        grid-column: auto;
    }

    .latest-top {
        grid-template-columns: 1fr;
    }

    .latest-top-cards {
        grid-template-columns: 1fr 1fr;
    }

    .latest-top-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .latest-grid {
        grid-template-columns: 1fr;
    }

    .latest-cards {
        grid-template-columns: 1fr 1fr;
    }

    .latest-bottom {
        grid-template-columns: repeat(2, 1fr);
    }

    .editors-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .author-profile {
        flex-direction: column;
        text-align: center;
    }

    .author-profile-social {
        justify-content: center;
    }

    .author-profile-bio {
        max-width: 100%;
    }

    .author-stats {
        justify-content: center;
    }

    .category-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .category-hero-stats {
        justify-content: center;
    }

    .category-subcategories {
        justify-content: center;
    }

    .categories-layout {
        grid-template-columns: 1fr;
        gap: var(--gap);
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* ==========================================================
   34. RESPONSIVE - 768px
   ========================================================== */
@media (max-width: 768px) {
    :root {
        --gap: 16px;
        --gap-xl: 36px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-side {
        grid-template-rows: auto;
        grid-template-columns: 1fr 1fr;
        height: auto;
    }

    .overlay-large {
        min-height: 280px;
    }

    .overlay-large .overlay-title {
        font-size: 1.375rem;
        max-width: 100%;
    }

    .overlay-large .overlay-content {
        padding: 24px;
    }

    .overlay-small {
        min-height: 200px;
    }

    .overlay-small .overlay-title {
        font-size: 0.9375rem;
    }

    .article-title {
        font-size: 1.75rem;
        line-height: 1.15;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .comment-form-row {
        grid-template-columns: 1fr;
    }

    .author-hero {
        padding: 32px 0 28px;
    }

    .author-profile-avatar img,
    .author-profile-initials {
        width: 90px;
        height: 90px;
    }

    .author-profile-initials {
        font-size: 2rem;
    }

    .author-profile-name {
        font-size: 1.375rem;
    }

    .author-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .author-stat {
        padding: 0 20px;
    }

    .author-stat:not(:last-child)::after {
        display: none;
    }

    .author-stat-value {
        font-size: 1.375rem;
    }

    .category-hero {
        padding: 32px 0 28px;
    }

    .category-hero h1 {
        font-size: 1.5rem;
    }

    .category-hero-stats {
        gap: 12px;
    }

    .category-hero-stat {
        min-width: 70px;
        padding: 12px 14px;
    }

    .category-hero-stat-value {
        font-size: 1.375rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .section-header h2 {
        font-size: 1.125rem;
    }

    .share-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .share-btn span {
        display: none;
    }

    .editor-card {
        padding: 16px;
        gap: 14px;
    }

    .editor-card-image {
        width: 35%;
        min-height: 100px;
    }

    .latest-top-sidebar {
        grid-template-columns: 1fr;
    }

    .latest-top-cards {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   35. RESPONSIVE - 480px
   ========================================================== */
@media (max-width: 480px) {
    :root {
        --gap: 12px;
        --gap-xl: 28px;
    }

    .container {
        padding: 0 16px;
    }


    .hero-side {
        grid-template-columns: 1fr;
    }

    .overlay-large {
        min-height: 280px;
    }

    .overlay-large .overlay-title {
        font-size: 1.25rem;
    }

    .trending-cards {
        grid-template-columns: 1fr;
    }

    .latest-top-cards,
    .latest-cards {
        grid-template-columns: 1fr;
    }

    .latest-bottom {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .archive-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .archive-title {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .error-code {
        font-size: 5rem;
    }

    .search-page-form {
        flex-direction: column;
    }

    .search-page-input {
        border-right: 2px solid var(--border);
    }

    .editor-card {
        flex-direction: column;
    }

    .editor-card-image {
        width: 100%;
        height: 200px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-box-avatar,
    .author-box-avatar-placeholder {
        margin: 0 auto;
    }

    .article-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .share-buttons {
        width: 100%;
    }

    .share-btn {
        flex: 1;
        justify-content: center;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }

    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }

    .mobile-menu-panel {
        width: 100%;
    }

    .header-inner {
        height: 52px;
    }

    .site-branding img {
        height: 28px;
    }

    .site-title {
        font-size: 1.125rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 8px;
    }

    .category-icon-card {
        padding: 18px 12px;
    }

    .category-icon {
        width: 40px;
        height: 40px;
    }

    .category-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================================
   36. PRINT STYLES
   ========================================================== */
@media print {
    .top-bar,
    .site-header,
    .site-footer,
    .sidebar,
    .article-share,
    .comments-section,
    .scroll-to-top,
    .reading-progress,
    .search-modal,
    .mobile-menu-overlay,
    .ad-container,
    .section-related,
    .pagination {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    .single-layout {
        grid-template-columns: 1fr;
    }

    .article-content a {
        color: #000;
        text-decoration: underline;
    }

    .article-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .article-featured-image {
        box-shadow: none;
    }
}

