/*
Theme Name: Envato Showcase
Theme URI: https://your-theme-url.com
Author: Your Name
Author URI: https://your-website.com
Description: A professional dark-mode WordPress theme specifically designed for showcasing CodeCanyon and ThemeForest products as articles.
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: envato-showcase
Tags: dark-mode, custom-background, custom-colors, custom-menu, featured-images, translation-ready
*/

/* 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);
    
    /* Breakpoints */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 900px;
    --breakpoint-xl: 1199px;
    --breakpoint-2xl: 1400px;
}

* {
    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;
}

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

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: var(--secondary-bg);
    box-shadow: 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;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    min-height: 64px;
    background: var(--secondary-bg);
    box-shadow: var(--shadow-sm);
}

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

.navbar-brand .navbar-logo-icon {
    color: var(--accent-blue-light);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
}

.navbar-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    background: var(--secondary-bg);
    box-shadow: var(--shadow-sm);
    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 0.18s, color 0.18s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.navbar-nav a:hover,
.navbar-nav .current-menu-item > a {
    background: #2c3136;
    color: var(--accent-blue-light);
}

/* 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;
        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-block;
        margin-left: auto;
        color: var(--accent-blue-light);
        font-size: 1.2em;
        cursor: pointer;
        padding: 0 1rem;
        user-select: none;
        transition: transform 0.2s;
        vertical-align: middle;
        flex-shrink: 0;
    }
    
    .submenu-toggle.open {
        transform: rotate(45deg);
    }
    
    /* Mobile Submenu */
    .navbar-nav .sub-menu {
        position: static !important;
        display: none;
        background: var(--secondary-bg) !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        flex-basis: 100%;
    }
    
    .navbar-nav .sub-menu.active {
        display: block !important;
    }
    
    .navbar-nav .sub-menu li a {
        background: none !important;
        color: #e0e0e0 !important;
        border-radius: 0 !important;
        padding: 0.8rem 1.5rem 0.8rem 2.5rem !important;
        font-size: 1rem !important;
        display: block !important;
        box-shadow: none !important;
        white-space: normal !important;
    }
    
    .navbar-nav .sub-menu li a:hover {
        background: #2c3136 !important;
        color: var(--accent-blue-light) !important;
    }
    
    /* Hide search on mobile */
    .navbar-search {
        display: none !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 */
.navbar-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(16,26,43,0.18);
    border: 1.5px solid #e6eaf1;
    z-index: var(--z-dropdown);
    padding: 0.7rem 0;
    margin-top: 0.7rem;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.navbar-nav > li:hover > .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-nav .sub-menu li a {
    color: #1976d2;
    font-size: 0.95rem;
    padding: 0.85rem 1.7rem;
    border-radius: 6px;
    background: none;
    transition: background 0.18s, color 0.18s;
    text-transform: capitalize;
    display: block;
    white-space: nowrap;
}

.navbar-nav .sub-menu li a:hover {
    background: #e3f0ff;
    color: var(--accent-blue-light);
}

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

/* Search Bar */
.navbar-search {
    display: flex;
    align-items: center;
    background: var(--secondary-bg);
    border-radius: var(--radius-md);
    padding: 0.2rem 1rem;
    margin-left: 1.5rem;
}

.navbar-search input[type="search"] {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--accent-blue);
    color: #e0e0e0;
    font-size: 1.05rem;
    padding: 0.5rem 0.5rem 0.5rem 0;
    outline: none;
    width: auto;
    margin-left: 0.5rem;
}

.navbar-search input[type="search"]::placeholder {
    color: #b0b0b0;
    opacity: 1;
    margin-left: 0.5rem;
}

.navbar-search-icon {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

/* Grid System */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 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 0.18s, transform 0.18s;
    color: #222;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid #f0f0f0;
    position: relative;
    width: 100%;
    max-width: 100%;
}

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

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

/* Thumbnail wrapper */
.post-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9; /* Keeps a consistent image ratio */
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: contents;
    align-items: center;
    justify-content: center;
}

/* Image inside the card */
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.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: var(--accent-blue-light);
    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: #b0b0b0;
    font-weight: 500;
    font-size: 1.01rem;
}

.free-badge {
    background: #00b6ff;
    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: #b0b0b0;
    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: #b0b0b0;
    font-size: 1.01rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.post-date {
    color: #b0b0b0;
    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%;
    }
    .post-thumbnail, .card-image {
        height: 200px;
    }
}

@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, .card-image {
        height: 180px !important;
        border-radius: 14px 14px 0 0 !important;
    }
    .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(135deg, var(--accent-blue), var(--accent-blue-light));
    border-radius: 16px;
    margin-bottom: 3rem;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.site-description {
    font-size: 1.1rem;
    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-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .site-description {
        font-size: 1rem;
        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;
    }

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

    .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.04);
    transition: background 0.2s, transform 0.2s;
}

.hero-feature-card:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-3px) scale(1.03);
}

.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 2px 12px rgba(0,0,0,0.04);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    margin-bottom: 0.5rem;
}

.hero-action-btn:hover {
    background: var(--accent-blue);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}

@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.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  gap: 0.5rem;
}
.footer-logo .footer-logo-icon {
  color: #00b6ff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
}
.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 370px;
    max-width: 370px;
    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 18px 0;
    text-align: left;
}
.download-section .features-list li {
    margin-bottom: 10px;
    color: #222;
    display: flex;
    align-items: center;
    font-size: 15px;
}
.download-section .features-list i {
    color: #43a047;
    margin-right: 10px;
    font-size: 14px;
}
.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 0.3s ease;
    margin-bottom: 0;
}
.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 0.3s ease;
    margin-top: 12px;
}

.product-details {
    background: #f7fafd;
    border-radius: var(--radius-xl);
    padding: 24px 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e6eaf1;
}
.product-details 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;
}
.product-details .details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-details .details-list li {
    margin-bottom: 12px;
    padding: 10px 0;
    background: none;
    border-radius: 8px;
    border-left: 3px solid #43a047;
    display: flex;
    align-items: center;
}
.product-details .details-list i {
    margin-right: 10px;
    margin-left: 10px;
    color: #43a047;
    width: 16px;
}
.product-details .details-list strong {
    color: #222;
    display: inline-block;
    min-width: 120px;
}
.product-details .details-list span {
    color: #3a3a3a;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 0;
    font-size: 15px;
    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.8;
    font-size: 17px;
    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: 2em;
}

.entry-content h2 {
    font-size: 1.75em;
}

.entry-content h3 {
    font-size: 1.5em;
}

.entry-content h4 {
    font-size: 1.25em;
}

.entry-content h5 {
    font-size: 1.1em;
}

.entry-content h6 {
    font-size: 1em;
}

.single-post-article .entry-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2.4em;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.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 Styles */
.error-404 {
    text-align: center;
    padding: 4rem 2rem;
    background: #00b6ff;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    margin: 2rem auto;
    max-width: 800px;
}

.error-404 .error-code {
    font-size: 8rem;
    font-weight: 800;
    color: #1976d2;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1976d2, #43a047);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.error-404 .error-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.error-404 .error-message {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.error-404 .search-form input[type="search"] {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e6eaf1;
    border-radius: 12px;
    font-size: 1.1rem;
    color: #222;
    background: #f7fafd;
    transition: all 0.3s ease;
}

.error-404 .search-form input[type="search"]:focus {
    border-color: #1976d2;
    outline: none;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.1);
}

.error-404 .search-form button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #1976d2, #43a047);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-404 .search-form button:hover {
    transform: translateY(-50%) scale(1.05);
}

.error-404 .back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f7fafd;
    color: #1976d2;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e6eaf1;
}

.error-404 .back-home:hover {
    background: #1976d2;
    color: #fff;
    transform: translateY(-2px);
}

.error-404 .back-home i {
    font-size: 1.2rem;
}

/* Responsive styles for 404 page */
@media (max-width: 767px) {
    .error-404 {
        padding: 3rem 1.5rem;
        margin: 1rem;
    }

    .error-404 .error-code {
        font-size: 6rem;
    }

    .error-404 .error-title {
        font-size: 2rem;
    }

    .error-404 .error-message {
        font-size: 1.1rem;
    }

    .error-404 .search-form {
        padding: 0 1rem;
    }

    .error-404 .search-form button {
        padding: 0.6rem 1.2rem;
    }
}

/* 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: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.related-posts .post-grid {
    margin-top: 1rem;
    /* Limit the maximum width of individual cards when there are fewer items */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 100%;
}

/* Fix for single related post - limit its width */
.related-posts .post-grid:has(.post-card:only-child) {
    grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
    justify-content: center;
}

/* Alternative approach for browsers that don't support :has() */
.related-posts .post-grid .post-card:only-child {
    max-width: 400px;
    margin: 0 auto;
}

/* Ensure related posts grid doesn't stretch too wide on large screens */
@media (min-width: 1200px) {
    .related-posts .post-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
        justify-content: flex-start;
    }
    
    .related-posts .post-grid:has(.post-card:only-child) {
        justify-content: center;
    }
}

.related-posts .post-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9; /* Keeps a consistent image ratio */
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: contents;
    align-items: center;
    justify-content: center;
}

.related-posts .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 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 */
@media (min-width: var(--breakpoint-sm)) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: var(--breakpoint-lg)) {
    .navbar-toggle {
        display: none;
    }
    
    .navbar-menu {
        display: flex;
    }
    
    .post-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}