/* Custom CSS for Flatsome child theme. Add overrides below. */

:root {
  --color-primary: #e6c369;
  --color-secondary: #10263d;
  --color-success: #2e8b57;
  --color-alert: #b33a3a;
}

/* Enhance UX Builder buttons only */
.ux-section .button,
.ux-section button,
.ux-section input[type="submit"],
.ux-section .woocommerce a.button,
.ux-section .woocommerce button.button,
.ux-section .woocommerce input.button {
  border: 1px solid rgba(16, 38, 61, 0.5);
  border-radius: 14px;
  padding: 12px 24px;
  font-weight: 650;
  letter-spacing: 0.25px;
  background: linear-gradient(135deg, #10263d 0%, #163a59 45%, #e6c369 100%);
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(16, 38, 61, 0.25), 0 5px 15px rgba(230, 195, 105, 0.15);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.ux-section .button:hover,
.ux-section button:hover,
.ux-section input[type="submit"]:hover,
.ux-section .woocommerce a.button:hover,
.ux-section .woocommerce button.button:hover,
.ux-section .woocommerce input.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(16, 38, 61, 0.28), 0 8px 18px rgba(230, 195, 105, 0.2);
  filter: brightness(1.03);
}

.ux-section .button:active,
.ux-section button:active,
.ux-section input[type="submit"]:active,
.ux-section .woocommerce a.button:active,
.ux-section .woocommerce button.button:active,
.ux-section .woocommerce input.button:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(16, 38, 61, 0.22);
}

.ux-section .button.secondary,
.ux-section .woocommerce a.button.alt,
.ux-section .woocommerce button.button.alt,
.ux-section .woocommerce input.button.alt {
  background: linear-gradient(135deg, #e6c369 0%, #f0d58e 40%, #10263d 100%);
  color: #10263d !important;
  box-shadow: 0 10px 30px rgba(230, 195, 105, 0.2);
}

.ux-section .button.success {
  background: linear-gradient(135deg, var(--color-success) 0%, #247349 100%);
}

.ux-section .button.alert {
  background: linear-gradient(135deg, var(--color-alert) 0%, #8f2f2f 100%);
}

/* Header menu + dropdowns */
.header .nav > li > a,
.header-nav-main.nav > li > a {
  color: var(--color-secondary);
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 14px 12px;
}
.nav-dropdown li {
  display: block;
  margin: 10px 0;
  vertical-align: top;
}

.header .nav > li > a:hover,
.header .nav > li.current-menu-item > a,
.header-nav-main.nav > li:hover > a,
.header-nav-main.nav > li.current-menu-item > a {
  color: #000;
  background-color: rgba(230, 195, 105, 0.16);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-dropdown,
.nav-dropdown.nav-dropdown-default {
  background: #fdfbf6;
  border: 1px solid rgba(230, 195, 105, 0.6);
  box-shadow: 0 14px 40px rgba(16, 38, 61, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.nav-dropdown > li > a,
.nav-dropdown-default > li > a {
  color: var(--color-secondary);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(230, 195, 105, 0.28);
}

.nav-dropdown > li:last-child > a,
.nav-dropdown-default > li:last-child > a {
  border-bottom: none;
}

.nav-dropdown > li > a:hover,
.nav-dropdown-default > li > a:hover {
  background: linear-gradient(135deg, rgba(230, 195, 105, 0.2) 0%, rgba(16, 38, 61, 0.08) 100%);
  color: #000;
}

ul.footer-contact-list {
  list-style: none;
}
ul.footer-contact-list li {
    margin: 10px !important;
}
/* GSAP slide-up default state */
.gsap-slide-up {
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
}

/* Category grid cards */
.ux-cat-grid .cat-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(16, 38, 61, 0.1);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding: 12px 12px 16px;
  box-shadow: 0 10px 24px rgba(16, 38, 61, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ux-cat-grid .cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(16, 38, 61, 0.16);
}

.ux-cat-grid .cat-card__image {
  aspect-ratio: 4 / 3;
  background: #f9f6ef;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.ux-cat-grid .cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ux-cat-grid .cat-card__placeholder {
  width: 80%;
  height: 60%;
  background: linear-gradient(135deg, rgba(230, 195, 105, 0.3), rgba(16, 38, 61, 0.1));
  border-radius: 8px;
}

.ux-cat-grid .cat-card__title {
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.2px;
}

/* Product grid (ux_cat_products) styling similar to category cards */

/* Icon upload element */
.ux-icon-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ux-icon-upload--left {
  justify-content: flex-start;
}

.ux-icon-upload--center {
  justify-content: center;
}

.ux-icon-upload--right {
  justify-content: flex-end;
}

.ux-icon-upload__img {
  display: block;
}

button.scroll-for-more.z-5.icon.absolute.bottom.h-center {
  color: white;
  opacity: 1;
}

/* BĐS meta in product loop */
.bds-card-meta {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 14px;
}

.bds-card-meta .bds-meta__item {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 8px;
  align-items: center;
}

.bds-card-meta .bds-meta__item i {
  color: var(--color-primary);
}

.bds-card-meta .bds-meta__item span {
  font-weight: 600;
  color: var(--color-secondary);
}

.bds-card-meta .bds-meta__item strong {
  font-weight: 700;
  color: #000;
}

.bds-single-meta {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 14px;
}

.bds-single-meta .bds-meta__item {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 8px;
  align-items: center;
}

.bds-single-meta .bds-meta__item i {
  color: var(--color-primary);
}

.bds-single-meta .bds-meta__item span {
  font-weight: 600;
  color: var(--color-secondary);
}

.bds-single-meta .bds-meta__item strong {
  font-weight: 700;
  color: #000;
}

.my-re-meta {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
}

.my-re-meta .meta-price {
  font-weight: 700;
  color: var(--color-secondary);
}

.my-re-meta .meta-area,
.my-re-meta .meta-loc,
.my-re-meta .meta-road {
  color: #222;
}

/* ACF rows: price + area on one line, location below */
.my-re-meta--card,
.my-re-meta--single {
  gap: 4px;
}

.my-re-meta .meta-row {
  padding: 2px 0;
}

.my-re-meta .meta-row.meta-price,
.my-re-meta .meta-row.meta-area {
  display: inline-block;
  margin-right: 12px;
}

.my-re-meta .meta-row.meta-loc,
.my-re-meta .meta-row.meta-road {
  display: block;
}

/* Card styling to match real-estate look */
.product-small.box {
  background: #fff;
  border: 1px solid rgba(230, 195, 105, 0.4); /* dùng màu primary */
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(16, 38, 61, 0.08);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-small.box:hover {
  transform: translateY(-3px);
  border-color: #e6c369;
  box-shadow: 0 16px 34px rgba(16, 38, 61, 0.15);
}

.product-small.box .box-image img {
  border-radius: 8px;
}

.product-small.box .box-text {
  padding: 12px 14px 14px;
}

.product-small.box .box-text .product-title {
  text-align: left;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.2em;
}

/* Meta rows with icons */
.my-re-meta .meta-row {
  position: relative;
  padding-left: 24px;
}

.my-re-meta .meta-row:before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-primary);
}

.my-re-meta .meta-price:before {
  content: "\f02b"; /* tag */
}

.my-re-meta .meta-area:before {
  content: "\f5cb"; /* vector-square */
}

.my-re-meta .meta-loc:before {
  content: "\f3c5"; /* location-dot */
}

.my-re-meta .meta-road:before {
  content: "\f018"; /* road */
}

.price-wrapper {
  margin-bottom: 4px;
}

.my-re-meta--card {
  text-align: left;
}

.my-re-meta--single {
  margin-top: 12px;
}

/* Blog single extra blocks */
.post-extra-footer {
  margin: 28px 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(16, 38, 61, 0.12);
  border-radius: 12px;
  background: #fdfbf6;
  box-shadow: 0 8px 20px rgba(16, 38, 61, 0.08);
}

.post-extra-footer strong {
  color: var(--color-secondary);
}

.post-categories-list,
.post-related {
  margin: 0 0 8px;
}

.post-related ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.post-related li {
  margin: 4px 0;
}

.hot-1 .box-image {
  padding-left: 10px;
}
.product_meta>span {
  border-top: 1px dotted #ddd;
  padding: 5px 0;
  display: flex;
  align-items: center;
}
.call-to-action .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e6c369 0%, #d9b258 100%);
  color: #fff;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid rgba(230, 195, 105, 0.8);
  box-shadow: 0 10px 24px rgba(16, 38, 61, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
  font-weight: 600;
}
h1.product-title.product_title.entry-title {
  font-size: 24px;
}
.call-to-action .button:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(16, 38, 61, 0.18);
}
span.posted_in a {
  background: #e6c369;
  padding: 3px 8px;
  border-radius: 10px;
  color: #fff;
}
span.tagged_as a {
  background: #e6c369;
  padding: 3px 8px;
  border-radius: 10px;
  color: #fff;
}
span.tagged_as{

  display: flex;

}
.section6 .tabbed-content ul li a{    font-size: 14px;
  background: #E0E0E0;
  padding: 0 20px;
  border-radius: 20px;
  color: #333333;}.section6 .tabbed-content ul li{margin:0 5px}
.section6 .tabbed-content ul li.active a{background:#e6c369; color:white}
.section6 .tabbed-content .nav{margin-bottom:8px}
.list-post .post-item .col-inner{box-shadow: 0px 2px 20px rgba(105, 58, 43, 0.2);}
.list-post .post-item .box-text{padding:15px}
.section6 .large-12{padding-bottom:0}
.section6 .tabbed-content ul li a:hover{background:#e6c369;color:white}
.list-post .post-item .post-title{font-size: 18px; margin-bottom:10px}
.list-post .post-item .post-title:hover, .blog-archive .post-item .post-title:hover{color:#e6c369}
.wp-block-separator {
  border: none;
  border-top: 0 !important;
}
span.byline {
  text-transform: capitalize;
  font-size: 14px;
}
span.posted-on {
  text-transform: none;
  font-size: 14px;
}
.post-categories-list a {
  padding: 0px 15px;
  background: #e6c369;
  color: white;
  border-radius: 15px;
}

/* Archive banner (blog & product categories) */
.archive-banner {
  position: relative;
  height: 500px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.archive-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.archive-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.72);
  transform: scale(1.02);
  z-index: 0;
}

.archive-banner__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 24px clamp(16px, 6vw, 60px);
}

.archive-banner__breadcrumb {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
}

/* Rank Math breadcrumb inside banner */
.archive-banner__breadcrumb a {
  color: #fff;
  font-weight: 700;
}

.archive-banner__title {
  color: #fff;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-align: center;
  margin: 0;
  text-transform: uppercase;
}

/* Blog post list cards */
.post-item .box {
  background: #fff;
  border: 1px solid rgba(16, 38, 61, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 38, 61, 0.1);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.post-item .box:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 14px 30px rgba(16, 38, 61, 0.16);
}

.post-item .box-image img {
  border-radius: 10px;
}

.post-item .box-text {
  padding: 14px 16px 18px;
}

.post-item .post-title {
  font-size: 18px;
  font-weight: 750;
  color: var(--color-secondary);
  line-height: 1.35;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  position: relative;
}

.post-item .post-title.is-large {
  max-width: 100%;
  display: inline-block;
}

.post-item .post-title.is-large::after {
  content: attr(data-trimmed);
  display: none;
}

/* Truncate via CSS clamp for most cases */
.post-item .post-title.is-large {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-item .post-title a {
  color: inherit;
}

.post-item .post-title a:hover {
  color: #000;
}

.post-item .is-divider {
  margin: 10px 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border: 0;
}

.post-item .from_the_blog_excerpt {
  font-size: 14px;
  color: #39485c;
  line-height: 1.55;
  max-height: 4.5em;
  overflow: hidden;
}

/* Child product category grid */
.child-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 16px 0 24px;
}

.child-cat-card {
  display: block;
  position: relative;
  background: #fff;
  border: 1px solid rgba(16, 38, 61, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(16, 38, 61, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-align: center;
  color: inherit;
}

.child-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: 0 14px 30px rgba(16, 38, 61, 0.14);
}

.child-cat-card__image {
  aspect-ratio: 4 / 3;
  background: #f9f6ef;
  overflow: hidden;
}

.child-cat-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.child-cat-card__title {
  padding: 10px 12px 12px;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.2px;
}

.child-cat-card__count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  font-size: 13px;
  color: #fff;
  background: rgba(16, 38, 61, 0.82);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.child-cat-card:hover .child-cat-card__count {
  opacity: 1;
  transform: translateY(0);
}

.child-cat-count {
  margin: 6px 0 18px;
  font-weight: 700;
  color: var(--color-secondary);
}
