/*
Theme Name:           Anvet
Theme URI:            https://anvet.com
Author:               Anvenot
Author URI:           https://anvet.com
Description:          Multi-Purpose Responsive Theme
Version:              3.20.7
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 */
.nav-dropdown.user-account-dropdown {
    padding: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    min-width: 240px !important;
    background: #fff !important;
}

.user-dropdown-header {
    display: flex !important;
    align-items: center !important;
    padding: 16px 20px !important;
    background-color: #faf9f6 !important;
    border-bottom: 1px solid #f2f0eb !important;
    margin: 0 !important;
}

.user-dropdown-avatar {
    margin-right: 12px !important;
    flex-shrink: 0 !important;
    line-height: 0 !important;
}

.user-dropdown-avatar img {
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    object-fit: cover !important;
    display: block !important;
}

.user-dropdown-info {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}

.user-display-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
}

.user-login-name {
    font-size: 12px !important;
    color: #6b7280 !important;
    line-height: 1.2 !important;
}

.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: 12px 20px !important;
    color: #374151 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.user-dropdown-item a:hover {
    background-color: #f9fafb !important;
    color: var(--fs-color-primary, #0066cc) !important;
}

.user-dropdown-icon {
    margin-right: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #9ca3af !important;
    transition: color 0.2s ease !important;
}

.user-dropdown-item a:hover .user-dropdown-icon {
    color: var(--fs-color-primary, #0066cc) !important;
}

/* Remove default 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;
}

/* 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 Blog Layout overrides and styles */
.slider-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;
    }
}

/* Global Professional Blockquote Styling (Primary Color Theme) */
blockquote,
.entry-content blockquote,
.single-post blockquote,
.post-content blockquote,
article blockquote {
  padding: 0.75em 0.25em 0.75em 0.875em !important;
  font-size: 0.9em !important;
  background-color: color-mix(in srgb, var(--primary-color, #0284c7) 5%, #ffffff) !important;
  border: 1px solid color-mix(in srgb, var(--primary-color, #0284c7) 20%, #ffffff) !important;
  border-left: 4px solid var(--primary-color, #0284c7) !important;
  border-radius: 8px !important;
  color: #334155 !important;
  font-style: italic !important;
  line-height: 1.6 !important;
  margin: 1.5em 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

blockquote p,
.entry-content blockquote p,
.single-post blockquote p,
.post-content blockquote p,
article blockquote p {
  margin-bottom: 0.5em !important;
  font-size: inherit !important;
}

blockquote p:last-child,
.entry-content blockquote p:last-child,
.single-post blockquote p:last-child,
.post-content blockquote p:last-child,
article blockquote p:last-child {
  margin-bottom: 0 !important;
}

/* Global Sidebar Widget Title Vertical Pill Bar (Matching Reference Image) */
.widget-title,
span.widget-title,
h3.widget-title,
h4.widget-title,
.widgettitle,
aside.widget .widget-title,
.sidebar .widget-title,
.widget-area .widget-title {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  position: relative !important;
  border-bottom: none !important;
}

.widget-title::before,
span.widget-title::before,
h3.widget-title::before,
h4.widget-title::before,
.widgettitle::before,
aside.widget .widget-title::before,
.sidebar .widget-title::before,
.widget-area .widget-title::before {
  content: "" !important;
  display: inline-block !important;
  width: 6px !important;
  height: 22px !important;
  background-color: var(--primary-color, #FF6700) !important;
  border-radius: 9999px !important;
  flex-shrink: 0 !important;
  margin-right: 2px !important;
}

.widget-title > span {
  display: inline !important;
}

.widget-title > span::before {
  display: none !important;
}

/* Flatsome-Style Ultra-Smooth Image Hover Zoom Transition */
.trangtour-card-row-thumb img,
.trangtour-card-widget-thumb img,
.trangtour-card-thumb img,
.tour-card-thumb img,
.tour-card-image img,
.anvet_recent_posts img,
.recent-blog-posts-li img,
.tour-card img,
.destination-card img,
.tour-card-media img {
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  will-change: transform !important;
}

.trangtour-card-row:hover .trangtour-card-row-thumb img,
.trangtour-card-widget-item:hover .trangtour-card-widget-thumb img,
.tour-card:hover .tour-card-image img,
.tour-card:hover .tour-card-thumb img,
.tour-card:hover img,
.destination-card:hover img,
.recent-blog-posts-li:hover img,
.anvet_recent_posts li:hover img {
  transform: scale(1.08) translateZ(0) !important;
}