/*
Theme Name: Stack Verdict (Astra Child)
Theme URI: https://stackverdict.com
Description: A custom child theme for Stack Verdict, built on the Astra framework.
Template: astra
Version: 3.0.3 (Sticky Bar with Logo)
*/

/* -------------------------------------------------------------------------- */
/* 0. HOMEPAGE FULL-WIDTH LAYOUT OVERRIDE                                     */
/* -------------------------------------------------------------------------- */
body.home .site-content > .ast-container,
body.front-page .site-content > .ast-container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* -------------------------------------------------------------------------- */
/* 1. GLOBAL STYLES & VARIABLES                                               */
/* -------------------------------------------------------------------------- */
:root {
    --brand-primary: #2354A2;
    --brand-primary-hover: #2563eb;
    --text-heading: #0F172A;
    --text-body: #475569;
    --text-light: #94A3B8;
    --bg-light: #F8FAFC;
    --border-color: #E2E8F0;
    --color-warning: #F59E0B;

    --font-primary: 'Plus Jakarta Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --shadow-md: 0 4px 15px rgba(35, 84, 162, 0.1);
    --shadow-lg: 0 10px 30px rgba(35, 84, 162, 0.15);
}

body {
    background-color: #fff;
    font-family: var(--font-primary);
    color: var(--text-body);
    scroll-behavior: smooth;
    font-size: 16px; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { 
    color: var(--text-heading); 
    font-weight: 700;
    line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

.section-title {
    font-size: inherit;
    text-align: center; 
    margin: 0 0 50px 0;
}

body.mobile-menu-open { overflow: hidden; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.content-section { padding: 80px 0; }
.section-title.left-align { text-align: left; }
a { color: var(--brand-primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--brand-primary-hover); }
.button { display: inline-block; background-color: var(--brand-primary); color: #fff; padding: 14px 30px; border-radius: var(--radius-full); font-weight: 500; border: none; cursor: pointer; transition: all 0.2s ease; }
.button:hover { background-color: var(--brand-primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* -------------------------------------------------------------------------- */
/* 2. FUNCTIONAL HEADER                                                       */
/* -------------------------------------------------------------------------- */
.site-header-v3 { background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); padding: 15px 0; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
.site-header-v3 .header-content { display: flex; justify-content: space-between; align-items: center; }
.site-header-v3 .site-logo { height: 32px; width: auto; flex-shrink: 0; }
.main-navigation.desktop-nav { display: none; }
.header-actions .header-cta { display: none; }
.mobile-menu-toggle { background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; color: var(--text-heading); }
.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle .icon-menu { display: block; }
body.mobile-menu-open .mobile-menu-toggle .icon-close { display: block; }
body.mobile-menu-open .mobile-menu-toggle .icon-menu { display: none; }
.mobile-menu-panel { position: fixed; top: 62px; left: 0; width: 100%; height: calc(100vh - 62px); background: #fff; z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 50px 20px 40px; transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); overflow-y: auto; }
body.mobile-menu-open .mobile-menu-panel { transform: translateY(0); }
.mobile-menu-panel .mobile-header-menu { list-style: none; padding: 0; margin: 0 0 40px 0; text-align: center; }
.mobile-menu-panel .mobile-header-menu a { font-size: 24px; font-weight: 600; display: block; padding: 15px 0; }
.mobile-menu-panel .mobile-menu-cta { font-size: 16px; padding: 14px 30px; }

@media (min-width: 992px) {
    .main-navigation.desktop-nav { display: block; }
    .header-actions .header-cta { display: inline-block; }
    .mobile-menu-toggle { display: none; }
    .main-navigation .header-menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
    .main-navigation .header-menu a { font-weight: 500; color: var(--text-body); position: relative; padding: 5px 0; }
    .main-navigation .header-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--brand-primary); transition: width 0.3s ease; }
    .main-navigation .header-menu a:hover, .main-navigation .header-menu .current-menu-item > a { color: var(--brand-primary); }
    .main-navigation .header-menu a:hover::after, .main-navigation .header-menu .current-menu-item > a::after { width: 100%; }
}

/* -------------------------------------------------------------------------- */
/* 2.1 MEGA MENU STYLES (Desktop)                                             */
/* -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .main-navigation .header-menu .sub-menu { display: none; }
    .main-navigation .header-menu a { display: inline-flex; align-items: center; gap: 6px; }
    .mega-menu-parent { position: relative; }
    .mega-menu-panel { position: absolute; top: 100%; left: 0; width: 600px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 30px; border: 1px solid var(--border-color); opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 100; }
    .mega-menu-parent:hover > .mega-menu-panel { opacity: 1; visibility: visible; transform: translateY(5px); }
    .mega-menu-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
    .mega-menu-categories h4 { font-size: 14px; font-weight: 500; color: var(--text-light); margin: 0 0 15px 0; text-transform: uppercase; letter-spacing: 0.5px; }
    .mega-menu-categories ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
    .mega-menu-categories li a { display: flex; align-items: center; gap: 15px; padding: 10px 12px; border-radius: 8px; font-weight: 500; transition: background-color 0.2s ease, color 0.2s ease; }
    .mega-menu-categories li a:hover { background-color: var(--bg-light); color: var(--brand-primary); }
    .mega-menu-categories li a .icon { background-color: var(--bg-light); border-radius: 6px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--brand-primary); }
    .mega-menu-categories li a:hover .icon { background-color: var(--brand-primary); color: #fff; }
    .mega-menu-featured { background-color: var(--bg-light); border-radius: var(--radius-md); padding: 25px; }
    .mega-menu-featured h5 { font-size: 16px; margin: 0 0 8px 0; }
    .mega-menu-featured p { font-size: 14px; line-height: 1.6; margin-bottom: 15px; }
    .mega-menu-featured .featured-link { font-weight: 600; }
}
.mobile-header-menu .menu-label { padding: 15px 0; font-size: 16px; color: var(--text-light); text-transform: uppercase; font-weight: 500; letter-spacing: 1px; }
.mobile-header-menu .menu-divider { height: 1px; background: var(--border-color); margin: 20px 0; }

/* -------------------------------------------------------------------------- */
/* 3. HERO SECTION                                                            */
/* -------------------------------------------------------------------------- */
.hero-section { 
    padding: 100px 0; 
    display: flex; 
    align-items: center; 
    min-height: 80vh; 
}
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-text {
    position: relative;
    padding-bottom: 100px;
}
.hero-text h1 { font-size: 64px; line-height: 1.1; margin-bottom: 24px; font-weight: 700; color: var(--text-heading); }
.hero-text .subtitle { font-size: 17px; margin-bottom: 40px; line-height: 1.6; }
.hero-search-form { position: relative; max-width: 500px; }
.hero-search-form .search-field { width: 100%; padding: 20px 70px 20px 30px; border-radius: var(--radius-full); border: 2px solid var(--border-color); font-size: 16px; font-family: var(--font-primary); transition: all 0.3s ease; }
.hero-search-form .search-field:focus { outline: none; border-color: var(--brand-primary); box-shadow: var(--shadow-md); }
.hero-search-form .search-submit { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background-color: var(--brand-primary); border: none; border-radius: 50%; width: 48px; height: 48px; cursor: pointer; color: white; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; } 
.hero-search-form .search-submit:hover { background-color: var(--brand-primary-hover); transform: translateY(-50%) scale(1.1); }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.software-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.software-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px; transition: all 0.3s ease; cursor: pointer; }
.software-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--brand-primary); }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; background-color: var(--bg-light); color: var(--brand-primary); }
.card-name { font-weight: 600; margin-bottom: 8px; font-size: 16px; }
.card-category { font-size: 14px; color: var(--text-body); margin-bottom: 12px; }
.card-rating { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.stars { color: var(--color-warning); }
.rating-number { font-weight: 500; }

/* -------------------------------------------------------------------------- */
/* 3.1 HERO LOGO TICKER (CORRECTED POSITIONING)                               */
/* -------------------------------------------------------------------------- */
.logo-ticker-section {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
}
.logo-ticker-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.logo-ticker {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scroll 40s linear infinite;
}
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.logo-ticker-wrap:hover .logo-ticker {
    animation-play-state: paused;
}
.logo-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-item img {
    max-height: 100%;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* -------------------------------------------------------------------------- */
/* 4. REVIEWS SECTION                                                         */
/* -------------------------------------------------------------------------- */
.featured-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.latest-reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.featured-card { border-radius: var(--radius-lg); padding: 40px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; position: relative; overflow: hidden; transition: transform 0.3s ease; }
.featured-card:hover { transform: translateY(-8px); }
.featured-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(15,23,42,0.9), rgba(15,23,42,0.3)); z-index: 1; }
.featured-card-content { position: relative; z-index: 2; }
.featured-card h3 { color: #fff; font-size: 24px; margin-bottom: 10px; }
.featured-card p { opacity: 0.8; margin-bottom: 20px; line-height: 1.6; }
.featured-card .card-link { font-weight: 600; color: #fff; }
.latest-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s ease; text-align: center; }
.latest-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--brand-primary); }
.latest-card img { width: 100%; height: 180px; object-fit: contain; padding: 20px; box-sizing: border-box; }
.latest-card-content { padding: 0 20px 20px 20px; }
.latest-card h3 { font-size: 18px; margin: 0 0 5px 0; }
.latest-card p { font-size: 14px; margin: 0 0 15px 0; }
.latest-card .rating { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--color-warning); font-size: 14px; }
.latest-card .rating span { color: var(--text-body); font-weight: 500; }
.featured-card-bg-icon { position: absolute; right: -30px; bottom: -30px; width: 180px; height: 180px; z-index: 1; opacity: 0.1; pointer-events: none; transition: transform 0.4s ease; }
.featured-card:hover .featured-card-bg-icon { transform: scale(1.1) rotate(-5deg); }
.featured-card-bg-icon img { width: 100%; height: 100%; object-fit: contain; }

/* -------------------------------------------------------------------------- */
/* 5. CATEGORIES & DUAL SECTION                                               */
/* -------------------------------------------------------------------------- */
.latest-reviews-section, .categories-section, .dual-section { background: var(--bg-light); }
.featured-reviews-section .section-title, .latest-reviews-section .section-title, .categories-section .section-title { font-size: 28px; }
.section-subtitle { text-align: center; font-size: 18px; max-width: 600px; margin: -30px auto 50px auto; line-height: 1.6; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 25px; }
.category-card { background-color: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 30px 20px; text-align: center; transition: all 0.3s ease; }
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--brand-primary); color: var(--brand-primary); }
.category-card .category-icon { margin: 0 auto 20px; width: 64px; height: 64px; border-radius: 50%; background: var(--bg-light); display: flex; align-items: center; justify-content: center; }
.category-card h3 { font-size: 18px; margin: 0; }
.dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.how-it-works-panel { background-color: var(--text-heading); padding: 50px 40px; border-radius: var(--radius-lg); color: #fff; display: flex; flex-direction: column; }
.how-it-works-panel .section-title { color: #fff; font-size: 28px; margin-bottom: 40px; }
.how-it-works-panel .button { margin-top: auto; }
.steps-infographic { position: relative; padding-left: 45px; margin-bottom: 40px; }
.steps-infographic::before { content: ''; position: absolute; left: 20px; top: 10px; bottom: 10px; width: 2px; background: rgba(255, 255, 255, 0.1); }
.steps-infographic .step { position: relative; margin-bottom: 30px; }
.step-number { position: absolute; left: -45px; top: -5px; width: 42px; height: 42px; border-radius: 50%; background-color: var(--brand-primary); display: flex; align-items: center; justify-content: center; font-weight: 600; border: 3px solid var(--text-heading); }
.step-content h4 { font-size: 18px; color: #fff; margin: 0 0 5px 0; }
.step-content p { font-size: 15px; line-height: 1.6; color: var(--border-color); margin: 0; }
.trending-panel .section-title { font-size: 28px; }
.trending-grid { display: grid; gap: 20px; }
.trending-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 15px; transition: all 0.3s ease; }
.trending-card:hover { transform: translateY(-5px) translateX(5px); box-shadow: var(--shadow-md); border-color: var(--brand-primary); }
.trending-logo { flex-shrink: 0; width: 50px; height: 50px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.trending-info h4 { font-size: 18px; margin: 0 0 5px 0; }
.trending-rating { font-size: 14px; color: var(--color-warning); }

/* -------------------------------------------------------------------------- */
/* 6. FOOTER                                                                  */
/* -------------------------------------------------------------------------- */
.site-footer-v3 { background-color: var(--bg-light); padding: 60px 0 30px 0; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-bottom: 50px; }
.footer-logo { max-height: 32px; margin-bottom: 20px; }
.footer-tagline { font-size: 15px; line-height: 1.6; margin-bottom: 25px; }
.footer-column h4 { font-size: 16px; font-weight: 600; margin: 0 0 20px 0; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a { color: var(--text-body); font-weight: 500; font-size: 15px; }
.footer-nav a:hover { color: var(--brand-primary); }
.footer-social { display: flex; gap: 15px; }
.footer-social a { color: var(--text-body); font-size: 20px; }
.footer-bottom { text-align: center; padding-top: 30px; margin-top: 40px; border-top: 1px solid var(--border-color); }
.footer-bottom p { margin: 0; font-size: 14px; color: var(--text-light); }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; } }

/* -------------------------------------------------------------------------- */
/* 7. RESPONSIVE STYLES (For Homepage Sections)                               */
/* -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 60px; }
    .hero-visual { margin-top: 40px; }
    .software-showcase { max-width: 600px; margin: 0 auto; }
    .hero-search-form { margin-left: auto; margin-right: auto; }
    .featured-reviews-grid, .latest-reviews-grid { grid-template-columns: 1fr 1fr; }
    .dual-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 48px; }
}
@media (max-width: 768px) {
    .section-title { font-size: 28px; }
    .hero-text h1 { font-size: 40px; }
    .hero-section { padding: 60px 0; }
    .hero-text { padding-bottom: 80px; }
    .software-showcase { grid-template-columns: repeat(2, 1fr); }
    .featured-reviews-grid, .latest-reviews-grid, .dual-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .logo-item { height: 30px; }
}

/* -------------------------------------------------------------------------- */
/* 8. BLOG & CONTENT STYLES                                                   */
/* -------------------------------------------------------------------------- */
#primary { padding: 60px 0 80px 0; background-color: var(--bg-light); }
.ast-container { max-width: 1140px; }
#secondary { display: none; }
#primary { width: 100%; }
.blog .ast-article-post, .archive .ast-article-post, .search-results .ast-article-post,
.blog .ast-article-inner, .archive .ast-article-inner, .search-results .ast-article-inner { background-color: transparent; border: none; padding: 0; box-shadow: none; }
.blog article.post, .archive article.post, .search-results article.post { background-color: #fff; border: 1px solid var(--border-color); padding: 40px; border-radius: var(--radius-lg); margin-bottom: 2rem; transition: all 0.3s ease; }
.blog article.post:hover, .archive article.post:hover, .search-results article.post:hover { border-color: var(--brand-primary); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-meta-categories { margin-bottom: 15px; }
.post-meta-categories ul { list-style: none; padding: 0; margin: 0; }
.post-meta-categories li { display: inline-block; margin-right: 10px; }
.post-meta-categories li:last-child { margin-right: 0; }
.post-meta-categories a { color: var(--brand-primary); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.post-meta-categories a:hover { color: var(--brand-primary-hover); }
.blog .entry-title a, .archive .entry-title a { color: var(--text-heading); font-size: 1.75rem; line-height: 1.3; }
.blog .entry-title a:hover, .archive .entry-title a:hover { color: var(--brand-primary); }
.blog .entry-meta, .archive .entry-meta, .blog .entry-meta a, .archive .entry-meta a, .blog .entry-meta span, .archive .entry-meta span { color: var(--text-light) !important; font-size: 0.9em; }
.blog .entry-meta a:hover, .archive .entry-meta a:hover { color: var(--brand-primary) !important; }
.blog .entry-summary p, .archive .entry-summary p { color: var(--text-body); font-size: 1rem; line-height: 1.7; margin-top: 1.5em; }
.single-post #primary { background-color: #f7f9fb; background-image: radial-gradient(var(--border-color) 1px, transparent 1px); background-size: 20px 20px; }
.single-post .ast-breadcrumbs-wrapper, .single-post [class*="breadcrumb"] { max-width: 840px; margin: 0 auto 1.5rem auto; padding: 0; font-size: 0.9rem; font-weight: 500; }
.single-post .ast-breadcrumbs-wrapper a { color: var(--text-light); transition: color 0.2s ease; }
.single-post .ast-breadcrumbs-wrapper a:hover { color: var(--brand-primary); }
.single-post .ast-breadcrumbs-wrapper .breadcrumb-sep { color: var(--border-color); margin: 0 0.5em; }
.single-post .ast-breadcrumbs-wrapper .trail-item.trail-end { color: var(--text-body); }
.single-post .site-main > article { background-color: #fff; border: 1px solid var(--border-color); padding: 0; border-radius: var(--radius-lg); max-width: 840px; margin: 0 auto; box-shadow: 0 10px 30px rgba(35, 84, 162, 0.07); overflow: hidden; }
.single-post .entry-header { text-align: left; padding: clamp(2.5rem, 6vw, 4rem); background: var(--bg-light); border-bottom: 1px solid var(--border-color); }
.single-post .entry-header .post-categories a { display: inline-block; background-color: rgba(35, 84, 162, 0.1); color: var(--brand-primary); font-size: 0.8rem; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-full); margin-bottom: 1rem; transition: background-color 0.2s ease; }
.single-post .entry-header .post-categories a:hover { background-color: rgba(35, 84, 162, 0.2); }
.single-post .entry-title { color: var(--text-heading); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.2; margin-bottom: 1.5rem; font-weight: 800; }
.single-post .entry-meta { display: none; }
.entry-meta-custom { display: flex; align-items: center; gap: 15px; }
.author-avatar img { border-radius: 50%; border: 2px solid var(--border-color); display: block; }
.meta-text .author-name { color: var(--text-body); font-weight: 600; font-size: 1rem; }
.meta-text .author-name a { color: var(--brand-primary); text-decoration: none; background: none; transition: color 0.2s ease; }
.meta-text .author-name a:hover { color: var(--brand-primary-hover); }
.meta-text .posted-on { color: var(--text-light); font-size: 0.9rem; }
.single-post .post-thumb { padding: 0 clamp(2rem, 5vw, 4rem); margin-top: 3rem; margin-bottom: 0; position: relative; }
.single-post .post-thumb img { border-radius: var(--radius-md); box-shadow: var(--shadow-lg); border: 5px solid #fff; }
.single-post .entry-content { font-size: 1.125rem; line-height: 1.8; padding: clamp(2rem, 5vw, 4rem); }
.single-post .entry-content > *:first-child { margin-top: 0; }
.single-post .entry-content h2 { font-size: 1.8rem; line-height: 1.3; margin-top: 2.5em; margin-bottom: 1em; padding-left: 20px; border-left: 4px solid var(--brand-primary); }
.single-post .entry-content h3 { font-size: 1.5rem; margin-top: 2.5em; margin-bottom: 1em; color: var(--brand-primary); font-weight: 700; }
.single-post .entry-content a { color: var(--brand-primary); text-decoration: none; background-image: linear-gradient(to right, var(--brand-primary-hover), var(--brand-primary)); background-size: 0% 2px; background-position: 0% 100%; background-repeat: no-repeat; transition: background-size 0.3s ease-in-out; }
.single-post .entry-content a:hover { background-size: 100% 2px; }
.single-post .entry-content blockquote { border: none; padding: 2rem; margin: 2em 0; background-color: var(--bg-light); border-radius: var(--radius-md); border-left: 4px solid var(--brand-primary); font-style: normal; font-size: 1.1rem; color: var(--text-heading); position: relative; }
.single-post .entry-content blockquote p { margin: 0; }
.single-post .entry-content blockquote::before { content: '“'; position: absolute; left: -12px; top: -10px; font-size: 5rem; font-family: Georgia, serif; color: rgba(35, 84, 162, 0.1); z-index: 1; }
.single-post .entry-content ul { list-style: none; padding-left: 0; }
.single-post .entry-content ul li { position: relative; padding-left: 35px; margin-bottom: 0.75em; }
.single-post .entry-content ul li::before { content: '✓'; position: absolute; left: 0; top: 2px; color: #fff; background-color: var(--brand-primary); border-radius: 50%; width: 24px; height: 24px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; }
.single-post .entry-content hr { border: 0; text-align: center; margin: 3em auto; }
.single-post .entry-content hr::before { content: '•••'; font-size: 1.5rem; letter-spacing: 0.5em; color: var(--border-color); }
#toc_container { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 25px 30px; margin: 2em 0; }
#toc_container .toc_title { font-size: 1.2rem; font-weight: 700; color: var(--text-heading); margin: 0 0 15px 0; display: block; }
#toc_container ul { list-style: none; padding-left: 5px; counter-reset: toc-counter; }
#toc_container ul li { padding-left: 0; font-size: 1rem; position: relative; margin-bottom: 0.75em; }
#toc_container ul li a { background-image: none; transition: color 0.2s ease, transform 0.2s ease; display: inline-block; }
#toc_container ul li a:hover { color: var(--brand-primary-hover); transform: translateX(3px); }
#toc_container ul li::before { counter-increment: toc-counter; content: counter(toc-counter) "."; font-weight: 600; color: var(--brand-primary); margin-right: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 0.9rem; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
.entry-content th, .entry-content td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border-color); border-right: 1px solid var(--border-color); }
.entry-content th:last-child, .entry-content td:last-child { border-right: none; }
.entry-content thead th { background-color: #f1f5f9; color: var(--text-heading); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px; }
.entry-content tbody tr:nth-of-type(even) { background-color: var(--bg-light); }
.entry-content tbody tr:last-of-type td { border-bottom: 0; }
.author-box { margin: 4rem clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem); padding: 2.5rem; background: var(--bg-light); border: 1px solid var(--border-color); border-top: 4px solid var(--brand-primary); padding-top: calc(2.5rem - 4px); border-radius: var(--radius-lg); display: flex; align-items: flex-start; text-align: left; gap: 25px; }
.author-box .avatar { width: 80px; height: 80px; border-radius: 50%; margin-bottom: 0; flex-shrink: 0; }
.author-box .author-info { flex: 1; min-width: 0; }
.author-box h4 { font-size: 1.5rem; margin: 0 0 0.5rem 0; }
.author-box p { font-size: 1rem; line-height: 1.7; margin: 0; }
.comments-area, .ast-pagination { max-width: 840px; margin-left: auto; margin-right: auto; }
.ast-pagination { margin-top: 60px; }
@media (max-width: 768px) {
    #primary { padding: 40px 0; }
    .blog article.post, .archive article.post, .search-results article.post { padding: 25px; }
    .single-post .site-main > article { padding: 0; }
    .single-post .entry-header, .single-post .entry-content, .single-post .post-thumb { padding-left: 25px; padding-right: 25px; }
    .single-post .entry-content { font-size: 1rem; }
}

/* -------------------------------------------------------------------------- */
/* 9. "GET TOOL" BUTTONS & STICKY BAR                                         */
/* -------------------------------------------------------------------------- */
.btn-get-tool { background-color: var(--color-warning); color: var(--text-heading); font-weight: 700; }
.btn-get-tool:hover { background-color: #ffb947; color: var(--text-heading); box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3); }
.post-actions { margin-top: 20px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.latest-card-wrapper { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s ease; }
.latest-card-wrapper:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--brand-primary); }
.latest-card { background: none; border: none; text-align: center; flex-grow: 1; }
.latest-card img { height: 150px; width: 100%; object-fit: contain; padding: 20px; }
.latest-card-action { padding: 0 20px 20px 20px; }
.latest-card-action .btn-get-tool { display: block; width: 100%; text-align: center; }

/* ======================================================================== */
/* 9.4 Single Post Sticky Bar (Mobile-First & Responsive with Logo)         */
/* ======================================================================== */
.sticky-tool-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-color);
    padding: 12px 0;
    z-index: 998;
    transform: translateY(100%);
    animation: slideUp 0.5s 1s ease-out forwards;
}

@keyframes slideUp {
    to { transform: translateY(0); }
}

.sticky-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.sticky-bar-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0; 
}

.sticky-bar-logo {
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.sticky-bar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sticky-bar-title {
    display: none;
    font-weight: 600;
    color: var(--text-heading);
    font-size: 18px;
}

.sticky-bar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sticky-bar-rating {
    display: none; 
}
.sticky-bar-rating .stars {
    color: var(--color-warning);
    font-size: 1rem;
    letter-spacing: 1px;
}
.sticky-bar-rating .rating-num {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
}

@media (min-width: 375px) {
    .sticky-bar-rating {
        display: flex;
        align-items: center;
        gap: 6px;
    }
}

@media (min-width: 768px) {
    .sticky-bar-title {
        display: block;
    }
    .sticky-bar-actions {
        gap: 20px;
    }
    .sticky-bar-rating .stars,
    .sticky-bar-rating .rating-num {
        font-size: 1.1rem;
    }
}

/* -------------------------------------------------------------------------- */
/* 10. DYNAMIC "HOT PICKS" STYLES                                             */
/* -------------------------------------------------------------------------- */
.trending-grid { display: grid; gap: 15px; }
.trending-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 16px; display: flex; align-items: center; gap: 15px; transition: all 0.2s ease-in-out; }
.trending-card:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.trending-card-link { flex-grow: 1; display: flex; align-items: center; gap: 15px; text-decoration: none; color: inherit; }
.trending-logo { flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.trending-logo img { width: 100%; height: 100%; object-fit: cover; }
.trending-info h4 { font-size: 18px; font-weight: 600; color: var(--text-heading); margin: 0 0 4px 0; transition: color 0.2s ease; }
.trending-card-link:hover h4 { color: var(--brand-primary); }
.trending-rating { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.trending-rating .stars { color: var(--color-warning); letter-spacing: 1px; }
.trending-rating .rating-num { font-weight: 500; color: var(--text-body); }
.btn-get-tool-small { padding: 8px 18px; font-size: 14px; font-weight: 600; flex-shrink: 0; }

/* -------------------------------------------------------------------------- */
/* 12. DYNAMIC HERO VISUAL TWEAKS                                             */
/* -------------------------------------------------------------------------- */
a.software-card { text-decoration: none; color: inherit; }
.software-card .card-icon { background-color: var(--bg-light); color: var(--brand-primary); }
.software-card .card-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-md); }
.software-card .card-rating .stars-wrapper { position: relative; display: inline-block; line-height: 1; }
.software-card .card-rating .stars-background { color: #e2e8f0; -webkit-text-stroke: 1px var(--color-warning); text-stroke: 1px var(--color-warning); }
.software-card .card-rating .stars-foreground { position: absolute; top: 0; left: 0; white-space: nowrap; overflow: hidden; color: var(--color-warning); line-height: 1; }

/* -------------------------------------------------------------------------- */
/* 13. MOBILE POST META TWEAKS                                                */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .single-post .entry-meta-custom { gap: 12px; }
    .single-post .entry-meta-custom .author-avatar img { width: 30px; height: 30px; }
    .single-post .entry-meta-custom .author-name { font-size: 0.7rem; }
    .single-post .entry-meta-custom .posted-on { font-size: 0.7rem; }
}

/* -------------------------------------------------------------------------- */
/* 14. SINGLE POST INTRO SECTION                                              */
/* -------------------------------------------------------------------------- */
.post-intro-section { display: grid; grid-template-columns: 2fr 3fr; gap: 0; margin: 2.5rem 0; background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.post-intro-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-intro-content { padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; justify-content: center; }
.post-intro-content .intro-subtitle { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--text-heading); font-weight: 600; line-height: 1.4; margin-top: 0; margin-bottom: 1.5rem; border-left: 3px solid var(--brand-primary); padding-left: 1rem; }
.intro-details-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.detail-item { display: flex; flex-direction: column; }
.detail-label { font-size: 0.75rem; color: var(--text-light); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.detail-value { font-size: 1rem; font-weight: 600; color: var(--text-heading); }
.detail-value.rating-value { color: var(--brand-primary); }
@media (max-width: 768px) {
    .post-intro-section { grid-template-columns: 120px 1fr; margin: 2rem 0; }
    .post-intro-image { height: 100%; }
    .post-intro-content { padding: 1rem; }
    .post-intro-content .intro-subtitle { font-size: 1rem; margin-bottom: 1rem; padding-left: 0.75rem; }
    .intro-details-grid { gap: 0.75rem; }
    .detail-label { font-size: 0.7rem; }
    .detail-value { font-size: 0.9rem; }
}

/* -------------------------------------------------------------------------- */
/* 15. SPACIOUS BLOG/ARCHIVE/SEARCH LAYOUT                                    */
/* -------------------------------------------------------------------------- */
.blog #primary, .archive #primary, .search #primary { padding: 40px 0 60px 0; background-color: var(--bg-light); }
.sv-archive-header { text-align: center; padding: 2rem 1rem 3rem; border-bottom: 1px solid var(--border-color); margin-bottom: 3rem; background-color: #fff; }
.sv-archive-header h1 { font-size: clamp(1.8rem, 4vw, 2.25rem); color: var(--text-heading); font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3; }
.sv-archive-header .archive-description { font-size: 1.1rem; color: var(--text-body); max-width: 650px; margin: 0 auto; line-height: 1.6; }
.sv-archive-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .sv-archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sv-archive-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { background-color: #fff; border-radius: var(--radius-lg, 16px); padding: 2rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; border: 1px solid var(--border-color); }
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); border-color: var(--brand-primary); }
.card-categories { margin-bottom: 1rem; }
.card-category a { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; color: var(--brand-primary); text-transform: uppercase; margin-right: 0.5rem; background: none; }
.card-category a:hover { color: var(--brand-primary-hover); }
.card-title { font-size: 1.5rem; font-weight: 700; color: var(--text-heading); line-height: 1.3; margin: 0 0 0.75rem 0; }
.card-title a { color: inherit; background: none; }
.card-title a:hover { color: var(--brand-primary); }
.card-date { font-size: 0.875rem; color: var(--text-light); margin-bottom: 1rem; }
.card-excerpt { font-size: 1rem; color: var(--text-body); flex-grow: 1; margin-bottom: 1.5rem; }
.card-excerpt p { margin: 0; }
.read-more-link { font-weight: 600; color: var(--brand-primary); text-decoration: none; transition: color 0.2s ease; background: none; }
.read-more-link:hover { color: var(--brand-primary-hover); text-decoration: underline; }
body #primary .ast-pagination { margin-top: 4rem; padding-bottom: 2rem; }
body #primary .ast-pagination .nav-links { display: flex; justify-content: center; align-items: center; list-style: none; padding: 0; gap: 1rem; }
body #primary .ast-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--brand-primary); background-color: transparent; border: none; border-radius: var(--radius-md, 12px); min-height: 44px; padding: 0 0.5rem; transition: all 0.2s ease-in-out; }
body #primary .ast-pagination a.page-numbers:hover { color: var(--brand-primary-hover); transform: translateY(-2px); }
body #primary .ast-pagination .page-numbers.current { background-color: var(--brand-primary); color: #fff; box-shadow: 0 4px 14px 0 rgba(35, 84, 162, 0.3); padding: 0 1.25rem; font-weight: 700; cursor: default; transform: none; }
body #primary .ast-pagination .prev.page-numbers { color: var(--text-light, #94A3B8); pointer-events: none; }
body #primary .ast-pagination a.prev.page-numbers { pointer-events: auto; }
body #primary .ast-pagination a.prev.page-numbers:hover { color: var(--brand-primary); }
body #primary .ast-pagination .page-numbers.dots { color: var(--text-light, #94A3B8); cursor: default; pointer-events: none; }
body #primary .ast-pagination .page-numbers.dots:hover { transform: none; }

/* -------------------------------------------------------------------------- */
/* 16. MOBILE MENU VERTICAL SPACING REDUCTION                                 */
/* -------------------------------------------------------------------------- */

/* Target the main container for the slide-down menu */
.mobile-menu-panel {
    /* REDUCED: The original 50px top padding was the main issue. 
       This brings the menu items much closer to the top. */
    padding-top: 20px; 
    padding-bottom: 30px; /* Optional: Slightly reduced bottom padding */
}

/* Target the list of menu items */
.mobile-menu-panel .mobile-header-menu {
    /* REDUCED: The margin between the menu and the bottom CTA button. */
    margin-bottom: 25px;
}

/* Target the individual menu links */
.mobile-menu-panel .mobile-header-menu a {
    /* REDUCED: The font size was quite large at 24px. */
    font-size: 20px; 
    
    /* REDUCED: The vertical padding on each link. This is a major space-saver. */
    padding: 10px 0; 
}

/* Optional: Adjust the "Software Categories" label if you use it */
.mobile-header-menu .menu-label {
    font-size: 14px;
    padding: 10px 0; /* Reduced from 15px */
}

/* Optional: Tighten up the space around the visual divider */
.mobile-header-menu .menu-divider {
    margin: 15px 0; /* Reduced from 20px */
}

/* -------------------------------------------------------------------------- */
/* General Styling - Fix Overflow */
/* -------------------------------------------------------------------------- */
body { overflow-x: hidden; width: 100%; }
.full-width-background { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: calc(-50vw + 8px); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
@media (max-width: 768px) { .full-width-background { margin-right: -50vw; } }
.site-main { width: 100%; margin: 0; padding: 0; }
* { box-sizing: border-box; }