/*
Theme Name: 39. Doeda HD
Author: FV Team
Description: DoedaHD Video Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: doedahd
*/

/* Main styles are loaded from assets/css/style.css via functions.php */

/* ========================================
   DoedaHD Theme Overrides
   Brand color: #FE0467

   STRATEGY: Desktop-first (breakpoints ở assets/css/style.css)

   !important RULES:
   - CHỈ dùng cho: color, background, border-color, box-shadow
     (vì darkify.css dùng !important cho darkify_style_* classes)
   - KHÔNG dùng cho: position, width, height, display, margin, padding,
     flex, border-radius, cursor, text-decoration, transition
     (để media queries trong base CSS hoạt động đúng)
   ======================================== */


/* Video thumbnail aspect ratio - using backend variable */
.thumb-block .post-thumbnail {
    aspect-ratio: var(--fv-thumb-aspect-ratio, 16/9);
    overflow: hidden;
}

.thumb-block .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Accent color - links and hover */
a,
.site-title a i,
.thumb-block:hover span.title,
.categories-list .thumb-block:hover .entry-header .cat-title:before,
.required,
.post-like a:hover i,
.top-bar i:hover,
.menu-toggle i,
.main-navigation.toggled li:hover>a,
.main-navigation.toggled li.focus>a,
.main-navigation.toggled li.current_page_item>a,
.main-navigation.toggled li.current-menu-item>a,
#filters .filters-select:after,
.top-bar .membership a i,
.thumb-block:hover .photos-count i,
.aside-filters span:hover a,
.aside-filters span:hover a i,
.filters a.active,
.filters a:hover,
.archive-aside a:hover,
#video-links a:hover,
#video-links a:hover i,
.video-share .video-share-url a#clickme:hover,
a#show-sharing-buttons.active,
a#show-sharing-buttons.active i,
.morelink:hover,
.morelink:hover i,
.footer-menu-container a:hover,
.categories-list .thumb-block:hover .entry-header span,
.tags-letter-block .tag-items .tag-item a:hover,
.menu-toggle-open,
.search-open {
    color: #FE0467;
}

/* Background color */
button:not(.server-btn):not(.mobile-theme-btn):not(.mobile-nav-close),
.button,
.btn,
input[type="button"],
input[type="reset"],
input[type="submit"],
.pagination ul li a.current,
.pagination ul li a:hover,
body #filters .label.secondary.active,
.label.secondary:hover,
.widget_categories ul li a:hover,
a.tag-cloud-link:hover,
.template-actors li a:hover,
.rating-bar-meter,
.vjs-play-progress,
#filters .filters-options span:hover,
.top-bar .social-share a:hover,
.thumb-block:hover span.hd-video,
.label:hover,
.label:focus,
.label:active,
.mobile-pagination .pagination-nav span,
.mobile-pagination .pagination-nav a {
    background-color: #FE0467 !important;
}

/* Border color */
#video-tabs button.tab-link.active,
.page-title,
.page .entry-title,
.comments-title,
.comment-reply-title,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus,
.filters a.active {
    border-color: #FE0467 !important;
}

ul li.current-menu-item a {
    border-bottom-color: #FE0467 !important;
}

/* Dark mode overrides for active menu item */
.darkify_dark_mode_enabled #site-navigation ul li.current-menu-item a {
    border-bottom-color: #FE0467 !important;
    color: #FE0467 !important;
}

.video-js .vjs-big-play-button {
    background-color: #FE0467 !important;
    border-color: #FE0467 !important;
}

/* Theme specific styles */
.post-thumbnail {
    aspect-ratio: 16/9;
}

.post-thumbnail video,
.post-thumbnail img {
    object-fit: cover;
}

body.custom-background {
    background-color: #1C1A1B !important;
}

.site-branding .logo img {
    max-width: 280px;
    max-height: 90px;
    margin-top: -5px;
    margin-left: 0px;
}

/* Disclaimer modal */
#dclm_modal_screen {
    background-color: rgba(255, 255, 255, 0.8);
}

#dclm_modal_content {
    background-color: #fff;
}

#dclm_modal_content h2 {
    color: #333;
}

#dclm_modal_content p {
    color: #666;
}

#dclm_modal_content nav .av_go {
    background-color: #EE4040 !important;
}

#dclm_modal_content nav .av_no {
    background-color: #6C20C2 !important;
}

#dclm-logo img {
    opacity: 1;
}

/* Autocomplete dropdown */
#autocomplete-results {
    position: absolute;
    background: #222;
    border: 1px solid #444;
    border-top: none;
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
}

#autocomplete-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#autocomplete-results li a {
    display: block;
    padding: 10px;
    color: #fff;
    text-decoration: none;
}

#autocomplete-results li a:hover {
    background: #333;
}

/* Darkify dark mode CSS variables */
:root {
    --darkify_dark_mode_bg: #1c1c1c;
    --darkify_dark_mode_secondary_bg: #191919;
    --darkify_dark_mode_text_color: #BEBEBE;
    --darkify_dark_mode_link_color: #E7E7E7;
    --darkify_dark_mode_link_hover_color: #FE0467;
    --darkify_dark_mode_input_bg: #2D2D2D;
    --darkify_dark_mode_input_text_color: #BEBEBE;
    --darkify_dark_mode_input_placeholder_color: #888;
    --darkify_dark_mode_border_color: #333;
    --darkify_dark_mode_btn_text_color: #E7E7E7;
    --darkify_dark_mode_btn_bg: #333;
    --darkify_dark_mode_btn_text_hover_color: #fff;
    --darkify_dark_mode_btn_hover_bg: #3A3A3A;
}

/* Single video page — sidebar chỉ áp dụng cho video-player-area,
   không dùng global margin-left */
body.single .site-main.with-aside {
    margin-left: 0;
}

body.single .site-content {
    padding: 0;
}

/* Video sidebar layout — flexbox wrapper */
.video-sidebar-layout {
    display: flex;
}

.video-sidebar-layout .archive-aside {
    float: none;
    margin-left: 0;
    width: 200px;
    flex-shrink: 0;
    padding: 20px 15px;
}

.video-sidebar-layout .video-player-area {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .video-sidebar-layout {
        display: block;
    }
    .video-sidebar-layout .archive-aside {
        display: none;
    }
}

/* Dark mode cho trang single video */
.darkify_dark_mode_enabled.single .entry-content,
.darkify_dark_mode_enabled.single .under-video-block {
    background: var(--darkify_dark_mode_bg);
}

/* =============================================
   CSS from Legacy Video Page
   ============================================= */

/* Video description - display full content */
.video-description .desc,
.video-description .desc.more {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

.video-description a.morelink {
    display: none !important;
}

/* Single profil video description */
.single-profil .video-description .desc,
.single-profil .video-description .desc.more {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

.single-profil .video-description .desc ul,
.single-profil .video-description .wp-block-gallery ul.blocks-gallery-grid {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.single-profil .video-description .wp-block-gallery,
.single-profil .video-description .blocks-gallery-grid,
.single-profil .video-description .blocks-gallery-item,
.single-profil .video-description .wp-block-gallery img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.single-profil .video-description .wp-block-gallery .blocks-gallery-item:first-child,
.single-profil .video-description .wp-block-gallery .wp-block-image:first-child {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.single-profil .video-description a.morelink {
    display: none !important;
}

/* Lazy loaded images */
img.lazyloaded {
    opacity: 1 !important;
}

/* =============================================
   BACK TO TOP BUTTON FIX
   ============================================= */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999 !important;
    width: 50px;
    height: 50px;
    line-height: 50px;
    padding: 0;
    text-align: center;
    background: #FE0467 !important;
    color: #fff !important;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top:hover {
    background: #d50356 !important;
    transform: translateY(-3px);
}

#back-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#back-to-top i {
    font-size: 18px;
    line-height: 1;
    margin: 0;
    color: #fff !important;
}

/* Mobile override — must be here because style.css loads AFTER base CSS,
   so the global right:40px above would otherwise override base media query */
@media (max-width: 425px) {
    #back-to-top {
        right: 10px;
        bottom: 20px;
    }
}

/* =============================================
   AUTOCOMPLETE DROPDOWN - Do not modify parent
   ============================================= */
#autocomplete-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 40px;
    /* Minus submit button width */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 999999 !important;
    /* Higher than all elements */
    max-height: 350px;
    overflow-y: auto;
}

#autocomplete-results .ac-item {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

#autocomplete-results .ac-item:last-child {
    border-bottom: none;
}

#autocomplete-results .ac-item:hover {
    background: #f5f5f5;
    color: #FE0467;
}

/* Dark mode */
.darkify_dark_mode_enabled #autocomplete-results {
    background: #222;
    border-color: #444;
}

.darkify_dark_mode_enabled #autocomplete-results .ac-item {
    color: #eee;
    border-bottom-color: #333;
}

.darkify_dark_mode_enabled #autocomplete-results .ac-item:hover {
    background: #333;
    color: #FE0467;
}

/* =============================================
   AUTOCOMPLETE DROPDOWN (Created by JS - #ac-dropdown)
   ============================================= */
#ac-dropdown {
    scrollbar-width: thin;
    scrollbar-color: #FE0467 #1a1a1a;
}

#ac-dropdown::-webkit-scrollbar {
    width: 6px;
}

#ac-dropdown::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

#ac-dropdown::-webkit-scrollbar-thumb {
    background: #FE0467;
    border-radius: 3px;
}

#ac-dropdown::-webkit-scrollbar-thumb:hover {
    background: #e00458;
}

#ac-dropdown .ac-item:hover {
    background: #f0f0f0 !important;
    color: #FE0467 !important;
}

/* Dark mode cho #ac-dropdown */
.darkify_dark_mode_enabled #ac-dropdown {
    scrollbar-color: #FE0467 #333;
}

.darkify_dark_mode_enabled #ac-dropdown::-webkit-scrollbar-track {
    background: #333;
}

.darkify_dark_mode_enabled #ac-dropdown .ac-item:hover {
    background: #444 !important;
    color: #FE0467 !important;
}

/* =============================================
   MOBILE NAVIGATION OVERLAY
   ============================================= */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 999999;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #FE0467;
    color: #fff;
    flex-shrink: 0;
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: 600;
}

.mobile-nav-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
}

.mobile-nav-close:hover {
    opacity: 0.8;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
}

.mobile-nav-menu li a {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-menu li.active a,
.mobile-nav-menu li a:hover,
.mobile-nav-menu li a:focus {
    background: #f5f5f5 !important;
    color: #FE0467 !important;
}

.mobile-nav-menu li a i {
    margin-right: 10px;
    color: #FE0467;
}

/* Mobile nav backdrop */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Dark mode cho mobile nav */
.darkify_dark_mode_enabled .mobile-nav-overlay {
    background: #1c1c1c;
}

.darkify_dark_mode_enabled .mobile-nav-menu li a {
    color: #eee;
    border-bottom-color: #333;
}

.darkify_dark_mode_enabled .mobile-nav-menu li.active a,
.darkify_dark_mode_enabled .mobile-nav-menu li a:hover,
.darkify_dark_mode_enabled .mobile-nav-menu li a:focus {
    background: #333 !important;
    color: #FE0467 !important;
}

/* Mobile dark mode toggle */
.mobile-darkmode-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    background: #2a2a2a;
    border-bottom: 1px solid #444;
    list-style: none;
}

.mobile-theme-btn {
    background: transparent;
    border: 2px solid #FE0467;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-theme-btn:hover {
    background: rgba(254, 4, 103, 0.2);
}

.mobile-theme-btn i {
    font-size: 20px;
    color: #FE0467;
}

/* Dark mode: show sun icon (to switch to light) */
.mobile-theme-btn .toggle-light-icon {
    display: inline-block;
}

.mobile-theme-btn .toggle-dark-icon {
    display: none;
}

/* Light mode: show moon icon (to switch to dark) */
html:not(.darkify_dark_mode_enabled) .mobile-darkmode-toggle {
    background: #f0f0f0;
    border-bottom-color: #ddd;
}

html:not(.darkify_dark_mode_enabled) .mobile-theme-btn .toggle-light-icon {
    display: none;
}

html:not(.darkify_dark_mode_enabled) .mobile-theme-btn .toggle-dark-icon {
    display: inline-block;
}

html.darkify_dark_mode_enabled .mobile-darkmode-toggle {
    background: #2a2a2a;
    border-bottom-color: #444;
}

/* =============================================
   SIDEBAR KEYWORDS CLOUD
   ============================================= */
.aside-keywords .keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aside-keywords .keyword-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #333;
    color: #fff;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.aside-keywords .keyword-tag:hover {
    background: #FE0467;
    color: #fff;
}

/* Light mode */
.aside-keywords .keyword-tag {
    background: #eee;
    color: #333;
}

.aside-keywords .keyword-tag:hover {
    background: #FE0467;
    color: #fff;
}

/* Dark mode */
.darkify_dark_mode_enabled .aside-keywords .keyword-tag {
    background: #333;
    color: #fff;
}

.darkify_dark_mode_enabled .aside-keywords .keyword-tag:hover {
    background: #FE0467;
    color: #fff;
}

/* =============================================
   SIDEBAR BACKLINKS
   ============================================= */
.aside-links .backlinks-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aside-links .backlinks-list li {
    margin-bottom: 8px;
}

.aside-links .backlinks-list li a {
    display: block;
    padding: 8px 12px;
    background: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.aside-links .backlinks-list li a:hover {
    background: #FE0467;
    color: #fff;
}

/* Dark mode */
.darkify_dark_mode_enabled .aside-links .backlinks-list li a {
    background: #333;
    color: #eee;
}

.darkify_dark_mode_enabled .aside-links .backlinks-list li a:hover {
    background: #FE0467;
    color: #fff;
}

/* Dark mode overrides for sidebar categories active state */
.darkify_dark_mode_enabled .archive-aside a.active,
.darkify_dark_mode_enabled .archive-aside a:hover {
    background: #333 !important;
    color: #FE0467 !important;
}

/* =============================================
   SERVER SWITCH BUTTONS
   ============================================= */
.server-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 10px;
    justify-content: center;
}

/* Inactive server buttons - Pink outline style */
.server-btn {
    padding: 10px 20px;
    background: transparent;
    color: #FE0467;
    border: 2px solid #FE0467;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    outline: none;
}

.server-btn:hover {
    background: rgba(254, 4, 103, 0.15);
    box-shadow: 0 2px 8px rgba(254, 4, 103, 0.25);
}

/* Active server button - Solid fill */
.server-btn.active {
    background: #FE0467 !important;
    border-color: #FE0467 !important;
    color: #fff !important;
    box-shadow: 0 2px 12px rgba(254, 4, 103, 0.5);
}

/* Light mode - same style works well */
body:not(.darkify_dark_mode_enabled) .server-btn {
    background: transparent;
    color: #FE0467;
    border-color: #FE0467;
}

body:not(.darkify_dark_mode_enabled) .server-btn:hover {
    background: rgba(254, 4, 103, 0.1);
}

body:not(.darkify_dark_mode_enabled) .server-btn.active {
    background: #FE0467 !important;
    border-color: #FE0467 !important;
    color: #fff !important;
}

/* =============================================
   LIKE BUTTON STATES
   ============================================= */
/* Like button base */
.post-like a {
    transition: all 0.3s ease;
}

/* Liked state - Dark mode */
.post-like a.liked,
.post-like a.liked i,
.post-like a.liked .like,
#btn-like.liked,
#btn-like.liked i {
    color: #FE0467 !important;
}

.post-like a.liked .fa-thumbs-up {
    color: #FE0467 !important;
    transform: scale(1.1);
}

/* Liked state - Light mode */
body:not(.darkify_dark_mode_enabled) .post-like a.liked,
body:not(.darkify_dark_mode_enabled) .post-like a.liked i,
body:not(.darkify_dark_mode_enabled) #btn-like.liked,
body:not(.darkify_dark_mode_enabled) #btn-like.liked i {
    color: #FE0467 !important;
}

/* Loading state */
.post-like a.loading {
    opacity: 0.6;
    pointer-events: none;
}

.post-like a.loading i {
    animation: pulse 0.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* =============================================
   DESKTOP DARK/LIGHT TOGGLE - SVG Visibility
   ============================================= */
/* Orbit toggle: alignment trong nav bar */
#menu-ana-menu-2 > li:first-child {
    display: flex;
    align-items: center;
    padding: 5px 10px 0 0;
}

/* Orbit toggle: fix positioning and icon colors */
/* theme-toggle cần position:relative cho toggle-thumb absolute */
#darkify_switch_shortcode.switch-orbit .theme-toggle {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Toggle track cần position absolute để chứa icons */
#darkify_switch_shortcode.switch-orbit .toggle-track {
    position: absolute;
    top: 0;
    left: -1px;
    right: 0;
    bottom: 0;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    /* GỠ BỎ z-index: 9; hoặc ép về auto để PHÁ vỡ ngục Stacking Context */
    z-index: auto;
    line-height: 0;
    background-color: #333;
    transition: background-color 0.4s;
}

/* Dark mode: track tối hơn để thumb (#333) vẫn nổi */
html.darkify_dark_mode_enabled #darkify_switch_shortcode.switch-orbit .toggle-track {
    background-color: #1a1a1a;
}

/* Thumb tròn — mặc định bên trái (light mode) */
#darkify_switch_shortcode.switch-orbit .toggle-thumb {
    position: absolute;
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 50%;
    transform: translateY(50%);
    border-radius: 50%;
    transition: 0.4s;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
    background-color: var(--darkify_switch_dark_mode_bg);
    z-index: 10;
}

/* Dark mode: thumb trượt sang phải */
html.darkify_dark_mode_enabled #darkify_switch_shortcode.switch-orbit .toggle-thumb {
    background-color: var(--darkify_switch_light_mode_bg);
    transform: translate(38px, 50%);
}

/* Icons phải nằm TRÊN thumb (z-index 10) để luôn hiển thị */
#darkify_switch_shortcode.switch-orbit .toggle-sun,
#darkify_switch_shortcode.switch-orbit .toggle-moon {
    position: relative;
    /* Do thẻ cha .toggle-track là z-index: auto, z-index: 11 ở đây sẽ cạnh tranh trực tiếp với toggle-thumb(10) và THẮNG */
    z-index: 11;
}

/* Icon colors — cả 2 SVG luôn hiển thị, màu tương phản mạnh */
/* Light mode: sun amber đậm (nổi trên thumb trắng), moon trắng (nổi trên track tối) */
#darkify_switch_shortcode.switch-orbit .toggle-sun svg {
    color: #d97706 !important;
    fill: #d97706 !important;
}

#darkify_switch_shortcode.switch-orbit .toggle-moon svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Dark mode: sun vàng sáng (nổi trên track tối), moon trắng (nổi trên thumb tối) */
html.darkify_dark_mode_enabled #darkify_switch_shortcode.switch-orbit .toggle-sun svg {
    color: #fbbf24 !important;
    fill: #fbbf24 !important;
}

html.darkify_dark_mode_enabled #darkify_switch_shortcode.switch-orbit .toggle-moon svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}
/* Banner Ads */
.fv-header-banner,
.fv-footer-banner,
.fv-square-banner {
    text-align: center;
    margin: 20px auto;
    overflow: hidden;    z-index: 100;
}

/* Banner Ads */
.fv-header-banner,
.fv-footer-banner,
.fv-square-banner {
    text-align: center;
    margin: 20px auto;
    overflow: hidden;    z-index: 100;
}

/* =============================================
   MOBILE SEARCH BAR FIX
   ============================================= */
@media (max-width: 768px) {
    .header-search {
        padding: 0;
        margin: 0;
    }

    .header-search form {
        display: flex;
        width: 100%;
    }

    .header-search input.input-group-field {
        flex: 1;
        min-width: 0;
        height: 44px;
        padding: 0 15px;
        margin: 0;
        border: none;
        border-radius: 0;
        box-sizing: border-box;
        font-size: 14px;
        line-height: 44px;
    }

    .header-search input#searchsubmit {
        width: 50px;
        flex-shrink: 0;
        height: 44px;
        line-height: 44px;
        padding: 0;
        margin: 0;
        border: none;
        border-radius: 0;
        box-sizing: border-box;
        font-size: 18px;
    }
}

/* =============================================
   FOOTER THEME TAGS (SEO Links)
   ============================================= */
.footer-theme-tags {
    padding: 20px 30px;
    border-top: 1px solid #333;
}

.theme-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-tag-link {
    display: inline-block;
    padding: 5px 14px;
    background: #2a2a2a !important;
    color: #ccc !important;
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid #444;
    transition: all 0.25s ease;
}

.theme-tag-link:hover {
    background: #FE0467 !important;
    color: #fff !important;
    border-color: #FE0467 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(254, 4, 103, 0.3);
}

/* Light mode */
html:not(.darkify_dark_mode_enabled) .footer-theme-tags {
    border-top-color: #eee;
}

html:not(.darkify_dark_mode_enabled) .theme-tag-link {
    background: #f0f0f0 !important;
    color: #555 !important;
    border-color: #ddd;
}

html:not(.darkify_dark_mode_enabled) .theme-tag-link:hover {
    background: #FE0467 !important;
    color: #fff !important;
    border-color: #FE0467 !important;
}
