/*
Theme Name: Astra Child
Theme URI: http://wpastra.com/theme/astra-child/
Template: astra
Author: Black Box Reviews
Author URI: http://wpastra.com/about/
Description: Astra Child Theme for Black Box Reviews
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */

:root {
    /* --- COLOR PALETTE (Green-Modern) --- */
    --bb-bg-body: #F8FAFC;
    /* Slate 50 */
    --bb-bg-card: #FFFFFF;
    /* White */
    --bb-bg-dark: #064E3B;
    /* Dark Green (Emerald 900) */
    --bb-bg-footer: #022C22;
    /* Darker Green (Emerald 950) */

    --bb-text-main: #0F172A;
    /* Slate 900 */
    --bb-text-muted: #64748B;
    /* Slate 500 */
    --bb-text-light: #ECFDF5;
    /* Emerald 50 */
    --bb-text-inverted: #FFFFFF;

    --bb-accent: #10B981;
    /* Emerald 500 (Preferred Green) */
    --bb-accent-hover: #059669;
    /* Emerald 600 */

    --bb-border: #E2E8F0;
    /* Slate 200 */

    --bb-font-stack: 'Inter', system-ui, -apple-system, sans-serif;

    --bb-radius: 6px;
    --bb-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --bb-shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Base Reset */
body {
    background-color: var(--bb-bg-body);
    font-family: var(--bb-font-stack);
    color: var(--bb-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Sticky Footer Fix --- */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content {
    flex: 1;
}

/* Hide Page Headers (Comparisons, Blog, Reviews) as requested */
.bb-page-header {
    display: none !important;
}

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

a {
    color: var(--bb-accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
    /* Reset default list style */
}

/* --- Search Bar (Premium Fixed) --- */
.bb-search-container {
    max-width: 700px;
    margin: 0 auto 50px;
    position: relative;
    /* Anchor for absolute dropdown */
    padding: 0 20px;
    z-index: 10;
    /* Ensure container is above other content */
    overflow: visible !important;
    /* Critical: allow dropdown to spill out */
}

.bb-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--bb-border);
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 54px;
    position: relative;
    z-index: 11;
}

.bb-search-form:focus-within {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
    border-color: var(--bb-accent);
}

.bb-search-field {
    flex-grow: 1;
    border: none !important;
    background: transparent !important;
    padding: 0 24px;
    font-size: 1.05rem;
    outline: none !important;
    box-shadow: none !important;
    color: var(--bb-text-main);
    height: 100%;
    border-radius: 0;
}

.bb-search-field::placeholder {
    color: #94A3B8;
}

.bb-search-submit {
    background-color: var(--bb-accent);
    color: #fff;
    border: none;
    height: 100%;
    padding: 0 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.bb-search-submit:hover {
    background-color: var(--bb-accent-hover);
    transform: translateY(0);
}

/* --- Live Search Dropdown --- */
.bb-live-search-results {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid var(--bb-border);
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 99;
    /* Max Z-Index for visibility */
    padding: 10px 0;
    max-width: 660px;
    /* Match form width roughly minus padding */
    margin: 5px auto 0;
}

.bb-live-search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bb-live-search-results li {
    border-bottom: 1px solid #f1f5f9;
}

.bb-live-search-results li:last-child {
    border-bottom: none;
}

.bb-live-search-results a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--bb-text-main);
    transition: background 0.2s;
    gap: 15px;
}

.bb-live-search-results a:hover {
    background-color: #f8fafc;
}

.bb-live-search-results img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.search-item-info {
    flex-grow: 1;
}

.search-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.search-item-date {
    font-size: 0.8rem;
    color: #94A3B8;
}

/* =========================================
   2. COMPONENT STYLES
   ========================================= */

/* --- Buttons --- */
.bb-btn,
.btn-hero,
.final-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: var(--bb-radius);
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 20px;
    /* Default comfortable padding */
}

/* Specific Sizes */
.btn-hero,
.final-cta-btn {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Remove conflicting padding for small buttons if default is meant to be larger, 
   or keep it if .bb-btn specifically needs to be smaller than the shared rule.
   Let's keep .bb-btn small but ensure it doesn't conflict. */
.bb-btn {
    padding: 10px 20px;
    /* Unified padding */
    font-size: 0.95rem;
    height: auto;
    /* Ensure height adjusts */
    line-height: normal;
    /* Fix any line-height issues */
}

/* Outline Variant for Comparisons */
.bb-btn-outline {
    background-color: #ffffff;
    color: var(--bb-text-main);
    border: 1px solid var(--bb-border);
}

.bb-btn-outline:hover {
    background-color: var(--bb-bg-body);
    border-color: var(--bb-text-muted);
    color: var(--bb-text-main);
    transform: translateY(-1px);
}

.bb-btn,
.btn-hero-primary,
.final-cta-btn {
    background-color: var(--bb-accent);
    color: var(--bb-text-inverted);
    border: 1px solid var(--bb-accent);
}

.bb-btn:hover,
.btn-hero-primary:hover,
.final-cta-btn:hover {
    background-color: var(--bb-accent-hover);
    color: var(--bb-text-inverted);
    transform: translateY(-1px);
}

.btn-hero-secondary {
    background-color: transparent;
    color: var(--bb-text-inverted);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
    background-color: #fff;
    color: var(--bb-text-main);
    border-color: #fff;
}

/* --- Cards (Reviews / Comparisons) --- */
.bb-post-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
    /* Mobile First: 1 column */
}

@media (min-width: 640px) {
    .bb-post-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Tablet: 2 columns */
    }
}

@media (min-width: 1024px) {
    .bb-post-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Desktop: 3 columns */
    }
}

.bb-post-card {
    background-color: var(--bb-bg-card);
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    box-shadow: var(--bb-shadow);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Prevents grid blowout */
}

.bb-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bb-shadow-hover);
    border-color: var(--bb-accent);
}

.bb-card-thumb {
    height: 200px;
    background-color: var(--bb-bg-body);
    overflow: hidden;
}

.bb-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bb-post-card:hover .bb-card-thumb img {
    transform: scale(1.05);
}

.bb-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bb-card-title {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.bb-card-title a {
    color: var(--bb-text-main);
}

.bb-card-title a:hover {
    color: var(--bb-accent);
}

.bb-card-excerpt {
    font-size: 0.95rem;
    color: var(--bb-text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

/* =========================================
   3. SPECIFIC SECTIONS
   ========================================= */

/* --- Home Hero --- */
/* --- Home Hero (Premium Design) --- */
.home-hero {
    background-color: #022C22;
    /* Emerald 950 */
    position: relative;
    padding: 160px 20px 180px;
    text-align: center;
    overflow: hidden;
    /* Contain the glow orbs */
    margin-bottom: 0;
}

/* Ambient Glow Orbs */
.hero-glow-1 {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    animation: floatGlow 10s infinite alternate;
}

.hero-glow-2 {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.2) 0%, rgba(52, 211, 153, 0) 70%);
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    animation: floatGlow 12s infinite alternate-reverse;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    color: #94A3B8;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 0.02em;
}

/* Typography */
.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    /* Extra Bold */
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

/* Gradient Text Effect */
.text-gradient {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94A3B8;
    max-width: 680px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* Trust Indicators */
.hero-trust {
    margin-top: 60px;
    font-size: 0.85rem;
    color: #94A3B8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.trust-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    /* Offset the negative margin of first item if needed, but centering handles it mostly */
}

.trust-avatars img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #0B1120;
    display: block;
    margin-left: -10px;
    /* Overlap effect */
    transition: transform 0.2s;
    background-color: #f1f5f9;
    /* Fallback bg */
}

.trust-avatars img:hover {
    transform: translateY(-5px) scale(1.1);
    z-index: 10;
    border-color: #2563EB;
}

/* Fix for Hero Layout Alignment */
.home-hero .ast-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Fix for General Home Section Alignment (Comparisons, Reviews, Articles) */
.home-section-wrapper .ast-container,
.final-cta-section .ast-container {
    display: block !important;
    width: 100%;
}

.home-hero h1 {
    color: var(--bb-text-inverted);
    margin-bottom: 24px;
    font-size: 3rem;
    letter-spacing: -0.03em;
}

.home-hero p {
    color: #94A3B8;
    /* Slate 400 */
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Value Props --- */
.value-props-section {
    background-color: var(--bb-bg-card);
    padding: 80px 20px;
    border-bottom: 1px solid var(--bb-border);
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-prop-card {
    text-align: center;
    padding: 24px;
}

.value-prop-icon {
    font-size: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: #EFF6FF;
    /* Blue 50 */
    border-radius: 50%;
    margin-bottom: 20px;
    color: var(--bb-accent);
}

.value-prop-title {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.value-prop-desc {
    color: var(--bb-text-muted);
}

/* --- Article Lists (Blog) --- */
.bb-article-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--bb-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.bb-article-item:hover {
    border-color: var(--bb-accent);
    transform: translateX(4px);
}

/* --- Wrappers --- */
.home-section-wrapper {
    padding: 80px 20px;
}

.bg-gray-50 {
    background-color: var(--bb-bg-body);
}

.home-section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
    color: var(--bb-text-main);
}

/* --- Comparison Badge (Hidden as requested) --- */
.comparison-badge {
    display: none;
}

/* Button spacing alignment */
.bb-card-meta {
    margin-top: auto;
    /* Push to bottom */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
}

.bb-btn {
    padding: 8px 16px;
    /* Better padding */
    font-size: 0.9rem;
}


/* --- Author Section --- */
.author-section {
    background-color: var(--bb-bg-card);
    padding: 100px 20px;
}

.author-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bb-bg-body);
    padding: 48px;
    border-radius: 12px;
    border: 1px solid var(--bb-border);
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #CBD5E1;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

/* --- Trust / Transparency --- */
.trust-section {
    background-color: var(--bb-bg-dark);
    color: #94A3B8;
    padding: 32px 20px;
    text-align: center;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Final CTA --- */
.final-cta-section {
    background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 100%);
    padding: 120px 20px;
    text-align: center;
}

.final-cta-btn {
    padding: 16px 32px;
    font-size: 1.125rem;
    margin-top: 32px;
}

/* =========================================
   4. FOOTER STYLES (Unified)
   ========================================= */

.custom-blackbox-footer {
    background-color: var(--bb-bg-footer);
    color: #94A3B8;
    padding-top: 80px;
    padding-bottom: 40px;
    border-top: 5px solid var(--bb-accent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: var(--bb-text-inverted);
    margin-bottom: 24px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links a,
.footer-menu ul li a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-menu ul li a:hover {
    color: var(--bb-text-inverted);
}

.footer-links li,
.footer-menu ul li {
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #64748B;
    font-size: 0.85rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .home-hero h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bb-article-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* =========================================
   5. LAYOUT FIXES & PAGINATION
   ========================================= */

/* Fix: Specific fix for Archive/Page direct containers to stack Grid and Pagination vertically */
.site-main>.ast-container {
    display: block !important;
    width: 100%;
}

/* Pagination Styling */
.pagination {
    margin-top: 50px;
    text-align: center;
    width: 100%;
    clear: both;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius);
    color: var(--bb-text-main);
    background: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--bb-accent);
    color: #fff;
    border-color: var(--bb-accent);
    transform: translateY(-2px);
}

/* Ensure no weird list styles if theme uses UL for pagination */
.pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* --- Custom Homepage Logo Styles --- */
.custom-home-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    gap: 5px;
}

.logo-circle-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* --- Circular Logo Styling for Astra Default Logo --- */
/* This styles the logo set via Astra Customizer */
.custom-logo-link {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    gap: 5px;
}

.custom-logo-link .custom-logo {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    object-fit: contain;
    padding: 5px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.custom-logo-link:hover .custom-logo {
    border-color: var(--bb-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.15);
}

/* Add site title below logo */
.ast-site-identity .site-title {
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 5px;
}

/* --- Mobile Fixes (Clean) --- */
@media (max-width: 768px) {

    /* Ensure header elements don't block each other */
    .ast-primary-header-bar,
    .site-branding,
    .ast-site-identity {
        pointer-events: auto !important;
        position: relative;
        z-index: auto !important;
    }

    /* Scale down logo on mobile */
    .custom-logo-link .custom-logo {
        width: 40px !important;
        height: 40px !important;
    }

    .ast-site-identity .site-title {
        font-size: 8px !important;
        white-space: nowrap;
    }
}

/* --- Force Mobile Menu Z-Index --- */
/* Ensure the dropdown menu sits on top of all page content */
.ast-mobile-header-wrap,
.ast-mobile-popup-drawer,
#ast-mobile-popup,
.ast-main-header-bar-alignment {
    z-index: 100000 !important;
    position: relative;
}

/* Fix visibility if accidentally hidden */
.ast-mobile-menu-active .ast-mobile-header-wrap {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* --- ULTIMATE MENU FIX --- */
/* Break the menu out of any hidden containers */
.ast-mobile-menu-active .ast-mobile-header-wrap,
.ast-mobile-menu-active .ast-mobile-popup-drawer {
    display: block !important;
    position: fixed !important;
    /* Force it to be relative to screen, not parent */
    top: 50px !important;
    /* Push it down below header */
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: auto !important;
    z-index: 999999 !important;
    /* Higher than anything */
    background: #fff !important;
    /* Ensure it has background */
    overflow-y: auto !important;
    /* Enable scrolling */
}

/* Ensure content inside is visible */
.ast-mobile-header-content,
.ast-mobile-popup-content,
.main-header-bar-navigation {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 20px !important;
}

/* Fix Text Colors & Visibility */
.ast-mobile-menu-active .menu-item a,
.ast-mobile-menu-active .page_item a {
    color: #1a1a1a !important;
    display: block !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    border-bottom: 1px solid #eee;
}

/* Fix Sub-menu visibility */
.ast-mobile-menu-active .sub-menu {
    display: block !important;
    position: relative !important;
    left: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #f9f9f9 !important;
    margin-left: 10px !important;
}

/* Fix dark mode background if needed */
.dark .ast-mobile-menu-active .ast-mobile-header-wrap {
    background: #1a1a1a !important;
}


/* =========================================
   6. ASTRA HEADER OVERRIDES (Green Theme)
   ========================================= */

/* Main Navigation Links Hover/Active */
.main-header-menu .menu-item:hover>.menu-link,
.main-header-menu .menu-item.current-menu-item>.menu-link,
.main-header-menu .menu-item.current-menu-ancestor>.menu-link {
    color: var(--bb-accent) !important;
}

/* Header Button (Subscribe/CTA) */
.ast-header-button-1 .ast-custom-button-link .ast-custom-button {
    background-color: var(--bb-accent) !important;
    border-color: var(--bb-accent) !important;
    color: #fff !important;
}

.ast-header-button-1 .ast-custom-button-link .ast-custom-button:hover {
    background-color: var(--bb-accent-hover) !important;
    border-color: var(--bb-accent-hover) !important;
}

/* Mobile Menu Toggles */
.ast-mobile-menu-trigger-fill path {
    fill: var(--bb-text-main) !important;
}

.ast-button-wrap .menu-toggle:hover {
    color: var(--bb-accent) !important;
}

/* Search Icon */
.ast-search-icon .astra-search-icon:hover {
    color: var(--bb-accent) !important;
}

/* Mobile Menu Active Items */
.ast-mobile-menu-active .menu-item.current-menu-item>a {
    color: var(--bb-accent) !important;
    font-weight: 700 !important;
    background-color: #f0fdf4 !important;
    /* Green-50 */
}

/* =========================================
   5. BACK TO TOP BUTTON
   ========================================= */

#bb-scroll-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 50px !important;
    height: 50px !important;
    background-color: var(--bb-accent) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease !important;
}

#bb-scroll-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

#bb-scroll-to-top:hover {
    background-color: var(--bb-accent-hover) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3) !important;
}

#bb-scroll-to-top span {
    font-size: 24px !important;
    line-height: 1 !important;
}