/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
blockquote {
  font-size: 1rem;
  color: var(--fs-color-base);
}

.uppercase,
h6,
span.widget-title,
th {
  letter-spacing: 0;
}

.text-primary {
  color: var(--primary-color);
}

.is-divider {
  display: none;
}

.filter-img-white img {
  filter: brightness(0) invert(1);
}

.banner h1,
.banner h2,
.banner h3 {
  line-height: inherit;
}

.uppercase {
  letter-spacing: 0;
  line-height: inherit;
}

.wpcf7 input,
.wpcf7 select,
.wpcf7 textarea,
.wpcf7 label,
.wpcf7 form {
  margin-bottom: 0;
}
.wpcf7 .wpcf7-submit {
  display: block;
  width: 100%;
  margin-top: 25px;
  border-radius: 10px;
  height: 50px;
}
.wpcf7 .wpcf7-spinner {
  display: none;
}

.wpcf7 .wpcf7-text,
.wpcf7 textarea {
  border-radius: 10px;
  border: 1px solid var(--frame, #d9d9d9);
  background: rgba(212, 212, 212, 0.2);
  height: 50px;
  padding: 15px;
  box-shadow: none !important;
}

.card-border > .col-inner {
  overflow: hidden;
}

.home-banner-box .text-box-content {
  overflow: hidden;
}

.increase-shortcode {
  display: inline-flex;
  flex-direction: column;
  gap: 20px;
  font-family: inherit;
}

.increase-shortcode--align-left {
  text-align: left;
  align-items: flex-start;
}

.increase-shortcode--align-center {
  text-align: center;
  align-items: center;
}

.increase-shortcode--align-right {
  text-align: right;
  align-items: flex-end;
}

.increase-shortcode__value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.increase-shortcode__label {
  font-size: 1.125rem;
  line-height: 1.2;
}

.home-product-category .box {
  padding-top: 20px;
}

.home-text-clock {
  min-width: 120px;
}

.home-timer .ux-timer span {
  padding: 10px;
}
.home-timer .ux-timer span strong {
  display: inline;
  font-size: 80%;
  opacity: 1;
  margin-left: 5px;
}

.product.product-small .col-inner,
.col.post-item .col-inner {
  background-color: #fff;
  box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  border-radius: 10px;
  overflow: hidden;
}
.product.product-small .box-text-products {
  padding: 20px;
}
.product.product-small .badge-container {
  margin-top: 0;
}

.post-item .from_the_blog_excerpt {
  margin-top: 10px;
}

.wn-dknt {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
.wn-dknt .wn-dknt__label {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.4rem;
  flex: 1;
}
.wn-dknt .wpcf7-submit {
  margin-right: 0;
  margin-top: 0;
}
@media only screen and (max-width: 550px) {
  .wn-dknt {
    flex-direction: column;
    align-items: stretch;
  }
}

.rank-math-breadcrumb .last {
  font-weight: bold;
}

#masthead .flex-right {
  flex: 0.5;
}
#masthead .flex-right .header-nav {
  flex-wrap: nowrap;
}
#masthead .searchform .search-field {
  border-color: var(--primary-color);
  border-radius: 8px;
  height: 40px;
  padding: 0 15px;
}
#masthead .searchform .submit-button {
  color: var(--primary-color) !important;
}

@media only screen and (max-width: 850px) {
  #masthead .flex-right {
    flex: 1;
  }
}

.nav-small.nav > li.html {
  font-size: 1rem;
}

.gioi-thieu-imagebox .box-text {
  border-bottom: 4px solid var(--primary-color);
  background: #fff;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

/* Timeline Shortcode Styles */
.timeline-shortcode {
  min-height: 600px;
  position: relative;
}

.timeline-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.timeline-column {
  position: relative;
  padding-top: 20px;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #999;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-event {
  position: relative;
  margin-bottom: 30px;
}

.timeline-event:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
  border-radius: 50%;
  z-index: 3;
  transform: translateX(-50%);
}

.timeline-date-label {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
}

.timeline-date-label.red {
  background-color: var(--primary-color);
  color: #fff;
}

.timeline-date-label.grey {
  background-color: #999;
  color: #fff;
}

.timeline-content-box {
  background-color: #fff;
  border-radius: 10px;
  padding: 24px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
  max-width: 100%;
  box-shadow: 0 26px 55px 0 rgba(217, 34, 0, 0.12);
}

.timeline-content-title {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 10px;
  color: #111;
  line-height: 1.4;
  letter-spacing: 0.3px;
}

.timeline-content-text {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

/* Left side events */
.timeline-event-left {
  padding-right: 50%;
  padding-left: 0;
  text-align: right;
}

.timeline-event-left .timeline-date-label {
  margin-right: 20px;
  margin-bottom: 0;
  display: inline-block;
}

.timeline-event-left .timeline-content-box {
  margin-right: 20px;
  margin-left: auto;
  margin-top: 12px;
  max-width: calc(100% - 20px);
}

/* Right side events */
.timeline-event-right {
  padding-left: 50%;
  padding-right: 0;
}

.timeline-event-right .timeline-date-label {
  margin-left: 20px;
  margin-bottom: 0;
  display: inline-block;
}

.timeline-event-right .timeline-content-box {
  margin-left: 20px;
  margin-right: auto;
  margin-top: 12px;
  max-width: calc(100% - 20px);
}

/* Responsive: Tablet and Mobile - Move all items to right */
@media only screen and (max-width: 850px) {
  .timeline-shortcode {
    padding: 40px 20px;
  }

  .timeline-line {
    left: 0;
    transform: none;
  }

  .timeline-dot {
    left: -6px;
    transform: none;
  }

  /* Move all left events to right side */
  .timeline-event-left {
    padding-right: 0;
    padding-left: 30px;
    text-align: left;
  }

  .timeline-event-left .timeline-date-label {
    margin-right: 0;
    margin-left: 20px;
  }

  .timeline-event-left .timeline-content-box {
    margin-right: 0;
    margin-left: 20px;
    margin-top: 12px;
    max-width: calc(100% - 20px);
  }

  /* Keep right events on right side */
  .timeline-event-right {
    padding-left: 30px;
    padding-right: 0;
  }

  .timeline-event-right .timeline-date-label {
    margin-left: 20px;
    margin-right: 0;
  }

  .timeline-event-right .timeline-content-box {
    margin-left: 20px;
    margin-right: 0;
    margin-top: 12px;
    max-width: calc(100% - 20px);
  }
}

/* Mobile specific adjustments */
@media only screen and (max-width: 550px) {
  .timeline-shortcode {
    padding: 30px 15px;
  }

  .timeline-event {
    margin-bottom: 60px;
    padding-left: 0;
  }

  .timeline-content-box {
    padding: 18px;
  }

  .timeline-content-title {
    font-size: 14px;
  }

  .timeline-content-text {
    font-size: 12px;
  }
}

/* Product Category Styling */
.product-category .col-inner {
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.product-category .box {
  border-radius: 30px;
  overflow: hidden;
  padding: 20px;
}

.product-category .box-image {
  width: 70%;
}

.product-category .box-text {
  background: #fff;
  color: #000;
  padding: 0;
}

.product-category .header-title {
  font-size: 1.5rem;
}

/* Responsive: Tablet */
@media only screen and (max-width: 850px) {
  .product-category .col-inner {
    border-radius: 20px;
  }

  .product-category .box {
    border-radius: 20px;
  }

  .product-category .box-image {
    border-radius: 20px 20px 0 0;
  }
}

/* Responsive: Mobile */
@media only screen and (max-width: 550px) {
  .product-category .col-inner {
    border-radius: 15px;
  }

  .product-category .box {
    border-radius: 15px;
  }

  .product-category .box-image {
    border-radius: 15px 15px 0 0;
  }
}

/* Product Category Page Styling */
.category-header-section {
  padding: 30px;
  margin-bottom: 40px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

.category-header-row {
  align-items: flex-start;
}

.category-description {
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

.download-catalogue-btn {
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.download-catalogue-btn:hover {
  background-color: #c01e16;
  color: #fff;
}

.download-catalogue-btn__icon {
  font-size: 18px;
}

.category-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.products-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 40px 0 20px;
  color: #333;
}

.category-sidebar {
  padding-left: 20px;
}

.category-sidebar-widget {
  margin-bottom: 30px;
}

.category-sidebar-title,
.category-sidebar .widget-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 3px solid var(--primary-color);
  color: #333;
}

.category-sidebar .product-categories-list,
.product-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-categories-list__item {
  margin-bottom: 8px;
}

.category-sidebar .product-categories-list li a,
.product-categories-list__link {
  color: #666;
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: color 0.3s;
}

.category-sidebar .product-categories-list li a:hover,
.category-sidebar .product-categories-list li a.active,
.product-categories-list__link:hover,
.product-categories-list__link.active {
  color: var(--primary-color);
}

/* Responsive: Tablet and Mobile */
@media only screen and (max-width: 850px) {
  .category-page-row {
    flex-direction: column;
  }

  .category-page-row .col.large-9,
  .category-page-row .col.large-3 {
    width: 100%;
  }

  .category-sidebar {
    padding-left: 0;
    margin-top: 30px;
  }

  .category-header-section .row {
    flex-direction: column;
  }

  .category-header-section .col.large-7,
  .category-header-section .col.large-5 {
    width: 100%;
  }
}

/* Hide WooCommerce Product Tabs */
.wc-tabs.product-tabs,
.tabs.wc-tabs.product-tabs {
  display: none !important;
}

/* Product Description Collapsible */
.woocommerce-Tabs-panel--description.description-collapsible {
  position: relative;
  transition: max-height 0.4s ease-in-out, padding-bottom 0.4s ease-in-out;
  padding-bottom: 0;
}

.woocommerce-Tabs-panel--description.description-collapsible.description-is-collapsed {
  max-height: 400px;
  overflow: hidden;
}

.woocommerce-Tabs-panel--description.description-collapsible.description-is-expanded {
  max-height: none;
  overflow: visible;
  padding-bottom: 60px;
}

.description-collapsible .description-gradient-overlay {
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 50%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.description-collapsible.description-is-expanded .description-gradient-overlay {
  opacity: 0;
  pointer-events: none;
}

.description-collapsible .description-toggle-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 8px 24px;
  margin: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.description-collapsible .description-toggle-btn:hover {
  background-color: #c01e16;
}

.description-collapsible .description-toggle-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Catalogue Download Button */
.catalogue-download-wrapper {
  margin-top: 15px;
}

.catalogue-download-btn {
  border: 1px solid var(--primary-color);
  background-color: var(--primary-color);
  color: #fff;
  padding: 5px 24px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
}

.catalogue-download-btn:hover {
  background-color: #c01e16;
  color: #fff;
}

.catalogue-download-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Product Shop */
.products .col-inner {
  border-radius: 20px;
}
.products .box-image {
  padding: 30px 20px 20px 20px;
}
.products a,
.product-small a {
  color: #000;
}

.widget {
  padding: 30px;
  margin-bottom: 40px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}
.widget .widget-title {
  margin-bottom: 15px;
  display: block;
}
.widget a {
  color: #000;
}
.widget img {
  display: none;
}
.widget ul.product_list_widget li {
  padding-left: 0;
  min-height: 0;
}

/* Báo giá Button Styles */
.bao-gia-btn {
  border: 1px solid var(--primary-color);
  background: rgba(217, 34, 0, 0.2);
  color: var(--primary-color);
  border-radius: 4px;
  padding: 5px 24px;
}

.bao-gia-btn:hover {
  background: rgba(217, 34, 0, 0.3);
  color: var(--primary-color);
}

.catalogue-download-wrapper {
  display: flex;
  align-items: center;
}

/* Tab Buttons Styling */
.tabbed-content .tab {
  display: inline-block;
  margin-right: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tabbed-content .tab:last-child {
  margin-right: 0;
}

/* Active Tab Button */
.tabbed-content .tab.active {
  border-radius: 100px;
  background: rgba(217, 34, 0, 0.15);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

/* Inactive Tab Buttons */
.tabbed-content .tab:not(.active) {
  border-radius: 100px;
  background: white;
  border: 1px solid #6c6c6c;
  color: black;
}

/* Hide Comment Section */
#respond.comment-respond {
  display: none !important;
}

/* Blog Post Detail Background */
#content.blog-wrapper.blog-single.page-wrapper {
  background-color: white;
}
