/*
Theme Name:           Anvet
Theme URI:            https://anvet.com
Author:               Anvenot
Author URI:           https://anvet.com
Description:          Multi-Purpose Responsive Theme
Version:              3.20.8
Requires at least:    6.4
Requires PHP:         7.4
Text Domain:          anvet
License:              https://anvet.com/licenses
License URI:          https://anvet.com/licenses
*/


/***************
All custom CSS should be added to Anvet > Advanced > Custom CSS,
or in the style.css of a Child Theme.
***************/

/* ==========================================================================
   Custom Tab Options for UX Builder Tabs Component
   ========================================================================== */

/* Default Tab Title Styling */
.tabbed-content .tab-title {
    display: block;
    margin-bottom: 15px;
}

/* Title Layout Left styling */
.tabbed-content.tabbed-layout-left {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    align-items: center !important;
}

.tabbed-content.tabbed-layout-left .tab-title {
    order: 1 !important;
    margin: 0 20px 15px 0 !important;
    display: inline-block !important;
    width: auto !important;
    flex-shrink: 0 !important;
}

.tabbed-content.tabbed-layout-left ul.nav {
    order: 2 !important;
    margin: 0 0 15px 0 !important;
    flex-grow: 1 !important;
    width: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
}

.tabbed-content.tabbed-layout-left .tab-panels {
    order: 3 !important;
    width: 100% !important;
}

/* Custom Title Style Helper Classes */
.tabbed-content .tab-title.font-bold {
    font-weight: bold;
}

.tabbed-content .tab-title.italic {
    font-style: italic;
}

.tabbed-content .tab-title.uppercase {
    text-transform: uppercase;
}

/* Custom Title Size Helper Classes */
.tabbed-content .tab-title.size-xsmall {
    font-size: 0.75em;
}

.tabbed-content .tab-title.size-small {
    font-size: 0.85em;
}

.tabbed-content .tab-title.size-medium {
    font-size: 1em;
}

.tabbed-content .tab-title.size-large {
    font-size: 1.25em;
}

.tabbed-content .tab-title.size-xlarge {
    font-size: 1.5em;
}

/* Scroll on Mobile Option styling */
@media (max-width: 767px) {
    .tabbed-content.has-mobile-scroll ul.nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
        padding-bottom: 5px;
        /* Prevent cutting off of links or active state styles */
    }

    .tabbed-content.has-mobile-scroll ul.nav::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari/Opera */
    }

    .tabbed-content.has-mobile-scroll ul.nav>li {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    /* When title is aligned left, stack them on mobile for better layout and space */
    .tabbed-content.tabbed-layout-left .tab-title {
        margin: 0 0 10px 0 !important;
        width: 100% !important;
        display: block !important;
    }

    .tabbed-content.tabbed-layout-left ul.nav {
        width: 100% !important;
        justify-content: flex-start !important;
    }
}

/* Custom User Account Dropdown styling - Flat & Minimal */
.nav-dropdown.user-account-dropdown {
    padding: 6px 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e2e8f0 !important;
    min-width: 175px !important;
    width: 185px !important;
    max-width: calc(100vw - 20px) !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    z-index: 9999 !important;
}

/* Invisible hover bridge to prevent hover flicker */
.nav-dropdown.user-account-dropdown:before {
    content: '' !important;
    position: absolute !important;
    top: -12px !important;
    left: 0 !important;
    right: 0 !important;
    height: 12px !important;
    display: block !important;
    background: transparent !important;
}

/* Ensure account dropdown aligns to the right side so it never overflows off-screen on the right */
.account-item.current-dropdown > .user-account-dropdown,
.account-item:hover > .user-account-dropdown,
.account-item.active > .user-account-dropdown,
.nav-right li.account-item > .user-account-dropdown,
.flex-right li.account-item > .user-account-dropdown,
.mobile-nav li.account-item > .user-account-dropdown {
    left: auto !important;
    right: 0 !important;
}

/* Closed state: keep off-screen */
.account-item:not(.current-dropdown):not(:hover) > .user-account-dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    left: -99999px !important;
    right: auto !important;
}

/* Dropdown list items */
.user-dropdown-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.user-dropdown-item a {
    display: flex !important;
    align-items: center !important;
    padding: 10px 16px !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    background: transparent !important;
}

.user-dropdown-item a:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

.user-dropdown-icon {
    margin-right: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
    flex-shrink: 0 !important;
    transition: color 0.15s ease !important;
}

.user-dropdown-item a:hover .user-dropdown-icon {
    color: #0f172a !important;
}

/* Subtle flat divider before logout */
.user-dropdown-item--logout {
    border-top: 1px solid #f1f5f9 !important;
    margin-top: 4px !important;
    padding-top: 2px !important;
}

.user-dropdown-item--logout a:hover {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

.user-dropdown-item--logout a:hover .user-dropdown-icon {
    color: #dc2626 !important;
}

/* Remove default theme borders applied to nav-dropdown items by theme */
.nav-dropdown.user-account-dropdown li,
.nav-dropdown.user-account-dropdown li+li,
.nav-dropdown.user-account-dropdown li a,
.nav-dropdown.user-account-dropdown li+li a {
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.nav-dropdown.user-account-dropdown li.user-dropdown-item--logout {
    border-top: 1px solid #f1f5f9 !important;
}

/* Mobile specific styling - Touch-friendly */
@media (max-width: 849px) {
    .account-item.has-dropdown {
        position: relative !important;
    }

    .nav-dropdown.user-account-dropdown {
        min-width: 180px !important;
        width: 190px !important;
    }

    .account-item.current-dropdown > .user-account-dropdown,
    .account-item:hover > .user-account-dropdown,
    .account-item.active > .user-account-dropdown {
        left: auto !important;
        right: 0 !important;
        top: 100% !important;
        margin-top: 6px !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        max-height: inherit !important;
    }

    .user-dropdown-item a {
        padding: 12px 18px !important;
        font-size: 14.5px !important;
    }
}

/* Logged-in header account layout: icon left, text right */
.account-item.has-dropdown>a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-direction: row !important;
}

/* Custom override for dividers */
.is-divider {
    height: 1px !important;
    max-width: none !important;
}

/* Make post titles bold */
.blog-post-inner .post-title,
.blog-post-inner .post-title a {
    font-weight: bold !important;
}

/* Slider & List / Big & List Blog Layout overrides and styles */
.slider-list-row,
.big-list-row {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-post-list-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    max-height: none !important;
    overflow-y: visible !important;
    justify-content: flex-start;
}

.blog-post-list-right.has-scrollbar {
    max-height: 480px !important;
    overflow-y: auto !important;
    padding-right: 8px;
}

/* Custom Scrollbar for list items */
.blog-post-list-right::-webkit-scrollbar {
    width: 6px;
}

.blog-post-list-right::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 3px;
}

.blog-post-list-right::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.blog-post-list-right::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.blog-post-list-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-post-list-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.blog-post-list-item-thumb {
    flex: 0 0 120px;
    width: 120px;
    max-width: 120px;
}

.blog-post-list-item-thumb .no-thumb-placeholder {
    display: block;
    width: 100%;
    height: 80px;
    background-color: #f7f7f7;
    border-radius: 4px;
    position: relative;
    border: 1px dashed #e0e0e0;
}

.blog-post-list-item-thumb .no-thumb-placeholder::after {
    content: "";
    /* Clean empty placeholder block */
    display: block;
}

.blog-post-list-item-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    transition: transform 0.3s ease;
}

.blog-post-list-item:hover .blog-post-list-item-thumb img {
    transform: scale(1.05);
}

.blog-post-list-item-content {
    flex: 1;
}

.blog-post-list-item-content .post-title {
    margin: 0 0 6px 0 !important;
    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 1.35 !important;
}

.blog-post-list-item-content .post-title a {
    color: #222 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.blog-post-list-item-content .post-title a:hover {
    color: var(--fs-color-primary, #0066cc) !important;
}

.blog-post-list-item-content .post-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-top: 4px;
}

/* Dots alignment inside Slider */
.slider-list-row .slider {
    position: relative !important;
    margin-bottom: 10px !important;
    /* Reduced to shrink spacing below dots */
}

.slider-list-row .slider .box-text,
.slider-list-row .slider .box-text-inner {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.slider-list-row .slider .from_the_blog_excerpt {
    margin-bottom: 0 !important;
    /* Remove bottom margin of excerpt to shrink spacing */
}

.slider-list-row .slider .flickity-page-dots {
    bottom: -15px !important;
    /* Position dots closer to the text */
    position: absolute !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    text-align: center !important;
}

@media (max-width: 767px) {
    .blog-post-list-right {
        margin-top: 25px;
        max-height: none;
        /* No max height limit on mobile */
        padding-right: 0;
    }
}