/* Theme toggle button */
.theme-toggle-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    font-size: 1.5rem !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    margin-left: 15px !important;
    padding: 0 !important;
}
.theme-toggle-btn:hover {
    color: #c3dabe !important;
    transform: scale(1.1) !important;
}
body.dark-theme .theme-toggle-btn {
    color: #c3dabe !important;
}
body.dark-theme .theme-toggle-btn:hover {
    color: #a8c9a1 !important;
}

/* Dark theme styles */
body.dark-theme { background-color: #2F3136 !important; color: #e0e0e0 !important; color-scheme: dark; }
body.dark-theme .futbolo-header-top { background-color: #3F434D !important; border-bottom-color: #c3dabe !important; }
body.dark-theme .futbolo-header-content { color: #e0e0e0 !important; }
body.dark-theme .futbolo-logo-area .site-title { color: #fff !important; }
body.dark-theme .futbolo-logo-area .site-title a { color: #fff !important; transition: color 0.3s ease !important; }
body.dark-theme .futbolo-logo-area .site-title a:hover { color: #c3dabe !important; }
body.dark-theme .futbolo-search-box input { background-color: #2F3136 !important; border-color: #c3dabe !important; color: #e0e0e0 !important; }
body.dark-theme .futbolo-search-box input::placeholder { color: #999 !important; }
body.dark-theme .futbolo-search-box button { background-color: #c3dabe !important; color: #2F3136 !important; }
body.dark-theme .futbolo-search-box button:hover { background-color: #a8c9a1 !important; }
body.dark-theme .futbolo-search-box button svg { stroke: #2F3136 !important; }
body.dark-theme .futbolo-language-switcher a { color: #c3dabe !important; }
body.dark-theme .futbolo-language-switcher a:hover { color: #a8c9a1 !important; }
body.dark-theme .futbolo-language-switcher a.active { color: #fff !important; }
body.dark-theme .futbolo-language-switcher .separator { color: #666 !important; }
body.dark-theme .futbolo-language-switcher .lang-current { border-color: #c3dabe !important; }
body.dark-theme .futbolo-language-switcher .lang-current:hover { background-color: #c3dabe !important; }
body.dark-theme .futbolo-language-switcher .lang-code { color: #c3dabe !important; }
body.dark-theme .futbolo-language-switcher .lang-current:hover .lang-code { color: #2F3136 !important; }
body.dark-theme .futbolo-language-switcher .lang-dropdown { background-color: #3F434D !important; border-color: #c3dabe !important; }
body.dark-theme .futbolo-language-switcher .lang-option { color: #e0e0e0 !important; }
body.dark-theme .futbolo-language-switcher .lang-option:hover { background-color: #c3dabe !important; color: #2F3136 !important; }
body.dark-theme .main-header-bar-wrap { background-color: #3F434D !important; border-bottom-color: #c3dabe !important; }
body.dark-theme .main-header-bar { background-color: #3F434D !important; }
body.dark-theme .futbolo-primary-menu { background-color: #3F434D !important; }
body.dark-theme .futbolo-primary-menu li { border-right-color: #c3dabe !important; background-color: transparent !important; }
body.dark-theme .futbolo-primary-menu li a { color: #e0e0e0 !important; }
body.dark-theme .futbolo-primary-menu li a:hover { background-color: #c3dabe !important; color: #2F3136 !important; }
body.dark-theme .futbolo-primary-menu li.current-menu-item > a { background-color: #c3dabe !important; color: #2F3136 !important; }
body.dark-theme .futbolo-primary-menu > li.has-submenu > a::after { color: #c3dabe !important; }
body.dark-theme .futbolo-primary-menu > li.has-submenu > a:hover::after { color: #3F434D !important; }
body.dark-theme .futbolo-primary-menu > li.has-submenu.show-submenu > a::after { color: #3F434D !important; }
body.dark-theme .futbolo-primary-menu > li > ul { background-color: #3F434D !important; border-color: #c3dabe !important; border-top-color: #c3dabe !important; }
body.dark-theme .futbolo-primary-menu > li ul li a { color: #e0e0e0 !important; }
body.dark-theme .futbolo-primary-menu > li ul li a:hover { background-color: #c3dabe !important; color: #2F3136 !important; }
body.dark-theme .futbolo-primary-menu > li ul li > ul { background-color: #3F434D !important; border-color: #c3dabe !important; border-left-color: #c3dabe !important; }
body.dark-theme .futbolo-primary-menu > li ul li ul li a { color: #e0e0e0 !important; }
body.dark-theme .futbolo-primary-menu > li ul li ul li a:hover { background-color: #c3dabe !important; color: #2F3136 !important; }
body.dark-theme .futbolo-primary-menu > li ul li:has(> ul) > a::after { color: #c3dabe !important; }
body.dark-theme .futbolo-primary-menu > li ul li:has(> ul) > a:hover::after { color: #3F434D !important; }
body.dark-theme .futbolo-primary-menu > li ul li.show-submenu > a::after { color: #3F434D !important; }
body.dark-theme .theme-toggle-btn { color: #e0e0e0 !important; }

/* Force desktop header - override all responsive styles */
.futbolo-header-top { background-color: #f8f9fa !important; border-bottom: 1px solid #c3dabe !important; padding: 1rem 0 !important; width: 100% !important; }
.futbolo-header-top .ast-container { display: flex !important; justify-content: center !important; width: 100% !important; max-width: 1200px !important; padding: 0 1rem !important; }
.futbolo-header-content { width: 100% !important; display: flex !important; flex-direction: row !important; gap: 2rem !important; align-items: center !important; justify-content: flex-start !important; text-align: left !important; }
.futbolo-logo-search-area { display: flex !important; flex-direction: row !important; gap: 1.5rem !important; align-items: center !important; flex: 1 !important; width: auto !important; }
.futbolo-logo-area { display: flex !important; align-items: center !important; justify-content: flex-start !important; flex: 0 0 auto !important; }
.futbolo-logo-area .site-title { font-size: 1.375rem !important; font-weight: 700 !important; margin: 0 !important; color: #000 !important; }
.futbolo-search-box { display: flex !important; gap: 0.5rem !important; flex: 1 !important; max-width: 350px !important; width: auto !important; }
.futbolo-search-box .search-form { display: flex !important; gap: 0.5rem !important; width: 100% !important; }
.futbolo-search-box input { flex: 1 !important; padding: 0.625rem 0.875rem !important; border: 1px solid #c3dabe !important; border-radius: 3px !important; font-size: 0.9375rem !important; width: auto !important; }
.futbolo-search-box input.error { border-color: #dc3545 !important; background-color: #fff8f8 !important; }
.futbolo-search-box .error-message { display: none !important; color: #dc3545 !important; font-size: 0.8rem !important; position: absolute !important; top: 105% !important; }
.futbolo-search-box .error-message.show { display: block !important; }
.futbolo-search-box button { padding: 0.625rem 1rem !important; background-color: #c3dabe !important; color: #2F3136 !important; border: none !important; border-radius: 3px !important; font-weight: 600 !important; font-size: 0.875rem !important; display: flex !important; align-items: center !important; justify-content: center !important; min-height: 40px !important; flex-shrink: 0 !important; width: auto !important; cursor: pointer !important; }
.futbolo-search-box button:hover { background-color: #a8c9a1 !important; }
.futbolo-header-widgets { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 1rem !important; margin-left: auto !important; flex-shrink: 0 !important; }
.futbolo-language-switcher { display: flex !important; gap: 0.5rem !important; align-items: center !important; justify-content: flex-end !important; font-size: 0.875rem !important; flex: 0 0 auto !important; position: relative !important; }
.futbolo-language-switcher .lang-current { display: flex !important; align-items: center !important; gap: 0.5rem !important; padding: 0.5rem 0.75rem !important; background-color: transparent !important; border: 1px solid #c3dabe !important; border-radius: 4px !important; cursor: pointer !important; transition: all 0.3s ease !important; }
.futbolo-language-switcher .lang-current:hover { background-color: #c3dabe !important; border-color: #c3dabe !important; }
.futbolo-language-switcher .lang-flag { font-size: 1.25rem !important; line-height: 1 !important; }
.futbolo-language-switcher .lang-code { font-weight: 600 !important; color: #c3dabe !important; transition: color 0.3s ease !important; }
.futbolo-language-switcher .lang-current:hover .lang-code { color: #2F3136 !important; }
.futbolo-language-switcher .lang-dropdown { display: none !important; position: absolute !important; top: 100% !important; right: 0 !important; background-color: #fff !important; border: 1px solid #c3dabe !important; border-radius: 4px !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; margin-top: 0.5rem !important; min-width: 150px !important; z-index: 1000 !important; overflow: hidden !important; }
.futbolo-language-switcher .lang-dropdown.show { display: block !important; }
.futbolo-language-switcher .lang-option { display: flex !important; align-items: center !important; gap: 0.75rem !important; padding: 0.75rem 1rem !important; text-decoration: none !important; color: #000 !important; transition: all 0.3s ease !important; border: none !important; }
.futbolo-language-switcher .lang-option:hover { background-color: #c3dabe !important; color: #2F3136 !important; }
.futbolo-language-switcher .lang-name { font-weight: 500 !important; font-size: 0.875rem !important; }
.futbolo-language-switcher a { text-decoration: none !important; color: #c3dabe !important; font-weight: 600 !important; transition: all 0.3s ease !important; }
.futbolo-language-switcher a:hover { color: #2F3136 !important; background-color: #c3dabe !important; padding: 0.25rem 0.5rem !important; border-radius: 3px !important; }
.futbolo-language-switcher a.active { color: #2F3136 !important; background-color: #c3dabe !important; padding: 0.25rem 0.5rem !important; border-radius: 3px !important; }
.main-header-bar-wrap { background-color: #ffffff !important; border-bottom: 1px solid #c3dabe !important; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important; width: 100% !important; }
.main-header-bar { width: 100% !important; padding: 0 !important; max-width: 1200px !important; margin: 0 auto !important; }
.main-header-bar .ast-container { padding: 0 !important; width: 100% !important; }
.futbolo-primary-menu { display: flex !important; flex-direction: row !important; list-style: none !important; margin: 0 !important; padding: 0 !important; border: none !important; width: 100% !important; }
.futbolo-primary-menu li { position: relative !important; margin: 0 !important; padding: 0 !important; list-style: none !important; border-right: 1px solid #c3dabe !important; }
.futbolo-primary-menu li:last-child { border-right: none !important; }
.futbolo-primary-menu li a { display: block !important; padding: 1.25rem 1.5rem !important; color: #000 !important; text-decoration: none !important; font-weight: 600 !important; font-size: 1rem !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; border-bottom: 3px solid transparent !important; transition: all 0.3s ease !important; }
.futbolo-primary-menu li a:hover { background-color: #c3dabe !important; color: #2F3136 !important; border-bottom-color: #c3dabe !important; }
.futbolo-primary-menu li.current-menu-item > a { background-color: #c3dabe !important; color: #2F3136 !important; border-bottom-color: #c3dabe !important; font-weight: 700 !important; }
/* LEVEL-2 SUBMENU (below level-1) */
.futbolo-primary-menu > li > ul { position: absolute !important; top: 100% !important; left: 0 !important; background-color: #ffffff !important; border: 1px solid #c3dabe !important; border-top: 3px solid #c3dabe !important; min-width: 200px !important; padding: 0 !important; margin: 0 !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; border-radius: 0 !important; display: none !important; z-index: 999 !important; }
.futbolo-primary-menu > li > ul:not(.show-submenu) { display: none !important; }
.futbolo-primary-menu > li.has-submenu > a::after { content: ' ▼' !important; font-size: 0.625rem !important; margin-left: 0.5rem !important; color: #c3dabe !important; transition: color 0.3s ease !important; }
.futbolo-primary-menu > li.has-submenu > a:hover::after { color: #fff !important; }
.futbolo-primary-menu > li.has-submenu.show-submenu > a::after { color: #fff !important; }
.futbolo-primary-menu > li.show-submenu > ul { display: block !important; }
.futbolo-primary-menu > li ul li { margin: 0 !important; padding: 0 !important; list-style: none !important; border: none !important; width: 100% !important; position: static !important; }
.futbolo-primary-menu > li ul li a { display: block !important; padding: 0.875rem 1.5rem !important; color: #000 !important; text-decoration: none !important; font-weight: 500 !important; font-size: 0.9375rem !important; text-transform: none !important; letter-spacing: 0 !important; border: none !important; border-left: 3px solid transparent !important; transition: all 0.3s ease !important; }
.futbolo-primary-menu > li ul li a:hover { background-color: #c3dabe !important; color: #2F3136 !important; border-left-color: #a8c9a1 !important; }
.futbolo-primary-menu > li ul li.current-menu-item > a { background-color: #c3dabe !important; color: #2F3136 !important; border-left-color: #a8c9a1 !important; font-weight: 600 !important; }

/* Expanded padding only when a level-2 item opens a level-3 submenu */
.futbolo-primary-menu > li > ul.submenu-expanded { padding: 1.55rem 0 !important; }
.futbolo-primary-menu > li > ul.submenu-expanded > li > a { padding: 1.55rem 1.85rem !important; }
/* LEVEL-3 SUBMENU (right of level-2) */
.futbolo-primary-menu > li ul li:has(> ul) > a::after { content: ' ▶' !important; font-size: 0.625rem !important; margin-left: 0.5rem !important; color: #c3dabe !important; transition: color 0.3s ease !important; }
.futbolo-primary-menu > li ul li:has(> ul) > a:hover::after { color: #fff !important; }
.futbolo-primary-menu > li ul li.show-submenu > a::after { color: #fff !important; }
.futbolo-primary-menu > li ul li > ul { position: absolute !important; top: 0 !important; left: 100% !important; background-color: #ffffff !important; border: 1px solid #c3dabe !important; border-left: 3px solid #c3dabe !important; min-width: 200px !important; padding: 1.05rem 0 !important; margin: 0 !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important; display: none !important; z-index: 1000 !important; }
.futbolo-primary-menu > li ul li > ul:not(.show-submenu) { display: none !important; }
.futbolo-primary-menu > li ul li.show-submenu > ul { display: block !important; }
.futbolo-primary-menu > li ul li ul li { margin: 0 !important; padding: 0 !important; border: none !important; }
.futbolo-primary-menu > li ul li ul li a { padding: 1.05rem 1.7rem !important; font-size: 0.875rem !important; font-weight: 400 !important; transition: all 0.3s ease !important; }
.futbolo-primary-menu > li ul li ul li a:hover { background-color: #c3dabe !important; color: #2F3136 !important; border-left-color: #a8c9a1 !important; }

/* Mobile menu toggle button */
.mobile-menu-toggle { display: none !important; background: none !important; border: none !important; font-size: 1.5rem !important; color: #000 !important; cursor: pointer !important; padding: 0.5rem !important; }

/* Mobile styles */
@media (max-width: 768px) {
    .futbolo-header-top { padding: 0.75rem 0 !important; }
    .futbolo-header-content { flex-direction: column !important; gap: 0.75rem !important; align-items: stretch !important; }
    .futbolo-logo-search-area { flex-direction: column !important; gap: 0.75rem !important; }
    .futbolo-logo-area { width: 100% !important; justify-content: flex-start !important; align-items: center !important; }
    .futbolo-logo-area .site-title { font-size: 1rem !important; }
    .futbolo-search-box { width: 100% !important; max-width: 100% !important; }
    .futbolo-language-switcher { width: auto !important; margin-left: 0 !important; justify-content: flex-end !important; font-size: 0.75rem !important; }
    .futbolo-header-widgets { width: 100% !important; display: flex !important; flex-direction: row !important; justify-content: center !important; align-items: center !important; gap: 1.5rem !important; margin-top: 0.25rem !important; }
    .theme-toggle-btn { margin-left: 0 !important; }
    .main-header-bar-wrap { background-color: #ffffff !important; }
    .futbolo-primary-menu { flex-wrap: wrap !important; }
    .futbolo-primary-menu li { flex: 1 1 50% !important; border-right: none !important; border-bottom: 1px solid #c3dabe !important; min-width: 50% !important; }
    .futbolo-primary-menu li:nth-child(odd) { border-right: 1px solid #c3dabe !important; }
    .futbolo-primary-menu li:nth-last-child(-n+2) { border-bottom: none !important; }
    .futbolo-primary-menu li a { padding: 1rem 0.75rem !important; font-size: 0.8rem !important; text-align: center !important; }
    .futbolo-primary-menu li ul { display: none !important; }
    .futbolo-primary-menu li a::after { display: none !important; }
}

/* ==========================================================================
   SMOOTH TRANSITIONS & REDUCED MOTION PREFERENCES
   ========================================================================== */

/* Transition settings for smooth theme changes */
body, 
.futbolo-header-top, 
.main-header-bar-wrap, 
.main-header-bar, 
.futbolo-primary-menu, 
.futbolo-primary-menu li a, 
.theme-toggle-btn, 
.ast-article-inner, 
.widget, 
.site-footer, 
.main-footer-bar, 
#colophon,
.wpgp-filters,
.wpgp-filter-select,
.wpgp-search-input,
.wpgp-date-input,
.wpgp-album-card,
.wpgp-album-title,
.wpgp-breadcrumb {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    body, 
    body *,
    .wpgp-filters,
    .wpgp-filter-select,
    .wpgp-search-input,
    .wpgp-date-input,
    .wpgp-album-card,
    .wpgp-album-title,
    .wpgp-breadcrumb {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   DARK THEME ADVANCED OVERRIDES
   ========================================================================== */

/* Selection styling in dark theme */
body.dark-theme ::selection {
    background-color: rgba(195, 218, 190, 0.3) !important;
    color: #ffffff !important;
}

/* Heading & title link dark overrides */
body.dark-theme h1, 
body.dark-theme h2, 
body.dark-theme h3, 
body.dark-theme h4, 
body.dark-theme h5, 
body.dark-theme h6,
body.dark-theme h1 a, 
body.dark-theme h2 a, 
body.dark-theme h3 a, 
body.dark-theme h4 a, 
body.dark-theme h5 a, 
body.dark-theme h6 a,
body.dark-theme .entry-title,
body.dark-theme .entry-title a,
body.dark-theme .ast-loop-title,
body.dark-theme .ast-loop-title a,
body.dark-theme a[rel="bookmark"] {
    color: #e0e0e0 !important;
}
body.dark-theme h1 a:hover, 
body.dark-theme h2 a:hover, 
body.dark-theme h3 a:hover, 
body.dark-theme h4 a:hover, 
body.dark-theme h5 a:hover, 
body.dark-theme h6 a:hover,
body.dark-theme .entry-title a:hover,
body.dark-theme .ast-loop-title a:hover,
body.dark-theme a[rel="bookmark"]:hover {
    color: #c3dabe !important;
}

/* Article container dark overrides */
body.dark-theme {
    --ast-global-color-4: #3F434D !important;
    --ast-global-color-5: #3F434D !important;
    --ast-global-color-0: #e0e0e0 !important;
}

body.dark-theme .ast-article-inner {
    background-color: #3F434D !important;
    border: 1px solid #c3dabe !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}
body.dark-theme .ast-article-post {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Override Astra's generic white backgrounds for containers (No Results, 404, etc.) */
html body.dark-theme .ast-separate-container .ast-article-single:not(.ast-related-post), 
html body.dark-theme .ast-separate-container .error-404, 
html body.dark-theme .ast-separate-container .no-results, 
html body.dark-theme .ast-separate-container .no-results .page-content,
html body.dark-theme .single.ast-separate-container .site-main .ast-author-meta, 
html body.dark-theme .ast-separate-container .related-posts-title-wrapper, 
html body.dark-theme .ast-separate-container .comments-count-wrapper, 
html body.dark-theme .ast-box-layout.ast-plain-container .site-content, 
html body.dark-theme .ast-padded-layout.ast-plain-container .site-content, 
html body.dark-theme .ast-separate-container .ast-archive-description, 
html body.dark-theme .ast-separate-container .comments-area {
    background: #3F434D !important;
    background-color: #3F434D !important;
    color: #e0e0e0 !important;
}

/* General Content Search Form (No Results Page, Widgets, etc.) */
.search-form {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    width: 100% !important;
    position: relative !important;
}
.search-form label {
    flex-grow: 1 !important;
    margin: 0 !important;
}
.search-form .search-field {
    width: 100% !important;
    padding: 10px 15px !important;
    border: 1px solid #c3dabe !important;
    border-radius: 4px !important;
}
.search-form .search-submit {
    position: static !important; /* Forces button OUTSIDE the input field (overrides Astra absolute pos) */
    padding: 10px 20px !important;
    background-color: #c3dabe !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.search-form .search-submit:hover {
    background-color: #a8c9a1 !important;
}

/* General Content Search Form - Dark Theme (High Specificity) */
html body.dark-theme form.search-form .search-field,
html body.dark-theme .widget_search form.search-form .search-field {
    background: #2F3136 !important;
    background-color: #2F3136 !important;
    color: #e0e0e0 !important;
    border: 1px solid #c3dabe !important;
}
html body.dark-theme form.search-form button.search-submit,
html body.dark-theme .widget_search form.search-form button.search-submit {
    background: #c3dabe !important;
    background-color: #c3dabe !important;
    color: #2F3136 !important;
}
html body.dark-theme form.search-form button.search-submit svg,
html body.dark-theme .widget_search form.search-form button.search-submit svg {
    stroke: #2F3136 !important;
    color: #2F3136 !important;
}

body.dark-theme .ast-article-inner *,
body.dark-theme .ast-article-post * {
    color: #e0e0e0;
}
body.dark-theme .ast-article-inner a,
body.dark-theme .ast-article-post a {
    color: #c3dabe;
}
body.dark-theme .ast-article-inner a:hover,
body.dark-theme .ast-article-post a:hover {
    color: #a8c9a1;
}

/* Sidebar widget dark overrides */
body.dark-theme .widget,
body.dark-theme .widget-title,
body.dark-theme .widget-title a,
body.dark-theme .widget a {
    color: #e0e0e0 !important;
}
body.dark-theme .widget a:hover {
    color: #c3dabe !important;
}

/* Footer dark overrides */
body.dark-theme .site-footer,
body.dark-theme .main-footer-bar,
body.dark-theme #colophon,
body.dark-theme .ast-small-footer {
    background-color: #3F434D !important;
    color: #e0e0e0 !important;
    border-top: 1px solid #c3dabe !important;
}
body.dark-theme .site-footer a,
body.dark-theme .main-footer-bar a,
body.dark-theme #colophon a,
body.dark-theme .ast-small-footer a {
    color: #c3dabe !important;
}
body.dark-theme .site-footer a:hover,
body.dark-theme .main-footer-bar a:hover,
body.dark-theme #colophon a:hover,
body.dark-theme .ast-small-footer a:hover {
    color: #a8c9a1 !important;
}

/* Accessibility focus outline in dark theme */
body.dark-theme a:focus-visible,
body.dark-theme button:focus-visible,
body.dark-theme input:focus-visible,
body.dark-theme select:focus-visible,
body.dark-theme textarea:focus-visible {
    outline: 2px solid #C3DABE !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

/* Astra mobile off-canvas menu dark theme overrides */
body.dark-theme .ast-mobile-header-wrap,
body.dark-theme .ast-builder-menu-mobile,
body.dark-theme .ast-mobile-popup-drawer,
body.dark-theme .ast-mobile-popup-drawer .ast-mobile-popup-inner,
body.dark-theme .ast-mobile-popup-drawer .ast-mobile-popup-content,
body.dark-theme .ast-mobile-header-content {
    background-color: #3F434D !important;
    color: #e0e0e0 !important;
}
body.dark-theme .ast-mobile-popup-drawer a,
body.dark-theme .ast-mobile-popup-drawer span,
body.dark-theme .ast-builder-menu-mobile a,
body.dark-theme .ast-builder-menu-mobile span {
    color: #e0e0e0 !important;
}
body.dark-theme .ast-mobile-popup-drawer a:hover,
body.dark-theme .ast-builder-menu-mobile a:hover {
    color: #c3dabe !important;
}
body.dark-theme .ast-mobile-svg,
body.dark-theme .ast-mobile-menu-trigger-line,
body.dark-theme .ast-mobile-menu-trigger svg,
body.dark-theme .main-header-menu-toggle svg {
    fill: currentColor !important;
    color: #c3dabe !important;
}

body.dark-theme #page,
body.dark-theme .site,
body.dark-theme #content,
body.dark-theme .site-content,
body.dark-theme #primary,
body.dark-theme .content-area,
body.dark-theme .wpgp-album-main,
body.dark-theme .wpgp-album-list-wrapper,
body.dark-theme .ast-container {
    background-color: #2F3136 !important;
    background: #2F3136 !important;
}

body.dark-theme .page-header,
body.dark-theme .ast-archive-description,
body.dark-theme .wpgp-album-header {
    background-color: transparent !important;
    background: transparent !important;
    color: #e0e0e0 !important;
    border-color: #c3dabe !important;
}

body.dark-theme .wpgp-album-card {
    background-color: #3F434D !important;
    background: #3F434D !important;
    border-color: #c3dabe !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .wpgp-album-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(195, 218, 190, 0.3) !important;
}

body.dark-theme a.wpgp-album-back-btn,
body.dark-theme .wpgp-album-main a.wpgp-album-back-btn,
body.dark-theme .wpgp-album-nav a,
body.dark-theme .wpgp-album-nav a.wpgp-album-nav-prev,
body.dark-theme .wpgp-album-nav a.wpgp-album-nav-next,
body.dark-theme .wpgp-album-nav a.wpgp-album-nav-back,
body.dark-theme a.wpgp-pagination-link,
body.dark-theme a.wpgp-pagination-prev,
body.dark-theme a.wpgp-pagination-next,
body.dark-theme .wpgp-pagination-current,
body.dark-theme button#wpgp-load-more,
body.dark-theme button#wpgp-load-more-albums,
body.dark-theme .wpgp-btn {
    background-color: #3F434D !important;
    background: #3F434D !important;
    color: #ffffff !important;
    border: 1px solid #c3dabe !important;
}

body.dark-theme a.wpgp-album-back-btn:hover,
body.dark-theme .wpgp-album-main a.wpgp-album-back-btn:hover,
body.dark-theme .wpgp-album-nav a:hover,
body.dark-theme .wpgp-album-nav a.wpgp-album-nav-prev:hover,
body.dark-theme .wpgp-album-nav a.wpgp-album-nav-next:hover,
body.dark-theme .wpgp-album-nav a.wpgp-album-nav-back:hover,
body.dark-theme a.wpgp-pagination-link:hover,
body.dark-theme a.wpgp-pagination-prev:hover,
body.dark-theme a.wpgp-pagination-next:hover,
body.dark-theme button#wpgp-load-more:hover,
body.dark-theme button#wpgp-load-more-albums:hover,
body.dark-theme .wpgp-btn:hover {
    background-color: #c3dabe !important;
    background: #c3dabe !important;
    color: #2F3136 !important;
    border-color: #c3dabe !important;
}

body.dark-theme .wpgp-pagination-current {
    background-color: #c3dabe !important;
    background: #c3dabe !important;
    color: #2F3136 !important;
    border-color: #c3dabe !important;
}

body.dark-theme .wpgp-album-back-btn,
body.dark-theme .wpgp-album-back-btn *,
body.dark-theme .wpgp-album-nav-prev,
body.dark-theme .wpgp-album-nav-prev *,
body.dark-theme .wpgp-album-nav-next,
body.dark-theme .wpgp-album-nav-next *,
body.dark-theme .wpgp-album-nav-back,
body.dark-theme .wpgp-album-nav-back *,
body.dark-theme .wpgp-pagination-link,
body.dark-theme .wpgp-pagination-link *,
body.dark-theme .wpgp-pagination-prev,
body.dark-theme .wpgp-pagination-prev *,
body.dark-theme .wpgp-pagination-next,
body.dark-theme .wpgp-pagination-next *,
body.dark-theme .wpgp-pagination-current,
body.dark-theme .wpgp-pagination-current * {
    color: #ffffff !important;
    fill: #ffffff !important;
}

body.dark-theme .wpgp-album-back-btn:hover,
body.dark-theme .wpgp-album-back-btn:hover *,
body.dark-theme .wpgp-album-nav-prev:hover,
body.dark-theme .wpgp-album-nav-prev:hover *,
body.dark-theme .wpgp-album-nav-next:hover,
body.dark-theme .wpgp-album-nav-next:hover *,
body.dark-theme .wpgp-album-nav-back:hover,
body.dark-theme .wpgp-album-nav-back:hover *,
body.dark-theme .wpgp-pagination-link:hover,
body.dark-theme .wpgp-pagination-link:hover *,
body.dark-theme .wpgp-pagination-prev:hover,
body.dark-theme .wpgp-pagination-prev:hover *,
body.dark-theme .wpgp-pagination-next:hover,
body.dark-theme .wpgp-pagination-next:hover * {
    color: #2F3136 !important;
    fill: #2F3136 !important;
}

.wpgp-album-nav-back {
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Force brand-colored borders on layout containers, cards, widgets, and footers globally */
.ast-article-inner,
.ast-article-post,
.widget,
.site-footer,
.main-footer-bar,
#colophon,
.ast-small-footer {
    border-color: #c3dabe !important;
    border-top-color: #c3dabe !important;
}

.site-footer,
.main-footer-bar,
#colophon,
.ast-small-footer {
    border-top: 1px solid #c3dabe !important;
}

/* 1. Text Selection Color globally */
::selection {
    background-color: #c3dabe !important;
    color: #2F3136 !important;
}
::-moz-selection {
    background-color: #c3dabe !important;
    color: #2F3136 !important;
}

/* 2. Distinct Gray Fill for Light Theme Header Top & Footer Container */
body:not(.dark-theme) .futbolo-header-top .ast-container {
    background-color: #f0f2f5 !important;
}

/* 3. Dark Theme Album Card Hover Override */
body.dark-theme .wpgp-album-card:hover .wpgp-album-title,
body.dark-theme .wpgp-album-card:hover .wpgp-album-title a {
    color: #c3dabe !important;
}

/* 4. Custom Scrollbar using Brand Color */
::-webkit-scrollbar {
    width: 10px;
    background-color: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: #c3dabe;
    border-radius: 5px;
}
::-webkit-scrollbar-track {
    background-color: transparent;
}

/* 5. Ensure Interactive Gallery Items and Images are Clickable */
.wpgp-album-card,
.wpgp-gallery-item,
.wpgp-album-cover,
.wpgp-album-cover-image,
.wpgp-album-card-link,
.wpgp-photo-item,
.wpgp-photo-item img,
.wpgp-gallery-item img {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* 6. Remove default mouse focus outline, keep keyboard focus */
.wpgp-album-card:focus,
.wpgp-album-card:focus-within,
.wpgp-gallery-item:focus,
.wpgp-gallery-item:focus-within,
.wpgp-album-card-link:focus,
a:focus {
    outline: none !important;
}

/* 7. Force Hide Cached Theme Toggle Button */
.wpgp-theme-toggle {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* 8. Force Light Theme Colors on Filters (Overrides cached [data-wpgp-theme="dark"]) */
body:not(.dark-theme) .wpgp-filter-select,
body:not(.dark-theme) .wpgp-search-input,
body:not(.dark-theme) .wpgp-date-input {
    background-color: #ffffff !important;
    color: #333333 !important;
    border-color: #c3dabe !important;
}

body:not(.dark-theme) .wpgp-search-input::placeholder,
body:not(.dark-theme) .wpgp-date-input::placeholder {
    color: #999999 !important;
    opacity: 1 !important;
}

/* 9. Restore focus ring ONLY for keyboard navigation (Accessibility) */
.wpgp-album-card:focus-visible,
.wpgp-gallery-item:focus-visible,
.wpgp-album-card-link:focus-visible,
a:focus-visible {
    outline: 2px solid #c3dabe !important;
    outline-offset: 4px !important;
}

