/*
Theme Name:           Playtacs
Theme URI:            https://Playtacs.com
Author:               Playtacs
Author URI:           https://Playtacs.com
Description:          Multi-Purpose Responsive Theme
Version:              3.20.7
Requires at least:    6.4
Requires PHP:         7.4
Text Domain:          Playtacs
License:              https://Playtacs.com/
License URI:          https://Playtacs.com/
*/


/***************
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: 6px !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  min-width: 215px !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
}

.user-dropdown-header {
  display: flex !important;
  align-items: center !important;
  padding: 8px 10px 10px !important;
  background-color: transparent !important;
  border-bottom: 1px solid #f1f5f9 !important;
  margin: 0 0 4px !important;
}

.user-dropdown-avatar {
  margin-right: 10px !important;
  flex-shrink: 0 !important;
  line-height: 0 !important;
}

.user-dropdown-avatar img {
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  object-fit: cover !important;
  display: block !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.user-dropdown-info {
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
  min-width: 0 !important;
}

.user-display-name {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-bottom: 2px !important;
}

.user-login-name {
  font-size: 11.5px !important;
  color: #64748b !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: 8px 10px !important;
  border-radius: 8px !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
}

.user-dropdown-item a:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

.user-dropdown-icon {
  margin-right: 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  transition: color 0.15s ease !important;
}

.user-dropdown-item a:hover .user-dropdown-icon {
  color: var(--fs-color-primary, #0f172a) !important;
}

/* Divider before logout */
.user-dropdown-divider {
  height: 1px !important;
  background-color: #f1f5f9 !important;
  margin: 4px 6px !important;
  list-style: none !important;
  border: 0 !important;
}

/* Destructive / Logout hover style */
.user-dropdown-item.is-logout a:hover {
  background-color: #fef2f2 !important;
  color: #dc2626 !important;
}

.user-dropdown-item.is-logout a:hover .user-dropdown-icon {
  color: #dc2626 !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;
}

/* ==========================================================================
   Author Bio Expand / Collapse Box
   ========================================================================== */
.entry-author.author-box {
  margin: 0;
  padding: 18px 20px;
  background: #fbfbfb;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.entry-author .blog-author-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 90px;
  max-width: 120px;
  flex-shrink: 0;
}

.entry-author .blog-author-image {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  margin: 0 auto;
}

.entry-author .blog-author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.entry-author .author-name {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary, #446084);
  word-break: break-word;
  text-align: center;
}

.author-bio-wrap {
  position: relative;
  text-align: center;
}

.author-bio-wrap .author-desc {
  text-align: left;
  position: relative;
  margin-bottom: 0;
  color: #555;
  line-height: 1.6;
}

.author-bio-wrap .author-desc p {
  margin-bottom: 8px;
}

.author-bio-wrap .author-desc p:last-child {
  margin-bottom: 0;
}

/* Collapsed state — fixed height for ~3 lines with smooth transition */
.author-bio-wrap.is-collapsible:not(.is-expanded) .author-desc {
  max-height: 4.8em;
  line-height: 1.6em;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}

/* Gradient fade-out overlay over the bottom of collapsed text */
.author-bio-wrap.is-collapsible:not(.is-expanded) .author-desc::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.2em;
  background: linear-gradient(to bottom, rgba(251, 251, 251, 0) 0%, rgba(251, 251, 251, 0.75) 45%, #fbfbfb 100%);
  pointer-events: none;
  z-index: 1;
}

/* Expanded state */
.author-bio-wrap.is-expanded .author-desc {
  max-height: 2000px;
  overflow: visible;
  transition: max-height 0.5s ease;
}

.author-bio-wrap.is-expanded .author-desc::after {
  display: none;
}

/* Toggle button — centered */
.author-bio-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 6px auto 0 auto;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--color-primary, #446084) !important;
  font-size: 0.9em;
  font-weight: 300;
  cursor: pointer;
  line-height: 1.4;
  outline: none;
  position: relative;
  z-index: 2;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.author-bio-toggle:hover,
.author-bio-toggle:focus {
  opacity: 0.8;
  text-decoration: underline;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.author-bio-toggle .toggle-icon {
  display: inline-block;
  transition: transform 0.25s ease;
}

.author-bio-wrap:not(.is-expanded) .author-bio-toggle .toggle-text-less {
  display: none;
}

.author-bio-wrap.is-expanded .author-bio-toggle .toggle-text-more {
  display: none;
}

.author-bio-wrap.is-expanded .author-bio-toggle .toggle-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   Archive Page Header — left-aligned + trending tag bar
   ========================================================================== */

.archive-page-header {
  text-align: left;
}

.archive-page-header .taxonomy-description {
  margin-top: 0;
  font-size: 0.97em;
  color: #555;
  line-height: 1.6;
}

/* Taxonomy Description collapse/expand (2 lines with gradient overlay & centered text link) */
.tax-desc-wrap {
  position: relative;
  margin-top: 8px;
  text-align: center;
}

.tax-desc-wrap .taxonomy-description {
  text-align: left;
  position: relative;
}

.tax-desc-wrap .taxonomy-description p {
  margin-bottom: 0.4em;
}

.tax-desc-wrap .taxonomy-description p:last-child {
  margin-bottom: 0;
}

/* Collapsed state — fixed height for ~2 lines */
.tax-desc-wrap.is-collapsible:not(.is-expanded) .taxonomy-description {
  max-height: 3.2em;
  line-height: 1.6em;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Gradient fade-out overlay directly over the 2nd line of text */
.tax-desc-wrap.is-collapsible:not(.is-expanded) .taxonomy-description::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.2em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 45%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Expanded state */
.tax-desc-wrap.is-expanded .taxonomy-description {
  max-height: 2000px;
  overflow: visible;
  transition: max-height 0.5s ease;
}

.tax-desc-wrap.is-expanded .taxonomy-description::after {
  display: none;
}

/* Plain text 'Đọc tiếp' / 'Thu gọn' link in primary color */
.tax-desc-toggle {
  display: inline-block;
  margin: 6px auto 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--color-primary, #e05a2b);
  font-size: 0.9em;
  font-weight: 300;
  cursor: pointer;
  line-height: 1.4;
  outline: none;
  box-shadow: none;
  position: relative;
  z-index: 2;
  transition: opacity 0.2s ease;
}

.tax-desc-toggle:hover,
.tax-desc-toggle:focus {
  opacity: 0.8;
  text-decoration: underline;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--color-primary, #e05a2b);
}

.tax-desc-wrap:not(.is-expanded) .tax-desc-toggle .toggle-text-less {
  display: none;
}

.tax-desc-wrap.is-expanded .tax-desc-toggle .toggle-text-more {
  display: none;
}

/* UX Collapsible / Read More Element */
.ux-collapsible-wrap {
  --ux-collapse-fade-color: rgba(255, 255, 255, 1);
  position: relative;
  margin-bottom: 1.5em;
}

.ux-collapsible-wrap .ux-collapsible-content {
  position: relative;
  overflow: visible;
}

/* Collapsed state */
.ux-collapsible-wrap.is-collapsible:not(.is-expanded) > .ux-collapsible-content {
  max-height: 160px;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Expanded state */
.ux-collapsible-wrap.is-expanded > .ux-collapsible-content {
  max-height: 10000px !important;
  overflow: visible;
  transition: max-height 0.6s ease-in-out;
}

/* Gradient fade overlay */
.ux-collapsible-wrap .ux-collapsible-fade {
  display: none;
}

.ux-collapsible-wrap.is-collapsible:not(.is-expanded).has-collapse .ux-collapsible-fade {
  display: block;
  position: absolute;
  bottom: 38px;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to bottom, transparent 0%, var(--ux-collapse-fade-color) 90%);
  pointer-events: none;
  z-index: 2;
}

/* Toggle Action area */
.ux-collapsible-wrap .ux-collapsible-action {
  position: relative;
  z-index: 3;
  margin-top: 10px;
}

/* Toggle button - Link style (default) */
.ux-collapsible-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  margin: 0;
  background: transparent;
  border: none;
  color: var(--color-primary, #e05a2b);
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.4;
  outline: none;
  box-shadow: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.ux-collapsible-toggle:hover,
.ux-collapsible-toggle:focus {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--color-primary, #e05a2b);
  opacity: 0.8;
  text-decoration: underline;
}

/* Button style variant */
.ux-collapsible-wrap.is-btn-style .ux-collapsible-toggle {
  background: var(--color-primary, #e05a2b);
  color: #fff;
  padding: 8px 22px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ux-collapsible-wrap.is-btn-style .ux-collapsible-toggle:hover,
.ux-collapsible-wrap.is-btn-style .ux-collapsible-toggle:focus {
  background: var(--color-primary-hover, #c84d22);
  color: #fff;
  opacity: 0.95;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Arrow Icon rotation */
.ux-collapsible-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.ux-collapsible-wrap.is-expanded .ux-collapsible-icon {
  transform: rotate(180deg);
}

/* Toggle Text states */
.ux-collapsible-wrap:not(.is-expanded) .ux-collapsible-toggle .toggle-text-less {
  display: none;
}

.ux-collapsible-wrap.is-expanded .ux-collapsible-toggle .toggle-text-more {
  display: none;
}

/* UX Builder canvas specific styling */
.ux-collapsible-builder {
  border: 1px dashed rgba(0, 160, 210, 0.35);
  padding: 8px;
  border-radius: 4px;
}
.ux-collapsible-builder > .ux-collapsible-content {
  max-height: none !important;
  overflow: visible !important;
}






/* Trending tag bar — clean inline row without border box */
.archive-tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 14px;
  background: transparent;
  border: none;
  padding: 0;
}

/* Label block: icon + "Xu hướng" in primary color */
.archive-tag-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.archive-tag-icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary, #e05a2b);
  flex-shrink: 0;
  vertical-align: middle;
}

.archive-tag-label-text {
  font-size: 0.9em;
  font-weight: 700;
  color: var(--color-primary, #e05a2b);
  white-space: nowrap;
}

/* Vertical divider between label and tags */
.archive-tag-divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #d8dbe0;
  flex-shrink: 0;
  margin: 0 4px;
  vertical-align: middle;
}

/* Individual tag items — plain text style without pill background */
.archive-tag-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.88em;
  color: #555;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.archive-tag-hash {
  color: #999;
  margin-right: 2px;
  font-weight: 400;
}

.archive-tag-item:hover {
  color: var(--color-links-hover, var(--fs-experimental-link-color-hover, var(--color-primary, #e05a2b)));
  text-decoration: underline;
  background: transparent;
}

.archive-tag-item:hover .archive-tag-hash {
  color: var(--color-links-hover, var(--fs-experimental-link-color-hover, var(--color-primary, #e05a2b)));
}

@media (max-width: 768px) {
  .archive-tag-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    padding-bottom: 6px;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  }

  .archive-tag-list::-webkit-scrollbar {
    height: 4px;
  }

  .archive-tag-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
  }

  .archive-tag-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
  }

  .archive-tag-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
}

/* ==========================================================================
   Recent Posts Widget — Balanced Layout, Padding & 3-line Title
   ========================================================================== */

.anvet_recent_posts ul,
.recent-blog-posts-ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.recent-blog-posts-li {
  list-style: none !important;
  margin: 0 !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.recent-blog-posts-li:last-child {
  border-bottom: none !important;
}

.recent-blog-posts-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.recent-blog-posts-thumb {
  flex: 0 0 85px !important;
  width: 85px !important;
  height: 60px !important;
  min-width: 85px !important;
  max-width: 85px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #f1f5f9 !important;
  position: relative !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.recent-blog-posts-thumb-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none !important;
}

.recent-blog-posts-thumb-link.fallback-thumb {
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
  color: #94a3b8;
}

.recent-blog-posts-img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 8px !important;
  border: none !important;
  margin: 0 !important;
}

.recent-blog-posts-info {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.recent-blog-posts-title {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: #1e293b !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  word-break: break-word !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: color 0.2s ease !important;
}

.recent-blog-posts-title:hover {
  color: var(--color-primary, #e05a2b) !important;
  text-decoration: none !important;
}



/* ==========================================================================
   Top Posts Grid — 3 available styles (classic / grid-4 / highlight)
   ========================================================================== */

/* --- Shared wrapper --- */
.top-posts-grid {
  margin-bottom: 28px;
  overflow: hidden;
  gap: 4px;
}

/* --- Shared cell base --- */
.tpg-cell {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  background: #111827;
}

.tpg-cell .tpg-thumb {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.tpg-cell .tpg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.42s ease;
}

.tpg-cell:hover .tpg-thumb img {
  transform: scale(1.05);
}

/* Gradient overlay */
.tpg-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.28) 50%,
      rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.tpg-cell:hover::after {
  opacity: 0.88;
}

/* Fallback (no featured image) */
.tpg-thumb-fallback {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  color: #94a3b8;
  width: 100%;
  height: 100%;
}

/* Text overlay */
.tpg-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  z-index: 2;
  pointer-events: none;
}

.tpg-title {
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* For overlay cells in classic/grid4, use white text and bold */
.tpg-style-classic .tpg-cell .tpg-title,
.tpg-style-grid4 .tpg-cell .tpg-title {
  color: #fff;
  font-weight: 700;
}

.tpg-excerpt {
  margin: 6px 0 0;
  font-size: 0.82em;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ──────────────────────────────────────────────
   STYLE 1 — CLASSIC: 1 large left + 3 stacked right
   ────────────────────────────────────────────── */
.tpg-style-classic {
  display: grid;
  grid-template-columns: 3fr 2fr;
}

.tpg-style-classic .tpg-main {
  min-height: 380px;
}

.tpg-style-classic .tpg-main .tpg-title {
  font-size: 1.2em;
  -webkit-line-clamp: 3;
}

.tpg-style-classic .tpg-main .tpg-info {
  padding: 18px 20px;
}

.tpg-style-classic .tpg-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tpg-style-classic .tpg-side-item {
  flex: 1;
  min-height: 120px;
}

.tpg-style-classic .tpg-side-item .tpg-title {
  font-size: 0.85em;
  -webkit-line-clamp: 2;
}

.tpg-style-classic .tpg-side-item .tpg-info {
  padding: 10px 12px;
}

/* ──────────────────────────────────────────────
   STYLE 2 — GRID 2×2: four equal cells
   ────────────────────────────────────────────── */
.tpg-style-grid4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.tpg-style-grid4 .tpg-equal-cell {
  min-height: 200px;
}

/* First cell slightly taller */
.tpg-style-grid4 .tpg-equal-cell:first-child {
  min-height: 220px;
}

.tpg-style-grid4 .tpg-equal-cell:first-child .tpg-title {
  font-size: 1.05em;
  -webkit-line-clamp: 3;
}

.tpg-style-grid4 .tpg-equal-cell .tpg-title {
  font-size: 0.88em;
  -webkit-line-clamp: 2;
}

.tpg-style-grid4 .tpg-equal-cell .tpg-info {
  padding: 12px 14px;
}

/* ──────────────────────────────────────────────
   STYLE 3 — HIGHLIGHT: 2/3 image + 1/3 text hero + 3-col row
   ────────────────────────────────────────────── */
.tpg-style-highlight {
  display: flex;
  flex-direction: column;
}

.tpg-style-highlight .tpg-hero-row {
  width: 100%;
}

.tpg-style-highlight .tpg-hero {
  display: flex;
  min-height: 340px;
  background: transparent;
  border: none;
}

.tpg-style-highlight .tpg-hero::after {
  display: none;
}

.tpg-style-highlight .tpg-hero .tpg-thumb {
  position: relative;
  flex: 0 0 66.666%;
  width: 66.666%;
  height: auto;
  min-height: 320px;
  overflow: hidden;
}

.tpg-style-highlight .tpg-hero .tpg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.42s ease;
}

.tpg-style-highlight .tpg-hero:hover .tpg-thumb img {
  transform: scale(1.03);
}

.tpg-style-highlight .tpg-hero .tpg-info {
  position: relative;
  flex: 1;
  width: 33.333%;
  padding: 24px 28px;
  background: #fbfcfd;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: auto;
}

.tpg-style-highlight .tpg-hero .tpg-title {
  font-size: 1.4em;
  line-height: 1.35;
  margin: 0 0 12px;
  -webkit-line-clamp: 3;
  transition: color 0.2s ease;
}

.tpg-style-highlight .tpg-hero:hover .tpg-title {
  color: var(--color-links-hover, var(--fs-experimental-link-color-hover, var(--color-primary, #e05a2b))) !important;
}

.tpg-style-highlight .tpg-hero .tpg-excerpt {
  color: #4b5563;
  font-size: 0.9em;
  line-height: 1.6;
  margin: 0;
  -webkit-line-clamp: 4;
}

.tpg-style-highlight .tpg-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.tpg-style-highlight .tpg-row-item {
  display: flex;
  flex-direction: column;
  background: transparent;
  min-height: auto;
  overflow: visible;
}

.tpg-style-highlight .tpg-row-item::after {
  display: none;
}

.tpg-style-highlight .tpg-row-item .tpg-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  overflow: hidden;
  background: #f1f5f9;
}

.tpg-style-highlight .tpg-row-item .tpg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.tpg-style-highlight .tpg-row-item:hover .tpg-thumb img {
  transform: scale(1.05);
}

.tpg-style-highlight .tpg-row-item .tpg-info {
  position: relative;
  padding: 10px 0 0;
  background: transparent;
  pointer-events: auto;
}

.tpg-style-highlight .tpg-row-item .tpg-title {
  font-size: 0.95em;
  line-height: 1.35;
  margin: 0;
  -webkit-line-clamp: 3;
  transition: color 0.2s ease;
}

.tpg-style-highlight .tpg-row-item:hover .tpg-title {
  color: var(--color-links-hover, var(--fs-experimental-link-color-hover, var(--color-primary, #e05a2b))) !important;
}

.tpg-style-highlight .tpg-row-item .tpg-excerpt {
  display: none;
}

/* ──────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Classic: stack vertically */
  .tpg-style-classic {
    grid-template-columns: 1fr;
  }

  .tpg-style-classic .tpg-main {
    min-height: 260px;
  }

  .tpg-style-classic .tpg-side {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .tpg-style-classic .tpg-side-item {
    flex: 0 0 calc(33.333% - 3px);
    min-height: 140px;
  }

  /* Grid 2x2: stays but shrinks */
  .tpg-style-grid4 .tpg-equal-cell {
    min-height: 150px;
  }

  /* Highlight: hero stacks vertically on mobile */
  .tpg-style-highlight .tpg-hero {
    flex-direction: column;
    min-height: auto;
  }

  .tpg-style-highlight .tpg-hero .tpg-thumb {
    flex: 0 0 auto;
    width: 100%;
    min-height: 200px;
    height: 200px;
  }

  .tpg-style-highlight .tpg-hero .tpg-info {
    width: 100%;
    padding: 14px;
  }

  .tpg-style-highlight .tpg-hero .tpg-title {
    font-size: 1.15em;
  }

  /* Highlight: KEEP 3 items in 1 row on mobile */
  .tpg-style-highlight .tpg-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
  }

  .tpg-style-highlight .tpg-row-item .tpg-thumb {
    aspect-ratio: 16 / 11;
  }

  .tpg-style-highlight .tpg-row-item .tpg-info {
    padding: 6px 0 0;
  }

  .tpg-style-highlight .tpg-row-item .tpg-title {
    font-size: 0.82em;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {

  /* Classic side items: 2 per row */
  .tpg-style-classic .tpg-side-item {
    flex: 0 0 calc(50% - 2px);
  }

  /* Grid 2x2 → single column */
  .tpg-style-grid4 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .tpg-style-grid4 .tpg-equal-cell {
    min-height: 180px;
  }

  .tpg-style-highlight .tpg-row {
    gap: 6px;
  }

  .tpg-style-highlight .tpg-row-item .tpg-title {
    font-size: 0.78em;
  }
}

/* ==========================================================================
   Blockquote — Remove border-radius
   ========================================================================== */
blockquote,
.wp-block-quote,
.wp-block-quote.is-style-large,
.wp-block-quote.is-style-plain,
.wp-block-pullquote,
.wp-block-pullquote blockquote,
figure.wp-block-pullquote,
figure.wp-block-pullquote blockquote,
.entry-content blockquote,
.article-inner blockquote {
  border-radius: 0 !important;
}

/* Related Posts Container */
.blog-related-posts {
  margin-top: 20px;
}