/*
Theme Name: Dementor Modern
Theme URI: https://example.com/dementor-modern
Author: Antigravity
Author URI: https://example.com
Description: A premium dark, modern, and minimalistic theme for a Persian Harry Potter website.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dementor-modern
Tags: two-columns, right-sidebar, custom-colors, dark-mode, rtl-language-support
*/

:root {
    /* Premium Dark Palette */
    --bg-primary: #050505;
    /* Deep cleaner black */
    --bg-secondary: #0f1210;
    /* Very dark rich grey/green tint */
    --bg-tertiary: #1a1d1b;

    --text-primary: #e0e6e3;
    /* Slightly cool white */
    --text-secondary: #9aa5a0;
    --text-muted: #5c6660;

    /* Accents - Slytherin inspired but elegant */
    --accent-color: #1d4e38;
    --accent-bright: #2d7a56;
    /* For hover states */
    --accent-gold: #c5b358;
    /* Muted gold for highlights */

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(45, 122, 86, 0.5);

    --font-family-base: 'Estedad', sans-serif;
    --spacing-unit: 1.5rem;
    --container-width: 1280px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);

    --radius-sm: 8px;
    --radius-md: 16px;
}

input {
    font-family: var(--font-family-base);
}

/* Reset & Basics */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family-base);
    line-height: 1.7;
    direction: rtl;
    width: 100%;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 20% 50%, rgba(42, 98, 61, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(197, 179, 88, 0.01) 0%, transparent 50%);
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.3;
    margin-bottom: 0.75em;
    font-weight: 800;
    color: #fff;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 1.5rem);
}

h3 {
    font-size: 1.75rem;
}

/* Layout Utilities using Logical Properties */
.container {
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--spacing-unit);
}

.grid {
    display: grid;
    gap: var(--spacing-unit);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Header */
.site-header {
    position: relative;
    z-index: 100;
}

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

.site-title {
    font-size: 1.5rem;
    font-weight: 900;
    position: relative;
}

/* Harry Potter magical glow effect on site title */
.site-title::before {
    content: '⚡';
    margin-inline-end: 0.5rem;
    opacity: 0.7;
    filter: drop-shadow(0 0 10px rgba(197, 179, 88, 0.5));
}

.site-title a {
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation - Logical Properties */
.main-navigation {
    display: block;
    direction: rtl;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
    padding-block: 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover Line Animation */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-bright);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    pointer-events: none;
}

.main-navigation a:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(45, 122, 86, 0.4);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item>a::after {
    width: 100%;
}

/* Submenus - Glassmorphism & Logical */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-start: auto;
    /* Reset */
    inset-inline-end: 0;
    /* Align to logical end (left in RTL) check? Actually usually submenus align start-to-start. Let's aligns start. */
    /* Alignment for standard dropdown */
    inset-inline-start: 0;

    background: rgba(15, 18, 16, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    min-width: 220px;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
    z-index: 200;

    /* Animation base */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-navigation li:hover>ul,
.main-navigation li:focus-within>ul {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.main-navigation ul ul a {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    color: var(--text-secondary);
    display: block;
    width: 100%;
    white-space: nowrap;
}

.main-navigation ul ul a::after {
    display: none;
}

.main-navigation ul ul a:hover {
    background-color: rgba(45, 122, 86, 0.15);
    color: #fff;
    transform: translateX(-5px);
    /* RTL Slide left on hover */
}

/* Post Cards with Premium Feel */
.site-main {
    padding-block: 4rem;
}

.post-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Glow effect blob */
.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.post-card:hover::before {
    opacity: 0.2;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-hover);
    border-color: var(--accent-bright);
}

.post-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.post-title {
    margin-bottom: 1rem;
}

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

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Button / Read More */
.read-more-link {
    display: inline-block;
    padding: 0.5rem 0;
    color: #fff;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
}

.read-more-link:hover {
    border-color: var(--accent-bright);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    /* Above mobile menu overlay */
}

.menu-toggle .icon-bar {
    width: 30px;
    height: 2px;
    background-color: #fff;
    margin: 6px 0;
    transition: 0.3s;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: flex;
        position: fixed;
        inset: 0;
        /* Logical top/right/bottom/left */
        background-color: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;

        /* Hidden state details */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
    }

    .main-navigation.toggled ul {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-header.toggled {
        /* Keep header background opaque when menu open */
        background-color: var(--bg-secondary);
    }

    .main-navigation.toggled .menu-toggle .icon-bar:nth-child(2) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .main-navigation.toggled .menu-toggle .icon-bar:nth-child(3) {
        opacity: 0;
    }

    .main-navigation.toggled .menu-toggle .icon-bar:nth-child(4) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Footer */
.site-footer {
    background-color: black;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
    text-align: center;
    color: var(--text-muted);
}

/* Single Post Layout */
.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .content-sidebar-wrap {
        grid-template-columns: 1fr;
    }
}

article.single-post {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem;
}

.entry-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.entry-title {
    margin-bottom: 1rem;
    color: #fff;
}

.entry-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-thumbnail {
    margin-bottom: 2rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

/* Sidebar - Magical Parchment Theme */
.widget-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.widget::before {
    content: '✨';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.2rem;
    opacity: 0.3;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.widget ul li:hover {
    padding-inline-start: 0.5rem;
    color: var(--accent-bright);
}

.widget a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

/* Comments - Harry Potter Magical Theme */
.comments-area {
    margin-top: 4rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem;
}

.comments-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-gold);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 2rem;
    margin-bottom: 2rem;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

.comment-author .fn {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-bright);
}

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

.comment-content {
    line-height: 1.7;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.reply a {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reply a:hover {
    background-color: var(--accent-bright);
    transform: translateY(-2px);
}

.children {
    list-style: none;
    padding-inline-start: 3rem;
    margin-top: 2rem;
}

.comment-respond {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--accent-color);
}

.comment-reply-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family-base);
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-bright);
    box-shadow: 0 0 0 3px rgba(45, 122, 86, 0.1);
}

.comment-form textarea {
    min-height: 150px;
}

.form-submit input[type="submit"] {
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    background-color: var(--accent-bright);
    transform: translateY(-2px);
}

/* Content Area Full Width (No Sidebar) */
.content-area-full {
    width: 100%;
}

/* Archive Notice Banner */
.archive-notice {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-bright) 100%);
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.archive-notice h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.archive-notice p {
    margin-bottom: 1rem;
    opacity: 0.95;
}

.archive-notice a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

/* Footer Promotion Styles - Improved Design */
.site-footer {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #000 100%);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
}

.footer-promotion {
    background: linear-gradient(135deg, rgba(42, 98, 61, 0.15) 0%, rgba(29, 78, 56, 0.1) 100%);
    border: 2px solid var(--accent-color);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 90%;
    margin: 0 auto 3rem auto;
}

.footer-promotion::before {
    content: '✨';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 2rem;
    opacity: 0.3;
}

.footer-promotion::after {
    content: '⚡';
    position: absolute;
    bottom: 1rem;
    left: 2rem;
    font-size: 2rem;
    opacity: 0.3;
}

.footer-promotion h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(197, 179, 88, 0.3);
}

.footer-promotion p {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.new-sites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.new-site-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 2px solid var(--accent-color);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.new-site-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.new-site-link:hover::before {
    left: 100%;
}

.new-site-link:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-bright);
    box-shadow: 0 10px 40px rgba(45, 122, 86, 0.3);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-bright) 100%);
}

.new-site-link strong {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 800;
}

.new-site-link span {
    color: var(--accent-gold);
    font-size: 1rem;
    font-weight: 600;
}

.new-site-link.store {
    border-color: var(--accent-gold);
}

.new-site-link.store:hover {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, #3a5a47 0%, var(--accent-color) 100%);
    box-shadow: 0 10px 40px rgba(197, 179, 88, 0.3);
}

/* Footer Social - Improved */
.footer-social {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.footer-social h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-bright) 100%);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-bright);
}

/* Site Info - Improved */
.site-info {
    padding: 2rem 0 0;
}

.site-info p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.footer-credits {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 1rem;
}

.footer-credits a {
    color: var(--accent-gold);
    transition: color 0.3s ease;
}

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

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-promotion {
        padding: 2rem 1.5rem;
    }

    .footer-promotion h3 {
        font-size: 1.5rem;
    }

    .new-sites {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
    }

    .social-links a {
        width: 100%;
        max-width: 300px;
    }
}

/* Footer Full Width - Inner Content Wrapper */
.footer-promotion>*:not(.new-sites),
.footer-social>*:not(.social-links),
.site-info {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.new-sites,
.social-links {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 768px) {

    .footer-promotion>*:not(.new-sites),
    .footer-social>*:not(.social-links),
    .site-info,
    .new-sites,
    .social-links {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Social Icons SVG Styling */
.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.social-links svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.social-links a:hover svg {
    transform: scale(1.1);
}

/* Platform-specific hover colors */
.social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}

.social-telegram:hover {
    background: #0088cc !important;
}

.social-youtube:hover {
    background: #ff0000 !important;
}

/* ========================================
   HERO HEADER STYLES
   ======================================== */

/* Top Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.top-nav.scrolled {
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 500px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('./images/background.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.3) 40%,
            rgba(5, 5, 5, 0.7) 80%,
            rgba(5, 5, 5, 1) 100%);
    z-index: 1;
}

/* Magical particle effect */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(197, 179, 88, 0.3) 0%, transparent 100%),
        radial-gradient(2px 2px at 40% 70%, rgba(197, 179, 88, 0.2) 0%, transparent 100%),
        radial-gradient(2px 2px at 80% 40%, rgba(197, 179, 88, 0.25) 0%, transparent 100%),
        radial-gradient(3px 3px at 70% 80%, rgba(45, 122, 86, 0.3) 0%, transparent 100%),
        radial-gradient(2px 2px at 90% 20%, rgba(197, 179, 88, 0.15) 0%, transparent 100%);
    animation: sparkle 8s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.5;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(197, 179, 88, 0.2);
    border: 1px solid var(--accent-gold);
    border-radius: 50px;
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.8) 0%, rgba(106, 13, 173, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 35px rgba(138, 43, 226, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(148, 53, 236, 0.9) 0%, rgba(116, 23, 183, 1) 100%);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.7);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.3);
}


.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Non-homepage header adjustments */
body:not(.home) .site-header {
    margin-bottom: 2rem;
}

body:not(.home) .top-nav {
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(12px);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 400px;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 60vh;
        min-height: 350px;
    }

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

    .hero-tagline {
        font-size: 1rem;
    }
}

/* Fix content overlap - homepage needs no extra padding since hero is in normal flow */
body.home {
    padding-top: 0;
}

/* Non-homepage needs padding for fixed nav */
body:not(.home) {
    padding-top: 70px;
}

/* Hero bottom fade/blur effect */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(5, 5, 5, 0.3) 30%,
            rgba(5, 5, 5, 0.7) 60%,
            rgba(5, 5, 5, 1) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 2;
    pointer-events: none;
}

/* Logo in Header */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
}

.site-logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.5));
}

/* Ensure logo and menu are inline */
.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .site-logo img {
        height: 35px;
    }
}

/* External Feed Section */
.external-feed-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

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

.section-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.view-all-link {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-link:hover {
    color: #fff;
    transform: translateX(-5px);
}

.external-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.external-post-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.08) 0%, rgba(106, 13, 173, 0.05) 100%);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    overflow: hidden;
}

.external-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(138, 43, 226, 0.8) 0%, rgba(106, 13, 173, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.external-post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.15);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.12) 0%, rgba(106, 13, 173, 0.08) 100%);
}

.external-post-card:hover::before {
    opacity: 1;
}

.external-post-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #fff;
    line-height: 1.4;
}

.external-post-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.external-post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.external-post-date::before {
    content: '🗓️';
    font-size: 0.9rem;
}

/* Archive Posts Section */
.archive-posts {
    margin-top: 2rem;
}

.no-feed {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .external-feed-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   MOBILE BURGER MENU
   ======================================== */

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 1100;
    position: relative;
}

.menu-toggle .icon-bar {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hamburger to X animation */
/* Note: nth-of-type(1) is the screen-reader-text span */
.menu-toggle.active .icon-bar:nth-of-type(2) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .icon-bar:nth-of-type(3) {
    opacity: 0;
}

.menu-toggle.active .icon-bar:nth-of-type(4) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        z-index: 1200;
    }

    .main-navigation ul#primary-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(5, 5, 5, 0.98) 0%, rgba(15, 18, 16, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 60px 0 2rem;
        flex-direction: column;
        gap: 0;
        overflow-y: auto;
        z-index: 1100;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-navigation.toggled ul#primary-menu {
        display: flex;
        transform: translateX(0);
    }

    .main-navigation ul#primary-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .main-navigation ul#primary-menu li>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        color: var(--text-primary);
    }

    .main-navigation ul#primary-menu li>a::after {
        display: none;
    }

    .main-navigation ul#primary-menu li>a:hover {
        background: rgba(138, 43, 226, 0.1);
        color: #fff;
    }

    /* Mobile Submenu */
    .main-navigation ul#primary-menu li.menu-item-has-children>a::after {
        content: '▼';
        display: inline-block;
        font-size: 0.7rem;
        transition: transform 0.3s ease;
        background: none;
        width: auto;
        height: auto;
        position: static;
        opacity: 1;
    }

    .main-navigation ul#primary-menu li.menu-item-has-children.submenu-open>a::after {
        transform: rotate(180deg);
    }

    .main-navigation ul.sub-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        background: rgba(0, 0, 0, 0.3);
        padding: 0;
        width: 100%;
        box-shadow: none;
        border: none;
        display: none;
    }

    .main-navigation li.menu-item-has-children.submenu-open>.sub-menu {
        display: block;
    }

    .main-navigation ul.sub-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-navigation ul.sub-menu li:last-child {
        border-bottom: none;
    }

    .main-navigation ul.sub-menu a {
        padding: 1rem 3rem !important;
        font-size: 1rem;
        color: var(--text-secondary);
    }

    .main-navigation ul.sub-menu a:hover {
        color: #fff;
        background: rgba(138, 43, 226, 0.15);
        padding-right: 3.5rem !important;
    }

    /* Dark overlay when menu is open */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .main-navigation.toggled~.mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
    }

    /* Fix body scroll when menu open */
    body.menu-open {
        overflow: hidden;
    }
}

/* ========================================
   FOOTER MOBILE FIX
   ======================================== */

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

    .footer-promotion {
        padding: 1.5rem 1rem;
        margin: 0 1rem 2rem;
        border-radius: var(--radius-sm);
    }

    .footer-promotion::before,
    .footer-promotion::after {
        display: none;
    }

    .footer-promotion h3 {
        font-size: 1.25rem;
    }

    .footer-promotion p {
        font-size: 0.95rem;
    }

    .new-sites {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .new-site-link {
        padding: 1.25rem 1rem;
    }

    .new-site-link strong {
        font-size: 1.15rem;
    }

    .footer-social {
        padding: 1.5rem 1rem;
        margin: 0 1rem 1.5rem;
    }

    .footer-social h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .social-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .social-links a {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        justify-content: center;
    }

    .social-links svg {
        width: 20px;
        height: 20px;
    }

    .site-info {
        padding: 1rem;
        text-align: center;
    }

    .site-info p {
        font-size: 0.85rem;
    }

    .footer-credits {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .footer-promotion {
        margin: 0 0.5rem 1.5rem;
        padding: 1.25rem 0.875rem;
    }

    .footer-promotion h3 {
        font-size: 1.1rem;
    }

    .footer-social {
        margin: 0 0.5rem 1rem;
        padding: 1.25rem 0.75rem;
    }

    .new-site-link {
        padding: 1rem 0.875rem;
    }
}

/* Mobile Menu Layout Fix - Hamburger Left, Logo Right */
/* Mobile Menu Layout Fix - Hamburger Left, Logo Right */
@media (max-width: 992px) {

    /* Ensure flex container behaviors correctly in RTL */
    .top-nav .container {
        display: flex;
        flex-direction: row;
        /* In RTL, this means Right-to-Left flow */
        justify-content: space-between;
    }

    /* Logo stays at Start (Right in RTL) */
    .site-branding {
        order: 1;
    }

    /* Navigation goes to End (Left in RTL) */
    .main-navigation {
        order: 2;
    }

    /* Menu Panel - Slide from LEFT side (same side as hamburger) */
    .main-navigation ul#primary-menu {
        right: auto;
        left: 0;
        transform: translateX(-100%);
        /* Start off-screen left */
        direction: rtl;
        /* Ensure content inside is RTL */
    }

    .main-navigation.toggled ul#primary-menu {
        transform: translateX(0);
    }

    /* Close button position inside menu */
    .main-navigation.toggled .menu-toggle {
        position: fixed;
        top: 20px;
        left: 20px;
        /* Top-Left corner */
        right: auto;
        z-index: 1200;
    }

    /* Padding for menu content */
    .main-navigation.toggled ul#primary-menu {
        padding-top: 80px;
    }
}

/* ========================================
   SEARCH FUNCTIONALITY
   ======================================== */

.header-actions {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    /* Space from logo */
    order: 3;
    /* Ensure it's usually after logo in LTR or specific order */
}

/* RTL Adjustment for header actions */
body.rtl .header-actions {
    margin-left: 0;
    margin-right: 1rem;
}

.search-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-light);
    transform: scale(1.1);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Close Button */
.search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.search-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* Search Form in Overlay */
.search-overlay-content {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

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

.search-overlay .search-form {
    position: relative;
    width: 100%;
}

.search-overlay .search-field {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 300;
    padding: 1rem 0;
    border-radius: 0;
    outline: none;
    text-align: center;
    transition: border-color 0.3s ease;
}

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

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

.search-overlay .search-submit {
    /* Hidden submit button, hit enter */
    display: none;
}

/* Prevent scrolling when search is open */
body.search-open {
    overflow: hidden;
}

/* Result Page Styling */
.search-results .page-header {
    margin-bottom: 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.search-results .page-title span {
    color: var(--accent-light);
}

/* Mobile Adjustments for Search */
@media (max-width: 992px) {
    /* Position Search Toggle in Header */
    /* We want order: Logo(L), Search(Center/Right?), Menu(R) or similar */
    /* Previous fix set Logo: order 1, Menu: order 2 */

    .header-actions {
        order: 1 !important;
        /* Move next to logo or handle via specific positioning */
        margin-right: 0.5rem;
    }

    /* Let's try to place search icon between logo and menu or keep it flexible */
    .top-nav .container {
        /* Logo (1), Menu (2) */
        /* If we insert header-actions in DOM: Logo, HeaderActions, Menu */
        /* Flex order: Logo(1), Menu(2), HeaderActions(3) -> Search on far left (RTL) */

        /* We want Search near Menu (Left side) */
    }

    .header-actions {
        position: absolute;
        /* Take out of flow to prevent messing up the delicate Logo/Menu balance */
        left: 60px;
        /* Position it next to hamburger (Left: 20px + width) */
        top: 50%;
        transform: translateY(-50%);
    }

    .search-overlay .search-field {
        font-size: 1.5rem;
    }

    .search-close {
        top: 1.5rem;
        right: 1.5rem;
    }
}

/* ========================================
   NO RESULTS / 404 STYLING
   ======================================== */

.no-results-content {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon {
    color: var(--text-muted);
    margin-bottom: 2rem;
    opacity: 0.5;
}

.no-results-icon svg {
    width: 64px;
    height: 64px;
}

.no-results .page-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.no-results .page-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.search-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Standard Search Form Styling (Non-Overlay) */
.search-form {
    display: flex;
    justify-content: center;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    /* Consistent rounding */
    background: var(--bg-secondary);
    transition: border-color 0.3s ease;
    overflow: hidden;
    /* For border radius + button */
}

.search-form:focus-within {
    border-color: var(--accent-color);
}

.search-form label {
    flex-grow: 1;
    display: flex;
    /* Make input fill label */
}

.search-form .search-field {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.search-form .search-submit {
    background: var(--accent-color);
    border: none;
    color: #fff;
    padding: 0 1.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

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

/* Ensure overlay is not affected by standard styles where they differ */
.search-overlay .search-form {
    border: none;
    background: transparent;
    border-radius: 0;
}

.search-overlay .search-submit {
    display: none;
}

/* ========================================
   FOOTER MENU
   ======================================== */

.footer-navigation {
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-navigation li {
    display: inline-block;
}

.footer-navigation a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* Page Template Styles */
.page-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.page .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-light);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.page .entry-content {
    line-height: var(--line-height-relaxed);
    font-size: 1.1rem;
}

.page .entry-content h2,
.page .entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .footer-navigation ul {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ========================================
   CATEGORY HEADER
   ======================================== */

.category-header-image {
    position: relative;
    height: 250px;
    /* Reduced specific height as requested */
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    color: #fff;
    margin-top: 0;
}

.category-header-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 1;
    border-radius: inherit;
}

.category-header-image .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.category-header-image .page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.category-header-image .archive-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 800px;
}

/* Default header (no image) */
.page-header.default-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .category-header-image {
        height: 200px;
    }

    .category-header-image .page-title {
        font-size: 1.8rem;
    }
}