/* 
 * Custom CSS File
 * File này để bạn tự code CSS tùy chỉnh
 */

/* Language Switcher Styles */
.language-switcher-inline {
  display: inline-flex;
  gap: 0.5rem;
  margin-right: 1rem;
  align-items: center;
}

.language-switcher-inline .lang-link {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.3s;
}

.language-switcher-inline .lang-link:hover {
  background-color: #f0f0f0;
  color: #007bff;
}

.language-switcher-inline .lang-link.active {
  color: #007bff;
  background-color: #e7f3ff;
}

.img-vehicle-homepage {
  height: 180px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* Language Dropdown in Header */
.dropdown .language {
  color: #fff;
}

header.smaller.scroll-light .dropdown .language {
  color: #333;
}

/* Floating Phone Hover Effect */
/* Floating Calendar Button Hover Effect */
.floating-calendar:hover {
    transform: scale(1.1);
}

.floating-calendar:hover .calendar-label {
    opacity: 1 !important;
    visibility: visible !important;
}

.floating-phone:hover .phone-number {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Thêm CSS tùy chỉnh của bạn ở đây */

/* Fix header overlap với Features section */
#section-cars {
  position: relative;
  z-index: 1;
  padding-top: 90px;
}

/* Đảm bảo Features section không bị header đè lên */
section#section-features {
  position: relative;
  z-index: 1;
  padding-top: 90px !important;
}

/* Fix logo overlap - đảm bảo header không đè lên content */
header {
  z-index: 1000;
}

#content {
  position: relative;
  z-index: 1;
  padding-top: 0;
}

/* Đảm bảo box-icon và text hiển thị đúng */
.box-icon {
  position: relative;
  z-index: 2;
}

.box-icon .d-inner {
  position: relative;
  z-index: 1;
}

.box-icon .d-inner h4 {
  position: relative;
  z-index: 1;
}

/* Fix logo trong header không đè lên content */
header #logo {
  position: relative;
  z-index: 1;
}

header #logo .logo-1 {
  max-height: 50px;
  width: auto;
}

header #logo .logo-2 {
  max-height: 60px;
  width: auto;
}

@media (max-width: 991px) {
  header #logo .logo-1{
    max-height: 40px !important;
  }
  header #logo .logo-2{
    max-height: 40px !important;
  }
}



.h1-lead {
  font-size: 22px;
  line-height: 1.7em;
  margin-top: 0;
  font-weight: 400;
}

address.s1 p {
  display: flex;
  align-items: flex-start;
  /* icon và text thẳng hàng trên */
  margin-bottom: 8px;
}

address.s1 p i {
  width: 20px;
  /* cố định width icon */
  min-width: 20px;
  margin-top: 3px;
  /* tinh chỉnh icon */
}

address.s1 p span {
  display: block;
  margin-left: 10px;
  line-height: 1.5;
}

.accordion .accordion-section-title h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}
@media (max-width: 991px) {
  .dropdown-language {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .dropdown-language {
    display: block !important;
  }
}

/* Topbar scroll behavior trên mobile - giống desktop */
@media (max-width: 991px) {
  /* Khi scroll xuống: ẩn topbar hoàn toàn, menu vẫn hiển thị */
  header.scroll-down #topbar {
    transform: translateY(-100%);
    margin-top: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
    pointer-events: none;
  }
  
  /* Khi scroll lên hoặc ở đầu trang: hiện topbar */
  header:not(.scroll-down) #topbar,
  header.nav-up #topbar {
    transform: translateY(0);
    margin-top: 0;
    opacity: 1;
    max-height: 100px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
    pointer-events: auto;
  }
  
  /* Đảm bảo topbar có position để transition hoạt động */
  #topbar {
    position: relative;
    z-index: 1000;
  }
  
  /* Đảm bảo menu vẫn hiển thị khi scroll */
  header.scroll-down .container:not(:first-child),
  header.scroll-down #logo,
  header.scroll-down #mainmenu {
    display: block !important;
    visibility: visible !important;
  }
}

/* Border bottom white cho cờ ngôn ngữ active trong topbar */
#topbar .lang-flag-link.active {
  border-bottom: 2px solid #ffffff;
}


@media (max-width: 767px) {
  /* Headings */
  h1, .h1 {
    font-size: 28px !important;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  
  h2, .h2 {
    font-size: 24px !important;
    line-height: 1.3;
    margin-bottom: 12px;
  }
  
  h3 {
    font-size: 20px !important;
    line-height: 1.4;
    margin-bottom: 10px;
  }
  
  h4 {
    font-size: 18px !important;
    line-height: 1.4;
  }
  
  /* Subtitle */
  .h1-lead {
    font-size: 16px !important;
    line-height: 1.6;
  }
  
  /* Topbar */
  #topbar .topbar-widget {
    font-size: 15px;
  }
  
  /* Accordion */
  .accordion .accordion-section-title h3 {
    font-size: 18px !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* Tablet */
  h1, .h1 {
    font-size: 36px;
    line-height: 1.3;
  }
  
  h2, .h2 {
    font-size: 32px;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 24px;
    line-height: 1.4;
  }
  
  .h1-lead {
    font-size: 18px;
    line-height: 1.6;
  }
}

@media (max-width: 991px) {
  .hide-mb{
    display: none !important;
  }
}

/* ============================================
   SECTION PADDING-TOP STANDARDIZATION
   ============================================ */

/* Standard section spacing - Desktop */
section:not(#section-hero):not(#subheader) {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Large sections */
section#section-features,
section#section-cars {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Sections sau subheader */
section:has(+ section) {
  /* Nếu section có section tiếp theo */
}

/* Responsive - Tablet */
@media (min-width: 768px) and (max-width: 991px) {
  section:not(#section-hero):not(#subheader) {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  section#section-features,
  section#section-cars {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
  section:not(#section-hero):not(#subheader) {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  section#section-features,
  section#section-cars {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* Override cho sections đặc biệt */
section#section-testimonials {
  padding-top: 60px;
  padding-bottom: 60px;
}

section#section-faq {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Contact form section - xóa inline style */
section[style*="padding-top: 0px"] {
  padding-top: 60px !important;
}

/* Process section - tăng từ pt20 */
section.pt20 {
  padding-top: 60px !important;
}

/* Partners/Commit sections - tăng từ pt20 */
section.pt20.pb20 {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

/* Responsive cho các sections đặc biệt */
@media (max-width: 767px) {
  section#section-testimonials,
  section#section-faq,
  section.pt20,
  section.pt20.pb20 {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
}

.category-content img {
  max-width: 100%;
}