/*
Theme Name: Voxen
Theme URI: https://zentronexa.com
Author: Zentro Nexa
Author URI: https://zentronexa.com
Description: A lightweight, ad-optimized fashion theme. Vibrant Editorial Berry Edition.
Version: 6.1.0
Text Domain: voxen
*/

/* ==========================================================================
   1. Base, Reset & Responsive Variables
   ========================================================================== */
:root {
    /* HIGH-ENERGY FASHION PALETTE */
    --primary-color: #E84855; /* Vibrant Editorial Berry / Rose */
    --primary-hover: #C93843; /* Deep Ruby for Interactive Hovers */
    
    --secondary-color: #ffffff; 
    --text-color: #222222;
    --background-color: #f4f6f8; 
    --sidebar-width: 320px;
    --container-width: 1200px;
    
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    --border-radius: 12px; 
    
    /* MASTER DESKTOP SPACING */
    --content-gap: 40px;      
    --section-gap: 60px;      
    --widget-margin: 35px;    
    --widget-padding: 30px;   
}

/* MASTER MOBILE SPACING */
@media screen and (max-width: 768px) {
    :root {
        --content-gap: 30px;
        --section-gap: 40px;
        --widget-margin: 20px;
        --widget-padding: 20px;
    }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { max-width: 100%; overflow-x: clip; }

body { font-family: var(--font-body); font-size: 18px; line-height: 1.7; color: var(--text-color); background-color: var(--background-color); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }

/* Global Link Styles */
a { color: var(--primary-color); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--primary-hover); text-decoration: none; }

/* Custom Premium Text Selection (Highlighting) */
::selection {
    background-color: var(--primary-color);
    color: #ffffff;
}
::-moz-selection {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ==========================================================================
   2. Layout Structure
   ========================================================================== */
.site-container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; width: 100%; }
.site-content-wrapper { display: flex; flex-wrap: wrap; gap: var(--content-gap); margin-top: 40px; margin-bottom: var(--section-gap); }
.main-content { flex: 1; min-width: 0; width: 100%; }
.sidebar { width: var(--sidebar-width); flex-shrink: 0; max-width: 100%; }

/* ==========================================================================
   3. Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.3; margin-bottom: 20px; font-weight: 700; color: #111; }
p { margin-bottom: 25px; }
.aligncenter { display: block; margin: 0 auto 25px; }
.alignleft { float: left; margin: 0 25px 25px 0; }
.alignright { float: right; margin: 0 0 25px 25px; }
.post-thumbnail-link { display: block; }
.pin-optimized-image { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; transition: transform 0.5s ease; }
.hero-post-card:hover .pin-optimized-image, .grid-post-card:hover .pin-optimized-image { transform: scale(1.06); }

/* ==========================================================================
   4. Header & Navigation (PREMIUM DESKTOP UI)
   ========================================================================== */
.site-header { text-align: center; background-color: #ffffff; position: relative; z-index: 9999; border-bottom: 1px solid #eaeaea; } 
.header-main { position: relative; padding-top: 35px; padding-bottom: 20px; }

.site-title { font-family: var(--font-heading); font-size: 3.5rem; margin-bottom: 5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 900; line-height: 1; }
.site-title a { color: #111; }
.site-title a:hover { color: var(--primary-color); }
.site-description { font-family: var(--font-body); color: #666; font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0; }

.menu-toggle, .search-toggle { display: none; }

.main-navigation-wrapper { background-color: var(--primary-color); padding: 15px 0; transition: background-color 0.3s ease; }
.header-search-form { display: none; } 

@media screen and (min-width: 769px) {
    .main-navigation-wrapper {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 9999;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .nav-container { display: flex; justify-content: center; align-items: center; }
    .main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 35px; } 
    
    .main-navigation a { 
        font-family: var(--font-body);
        color: #ffffff; 
        font-size: 15px; 
        font-weight: 600; 
        text-transform: uppercase; 
        letter-spacing: 1px; 
        position: relative;
        padding-bottom: 6px;
    }
    .main-navigation a:hover { color: #ffffff; }
    .main-navigation a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: #ffffff;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    .main-navigation a:hover::after { width: 100%; }
}

/* ==========================================================================
   5. Homepage Consistent Grids & Meta Data
   ========================================================================== */
.hero-section, .category-highlight-section, .latest-posts-section { margin-bottom: var(--section-gap); width: 100%; overflow: hidden; }

.consistent-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid #e1e4e8; }
.section-title { font-size: 26px; text-transform: uppercase; letter-spacing: 1px; margin: 0; color: #111; font-weight: 800; }
.view-all-link { font-family: var(--font-body); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary-color); }

.hero-post-card { position: relative; border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.hero-post-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 25px 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); }
.hero-post-title { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; }
.hero-post-title a { color: #fff; }

.category-badge { 
    font-family: var(--font-body); 
    position: absolute; 
    top: 15px; 
    left: 15px; 
    background-color: rgba(0, 0, 0, 0.75); 
    color: #fff; 
    padding: 5px 12px; 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    border-radius: 4px; 
    z-index: 2; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.15); 
}

.post-meta-date { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.hero-date { color: #dcdcdc; margin-top: 10px; }
.grid-date { color: #888888; margin-top: 10px; }

.hero-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; width: 100%; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; width: 100%; }

.grid-post-card { position: relative; background: #fff; padding-bottom: 15px; text-align: center; border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.04); border: none; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.grid-post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.grid-post-title { font-size: 20px; margin: 20px 15px 0px; line-height: 1.3; font-weight: 700; }
.grid-post-title a { color: #111; }

/* ==========================================================================
   6. Premium Single Posts & Inline Meta Bar
   ========================================================================== */
.single-article { background: #fff; padding: var(--widget-padding); border-radius: var(--border-radius); box-shadow: 0 4px 25px rgba(0,0,0,0.04); border: none; width: 100%; overflow: hidden; }
.post-breadcrumbs { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 30px; font-weight: 600; }
.post-breadcrumbs a { color: var(--primary-color); }
.current-crumb { color: #111; }

.entry-header { margin-bottom: 40px; border-bottom: 2px solid #f4f4f4; padding-bottom: 30px; }
.entry-title { font-size: 3.5rem; line-height: 1.15; margin-bottom: 20px; color: #111; letter-spacing: -0.5px; word-wrap: break-word; font-weight: 800; }

.premium-post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; font-family: var(--font-body); font-size: 14px; color: #666; border-top: 1px solid #f4f4f4; padding-top: 20px; }
.meta-author-group { display: flex; align-items: center; gap: 12px; padding-right: 20px; border-right: 2px solid #eee; }
.meta-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-color); transition: transform 0.3s ease; }
.meta-author-group a:hover .meta-avatar { transform: scale(1.05); }
.meta-author-name a { font-weight: 700; color: #111; text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.3s ease; }
.meta-author-name a:hover { color: var(--primary-color); }
.meta-email-icon { color: #888; display: flex; align-items: center; }
.meta-email-icon:hover { color: var(--primary-color); }

.meta-details-group { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-weight: 500; }
.meta-separator { color: #ccc; }

@media screen and (max-width: 768px) {
    .meta-author-group { border-right: none; padding-right: 0; width: 100%; margin-bottom: 10px; }
}

.post-thumbnail { margin-bottom: 40px; }
.featured-image { width: 100%; max-height: 650px; object-fit: cover; border-radius: var(--border-radius); box-shadow: 0 5px 25px rgba(0,0,0,0.05); }

.entry-content { font-size: 19px; line-height: 1.8; color: #333; word-wrap: break-word; }
.entry-content h2 { margin-top: 50px; margin-bottom: 25px; font-size: 32px; color: #111; font-weight: 700; }
.entry-content img { margin: 40px auto; border-radius: var(--border-radius); box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
.entry-content blockquote { font-family: var(--font-heading); font-size: 26px; font-style: italic; color: #111; margin: 40px 0; padding: var(--widget-padding); background-color: var(--background-color); border-left: 4px solid var(--primary-color); font-weight: 600; }

.about-author-section, .article-author-box { background-color: #ffffff; border-radius: var(--border-radius); padding: var(--widget-padding); margin-bottom: var(--section-gap); box-shadow: 0 4px 25px rgba(0,0,0,0.04); border: none; }
.about-author-inner, .article-author-box { display: flex; align-items: center; gap: 30px; }
.author-image-wrapper { flex-shrink: 0; }
.author-avatar { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.author-box-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.author-bio-content, .author-box-info { flex: 1; }
.author-greeting { font-size: 28px; margin-bottom: 15px; color: #111; font-weight: 800; }
.author-box-name { font-size: 22px; margin-bottom: 8px; color: #111; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.author-bio-text, .author-box-bio { font-family: var(--font-body); font-size: 16px; color: #555; margin-bottom: 20px; line-height: 1.7; }
.read-more-button { font-family: var(--font-body); display: inline-block; background-color: var(--primary-color); color: #fff; padding: 10px 28px; border-radius: 30px; font-size: 13px; text-transform: uppercase; font-weight: 700; border: none; cursor: pointer; transition: background 0.3s ease;}
.read-more-button:hover { background-color: var(--primary-hover); color: #fff; }

/* ==========================================================================
   7. Sidebar Base Styles & Visual Categories
   ========================================================================== */
.widget { background-color: #ffffff; padding: var(--widget-padding); border-radius: var(--border-radius); box-shadow: 0 4px 25px rgba(0,0,0,0.04); margin-bottom: var(--widget-margin); border: none; width: 100%; overflow: hidden; }
.widget:last-child { margin-bottom: 0 !important; }

.widget-title { font-family: var(--font-heading); font-size: 20px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; padding-bottom: 12px; border-bottom: 2px solid #eee; position: relative; color: #111; font-weight: 800; }
.widget-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background-color: var(--primary-color); }

.custom-visual-categories { display: flex; flex-direction: column; gap: 15px; }
.visual-cat-card { position: relative; display: flex; align-items: center; height: 90px; border-radius: var(--border-radius); overflow: hidden; background-size: cover; background-position: center; padding: 0 20px; text-decoration: none !important; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.visual-cat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }
.cat-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%); z-index: 1; }
.cat-circle-img { position: relative; z-index: 2; width: 55px; height: 55px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; margin-right: 15px; flex-shrink: 0; background-color: #eee; }
.cat-circle-img img { width: 100%; height: 100%; object-fit: cover; }
.visual-cat-name { font-family: var(--font-body); position: relative; z-index: 2; color: #fff; font-size: 18px; font-weight: 700; text-transform: capitalize; letter-spacing: 0.5px; }

/* ==========================================================================
   8. Global Search Form UI
   ========================================================================== */
.custom-search-form .search-form-wrapper, .wp-block-search .wp-block-search__inside-wrapper { display: flex; width: 100%; }
.custom-search-form .search-field, .wp-block-search__input { font-family: var(--font-body); flex: 1; padding: 12px 15px !important; border: 1px solid #ddd !important; border-right: none !important; border-radius: 30px 0 0 30px !important; outline: none; font-size: 14px; background: #f9f9f9; transition: all 0.3s ease; }
.custom-search-form .search-field:focus, .wp-block-search__input:focus { border-color: var(--primary-color) !important; background: #fff; }
.custom-search-form .search-submit, .wp-block-search__button { font-family: var(--font-body); background-color: var(--primary-color) !important; color: #fff !important; border: none !important; padding: 12px 25px !important; border-radius: 0 30px 30px 0 !important; font-weight: 700 !important; text-transform: uppercase; font-size: 13px !important; cursor: pointer; transition: background 0.3s ease !important; }
.custom-search-form .search-submit:hover, .wp-block-search__button:hover { background-color: var(--primary-hover) !important; }
.search-highlight { color: var(--primary-color); font-style: italic; }

/* ==========================================================================
   9. Footer Styles & Bottom Sections
   ========================================================================== */
.premium-post-navigation { display: flex; justify-content: space-between; gap: 30px; margin: 50px 0 40px; border-top: 2px solid #f4f4f4; border-bottom: 2px solid #f4f4f4; padding: 30px 0; }
.premium-post-navigation div { flex: 1; }
.premium-post-navigation .nav-next { text-align: right; }
.premium-post-navigation a { display: block; text-decoration: none; padding: 10px; border-radius: 8px; transition: background-color 0.3s ease; }
.premium-post-navigation a:hover { background-color: #ffffff; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.nav-label { display: block; font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 8px; font-weight: 700; transition: color 0.3s ease; }
.nav-title { display: block; font-family: var(--font-heading); font-size: 18px; color: #111; font-weight: 700; line-height: 1.4; transition: color 0.3s ease; }
.premium-post-navigation a:hover .nav-label, .premium-post-navigation a:hover .nav-title { color: var(--primary-color); }

@media screen and (max-width: 768px) {
    .premium-post-navigation { flex-direction: column; gap: 15px; padding: 20px 0; }
    .premium-post-navigation .nav-next { text-align: left; border-top: 1px solid #f4f4f4; padding-top: 15px; }
}

.related-posts-section { margin-bottom: var(--section-gap); }
.related-posts-title { font-family: var(--font-heading); font-size: 26px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; color: #111; text-align: center; position: relative; padding-bottom: 15px; font-weight: 800; }
.related-posts-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 2px; background-color: var(--primary-color); }

.comments-area { background: #fff; padding: var(--widget-padding); border-radius: var(--border-radius); box-shadow: 0 4px 25px rgba(0,0,0,0.04); border: none; margin-bottom: var(--section-gap); width: 100%; overflow: hidden; }

.site-footer { font-family: var(--font-body); background-color: #1a1a1a; color: #bbb; padding: 50px 0 30px; text-align: center; width: 100%; overflow: hidden; }
.footer-navigation ul { list-style: none; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-bottom: 25px; }
.footer-navigation a { color: #bbb; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.footer-navigation a:hover { color: var(--primary-color); }

/* ==========================================================================
   10. MOBILE RESPONSIVENESS
   ========================================================================== */
@keyframes slideDownMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 1024px) {
    .site-content-wrapper { flex-direction: column; }
    .sidebar { width: 100%; margin-top: 10px; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
    .site-header { position: -webkit-sticky; position: sticky; top: 0; z-index: 9999; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: none; }
    .site-header .site-container { padding: 0 10px; } 
    .header-main { display: flex; justify-content: space-between; align-items: center; padding: 20px 5px; width: 100%; background: #fff; }
    .site-branding { flex: 1; text-align: center; }
    .site-title { font-size: 2.2rem; margin-bottom: 0; letter-spacing: 1px; }
    .site-description { display: none; } 
    
    .menu-toggle, .search-toggle { display: flex; align-items: center; justify-content: center; background: none; border: none; color: #111; cursor: pointer; padding: 10px; }
    .menu-toggle svg, .search-toggle svg { stroke: #111; transition: stroke 0.3s ease; }
    .menu-toggle:hover svg, .search-toggle:hover svg { stroke: var(--primary-color); }

    .main-navigation-wrapper { background: transparent; padding: 0; position: absolute; top: 100%; left: 0; width: 100%; }
    .site-header .main-navigation-wrapper .site-container { padding: 0 !important; margin: 0; max-width: 100%; display: flex; flex-direction: column; } 
    .nav-container { flex-direction: column; padding: 0; align-items: flex-start; }
    
    .main-navigation { display: none; width: 80%; max-width: 350px; background-color: #ffffff; padding: 0; border-top: 1px solid #f0f0f0; box-shadow: 10px 15px 30px rgba(0,0,0,0.1); border-radius: 0 0 20px 0; margin: 0; }
    .main-navigation.toggled { display: block; animation: slideDownMenu 0.3s ease-out; }
    .main-navigation ul { flex-direction: column; gap: 0; width: 100%; align-items: stretch; display: flex; }
    .main-navigation li { width: 100%; border-bottom: 1px solid #f4f4f4; }
    .main-navigation li:last-child { border-bottom: none; }
    
    .main-navigation a { font-family: var(--font-body); display: block; color: #111; font-size: 15px; font-weight: 700; padding: 18px 25px; text-align: left; text-transform: uppercase; letter-spacing: 1px; transition: all 0.2s ease; }
    .main-navigation a::after { display: none; }
    .main-navigation a:hover, .main-navigation a:active { background-color: #fcfcfc; color: var(--primary-color); padding-left: 32px; }

    .header-search-form { display: none !important; width: 100%; background-color: #ffffff; padding: 20px; justify-content: center; border-top: 1px solid #f0f0f0; box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
    .header-search-form.toggled { display: flex !important; animation: slideDownMenu 0.3s ease-out; }
    .header-search-input { width: 100%; max-width: 400px; border: 1px solid #ccc; background: #fff; color: #111; border-right: none; padding: 12px 15px; border-radius: 30px 0 0 30px; font-family: var(--font-body); }
    .header-search-input:focus { width: 100%; background: #fff; border-color: var(--primary-color); }
    .header-search-input::placeholder { color: #888; }
    .header-search-button { background-color: var(--primary-color); color: #fff; border: none; padding: 12px 25px; border-radius: 0 30px 30px 0; }
    .header-search-button:hover { background-color: var(--primary-hover); color: #fff; }

    .hero-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 15px; gap: 15px; }
    .hero-grid::-webkit-scrollbar { display: none; } 
    .hero-grid { -ms-overflow-style: none; scrollbar-width: none; }
    .hero-post-card { flex: 0 0 calc(50% - 7.5px); scroll-snap-align: start; }

    .consistent-header { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
    .site-container { padding: 0 15px; }
    .entry-title { font-size: 2.5rem; }
    .article-author-box, .about-author-inner { flex-direction: column; text-align: center; gap: 20px; }
    .author-avatar { width: 150px; height: 150px; }
    
    .sidebar .widget_search,
    .sidebar .widget_block:has(.wp-block-search),
    .sidebar .widget:has(form.search-form),
    .sidebar .widget:has(.wp-block-search),
    .sidebar .widget:has(.custom-search-form) { 
        display: none !important; 
        margin: 0 !important; 
        padding: 0 !important; 
        border: none !important; 
        height: 0 !important;
        overflow: hidden !important;
    }
}

@media screen and (max-width: 480px) {
    .post-grid { grid-template-columns: 1fr; }
    .hero-post-card { flex: 0 0 calc(85% - 10px); } 
}

/* ==========================================================================
   11. Magazine Grid Layout (1-Up, 3-Side) - FIXED PROPORTIONS
   ========================================================================== */
.mag-grid-container {
    display: grid;
    grid-template-columns: 3.4fr 6.6fr; /* CHANGED: Left image is narrower now! */
    gap: var(--content-gap); 
}

.mag-large-card { 
    display: flex; 
    flex-direction: column; 
    text-align: left; 
}
.mag-large-card .post-thumbnail-link { 
    display: block; 
}
/* Stops vertical stretching and perfectly locks the 2:3 ratio based on width */
.mag-large-card .pin-optimized-image { 
    height: auto; 
    width: 100%;
    object-fit: cover; 
}

.mag-large-card .grid-post-content { padding: 0 15px; }
.mag-large-card .grid-post-title { margin: 20px 0 5px 0; }
.mag-large-card .post-meta-date { justify-content: flex-start; }

.mag-grid-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* CHANGED: Prevents items from stretching far apart */
    gap: 22px; /* Fixed gap so they perfectly stack together */
    height: 100%; 
}

.mag-small-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px; 
    background: #fff;
    padding: 12px; 
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mag-small-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }

.mag-small-thumbnail {
    width: 120px; 
    aspect-ratio: 2 / 3; 
    height: auto; 
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}
.mag-small-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mag-small-card:hover .mag-small-img { transform: scale(1.1); }

.mag-small-content { flex: 1; }
.mag-small-title { font-size: 21px; line-height: 1.3; margin-bottom: 5px; font-weight: 700; }
.mag-small-title a { color: #111; }

@media screen and (max-width: 768px) {
    .mag-grid-container { grid-template-columns: 1fr; }
    .mag-grid-right { gap: 15px; justify-content: flex-start; }
    .mag-small-thumbnail { width: 90px; height: auto; }
    .mag-small-title { font-size: 16px; }
    .mag-small-card { padding: 10px; gap: 12px; } 
}

/* ==========================================================================
   12. Trending Grid (2-Column Random Layout)
   ========================================================================== */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; 
}

.trending-card {
    padding: 12px; 
}

.trending-thumbnail {
    width: 120px;
    aspect-ratio: 2 / 3; 
    height: auto;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .trending-grid {
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    .trending-card {
        padding: 10px;
    }
    .trending-thumbnail {
        width: 90px;
    }
}

/* ==========================================================================
   13. FULL-CARD CLICKABILITY (Premium UX)
   ========================================================================== */
.post-thumbnail-link::after,
.mag-small-title a::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.hero-post-card:hover .hero-post-title a { opacity: 0.8; }
.grid-post-card:hover .grid-post-title a,
.mag-small-card:hover .mag-small-title a { color: var(--primary-color); }

/* ==========================================================================
   14. SMART ICONS & MICRO-INTERACTIONS
   ========================================================================== */
.post-meta-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.link-arrow {
    transition: transform 0.3s ease;
}
.view-all-link:hover .link-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   15. CUSTOM UPLOADED LOGO
   ========================================================================== */
.site-logo img {
    max-height: 80px; 
    width: auto;
    margin: 0 auto 10px auto;
    display: block;
}

/* ==========================================================================
   16. LEFT-ALIGNED GRID CARDS
   ========================================================================== */
.left-align-card { text-align: left !important; }
.left-align-card .grid-post-content { padding: 0 15px 15px !important; }
.left-align-card .grid-post-title { margin: 20px 0 10px 0 !important; }
.left-align-card .post-meta-date { justify-content: flex-start !important; }

/* ==========================================================================
   17. PREMIUM PAGINATION UI (Modern Buttons)
   ========================================================================== */
.archive-pagination { margin-top: 50px; margin-bottom: 20px; text-align: center; width: 100%; }
.archive-pagination .nav-links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.archive-pagination .page-numbers { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-width: 44px; 
    height: 44px; 
    padding: 0 15px; 
    background: #ffffff; 
    border-radius: 8px; 
    font-family: var(--font-body); 
    font-weight: 700; 
    font-size: 15px; 
    color: #111; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
    transition: all 0.3s ease; 
    border: 1px solid #eaeaea; 
    text-decoration: none; 
}
.archive-pagination .page-numbers:hover { 
    background: var(--primary-color); 
    color: #ffffff; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); 
    border-color: var(--primary-color); 
}
.archive-pagination .page-numbers.current { 
    background: var(--primary-color); 
    color: #ffffff; 
    border-color: var(--primary-color); 
    box-shadow: 0 6px 15px rgba(0,0,0,0.1); 
    pointer-events: none; 
}
.archive-pagination .page-numbers.dots { 
    background: transparent; 
    border: none; 
    box-shadow: none; 
    pointer-events: none; 
    color: #888; 
}

/* ==========================================================================
   18. PREMIUM COMMENTS SECTION UI (FIXED & COMPACT)
   ========================================================================== */
.comments-title, .comment-reply-title {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #111;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
    padding: 0 0 12px 0;
    border-bottom: 2px solid #f4f4f4;
    display: block;
    width: 100%;
    text-align: left;
    clear: both;
}

.comment-list, .commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.comment {
    margin-bottom: 0;
}

.comment-body {
    position: relative;
    padding-left: 70px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f4f4f4;
    min-height: 55px;
}

.comment-author .avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 55px; 
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}

.comment-meta {
    margin-bottom: 8px;
}

.comment-author {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #111;
    display: block;
    margin-bottom: 2px;
    line-height: 1.2;
}
.comment-author a { color: #111; text-decoration: none; transition: color 0.3s ease; }
.comment-author a:hover { color: var(--primary-color); }
.comment-author .says { display: none; } 

.comment-metadata, .comment-metadata a {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-decoration: none;
}
.comment-metadata a:hover { color: var(--primary-color); }

.comment-content {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
}
.comment-content p { margin-bottom: 10px; }
.comment-content p:last-child { margin-bottom: 0; }

.reply { margin-top: 10px; }
.reply a {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
    padding: 5px 12px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.reply a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(232, 72, 85, 0.2);
}

.children {
    list-style: none;
    padding-left: 0;
    margin-left: 60px;
}
.children .comment-body {
    border-bottom: none;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.children .children {
    margin-left: 0;
    border-left: 2px solid #f4f4f4;
    padding-left: 20px;
}

.comment-respond {
    margin: 20px 0 0 0; 
    padding: 0;
    width: 100%;
    clear: both; 
}

.comment-notes, .logged-in-as { font-size: 13px; color: #666; margin-bottom: 15px; }

.comment-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; 
}

.comment-notes, .logged-in-as, .comment-form-comment, .comment-form-cookies-consent, .form-submit {
    grid-column: 1 / -1;
}

.comment-form label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-form input[type="text"], 
.comment-form input[type="email"], 
.comment-form input[type="url"], 
.comment-form textarea {
    width: 100%;
    padding: 12px; 
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 15px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    color: #333;
}
.comment-form input:focus, .comment-form textarea:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 72, 85, 0.1);
}
.comment-form textarea { height: 120px; resize: vertical; }

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start; 
    gap: 8px;
    margin-top: 5px;
}
.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 2px; 
    width: 14px;
    height: 14px;
    accent-color: var(--primary-color);
    cursor: pointer;
}
.comment-form-cookies-consent label {
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0;
    cursor: pointer;
}

.form-submit { margin-top: 10px; margin-bottom: 0; }
.submit {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}
.submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(232, 72, 85, 0.2);
}

@media screen and (max-width: 768px) {
    .comment-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .comment-body {
        padding-left: 0;
        padding-top: 60px;
    }
    .comment-author .avatar {
        top: 0;
        left: 0;
        width: 45px;
        height: 45px;
    }
    .children {
        margin-left: 15px;
        border-left: 2px solid #f4f4f4;
        padding-left: 15px;
    }
}

/* ==========================================================================
   19. SCROLL TO TOP BUTTON
   ========================================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 9999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(232, 72, 85, 0.3);
}

.scroll-to-top svg {
    stroke: #ffffff;
}

@media screen and (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ==========================================================================
   20. MOBILE LOGO ADJUSTMENTS
   ========================================================================== */
@media screen and (max-width: 768px) {
    .site-branding {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .site-logo img {
        max-height: 30px !important; 
        width: auto;
        margin: 0 auto !important; 
        padding: 0;
        display: block;
    }
}

/* ==========================================================================
   21. FLAWLESS STICKY HEADER (Zero Jitter)
   ========================================================================== */
.site-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    z-index: 9999;
    background-color: #ffffff; 
}

.site-header.is-scrolled .main-navigation-wrapper {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

@media screen and (min-width: 769px) {
    .main-navigation-wrapper {
        position: relative !important; 
        transition: box-shadow 0.3s ease;
    }
    .header-main {
        max-height: none !important;
        padding-top: 35px !important;
        padding-bottom: 20px !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

/* ==========================================================================
   22. EDITORIAL IMAGE ALIGNMENT SPACING
   ========================================================================== */
.wp-block-image.alignleft {
    margin: 5px 25px 20px 0;
}
.wp-block-image.alignright {
    margin: 5px 0 20px 25px;
}
.wp-block-image.aligncenter {
    margin-top: 20px;
    margin-bottom: 20px;
    display: block;
}

@media screen and (max-width: 600px) {
    .wp-block-image.alignleft, 
    .wp-block-image.alignright {
        float: none;
        margin: 0 0 20px 0;
        width: 100% !important;
    }
}

/* ==========================================================================
   23. PREMIUM SIDEBAR WIDGET CONTENTS (Lists, Tags, Categories)
   ========================================================================== */
.widget ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 14px 0;
    border-bottom: 1px solid #f4f4f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #555;
    transition: all 0.3s ease;
}

.widget ul li:first-child {
    padding-top: 0;
}
.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget ul li a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
}
.widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 6px; 
}

.widget .post-count, 
.widget li > span,
.widget_categories li span,
.widget_archive li span {
    background: var(--background-color);
    color: #888;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.widget ul li:hover span {
    background: rgba(232, 72, 85, 0.1); 
    color: var(--primary-color);
}

.widget .tagcloud, 
.wp-block-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.widget .tagcloud a,
.wp-block-tag-cloud a {
    display: inline-block;
    background-color: var(--background-color);
    color: #555;
    font-family: var(--font-body);
    font-size: 12px !important; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.widget .tagcloud a:hover,
.wp-block-tag-cloud a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 72, 85, 0.25);
}

.widget_recent_comments li {
    display: block;
    line-height: 1.6;
}
.widget_recent_comments .comment-author-link {
    font-weight: 800;
    color: #111;
}
.widget_recent_comments .comment-author-link a {
    padding-left: 0 !important; 
}

/* ==========================================================================
   24. IN-POST TAGS STYLING
   ========================================================================== */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #f4f4f4;
}

.tags-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 5px;
}

.post-tags a {
    display: inline-block;
    background-color: var(--background-color);
    color: #555;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 18px;
    border-radius: 30px; 
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 72, 85, 0.25);
}

/* ==========================================================================
   25. POST NAVIGATION CARDS & COLORED TAGS
   ========================================================================== */
.premium-post-navigation {
    border-top: none; 
    border-bottom: none;
    padding: 0;
}

.premium-post-navigation a {
    background-color: #ffffff; 
    padding: 25px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    border: 1px solid #f9f9f9;
    transition: all 0.3s ease;
}

.premium-post-navigation a:hover {
    background-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border-color: rgba(232, 72, 85, 0.3); 
}

@media screen and (max-width: 768px) {
    .premium-post-navigation .nav-next { 
        border-top: none; 
        padding-top: 0; 
    }
    .premium-post-navigation a {
        padding: 20px;
    }
}

.post-tags a {
    background-color: var(--primary-color) !important; 
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(232, 72, 85, 0.2);
}

.post-tags a:hover {
    background-color: var(--primary-hover) !important; 
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(232, 72, 85, 0.35) !important;
}

/* ==========================================================================
   26. PREMIUM TRENDING SECTION (Vibrant Color Block)
   ========================================================================== */
.trending-highlight-section {
    background-color: var(--primary-color);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    margin-bottom: var(--section-gap);
    box-shadow: 0 15px 40px rgba(232, 72, 85, 0.25); 
    width: 100%;
    overflow: hidden;
}

.trending-highlight-section .section-title {
    color: #ffffff;
}
.trending-highlight-section .view-all-link {
    color: #ffffff;
    opacity: 0.9;
}
.trending-highlight-section .consistent-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 35px;
}

.trending-highlight-section .grid-post-card,
.trending-highlight-section .mag-small-card,
.trending-highlight-section .trending-card {
    background: #ffffff;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.trending-highlight-section .grid-post-title a,
.trending-highlight-section .mag-small-title a {
    color: #111;
}
.trending-highlight-section .grid-post-title a:hover,
.trending-highlight-section .mag-small-title a:hover {
    color: var(--primary-hover);
}

.trending-highlight-section .category-badge {
    background-color: #111111;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@media screen and (max-width: 768px) {
    .trending-highlight-section {
        padding: 30px 20px;
        border-radius: 0; 
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }
}

/* ==========================================================================
   27. PREMIUM TABLE OF CONTENTS (Automated)
   ========================================================================== */
.voxen-premium-toc {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin: 40px 0 50px 0;
    padding: 0;
    overflow: hidden;
    max-width: 100%;
}

.voxen-premium-toc .toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--background-color); 
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.voxen-premium-toc .toc-header:hover {
    background-color: rgba(232, 72, 85, 0.05); 
}

.voxen-premium-toc .toc-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.voxen-premium-toc .toc-title svg {
    color: var(--primary-color);
}

.voxen-premium-toc .toc-toggle-icon svg {
    transition: transform 0.3s ease;
    color: #888;
}

.voxen-premium-toc .toc-header.active .toc-toggle-icon svg {
    transform: rotate(-180deg);
}

.voxen-premium-toc .toc-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 25px !important;
    border-top: 1px solid #eaeaea;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
}

.voxen-premium-toc .toc-list.collapsed {
    max-height: 0;
    padding: 0 25px !important;
    border-top: none;
    opacity: 0;
}

.voxen-premium-toc .toc-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.voxen-premium-toc .toc-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.voxen-premium-toc .toc-list a {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
    line-height: 1.5;
}

.voxen-premium-toc .toc-list a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

h2[id^="toc-"] {
    scroll-margin-top: 120px; 
}

/* ==========================================================================
   27. PREMIUM FAQ ACCORDION (Rank Math Optimized)
   ========================================================================== */
.wp-block-rank-math-faq-block {
    margin: 50px 0;
    background: #ffffff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 25px rgba(0,0,0,0.03);
    border: 1px solid #f9f9f9;
}

.wp-block-rank-math-faq-block .rank-math-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.rank-math-list-item {
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 0;
    padding: 18px 0;
}

.rank-math-list-item:first-child {
    padding-top: 0;
}

.rank-math-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rank-math-question {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 5px 0;
    transition: color 0.3s ease;
    user-select: none;
}

.rank-math-question:hover {
    color: var(--primary-color);
}

.rank-math-question::after {
    content: '+';
    font-size: 26px;
    font-weight: 400;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.rank-math-list-item.faq-active .rank-math-question::after {
    content: '−'; 
    transform: rotate(180deg);
}

.rank-math-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

.rank-math-list-item.faq-active .rank-math-answer {
    max-height: 1000px; 
    padding: 15px 0 10px 0;
    opacity: 1;
}

.rank-math-answer p {
    margin-bottom: 0;
}

.author-social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* ==========================================
   HEADER DROP-DOWN MENUS (SUBCATEGORIES) - FIXED
   ========================================== */
.main-navigation ul li {
    position: relative !important;
}

.main-navigation ul li ul.sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important; 
    background-color: #ffffff !important; 
    min-width: 220px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border-radius: 4px !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    display: none !important; 
    z-index: 99999 !important;
}

.main-navigation ul li:hover > ul.sub-menu {
    display: block !important;
}

.main-navigation ul li ul.sub-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: none !important;
}

.main-navigation ul li ul.sub-menu li a {
    display: block !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333333 !important; 
    text-align: left !important;
    text-transform: capitalize !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.main-navigation ul li ul.sub-menu li a:hover {
    color: var(--primary-color) !important; 
    background-color: #f9f9f9 !important; 
    padding-left: 25px !important; 
}

.main-navigation ul > li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 5px solid currentColor;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .main-navigation ul li ul.sub-menu {
        position: static !important;
        transform: none !important;
        background-color: #fcfcfc !important;
        box-shadow: inset 0 3px 10px rgba(0,0,0,0.02) !important;
        display: none !important;
        border-left: 3px solid var(--primary-color) !important;
        border-radius: 0 !important;
    }
    .main-navigation ul li:hover > ul.sub-menu,
    .main-navigation ul li:focus-within > ul.sub-menu {
        display: block !important;
    }
}

/* ==========================================
   FIX: ARROW & HOVER ANIMATION CONFLICT
   ========================================== */
.main-navigation a::after {
    display: none;
}

.main-navigation > ul > li > a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.main-navigation > ul > li > a:hover::before { 
    width: 100%; 
}

.main-navigation ul > li.menu-item-has-children > a::after {
    content: "" !important;
    display: inline-block !important;
    position: static !important;
    width: 7px !important;
    height: 7px !important;
    background-color: transparent !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
    border-top: none !important;
    border-left: none !important;
    border-right: 2.5px solid currentColor !important;
    border-bottom: 2.5px solid currentColor !important;
    transform: translateY(-3px) rotate(45deg) !important;
    opacity: 0.9 !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.main-navigation ul > li.menu-item-has-children:hover > a::after {
    transform: translateY(1px) rotate(225deg) !important;
}

/* ==========================================
   ACTIVE / SELECTED MENU ITEM HIGHLIGHT
   ========================================== */
.main-navigation > ul > li.current-menu-item > a::before,
.main-navigation > ul > li.current-category-ancestor > a::before,
.main-navigation > ul > li.current-menu-ancestor > a::before,
.main-navigation > ul > li.current-post-ancestor > a::before {
    width: 100% !important;
}

.main-navigation ul li ul.sub-menu li.current-menu-item > a {
    color: var(--primary-color) !important;       
    background-color: #f9f9f9 !important;         
    padding-left: 25px !important;                
    font-weight: 700 !important;                  
}

/* ==========================================================================
   SEARCH RESULTS LIST LAYOUT (VERTICAL STACK - SMALLER IMAGE)
   ========================================================================== */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.search-list-card {
    display: flex;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: stretch;
}

.search-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.search-card-image {
    position: relative;
    flex-shrink: 0;
    width: 220px; 
}

.search-card-image .pin-optimized-image {
    aspect-ratio: 2 / 3 !important; 
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-card-content {
    flex: 1;
    padding: 25px 30px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-card-title {
    font-size: 22px; 
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 800;
}

.search-card-title a {
    color: #111;
}

.search-list-card:hover .search-card-title a {
    color: var(--primary-color);
}

.search-card-excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

@media screen and (max-width: 768px) {
    .search-list-card {
        flex-direction: column;
    }
    .search-card-image {
        width: 100%; 
    }
    .search-card-image .pin-optimized-image {
        aspect-ratio: 2 / 3 !important; 
    }
    .search-card-content {
        padding: 20px;
    }
    .search-card-title {
        font-size: 20px;
    }
}