/*
Theme Name: Nomad
Theme URI: https://azizakca.com.tr
Author: Aziz AKÇA
Author URI: https://azizakca.com.tr
Description: A modern, clean WordPress blog theme with dark mode support. Features include responsive design, color-coded categories, social sharing, and a beautiful reading experience.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nomad
Tags: blog, one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, theme-options, translation-ready
*/

/* ============================================
   CSS Variables & Root Styles
   ============================================ */
:root {
    /* Light Mode Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-hover: rgba(0, 0, 0, 0.1);

    /* Brand Colors */
    --color-accent: #10b981;
    --color-accent-hover: #059669;

    /* Category Colors */
    --cat-news: #3b82f6;
    --cat-review: #f97316;
    --cat-startup: #10b981;
    --cat-strategy: #8b5cf6;
    --cat-technology: #ef4444;

    /* Typography */
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    /* 8px */
    --radius-md: 1rem;
    /* 16px */
    --radius-lg: 1.5rem;
    /* 24px - Standard Card Radius */
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --bg-primary: #121212;
    /* Deep dark */
    --bg-secondary: #1e1e1e;
    /* Card bg */
    --bg-tertiary: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #6c757d;
    --border-color: #2a2a2a;
    --shadow: rgba(0, 0, 0, 0.2);
    --shadow-hover: rgba(0, 0, 0, 0.4);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    /* Slightly increased for readability */
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Card & Widget Standardization */
.post-card,
.widget,
.featured-floating-card,
.sidebar .widget,
.related-item,
.nav-box,
.author-box,
.also-read-box {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    /* Ensure circular corners clip content */
    box-shadow: 0 10px 30px -10px var(--shadow);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    /* Subtle border for definition */
}

.post-card:hover,
.nav-box:hover,
.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px var(--shadow-hover);
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-tertiary: #2d2d2d;
    --text-primary: #f8f9fa;
    --text-secondary: #e9ecef;
    --text-muted: #adb5bd;
    --border-color: #404040;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
}



/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--color-accent), var(--color-accent-hover));
    z-index: 10001;
    transition: width 0.1s ease;
}

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

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

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

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   Layout Container
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   Header
   ============================================ */
.site-header {
    background-color: var(--header-bg, rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, backdrop-filter 0.3s, border-color 0.3s;
}

/* Admin Bar Fix for Sticky Header */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 0;
        /* On mobile, admin bar scrolls away, so stick to top */
    }
}

[data-theme="dark"] .site-header {
    --header-bg: rgba(18, 18, 18, 0.8);
}


@media (max-width: 768px) {
    .site-header {
        padding: 0.6rem 0;
    }

    .site-title {
        font-size: 1.25rem !important;
    }

    .header-actions {
        display: flex;
        align-items: center;
    }

    .header-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    /* Search button on header is redundant on mobile if tab bar has it, 
       but we keep search toggle in header for quick access if preferred */
    .search-toggle.desktop-only {
        display: none !important;
    }
}



.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

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

/* Main Navigation (Slide-out Mobile Menu) */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu li {
    margin-left: 1.5rem;
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Slide-out Menu Mobile Styles */
@media (max-width: 768px) {
    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        background: var(--bg-primary);
        z-index: 1001;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .main-navigation.active {
        transform: translateX(0);
    }

    .main-navigation::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    body.menu-open .main-navigation::before {
        /* Backdrop logic handled via body class but conceptually linked here */
    }

    /* Backdrop for Body */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(3px);
        z-index: 1000;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    /* Mobile Menu Header inside Slide-out */
    .mobile-menu-header {
        display: block;
        width: 100%;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid var(--border-color);
    }

    .mobile-menu-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text-primary);
    }
}

/* Navigation */
/* The original .main-navigation rule was replaced by the new one above. */

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.main-navigation a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
}

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

.main-navigation .current-menu-item a {
    color: var(--text-primary);
}

/* Dropdown Menu */
.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs);
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 12px var(--shadow);
}

.main-navigation .menu-item-has-children:hover .sub-menu {
    display: flex;
}

.main-navigation .sub-menu a {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-btn {
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #2a3141;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

[data-theme="dark"] .header-btn {
    background: #333;
    color: #fff;
}

.header-btn:hover {
    background: var(--color-accent);
    color: #fff !important;
    transform: translateY(-2px);
}


.btn-purchase {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    color: white;
}

/* Mobile Menu Toggle (Hidden on Mobile as we use bottom tab bar) */
.mobile-menu-toggle {
    display: none !important;
}


/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    text-align: center;
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.hero-title .highlight {
    background: var(--color-accent);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    display: inline-block;
}

/* ============================================
   Main Content Layout
   ============================================ */
.site-content {
    padding: var(--spacing-lg) 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-xl);
    align-items: start;
}

.main-content {
    min-width: 0;
}

/* ============================================
   Post Cards
   ============================================ */
.posts-grid {
    display: grid;
    gap: var(--spacing-lg);
}

.post-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.post-card:hover {
    box-shadow: 0 8px 24px var(--shadow-hover);
    transform: translateY(-4px);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.post-content {
    padding: var(--spacing-md);
}

.post-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    transition: var(--transition);
}

/* Category Colors */
.post-category.cat-news {
    background: var(--cat-news);
    color: white;
}

.post-category.cat-review {
    background: var(--cat-review);
    color: white;
}

.post-category.cat-startup {
    background: var(--cat-startup);
    color: white;
}

.post-category.cat-strategy {
    background: var(--cat-strategy);
    color: white;
}

.post-category.cat-technology {
    background: var(--cat-technology);
    color: white;
}

.post-category.cat-uncategorized {
    background: var(--text-muted);
    color: white;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

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

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

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.post-author,
.post-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.post-excerpt {
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    position: sticky;
    top: 100px;
}

.widget {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: var(--spacing-sm);
}

/* Search Widget */
.search-form {
    display: flex;
    gap: var(--spacing-xs);
}

.search-field {
    flex: 1;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.search-field:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-submit {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.search-submit:hover {
    background: var(--color-accent-hover);
}

/* Categories Widget */
.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.category-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Popular Posts Widget */
.popular-post {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.popular-post:hover {
    background: var(--bg-tertiary);
}

.popular-post-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.popular-post-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Single Post
   ============================================ */
article.single-post {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    border: 1px solid var(--border-color);
}

.breadcrumbs {
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.entry-header {
    margin-bottom: var(--spacing-lg);
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.entry-content h2,
.entry-content h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.entry-content p {
    margin-bottom: var(--spacing-md);
}

.entry-content img {
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
}

/* Social Sharing */
.social-sharing {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.social-sharing-title {
    font-weight: 600;
    margin-right: var(--spacing-sm);
}

.share-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--transition);
}

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

.share-twitter {
    background: #1da1f2;
}

.share-facebook {
    background: #1877f2;
}

.share-whatsapp {
    background: #25d366;
}

.share-linkedin {
    background: #0a66c2;
}

/* Author Box */
.author-box {
    display: flex;
    gap: var(--spacing-md);
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin: var(--spacing-xl) 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.author-bio {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   Footer
   ============================================ */
/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--bg-primary) !important;
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    color: var(--text-primary);
    margin-top: 60px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

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

.site-footer a {
    color: var(--text-secondary);
}

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


.site-footer .container {
    max-width: 1200px;
    padding: 0 var(--spacing-md);
}

.footer-social {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.footer-social h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 1rem;
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-3px);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.site-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.page-numbers {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: var(--transition);
    min-width: 44px;
    text-align: center;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        padding: var(--spacing-lg);
        transition: var(--transition);
        border-right: 1px solid var(--border-color);
        overflow-y: auto;
        z-index: 9999;
    }

    .main-navigation.active {
        left: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        display: block;
        padding: var(--spacing-sm);
        border-bottom: 1px solid var(--border-color);
    }

    .main-navigation .sub-menu {
        position: static;
        display: none;
        border: none;
        background: var(--bg-secondary);
        margin-top: var(--spacing-xs);
        padding-left: var(--spacing-md);
    }

    .main-navigation .menu-item-has-children.active .sub-menu {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .entry-title {
        font-size: 2rem;
    }

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

    .author-avatar {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

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

    .single-post {
        padding: var(--spacing-md);
    }

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

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

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

/* ============================================
   Search Overlay
   ============================================ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
}

.search-overlay-inner {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-modal {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--color-accent);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
}

.search-close:hover {
    transform: scale(1.1);
    background: var(--color-accent-hover);
}

.search-close svg {
    stroke-width: 3;
}

.search-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.search-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
}

.search-form-overlay {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Category Select Dropdown */
.search-category-select {
    position: relative;
}

.category-dropdown {
    width: 100%;
    padding: var(--spacing-md);
    padding-right: 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: var(--transition);
}

.category-dropdown:hover,
.category-dropdown:focus {
    border-color: var(--color-accent);
    outline: none;
}

.dropdown-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

/* Search Input */
.search-field-overlay {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.search-field-overlay:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--bg-primary);
}

.search-field-overlay::placeholder {
    color: var(--text-muted);
}

/* Search Submit Button */
.search-submit-overlay {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.search-submit-overlay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.search-submit-overlay:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-modal {
        padding: var(--spacing-lg);
    }

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

    .search-close {
        top: -60px;
        right: 0;
    }
}

@media (max-width: 480px) {
    .search-overlay {
        padding: var(--spacing-sm);
    }

    .search-modal {
        padding: var(--spacing-md);
    }

    .search-title {
        font-size: 1.25rem;
    }

    .search-subtitle {
        font-size: 0.875rem;
    }
}

/* ============================================
   SVG Icons
   ============================================ */
svg {
    display: inline-block;
    vertical-align: middle;
}

.header-btn svg,
.header-btn .svg-inline--fa,
.mobile-menu-toggle svg,
.mobile-menu-toggle .svg-inline--fa,
.back-to-top svg,
.back-to-top .svg-inline--fa {
    transition: var(--transition);
}

.theme-icon-moon,
.theme-icon-sun {
    transition: var(--transition);
}

/* ============================================
   Mobile Tab Bar
   ============================================ */
.mobile-tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 10px var(--shadow);
}

.mobile-tab-bar .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    min-height: 60px;
}

.mobile-tab-bar .tab-item svg,
.mobile-tab-bar .tab-item .svg-inline--fa {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    transition: var(--transition);
}

.mobile-tab-bar .tab-item:hover,
.mobile-tab-bar .tab-item.active {
    color: var(--color-accent);
}

.mobile-tab-bar .tab-item:active {
    transform: scale(0.95);
}

.mobile-tab-bar .tab-item span {
    display: block;
}

/* Mobile Improvements */
@media (max-width: 768px) {
    .mobile-tab-bar {
        display: flex;
    }

    body {
        padding-bottom: 80px;
    }

    .back-to-top {
        bottom: 90px !important;
    }

    .header-btn,
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }

    .site-content {
        padding: var(--spacing-md) 0;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .post-card {
        margin-bottom: var(--spacing-md);
    }

    .post-category {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .sidebar {
        margin-top: var(--spacing-lg);
    }
}

/* ============================================
   Letter Modal Styles
   ============================================ */
.letter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.letter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

.letter-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    z-index: 11001;
    animation: letter-unfold 0.6s ease-out forwards;
}

@keyframes letter-unfold {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.letter-paper {
    background: #fdfaf1;
    padding: 3rem;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 100px rgba(253, 250, 241, 0.1) inset;
    position: relative;
    color: #443e30;
    font-family: 'Georgia', serif;
    line-height: 1.8;
    border-left: 1px solid #e8e0c5;
    border-right: 1px solid #e8e0c5;
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(#fdfaf1, #fdfaf1 31px, #e8e0c5 32px);
    opacity: 0.3;
    pointer-events: none;
}

.letter-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #5d5444;
    padding-bottom: 1rem;
}

.letter-header h3 {
    font-family: 'Times New Roman', serif;
    color: #5d5444;
    margin: 0;
    font-size: 1.5rem;
    font-style: italic;
}

.letter-body p {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.letter-body strong {
    color: #2c2820;
}

.letter-signature {
    margin-top: 3rem;
    text-align: right;
    font-style: italic;
    font-size: 1.1rem;
}

.letter-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.letter-close:hover {
    transform: rotate(90deg);
    color: #fdfaf1;
}

.hero-subtitle {
    margin-top: 1rem;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}


/* ============================================
   Single Post Enhancements
   ============================================ */
/* ============================================
   Single Post Enhancements (Refined)
   ============================================ */
.post-header-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.post-header-top .breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.post-header-top .post-category {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    background: #5d6771;
    /* Demo-like dark gray */
    color: #fff !important;
    border-radius: 50px;
    font-weight: 600;
}

.entry-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin: 1.5rem 0;
    line-height: 1.25;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

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

.entry-meta svg,
.entry-meta .svg-inline--fa {
    color: var(--text-muted);
    opacity: 0.7;
}

.verified-badge {
    margin-left: 4px;
    color: #3b82f6;
    /* Verified blue */
}

/* Social Sharing Bar Redesign */
.social-sharing {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
    color: #fff !important;
    border: none;
    cursor: pointer;
}

.share-btn svg,
.share-btn .svg-inline--fa {
    width: 18px;
    height: 18px;
}

.share-twitter {
    background: #1da1f2;
}

.share-facebook {
    background: #1877f2;
}

.share-whatsapp {
    background: #25d366;
}

.share-linkedin {
    background: #0077b5;
}

.share-email {
    background: #ea4335;
}

.share-copy {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    margin-left: auto;
    /* Push to right like in screenshot but styled better */
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-copy:hover {
    background: var(--bg-secondary);
}

.featured-image {
    border-radius: 12px;
    width: 100%;
    height: auto;
    margin-bottom: 2.5rem;
}

/* Table of Contents */
.post-toc {
    background: var(--bg-secondary);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin: 2.5rem 0;
    border: 1px solid var(--border-color);
}

.toc-title {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    display: block;
}

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

/* Footer Actions */
.post-footer-actions {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tag-link {
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.tag-link:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Related Posts */
.related-posts {
    margin: 4rem 0;
    padding-top: 4rem;
    border-top: 2px solid var(--border-color);
}

.related-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

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

.related-thumb img {
    border-radius: 10px;
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.related-post-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
}

.related-post-title a {
    color: var(--text-primary);
    text-decoration: none;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Also Read Box */
.also-read {
    background: var(--bg-secondary);
    border-left: 4px solid var(--color-accent);
    padding: 1.5rem;
    margin: 2.5rem 0;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.also-read-label {
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.also-read a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

/* ============================================
   Posh Refinements (Circular Icons & Dots)
   ============================================ */
.entry-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1.5rem;
}

.meta-sep {
    color: #cbd5e1;
    font-size: 0.8rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.verified-badge {
    color: #3b82f6;
    display: inline-flex;
    margin: 0;
}

/* Circular Social Icons */
.social-sharing {
    border: none;
    padding: 0;
    margin: 2.5rem 0;
    gap: 0.8rem;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    /* Circle */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.share-btn svg,
.share-btn .svg-inline--fa {
    width: 16px;
    height: 16px;
}

.share-twitter {
    background: #000;
}

/* X Color */
.share-facebook {
    background: #3b5998;
}

.share-whatsapp {
    background: #25d366;
}

.share-email {
    background: #3b82f6;
}

.share-linkedin {
    background: #0077b5;
}

.share-telegram {
    background: #0088cc;
}

.share-pinterest {
    background: #bd081c;
}

.share-copy {
    background: #64748b;
    border: none;
    color: white !important;
    margin-left: 0;
}

.share-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.breadcrumbs .sep {
    margin: 0 8px;
    color: #cbd5e1;
}


/* ============================================
   Demo-Perfect Refinements
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

.single-post .entry-title {
    font-family: 'Roboto', sans-serif !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
    margin: 1rem 0 1.5rem 0;
    color: var(--text-primary);
}

.single-post .entry-meta {
    margin-bottom: 1.5rem;
    font-family: 'Roboto', sans-serif;
}

/* Social Bar with Share Text */
.social-sharing-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.social-share-label {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.social-sharing {
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
}

/* TOC Styled Box */
.post-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

[data-theme='dark'] .post-toc {
    background: #1e293b;
    border-color: #334155;
}

.toc-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.toc-list a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
}

.toc-list a:hover {
    color: var(--color-accent);
    padding-left: 8px;
}


/* Sidebar Category Badges */
.widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.widget_categories li {
    margin: 0 !important;
}

.widget_categories a {
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.2s;
    display: inline-block;
    border: 1px solid var(--border-color);
}

.widget_categories a:hover {
    background: var(--color-accent);
    color: white !important;
    border-color: var(--color-accent);
}

/* Author Box Fixes */
.author-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 4rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    border: 1px solid var(--border-color);
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.author-info h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ============================================
   Bello Demo Alignment Refinements
   ============================================ */

/* 24px Radius for all Post Images */
.post-thumbnail img,
.featured-banner-bg,
.popular-post-thumbnail img,
.related-thumb img,
.featured-image {
    border-radius: 24px !important;
}

/* Hero Section Refinement */
.hero-section {
    padding: 3rem 0;
    background: transparent;
    text-align: center;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-pill {
    display: inline-block;
    background: #00d4bd;
    /* Demo teal */
    color: #000;
    padding: 0 1.5rem;
    border-radius: 100px;
    margin: 0 0.25rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Featured Banner */
.featured-banner {
    position: relative;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.featured-banner-bg {
    height: 420px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.featured-banner-bg .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.featured-banner-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.featured-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.featured-header {
    color: #fff;
    padding-left: 2rem;
}

.featured-header .post-category {
    margin-bottom: 1rem;
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.featured-title a {
    color: #fff;
}

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

.featured-floating-card {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 400px;
    margin-left: auto;
    margin-right: 2rem;
}

[data-theme='dark'] .featured-floating-card {
    background: #1e1e1e;
}

.featured-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .featured-banner-bg {
        height: auto;
        padding: 4rem 0;
    }

    .featured-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-header {
        padding-left: 0;
        text-align: center;
    }

    .featured-floating-card {
        margin: 0 auto;
        width: 100%;
    }
}

/* Top Articles Grid */
.top-articles {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-left: 1.5rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--color-accent);
    border-radius: 4px;
}

/* Top Articles Grid - List Style */
.top-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.post-card.compact {
    display: flex;
    flex-direction: column;
    /* Stack on mobile, side-by-side on desktop if needed, but demo uses small vertical cards here */
    gap: 1.25rem;
}

.post-card.compact .post-thumbnail {
    margin-bottom: 0;
    flex-shrink: 0;
}

.post-card.compact .post-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-top: 0.5rem;
}

/* Load More Button style */
.load-more-container {
    text-align: center;
    margin-top: 4rem;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.btn-more:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: translateY(-3px);
}


/* ============================================
   ULTRA PREMIUM CATEGORIES
   ============================================ */
.categories-premium-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    border: none;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Glassmorphism Layer */
.category-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-pill:hover::before {
    opacity: 1;
}

/* Animated Shimmer Effect */
.category-pill::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.category-pill:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.category-pill i {
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.category-pill:hover i {
    transform: rotate(360deg) scale(1.2);
}

.category-pill .cat-name {
    color: white;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* ============================================
   ULTRA PREMIUM CATEGORY COLORS
   Animated gradients with glow effects
   ============================================ */

/* News - Blue with Cyan Accent */
.category-pill.cat-news {
    background: linear-gradient(135deg, #3b82f6, #2563eb, #1d4ed8);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

.category-pill.cat-news:hover {
    box-shadow:
        0 8px 32px rgba(59, 130, 246, 0.4),
        0 4px 16px rgba(37, 99, 235, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Review - Orange with Gold Accent */
.category-pill.cat-review {
    background: linear-gradient(135deg, #f97316, #ea580c, #dc2626);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

.category-pill.cat-review:hover {
    box-shadow:
        0 8px 32px rgba(249, 115, 22, 0.4),
        0 4px 16px rgba(234, 88, 12, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Startup - Green with Emerald Accent */
.category-pill.cat-startup {
    background: linear-gradient(135deg, #10b981, #059669, #047857);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

.category-pill.cat-startup:hover {
    box-shadow:
        0 8px 32px rgba(16, 185, 129, 0.4),
        0 4px 16px rgba(5, 150, 105, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Strategy - Purple with Violet Accent */
.category-pill.cat-strategy {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed, #6d28d9);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

.category-pill.cat-strategy:hover {
    box-shadow:
        0 8px 32px rgba(139, 92, 246, 0.4),
        0 4px 16px rgba(124, 58, 237, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Technology - Red with Rose Accent */
.category-pill.cat-technology {
    background: linear-gradient(135deg, #ef4444, #dc2626, #b91c1c);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

.category-pill.cat-technology:hover {
    box-shadow:
        0 8px 32px rgba(239, 68, 68, 0.4),
        0 4px 16px rgba(220, 38, 38, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Default - Indigo with Purple Accent */
.category-pill:not(.cat-news):not(.cat-review):not(.cat-startup):not(.cat-strategy):not(.cat-technology) {
    background: linear-gradient(135deg, #6366f1, #4f46e5, #4338ca);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

.category-pill:not(.cat-news):not(.cat-review):not(.cat-startup):not(.cat-strategy):not(.cat-technology):hover {
    box-shadow:
        0 8px 32px rgba(99, 102, 241, 0.4),
        0 4px 16px rgba(79, 70, 229, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Animated Gradient Effect */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Ultra Premium Hover State */
.category-pill:hover {
    transform: translateY(-6px) scale(1.08);
    filter: brightness(1.15) saturate(1.2);
}

/* Active/Click State */
.category-pill:active {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.1s ease;
}

/* Focus State for Accessibility */
.category-pill:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.5),
        0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .category-pill {
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .category-pill:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.6),
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}


/* Old Sidebar Widget Category Icons - Keep for backward compatibility */
.categories-list .post-category {
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    justify-content: space-between;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.category-item-link:hover {
    transform: translateX(5px);
    border-color: var(--color-accent);
    background: var(--bg-secondary);
}

.category-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-content i {
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    transition: var(--transition);
}

.category-item-link:hover .category-content i {
    background: var(--color-accent);
    color: #fff;
}

.category-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.category-item-link .count {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
}

/* Sidebar Social Grid */
.sidebar-social-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.sidebar-social-link {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff !important;
    font-size: 1rem;
    transition: var(--transition);
}

.sidebar-social-link.fb {
    background: #3b5998;
}

.sidebar-social-link.x {
    background: #000;
}

.sidebar-social-link.ig {
    background: #e1306c;
}

.sidebar-social-link.yt {
    background: #ff0000;
}

.sidebar-social-link.li {
    background: #0077b5;
}

.sidebar-social-link:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* Ad Placeholder */
.widget-ad {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.ad-placeholder {
    height: 250px;
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    background: rgba(var(--border-color-rgb), 0.05);
}


/* Mobile Adjustments for Banner */
@media (max-width: 991px) {
    .featured-floating-card {
        position: relative;
        right: 0;
        bottom: 0;
        width: 100%;
        margin-top: -50px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

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

@media (max-width: 768px) {
    .featured-banner-bg {
        height: 300px;
    }

    .hero-section {
        padding: 4rem 0;
    }

    /* Mobile Tab Bar 5-item grid refined */
    .mobile-tab-bar {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        padding: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 9999;
        /* Ensure on top */
    }

    [data-theme="dark"] .mobile-tab-bar {
        background: rgba(31, 41, 55, 0.95);
        border-top-color: rgba(255, 255, 255, 0.05);
    }

    .mobile-tab-bar .tab-item {
        font-size: 0.65rem;
        min-height: 50px;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        transition: color 0.3s ease;
        padding-bottom: 4px;
        text-decoration: none;
    }

    .mobile-tab-bar .tab-item.active,
    .mobile-tab-bar .tab-item:hover {
        color: var(--color-accent);
    }

    .mobile-tab-bar .tab-item i {
        font-size: 1.25rem;
        margin-bottom: 4px;
        transition: transform 0.2s ease;
    }

    .mobile-tab-bar .tab-item.active i {
        transform: translateY(-2px);
    }

    /* Trending Button Floating Style */
    .tab-trending {
        position: relative;
        top: -20px;
        flex: 0 0 auto !important;
        /* Don't stretch */
        width: 60px;
    }

    .tab-trending i {
        width: 54px;
        height: 54px;
        background: linear-gradient(135deg, #ff4d6d, #ff2a4d);
        color: #fff !important;
        border-radius: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 20px rgba(255, 77, 109, 0.4);
        margin-bottom: 2px !important;
        font-size: 1.4rem !important;
        border: 4px solid var(--bg-primary);
        /* White border to separate */
    }

    [data-theme="dark"] .tab-trending i {
        border-color: #1f2937;
    }

    .tab-trending span {
        margin-top: 5px;
        font-weight: 700;
        color: var(--text-primary);
    }
}


/* Reading Time Badge */
.post-thumbnail {
    position: relative;
}

.reading-time-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #8b5cf6;
    /* Demo purple */
    color: #fff;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.post-card.compact .reading-time-badge {
    top: 10px;
    right: 10px;
    padding: 3px 10px;
}

/* Entrance Animations helper */
.entrance-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.entrance-anim.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Post Navigation Boxes */
.post-navigation-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}

.nav-box {
    position: relative;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
    color: #fff !important;
    padding: 2rem;
}

.nav-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.nav-box:hover .nav-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.nav-content {
    position: relative;
    z-index: 2;
}

.nav-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.nav-title {
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.3;
}

/* Global Border Radius Standardization (24px) */
.post-thumbnail img,
.featured-banner-bg,
.popular-post-thumbnail img,
.related-thumb img,
.featured-image,
.nav-box,
.ad-placeholder {
    border-radius: 24px !important;
}

/* Global Desktop-only Visibility Support */
.desktop-only {
    display: none !important;
}

@media (min-width: 992px) {
    .desktop-only {
        display: inline-flex !important;
    }
}


/* Hero Pill Style */
.hero-pill {
    display: inline-block;
    background: #00d4bd;
    color: #000;
    padding: 0.2rem 1.2rem;
    border-radius: 100px;
    margin: 0 0.15rem;
    font-weight: 700;
}

/* Sidebar Category Item Refinement */
.category-item-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 14px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.category-item-link:hover {
    background: var(--bg-primary) !important;
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--color-accent) !important;
}

.category-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-content i {
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

[data-theme="dark"] .category-content i {
    background: #333;
}

.category-item-link:hover .category-content i {
    background: var(--color-accent);
    color: #fff;
}

.category-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.category-item-link .count {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

[data-theme="dark"] .category-item-link .count {
    background: rgba(255, 255, 255, 0.1);
}

/* Ad Placement Placeholder */
.ad-placeholder {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 1.5rem 0;
}

.ad-placeholder::before {
    content: 'ADVERTISING';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.ad-placeholder span {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Sidebar Social Grid */
.sidebar-social-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 1rem;
}

.sidebar-social-link {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.sidebar-social-link:hover {
    transform: translateY(-3px);
    color: #fff;
}

.sidebar-social-link.fb:hover {
    background: #4267b2;
}

.sidebar-social-link.x:hover {
    background: #000;
}

.sidebar-social-link.ig:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.sidebar-social-link.yt:hover {
    background: #ff0000;
}

.sidebar-social-link.li:hover {
    background: #0077b5;
}


/* Post Meta Wrapping Fix (Live vs Demo) */
.entry-meta,
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.8rem;
    color: var(--text-muted);
}

.entry-meta span,
.post-meta span {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.meta-sep {
    font-size: 1.2rem;
    line-height: 1;
    margin: 0 !important;
    opacity: 0.4;
}

/* Also Read Box Styling */
.also-read-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--color-accent);
    padding: 1.5rem;
    border-radius: 16px;
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.also-read-tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.also-read-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.also-read-title a {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.also-read-title a i {
    font-size: 1rem;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.also-read-box:hover .also-read-title a i {
    opacity: 1;
    transform: translateX(5px);
}

/* Sticky Social Share (Desktop) */
@media (min-width: 1200px) {
    .main-content {
        position: relative;
    }

    .sticky-share-side {
        position: sticky;
        top: 150px;
        left: -80px;
        float: left;
        display: flex;
        flex-direction: column;
        gap: 12px;
        z-index: 100;
        margin-right: -50px;
    }

    .sticky-share-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-secondary);
        color: var(--text-secondary);
        font-size: 1.2rem;
        transition: all 0.3s ease;
        border: 1px solid var(--border-color);
        cursor: pointer;
    }

    .sticky-share-btn:hover {
        transform: scale(1.1);
        color: #fff;
        border-color: transparent;
    }

    .sticky-share-btn.share-twitter:hover {
        background: #1da1f2;
    }

    .sticky-share-btn.share-facebook:hover {
        background: #4267b2;
    }

    .sticky-share-btn.share-whatsapp:hover {
        background: #25d366;
    }

    .sticky-share-btn.share-email:hover {
        background: #ea4335;
    }

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

@media (max-width: 1199px) {
    .sticky-share-side {
        display: none !important;
    }
}

/* Search Overlay Enhanced Styles */
.search-quick-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.search-cat-pill {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-cat-pill:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    color: #fff;
}

.search-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.search-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
}

/* ============================================
   Featured Banner (Split Layout)
   ============================================ */
.featured-banner {
    position: relative;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.featured-banner-bg {
    height: 420px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    border-radius: 24px;
}

.featured-banner-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.featured-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 2rem;
}

.featured-header {
    color: #fff;
}

.featured-header .post-category {
    margin-bottom: 1rem;
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.featured-title a {
    color: #fff;
}

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

.featured-floating-card {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 400px;
    margin-left: auto;
}

[data-theme='dark'] .featured-floating-card {
    background: #1e1e1e;
}

.featured-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .featured-banner-bg {
        height: auto;
        padding: 4rem 0;
    }

    .featured-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

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

    .featured-floating-card {
        margin: 0 auto;
        width: 100%;
    }
}

/* ============================================
   Pagination Styles
   ============================================ */
.pagination-container {
    margin-top: 3rem;
    text-align: center;
}

.pagination-container .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
}

.page-numbers.dots:hover {
    background: transparent;
    color: var(--text-primary);
    transform: none;
    box-shadow: none;
}

/* ============================================
   Custom Background Image
   ============================================ */
body {
    background-image: url('images/shape-bg.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    background-size: cover;
}