/*
Theme Name: Envato Showcase Theme
Theme URI: https://nulledcodes.net
Author: NulledWP
Author URI: https://nulledcodes.net
Description: A professional dark-mode WordPress theme specifically designed for showcasing CodeCanyon and ThemeForest products as articles.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: envato-showcase
Tags: dark-mode, custom-background, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   Font Awesome font-display override — prevents FOIT (invisible
   text) while FA webfonts load. Declared before :root so these
   rules cascade after the CDN stylesheet (which omits font-display).
   ============================================================ */
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/webfonts/fa-solid-900.woff2') format('woff2'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/webfonts/fa-solid-900.ttf') format('truetype');
}
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/webfonts/fa-regular-400.woff2') format('woff2'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/webfonts/fa-regular-400.ttf') format('truetype');
}
@font-face {
    font-family: 'Font Awesome 5 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/webfonts/fa-brands-400.woff2') format('woff2'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/webfonts/fa-brands-400.ttf') format('truetype');
}

/* Reset and Base Styles */
:root {
    /* Color System */
    --primary-bg: #1a1a1a;
    --secondary-bg: #2a2a2a;
    --text-color: #e0e0e0;
    --accent-blue: #1976d2;
    --accent-blue-light: #00b6ff;
    --accent-blue-dark: #007cba;
    --accent-green: #4CAF50;
    --border-color: #3a3a3a;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
    
    /* Border Radius Scale */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 18px;
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-header: 1000;
    --z-mobile-menu: 1100;
    --z-brand: 1101;
    --z-toggle: 1102;
    
    /* Box Shadow Scale */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(30,60,114,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-card-hover: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,182,255,0.08);
    --shadow-glow-blue: 0 0 24px rgba(0,182,255,0.30);
    --shadow-glow-green: 0 0 24px rgba(76,175,80,0.30);

    /* Animation Tokens */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s cubic-bezier(0.4,0,0.2,1);
    --transition-slow: 0.45s cubic-bezier(0.4,0,0.2,1);
    
    /* Breakpoints */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 900px;
    --breakpoint-xl: 1199px;
    --breakpoint-2xl: 1400px;

    /* Fluid Type Scale — clamp(min, fluid, max) */
    --fs-xs:      clamp(0.78rem, 1vw + 0.55rem, 0.85rem);
    --fs-sm:      clamp(0.875rem, 1vw + 0.58rem, 0.95rem);
    --fs-base:    clamp(0.9rem, 1.2vw + 0.55rem, 1rem);
    --fs-md:      clamp(1rem, 1.5vw + 0.5rem, 1.1rem);
    --fs-lg:      clamp(1.1rem, 2vw + 0.35rem, 1.35rem);
    --fs-xl:      clamp(1.25rem, 2.5vw + 0.3rem, 1.75rem);
    --fs-2xl:     clamp(1.5rem, 3.5vw + 0.3rem, 2.2rem);
    --fs-hero:    clamp(1.5rem, 4.5vw + 0.4rem, 2.5rem);
    --fs-display: clamp(4rem, 10vw + 1rem, 8rem);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Merriweather', Georgia, serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    font-size: var(--fs-base);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    color: #ffffff;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Modern Header & Navbar Styles */
.site-header {
    background: rgba(26, 26, 26, 0.80);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06), var(--shadow-sm);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: box-shadow var(--transition-base);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    min-height: 64px;
    background: transparent;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #e0e0e0;
    letter-spacing: -0.5px;
    gap: 0.6rem;
    z-index: var(--z-brand);
}

.navbar-brand .navbar-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 182, 255, 0.12);
    border-radius: var(--radius-sm);
    color: var(--accent-blue-light);
    font-size: 1.1rem;
    flex-shrink: 0;
    animation: logo-glow 3s ease-in-out infinite;
    border: 1px solid rgba(0,182,255,0.18);
}

/* Logo link — must not inherit default blue link colour */
.site-title-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    transition: color 0.2s;
}
.site-title-link:hover {
    color: #ffffff;
}
.site-title-accent {
    color: var(--accent-blue-light);
}

.navbar-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    background: transparent;
    border-radius: var(--radius-md);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0 2rem;
    padding: 0;
}

.navbar-nav li {
    position: relative;
}

.navbar-nav a {
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    position: relative;
}

.navbar-nav a:hover,
.navbar-nav .current-menu-item > a {
    background: rgba(0,182,255,0.10);
    color: var(--accent-blue-light);
    box-shadow: 0 0 0 1px rgba(0,182,255,0.15);
}

/* Hamburger Menu Button */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    position: relative;
    z-index: 1102;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.navbar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggle:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Improved Toggle Icon */
.navbar-toggle-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.navbar-toggle-icon::before,
.navbar-toggle-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.navbar-toggle-icon::before {
    top: -8px;
}

.navbar-toggle-icon::after {
    bottom: -8px;
}

/* Active state for toggle (when menu is open) */
.navbar-toggle.active .navbar-toggle-icon {
    background: transparent;
}

.navbar-toggle.active .navbar-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar-toggle.active .navbar-toggle-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile and Tablet Styles - Consolidated */
@media (max-width: 900px) {
    /* Navbar Layout */
    .navbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding: 0.5rem 1rem;
        min-height: 56px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .navbar-brand {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        margin-bottom: 0;
        z-index: 1101;
    }
    
    /* Toggle Button */
    .navbar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        z-index: 1102;
    }
    
    /* Mobile Menu */
    .navbar-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--secondary-bg);
        padding: 1.5rem 1rem 1rem 1rem;
        box-shadow: var(--shadow-md);
        z-index: 1100;
        flex-direction: column;
        align-items: stretch;
        min-height: 100vh;           /* fallback for old browsers */
        min-height: 100dvh;          /* dynamic viewport height — fixes iOS Safari toolbar */
        overflow-y: auto;
        padding-top: 1rem;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-menu::before {
        display: none;
    }
    
    .navbar-menu .navbar-brand {
        margin-bottom: 1.2rem;
    }
    
    /* Mobile Navigation */
    .navbar-nav {
        flex-direction: column;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .navbar-nav li {
        width: 100%;
        position: relative;
    }
    
    .navbar-nav .menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .navbar-nav .menu-item-has-children > a {
        flex-grow: 1;
    }
    
    .navbar-nav a {
        padding: 0.8rem 1rem;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .navbar-nav .menu-item-has-children > a::after {
        display: none !important;
    }
    
    /* Submenu Toggle */
    .submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        color: var(--accent-blue-light);
        font-size: 1.2em;
        cursor: pointer;
        min-width: 44px;
        min-height: 44px;
        user-select: none;
        transition: transform 0.2s;
        vertical-align: middle;
        flex-shrink: 0;
    }
    
    .submenu-toggle.open {
        transform: rotate(45deg);
    }
    
    /* Mobile sub-menu: keep display:none so JS can toggle with .active */
    .navbar-nav .sub-menu {
        display: none !important;
        pointer-events: none;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        position: static !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
        background: var(--secondary-bg) !important;
        border: none !important;
        flex-basis: 100%;
    }

    .navbar-nav .sub-menu.active {
        display: block !important;
        pointer-events: auto;
    }

    .navbar-nav .sub-menu li a {
        color: #e0e0e0 !important;
        padding: 0.8rem 1.5rem 0.8rem 2.5rem !important;
        font-size: 0.95rem !important;
        display: block !important;
        border-radius: 0 !important;
        background: none !important;
    }

    .navbar-nav .sub-menu li a:hover {
        background: rgba(0, 182, 255, 0.08) !important;
        color: var(--accent-blue-light) !important;
        padding-left: 2.5rem !important;
    }
    
    /* Hero section adjustments */
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-section {
        padding: 2.5rem 1rem 2rem 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.7rem;
    }
    
    /* Single post layout adjustments */
    .single-post-article {
        flex-direction: column;
    }
    
    .single-main-content {
        order: 1;
        width: 100%;
        padding: 24px 20px;
    }
    
    .single-sidebar {
        order: 2;
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
        position: relative;
        top: 0;
        margin-bottom: 24px;
        border-radius: 12px;
    }
}

/* Dropdown menu styles — hidden via opacity+visibility (allows CSS transition)
   display:none would block the Enter animation entirely */
.navbar-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(22, 28, 40, 0.92);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    z-index: var(--z-dropdown);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.97);
    transition: opacity 0.20s ease, visibility 0.20s ease, transform 0.20s cubic-bezier(0.34,1.56,0.64,1);
}

.navbar-nav > li:hover > .sub-menu,
.navbar-nav > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.navbar-nav .sub-menu li a {
    color: #c8d6e5;
    font-size: 0.92rem;
    padding: 0.75rem 1.4rem;
    border-radius: 0;
    background: none;
    transition: background 0.15s, color 0.15s;
    text-transform: capitalize;
    display: block;
    white-space: nowrap;
}

.navbar-nav .sub-menu li a:hover {
    background: rgba(0, 182, 255, 0.1);
    color: var(--accent-blue-light);
    padding-left: 1.8rem;
}

/* Hide mobile submenu toggle on desktop */
.submenu-toggle {
    display: none;
}

/* Navbar Search — icon button only; opens search overlay */
.navbar-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    transition: background 0.18s, color 0.18s;
    flex-shrink: 0;
    margin-left: 0.75rem;
}
.navbar-search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-blue-light);
}
.navbar-search-btn:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Search Overlay */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 22, 0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
}
.search-overlay.active {
    display: flex;
    animation: overlayFadeIn 0.18s ease;
}
@keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.search-overlay-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e0e0e0;
    font-size: 1.1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s;
}
.search-overlay-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.search-overlay-hint {
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}
.search-overlay-inner {
    width: 100%;
    max-width: 700px;
    padding: 0 1.5rem;
}
.search-overlay-form {
    display: flex;
    align-items: stretch;
    background: #232b3a;
    border-radius: 14px;
    border: 1.5px solid #3a4458;
    overflow: hidden;
    transition: border-color 0.2s;
}
.search-overlay-form:focus-within {
    border-color: var(--accent-blue-light);
}
.search-overlay-form input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-size: 1.25rem;
    padding: 1.1rem 1.4rem;
    outline: none;
    font-family: inherit;
}
.search-overlay-form input[type="search"]::placeholder {
    color: #555;
}
.search-overlay-submit {
    background: var(--accent-blue);
    border: none;
    color: #fff;
    padding: 0 1.4rem;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.18s;
}
.search-overlay-submit:hover {
    background: var(--accent-blue-dark);
}

/* Grid System — auto-fill keeps empty columns so single items don't stretch */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: var(--space-2xl) 0;
    width: 100%;
    max-width: 1400px;
}

/* Post Cards */
.post-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
    color: #222;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid #f0f0f0;
    position: relative;
    width: 100%;
    max-width: 100%;
    will-change: transform;
}

.post-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.18), 0 0 0 2px rgba(25,118,210,0.12);
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(25,118,210,0.15);
}

.post-card-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Thumbnail wrapper — aspect-ratio enforces 16:9 at all widths */
.post-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: block;
    position: relative;
    background: #f0f0f0; /* placeholder colour while image loads */
}

/* Image inside the card — fills the aspect-ratio wrapper */
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform var(--transition-slow);
}

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

.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.card-badge {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-md);
    color: #fff;
    background: #ff9800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-transform: capitalize;
    letter-spacing: 0.01em;
}

.card-badge-bonus {
    background: #e91e63;
}

.card-badge-trending {
    background: #ff9800;
}

.post-card-content {
    padding: 1.2rem 1.2rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.entry-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    gap: 0.7rem;
    font-size: 1.01rem;
}

.author {
    color: #0060a0; /* ≈5.9:1 on #fff — was #00b6ff (2.25:1) */
    font-weight: 600;
    font-size: 1.01rem;
}

.price-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.01rem;
}

.original-price {
    text-decoration: line-through;
    color: #767676; /* 4.54:1 on #fff — was #b0b0b0 (2.08:1) */
    font-weight: 500;
    font-size: 1.01rem;
}

.free-badge {
    background: #005f8e; /* white on #005f8e = 6.1:1 — was #00b6ff (2.25:1) */
    color: #fff;
    padding: 0.18rem 0.7rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.01rem;
    margin-left: 0.2rem;
}

.post-card-desc {
    color: #555;
    font-size: 0.98rem;
    margin-bottom: 0.7rem;
    min-height: 2.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.01rem;
    color: #5e5e5e; /* ≈6.3:1 on #fff — was #b0b0b0 (2.08:1) */
    margin-top: 0.7rem;
    gap: 0.7rem;
}

.post-rating {
    color: #ffc107;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.post-downloads {
    color: #5e5e5e; /* ≈6.3:1 on #fff */
    font-size: 1.01rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.post-date {
    color: #5e5e5e; /* ≈6.3:1 on #fff — was #b0b0b0 (2.08:1) */
    font-size: 0.98rem;
}

/* Pagination Styles */
.pagination-wrapper {
    margin: 2.5rem auto 0 auto;
    text-align: center;
    width: auto;
    display: block;
    padding: 0;
}

.pagination-wrapper ul {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    padding: 0;
}

.pagination-wrapper li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 40px;
    background-color: var(--secondary-bg);
    font-weight: 500;
    background: var(--secondary-bg);
}

.pagination-wrapper .page-numbers.current {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
    font-weight: 600;
}

.pagination-wrapper .page-numbers:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
    color: #1976d2;
}

@media (max-width: 767px) {
    .pagination-wrapper {
        margin: 1.5rem auto 0 auto;
        padding: 0 0.5rem;
    }
    .pagination-wrapper ul {
        gap: 0.25rem;
    }
    .pagination-wrapper .page-numbers {
        min-width: 32px;
        padding: 0.4rem 0.7rem;
        font-size: 0.95rem;
    }
}

/* Archive Header Styles */
.archive-header {
    margin-bottom: 2.5rem;
}

.archive-title {
    text-transform: capitalize;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .post-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        margin: var(--space-lg) 0;
        padding: 0 var(--space-sm);
        max-width: 100% !important;
    }
    .post-card {
        border-radius: 14px;
        box-shadow: 0 2px 12px rgba(30,60,114,0.10);
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
    .post-thumbnail {
        border-radius: 14px 14px 0 0;
    }
    .post-card-content {
        padding: 1rem 1rem 0.9rem 1rem;
    }
    .entry-title {
        font-size: 1rem;
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(-45deg, #0d47a1, #1565c0, #0277bd, #006064, #01579b);
    background-size: 400% 400%;
    animation: gradient-shift 10s ease infinite;
    border-radius: 16px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(0,182,255,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(76,175,80,0.10) 0%, transparent 50%);
    pointer-events: none;
    animation: hero-radial-drift 8s ease-in-out infinite alternate;
}

.site-title {
    font-size: var(--fs-hero);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.site-description {
    font-size: var(--fs-md);
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    gap: 0.5rem;
}

.hero-search-input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--primary-bg);
    color: var(--text-color);
    font-size: 1rem;
}

.hero-search-button {
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    color: var(--accent-blue);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search-button:hover {
    background: #f0f4f8;
    color: var(--accent-blue);
    transform: translateY(-1px);
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    .hero-section {
        padding: 2.5rem 1rem;
        margin-bottom: 2rem;
    }

    .site-description {
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero-search {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .hero-search-input {
        width: 100%;
        padding: 0.875rem 1rem;
    }

    .hero-search-button {
        width: 100%;
        padding: 0.875rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .hero-feature-card {
        width: 100%;
        padding: 1rem;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section {
        padding: 3rem 1.5rem;
    }

    .hero-search {
        max-width: 500px;
    }
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0 1.5rem 0;
    flex-wrap: wrap;
    z-index: 1;
    position: relative;
}

.hero-feature-card {
    background: rgba(255,255,255,0.10);
    border-radius: var(--radius-xl);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10), 0 0 0 1px rgba(255,255,255,0.08);
    transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.10);
}

.hero-feature-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 12px 32px rgba(0,0,0,0.20), 0 0 0 1px rgba(255,255,255,0.14);
}

.hero-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    margin-right: 0.5rem;
}

.hero-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.1rem;
}

.hero-feature-desc {
    font-size: 0.98rem;
    color: #eaf6fb;
    opacity: 0.85;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
    z-index: 1;
    position: relative;
    flex-wrap: wrap;
}

.hero-action-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.15rem;
    border: none;
    border-radius: 32px;
    padding: 0.9rem 2.2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    text-decoration: none;
    transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.hero-action-btn:hover {
    background: var(--accent-blue);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0,182,255,0.35);
}

@media (max-width: 767px) {
    .hero-section {
        margin-top: 1.2rem;
    }
}

/* Footer Component Styles */
.footer-main-section {
  background: #232323;
  color: #e0e0e0;
  padding: 3.5rem 0 1.5rem 0;
  border-top: 1px solid #333;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
}
.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  gap: 0.6rem;
}
.footer-logo .footer-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(0, 182, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #00b6ff;
  font-size: 1.1rem;
  flex-shrink: 0;
  animation: logo-glow 3s ease-in-out infinite;
  border: 1px solid rgba(0,182,255,0.18);
}
.footer-desc {
  color: #b0b0b0;
  font-size: 1.05rem;
  margin-bottom: 0;
  line-height: 1.7;
}
.footer-col-title {
  color: #fff;
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  letter-spacing: 0.01em;
}
.footer-links,
.footer-legal {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li,
.footer-legal li {
  margin-bottom: 0.7rem;
}
.footer-links a,
.footer-legal a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1.01rem;
  transition: color 0.2s;
}
.footer-links a:hover,
.footer-legal a:hover {
  color: #00b6ff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 1.01rem;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #e0e0e0;
}
.footer-contact-item svg {
  color: #00b6ff;
  width: 18px;
  height: 18px;
}
.footer-bottom-bar {
  border-top: 1px solid #333;
  margin-top: 2.5rem;
  padding: 1.1rem 2rem 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  color: #b0b0b0;
  font-size: 0.98rem;
}
@media (max-width: 900px) {
  .footer-bottom-bar {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.1rem 1rem 0.5rem 1rem;
    text-align: center;
  }
}
.footer-bottom-bar .footer-made {
  color: #b0b0b0;
  font-size: 0.98rem;
}
.footer-bottom-bar .footer-made .footer-heart {
  color: #ff4d6d;
  font-size: 1.1em;
  vertical-align: middle;
  margin: 0 0.2em;
}

/* Accessibility */
.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;
}

.screen-reader-text:focus {
    background-color: var(--secondary-bg);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--text-color);
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Focus styles for accessibility */
:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -1000em;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
    height: auto;
    width: auto;
    display: block;
    font-size: 14px;
    font-weight: 600;
    padding: 15px 23px 14px;
    z-index: 100000;
    line-height: normal;
    text-decoration: none;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
}

/* Single Post Layout */
.single-post-article {
    background: #fff;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    flex-direction: row-reverse;
}

.single-main-content {
    flex: 1 1 0;
    min-width: 0;
    padding: 48px 40px 48px 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    order: 2;
}

/* Image styles for single post content */
.single-main-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: block;
    max-width: 100%;
    object-fit: cover;
}

.single-main-content figure {
    width: 100%;
    margin: 1.5rem 0;
}

.single-main-content figure img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.single-main-content figure.wp-caption {
    max-width: 100% !important;
    margin: 1.5rem 0;
}

.single-main-content figure.wp-caption img {
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
}

.single-main-content figure.wp-caption figcaption {
    background: #f7fafd;
    padding: 1rem;
    border-radius: 0 0 12px 12px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    border: 1px solid #e6eaf1;
    border-top: none;
}

/* Responsive adjustments for images */
@media (max-width: 900px) {
    .single-main-content {
        padding: 24px 20px;
    }
    
    .single-main-content img,
    .single-main-content figure,
    .single-main-content figure.wp-caption {
        margin: 1rem 0;
    }
}

.single-sidebar {
    flex: 0 0 320px;
    max-width: 320px;
    background: #fff;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid #e6eaf1;
    margin: 0;
    padding: 36px 28px;
    position: relative;
    top: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-height: 100%;
    align-self: flex-start;
    position: sticky;
    top: 32px;
    order: 1;
}

.download-section {
    background: linear-gradient(135deg, #e3f0ff 0%, #f7fafd 100%);
    border-radius: var(--radius-xl);
    padding: 28px 20px;
    margin-bottom: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e6eaf1;
    text-align: left;
}

.download-section h4 {
    font-size: 1.15em;
    margin-bottom: 18px;
    color: #1976d2;
    border-bottom: 2px solid #43a047;
    padding-bottom: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-section .price-row {
    margin-bottom: 18px;
    text-align: center;
}
.download-section .original-price {
    text-decoration: line-through;
    color: #b0b0b0;
    margin-right: 10px;
    font-size: 1.4em;
}
.download-section .free-badge {
    background: linear-gradient(135deg, #43a047, #1976d2);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1em;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.10);
}
.download-section .features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
    text-align: left;
}
.download-section .features-list li {
    margin-bottom: 7px;
    color: #222;
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    line-height: 1.4;
}
.download-section .features-list i {
    color: #43a047;
    margin-right: 8px;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.download-section .download-button {
    display: block;
    background: linear-gradient(135deg, #1976d2, #43a047);
    color: white;
    padding: 16px 0;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.download-section .download-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: rgba(255,255,255,0.18);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}

.download-section .download-button:hover::after {
    left: 130%;
}

.download-section .download-button:hover {
    box-shadow: 0 8px 28px rgba(25,118,210,0.40), 0 4px 12px rgba(67,160,71,0.25);
    transform: translateY(-2px);
}
.download-section .preview-button {
    display: block;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    padding: 16px 0;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    margin-top: 12px;
    position: relative;
    overflow: hidden;
}

.download-section .preview-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: rgba(255,255,255,0.18);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}

.download-section .preview-button:hover::after {
    left: 130%;
}

.download-section .preview-button:hover {
    box-shadow: 0 8px 28px rgba(33,150,243,0.40);
    transform: translateY(-2px);
}

.product-details {
    background: #f7fafd;
    border-radius: var(--radius-xl);
    padding: 18px 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e6eaf1;
}
.product-details h4 {
    font-size: 0.95em;
    margin-bottom: 12px;
    color: #1976d2;
    border-bottom: 2px solid #43a047;
    padding-bottom: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.product-details .details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-details .details-list li {
    margin-bottom: 8px;
    padding: 7px 0;
    background: none;
    border-radius: 6px;
    border-left: 2px solid #43a047;
    display: flex;
    align-items: flex-start;
    font-size: 0.85rem;
    line-height: 1.4;
}
.product-details .details-list i {
    margin-right: 8px;
    margin-left: 8px;
    color: #43a047;
    width: 14px;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.product-details .details-list strong {
    color: #222;
    display: inline-block;
    min-width: 90px;
    font-size: 0.8rem;
    font-weight: 600;
}
.product-details .details-list span {
    color: #3a3a3a;
    font-size: 0.8rem;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 0;
    font-size: var(--fs-sm);
    align-items: center;
}
.entry-meta .author, .entry-meta .date {
    background: #f3f6fa;
    color: #2d3a4a;
    padding: 7px 16px;
    border-radius: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
}
.entry-meta .author i, .entry-meta .date i {
    margin-right: 7px;
    color: #1976d2;
}
.entry-meta .rating {
    background: #ffe7c2;
    color: #ff9800;
    padding: 7px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
}
.entry-meta .rating i {
    margin-right: 7px;
    color: #ff9800;
}

.entry-content {
    font-family: 'Merriweather', Georgia, serif;
    color: #3a3a3a;
    line-height: 1.85;
    font-size: clamp(0.95rem, 0.4vw + 0.8rem, 1.05rem);
    background: #f7fafd;
    border-radius: 12px;
    padding: 32px 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* Add specific styles for headings within entry-content */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Merriweather', Georgia, serif;
    color: #222;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

.entry-content h1 {
    font-size: clamp(1.5rem, 2vw + 0.5rem, 1.9rem);
}

.entry-content h2 {
    font-size: clamp(1.3rem, 1.5vw + 0.5rem, 1.6rem);
}

.entry-content h3 {
    font-size: clamp(1.15rem, 1vw + 0.5rem, 1.35rem);
}

.entry-content h4 {
    font-size: clamp(1.05rem, 0.5vw + 0.6rem, 1.15rem);
}

.entry-content h5 {
    font-size: clamp(0.95rem, 0.3vw + 0.7rem, 1.05rem);
}

.entry-content h6 {
    font-size: 0.95rem;
}

.single-post-article .entry-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(1.55rem, 2.5vw + 0.6rem, 2.1rem);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #111;
}

.category-badge {
    background: #e3f0ff;
    color: #1976d2;
    font-size: 0.98rem;
    font-weight: 600;
    padding: 0.38em 1.1em;
    border-radius: 999px;
    display: inline-block;
    margin-right: 0.3em;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Modal Styles (for single.php modal) */
#downloadModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}
#downloadModal .modal-inner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    margin: 5% auto;
    padding: 40px;
    border: none;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #333;
}
#downloadModal .close {
    color: #b0b0b0;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #333;
}
#downloadModal .modal-steps {
    padding: 20px 0;
    width: 100%;
}
#downloadModal .step {
    display: none;
}
#downloadModal .step.active {
    display: block;
}
#downloadModal .step h3 {
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
#downloadModal .step .social-share-buttons button,
#downloadModal .step .next-step {
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    padding: 16px 24px;
    border: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
#downloadModal .step .social-share-buttons button.facebook { background: linear-gradient(135deg, #3b5998, #4c70ba); color: #fff; }
#downloadModal .step .social-share-buttons button.twitter { background: linear-gradient(135deg, #1da1f2, #4ab8f5); color: #fff; }
#downloadModal .step .social-share-buttons button.pinterest { background: linear-gradient(135deg, #bd081c, #e31b2d); color: #fff; }
#downloadModal .step .social-share-buttons button.whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; }
#downloadModal .step .social-share-buttons button.reddit { background: linear-gradient(135deg, #FF4500, #FF5700); color: #fff; }
#downloadModal .step .step-status {
    margin: 20px 0;
    padding: 15px;
    border-radius: 12px;
    background: #2a2a2a;
    display: none;
    width: 100%;
    text-align: center;
    border: 1px solid #333;
}
#downloadModal .step .status-message {
    font-size: 15px;
    font-weight: 500;
    color: #d0d0d0;
}

/* Responsive adjustments for single post layout */
@media (max-width: 900px) {
    .single-post-article {
        flex-direction: column;
    }
    
    .single-main-content {
        order: 1;
        width: 100%;
        padding: 24px 20px;
    }
    
    .single-sidebar {
        order: 2;
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
        position: relative;
        top: 0;
        margin-bottom: 24px;
        border-radius: 12px;
    }
}

/* Breadcrumbs Styles */
.breadcrumbs {
    margin: 1.5rem 0;
    padding: 0.75rem 1rem;
    background: var(--secondary-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-color);
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--border-color);
    font-size: 0.8rem;
}

.breadcrumbs a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumbs a:hover {
    color: var(--accent-blue-hover);
    background: rgba(0, 123, 186, 0.1);
}

.breadcrumbs span {
    color: var(--text-color);
    opacity: 0.8;
}

/* Responsive Breadcrumbs */
@media (max-width: 768px) {
    .breadcrumbs {
        margin: 1rem 0;
        padding: 0.5rem 0.75rem;
    }
    
    .breadcrumbs ol {
        gap: 0.25rem;
    }
    
    .breadcrumbs li {
        font-size: 0.85rem;
    }
    
    .breadcrumbs li:not(:last-child)::after {
        margin: 0 0.25rem;
    }
    
    .breadcrumbs a {
        padding: 0.2rem 0.4rem;
    }
}

/* =========================================================
   404 Not Found Page — dark theme to match the rest of site
   ========================================================= */
.error-404 {
    text-align: center;
    padding: clamp(3rem, 6vw, 5rem) 2rem;
    background: var(--secondary-bg);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin: 2rem auto;
    max-width: 760px;
}

.error-404-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(0, 182, 255, 0.08);
    border: 1.5px solid rgba(0, 182, 255, 0.2);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--accent-blue-light);
    margin-bottom: 1.5rem;
}

.error-404 .error-code {
    font-size: var(--fs-display);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -4px;
}

.error-404 .error-title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.error-404 .error-message {
    font-size: var(--fs-md);
    color: #9ba8c2;
    margin-bottom: 2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.error-404 .search-form {
    max-width: 520px;
    margin: 0 auto 2rem;
    position: relative;
}

.error-404 .search-form input[type="search"] {
    width: 100%;
    padding: 0.95rem 7.5rem 0.95rem 1.4rem;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: var(--fs-base);
    color: #e0e0e0;
    background: #1e2430;
    transition: border-color 0.2s;
    font-family: inherit;
}

.error-404 .search-form input[type="search"]:focus {
    border-color: var(--accent-blue-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 182, 255, 0.12);
}

.error-404 .search-form input[type="search"]::placeholder {
    color: #556;
}

.error-404 .search-form button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-blue);
    color: #fff;
    border: none;
    padding: 0.65rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
    font-size: var(--fs-sm);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.error-404 .search-form button:hover {
    background: var(--accent-blue-dark);
    transform: translateY(-50%);
}

.error-404-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.error-404 .back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 182, 255, 0.07);
    color: var(--accent-blue-light);
    padding: 0.75rem 1.6rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 1.5px solid rgba(0, 182, 255, 0.2);
    font-size: var(--fs-base);
}

.error-404 .back-home:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

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

.related-posts h3 {
    color: #ffffff;
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.related-posts .post-grid {
    margin-top: 1rem;
}

.related-posts .post-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: block;
    position: relative;
    background: #f0f0f0;
}

.related-posts .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Responsive adjustments for related posts */
@media (max-width: 767px) {
    .related-posts {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .related-posts h3 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
        padding-bottom: 0.8rem;
    }

    .related-posts .post-thumbnail,
    .related-posts .card-image {
        height: 180px !important;
        width: 100% !important;
        object-fit: cover !important;
        border-radius: 12px 12px 0 0 !important;
    }
}

/* Post Tags Styles */
.post-tags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.tags-label {
    display: inline-flex;
    align-items: center;
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tags-label i {
    margin-right: 0.5rem;
    color: var(--accent-blue);
    font-size: 1.1rem;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f0f4f8;
    color: #1976d2;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #e3eaf1;
    position: relative;
    overflow: hidden;
}

.tag-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1976d2;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.tag-link:hover {
    color: #fff;
    transform: translateY(-2px);
    border-color: #1976d2;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.tag-link:hover::before {
    opacity: 1;
}

.tag-link span {
    position: relative;
    z-index: 1;
}

.no-tags {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
}

/* Responsive Tags */
@media (max-width: 768px) {
    .post-tags {
        margin-top: 1.5rem;
        padding-top: 1rem;
        gap: 0.75rem;
    }
    
    .tags-label {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .tag-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Desktop dropdown arrow */
@media (min-width: 901px) {
    .navbar-nav .menu-item-has-children > a {
        position: relative;
        padding-right: 2em;
    }
    .navbar-nav .menu-item-has-children > a::after {
        content: '\25BC'; /* Downward chevron */
        display: inline-block;
        position: absolute;
        right: 1em;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
        font-size: 0.7em;
        color: #b0b0b0;
        transition: transform 0.2s;
        pointer-events: none;
    }
    .navbar-nav > li:hover > a::after,
    .navbar-nav > li:focus-within > a::after {
        transform: translateY(-50%) rotate(180deg);
        color: #00b6ff;
    }
}

/* Mobile First Media Queries
   NOTE: CSS custom properties cannot be used in @media queries;
         literal pixel values must be used here. */
@media (min-width: 576px) {
    .post-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

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

/* ============================================================
   MODERN ANIMATIONS & ENHANCEMENTS
   ============================================================ */

/* --- Keyframes --- */

@keyframes logo-glow {
    0%, 100% {
        box-shadow: 0 0 6px rgba(0,182,255,0.25);
        background: rgba(0, 182, 255, 0.10);
    }
    50% {
        box-shadow: 0 0 18px rgba(0,182,255,0.55), 0 0 36px rgba(0,182,255,0.18);
        background: rgba(0, 182, 255, 0.20);
    }
}

@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes hero-radial-drift {
    0%   { opacity: 0.7; transform: scale(1) translate(0, 0); }
    100% { opacity: 1;   transform: scale(1.08) translate(2%, -3%); }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(0,182,255,0.4); }
    70%  { box-shadow: 0 0 0 10px rgba(0,182,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,182,255,0); }
}

/* --- Scroll-driven entrance animations --- */
/* Cards and sections that enter the viewport fade up */

.post-card {
    animation: fade-in-up 0.45s cubic-bezier(0.4,0,0.2,1) both;
}

/* Stagger children inside a grid */
.post-grid .post-card:nth-child(1)  { animation-delay: 0.04s; }
.post-grid .post-card:nth-child(2)  { animation-delay: 0.08s; }
.post-grid .post-card:nth-child(3)  { animation-delay: 0.12s; }
.post-grid .post-card:nth-child(4)  { animation-delay: 0.16s; }
.post-grid .post-card:nth-child(5)  { animation-delay: 0.20s; }
.post-grid .post-card:nth-child(6)  { animation-delay: 0.24s; }
.post-grid .post-card:nth-child(n+7){ animation-delay: 0.28s; }

.archive-header  { animation: fade-in-up 0.4s ease both; }
.hero-section    { animation: scale-in  0.5s cubic-bezier(0.34,1.2,0.64,1) both; }

/* --- Hero floating icons --- */
.hero-feature-icon {
    animation: float 4s ease-in-out infinite;
}
.hero-feature-card:nth-child(2) .hero-feature-icon { animation-delay: 0.6s; }
.hero-feature-card:nth-child(3) .hero-feature-icon { animation-delay: 1.2s; }

/* --- Navbar search button pulse on focus --- */
.navbar-search-btn:focus {
    animation: pulse-ring 0.6s ease forwards;
}

/* --- Category badge shine --- */
.category-badge {
    transition: background var(--transition-base), color var(--transition-base),
                box-shadow var(--transition-base), transform var(--transition-fast);
}
.category-badge:hover {
    background: #1976d2;
    color: #fff;
    box-shadow: 0 4px 14px rgba(25,118,210,0.30);
    transform: translateY(-2px) scale(1.05);
}

/* --- Tag links upgraded --- */
.tag-link {
    transition: color var(--transition-base), background var(--transition-base),
                transform var(--transition-base), box-shadow var(--transition-base),
                border-color var(--transition-base);
}

/* --- Pagination hover glow --- */
.pagination-wrapper .page-numbers {
    transition: background var(--transition-base), color var(--transition-base),
                border-color var(--transition-base), box-shadow var(--transition-base),
                transform var(--transition-fast);
}
.pagination-wrapper .page-numbers:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(25,118,210,0.18);
}

/* --- Footer link underline slide --- */
.footer-links a,
.footer-legal a {
    position: relative;
    display: inline-block;
}
.footer-links a::after,
.footer-legal a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1.5px;
    background: #00b6ff;
    transition: width var(--transition-base);
}
.footer-links a:hover::after,
.footer-legal a:hover::after {
    width: 100%;
}

/* --- Main nav link underline slide --- */
@media (min-width: 901px) {
    .navbar-nav > li > a::before {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 50%;
        right: 50%;
        height: 2px;
        background: var(--accent-blue-light);
        border-radius: 2px;
        transition: left var(--transition-base), right var(--transition-base);
    }
    .navbar-nav > li > a:hover::before,
    .navbar-nav .current-menu-item > a::before {
        left: 10px;
        right: 10px;
    }
}

/* --- Search overlay enhanced entrance --- */
.search-overlay.active {
    display: flex;
    animation: fade-in 0.22s ease both;
}
.search-overlay.active .search-overlay-inner {
    animation: fade-in-up 0.28s cubic-bezier(0.34,1.2,0.64,1) both 0.06s;
}

/* --- 404 page icon float --- */
.error-404-icon {
    animation: float 3.5s ease-in-out infinite;
}

/* --- Download modal entrance --- */
#downloadModal .modal-inner {
    animation: scale-in 0.28s cubic-bezier(0.34,1.2,0.64,1) both;
}

/* --- Site header scroll shadow deepens (needs JS class toggle — works without too) --- */
.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.04);
}

/* --- Reduced-motion: respect user preference --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}