﻿/* ═══════════════════════════════════════════════════════════
   THỊNH PHÁT — FRONT PAGE STYLES (merged, no duplicates)
   Màu chủ đạo: Navy #003399 | Accent cam #ffff00 | Gold #ffff00
═══════════════════════════════════════════════════════════ */
:root {
  --tp-primary:    #003399;
  --tp-primary-d:  #002277;
  --tp-accent:     #ffff00;
  --tp-accent-d:   #e6e600;
  --tp-gold:       #ffff00;
  --tp-text:       #001a66;
  --tp-text-light: #4a5a8e;
  --tp-bg:         #f0f4ff;
  --tp-white:      #ffffff;
  --tp-border:     #ccd6f6;
  --tp-shadow:     0 4px 24px rgba(0,51,153,.10);
  --tp-shadow-lg:  0 12px 48px rgba(0,51,153,.18);
  --tp-radius:     12px;
  --tp-radius-lg:  20px;
  --tp-transition: all .3s cubic-bezier(.4,0,.2,1);
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.tp-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.tp-section { padding: 80px 0; }

.tp-section__header { text-align: center; margin-bottom: 48px; }
.tp-section__header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--tp-primary);
  margin-bottom: 12px; line-height: 1.2;
}
.tp-section__header p { color: var(--tp-text-light); font-size: 1rem; max-width: 560px; margin: 0 auto; }

.tp-section__tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--tp-accent), var(--tp-gold));
  color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 10px;
}
.tp-section__tag--white { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); }
.tp-section__more { text-align: center; margin-top: 40px; }

/* ── BUTTONS ── */
.tp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px;
  font-weight: 700; font-size: .9rem;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: var(--tp-transition); white-space: nowrap;
}
.tp-btn--primary { background: var(--tp-accent); color: #fff; border-color: var(--tp-accent); }
.tp-btn--primary:hover { background: var(--tp-accent-d); border-color: var(--tp-accent-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,0,.35); }
.tp-btn--gold { background: linear-gradient(135deg, var(--tp-gold), var(--tp-accent)); color: #fff; border-color: transparent; }
.tp-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,0,.4); }
.tp-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.tp-btn--outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.tp-btn--outline-dark { background: transparent; color: var(--tp-primary); border-color: var(--tp-primary); }
.tp-btn--outline-dark:hover { background: var(--tp-primary); color: #fff; }
.tp-btn--lg { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }
.tp-btn--sm { padding: 8px 16px; font-size: .8rem; }
.tp-btn--full { width: 100%; justify-content: center; }
.tp-btn--icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 8px; background: transparent; color: var(--tp-primary); border: 1.5px solid var(--tp-border); flex-shrink: 0; }
.tp-btn--icon:hover { background: var(--tp-primary); color: #fff; border-color: var(--tp-primary); }

/* ── HERO ── */
.tp-hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden; margin-top: 0;
}
.tp-hero__slides { position: absolute; inset: 0; }
.tp-hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.tp-hero__slide.active { opacity: 1; }
.tp-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(0,20,80,.82) 0%, rgba(0,20,80,.55) 50%, rgba(0,20,80,.15) 100%);
}
.tp-hero .tp-container { position: relative; z-index: 2; padding-top: 160px; padding-bottom: 80px; }
.tp-hero__content { max-width: 640px; }
.tp-hero__tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,0,.18); border: 1px solid rgba(255,255,0,.45);
  color: var(--tp-gold); font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 16px;
}
.tp-hero__title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 18px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.tp-hero__title span { color: var(--tp-gold); }
.tp-hero__sub { color: rgba(255,255,255,.88); font-size: 1.05rem; line-height: 1.75; margin-bottom: 32px; }
.tp-hero__btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.tp-hero__stats { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); }
.tp-hero__stat { text-align: center; }
.tp-hero__stat strong { display: block; font-size: 1.7rem; font-weight: 900; color: var(--tp-gold); line-height: 1; }
.tp-hero__stat span { font-size: .78rem; color: rgba(255,255,255,.72); margin-top: 4px; display: block; }
.tp-hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3; color: rgba(255,255,255,.55); font-size: 1.2rem;
  animation: tp-bounce 2s infinite;
}
@keyframes tp-bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
@media (max-width: 768px) {
  .tp-hero { min-height: 85vh; }
  .tp-hero .tp-container { padding-top: 100px; padding-bottom: 60px; }
  .tp-hero__btns { flex-direction: column; }
  .tp-hero__stats { gap: 20px; }
  .tp-hero__stat strong { font-size: 1.3rem; }
}

/* ── FLOAT BAR ── */
.tp-floatbar { background: var(--tp-primary); padding: 0; position: relative; z-index: 10; box-shadow: 0 4px 20px rgba(0,51,153,.25); }
.tp-floatbar__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.tp-floatbar__item { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-right: 1px solid rgba(255,255,255,.1); transition: var(--tp-transition); }
.tp-floatbar__item:last-child { border-right: none; }
.tp-floatbar__item:hover { background: rgba(255,255,255,.06); }
.tp-floatbar__item > i { font-size: 1.6rem; color: var(--tp-gold); flex-shrink: 0; }
.tp-floatbar__item strong { display: block; color: #fff; font-size: .88rem; font-weight: 700; }
.tp-floatbar__item span { color: rgba(255,255,255,.65); font-size: .75rem; }
@media (max-width: 768px) { .tp-floatbar__inner { grid-template-columns: repeat(2, 1fr); } .tp-floatbar__item { padding: 14px 16px; } }
@media (max-width: 480px) { .tp-floatbar__inner { grid-template-columns: 1fr; } }

/* ── CATEGORY SLIDER ── */
.tp-categories { background: #f0f4f9; }
.tp-catslider { position: relative; overflow: hidden; padding-bottom: 48px; }
.tp-catslider__track { display: flex; gap: 24px; transition: transform .45s cubic-bezier(.4,0,.2,1); will-change: transform; }
.tp-catslide {
  flex: 0 0 calc((100% - 48px) / 3); min-width: 0;
  text-decoration: none; border-radius: 18px; overflow: hidden;
  background: #fff; box-shadow: 0 2px 16px rgba(0,51,153,.08);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease; position: relative;
}
.tp-catslide:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,51,153,.18); }
.tp-catslide__img { position: relative; height: 220px; overflow: hidden; background: #ccd6f6; }
.tp-catslide__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.tp-catslide:hover .tp-catslide__img img { transform: scale(1.07); }
.tp-catslide__noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #b0bec5; }
.tp-catslide__gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,20,80,.45) 100%); }
.tp-catslide__badge { position: absolute; top: 14px; right: 14px; background: var(--tp-accent); color: #fff; font-size: .7rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; z-index: 2; }
.tp-catslide__body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; gap: 6px; border-top: 3px solid transparent; transition: border-color .3s ease; }
.tp-catslide:hover .tp-catslide__body { border-top-color: var(--tp-accent); }
.tp-catslide__body h3 { font-size: 1.05rem; font-weight: 800; color: var(--tp-primary); line-height: 1.3; margin: 0; }
.tp-catslide__body p { font-size: .8rem; color: var(--tp-text-light); line-height: 1.55; margin: 0; flex: 1; }
.tp-catslide__btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .82rem; font-weight: 700; color: var(--tp-accent); transition: gap .25s ease; }
.tp-catslide:hover .tp-catslide__btn { gap: 10px; }

/* Slider nav — shared style for both cat & product sliders */
.tp-catslider__prev, .tp-catslider__next,
.tp-prodslider__prev, .tp-prodslider__next {
  position: absolute; z-index: 10;
  border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--tp-primary);
  box-shadow: 0 4px 16px rgba(0,51,153,.18);
  transition: background .25s, color .25s, transform .25s;
}
.tp-catslider__prev:hover, .tp-catslider__next:hover,
.tp-prodslider__prev:hover, .tp-prodslider__next:hover { background: var(--tp-accent); color: #fff; transform: scale(1.1); }
.tp-catslider__prev:disabled, .tp-catslider__next:disabled,
.tp-prodslider__prev:disabled, .tp-prodslider__next:disabled { opacity: .35; pointer-events: none; }

.tp-catslider__prev, .tp-catslider__next { width: 44px; height: 44px; font-size: .95rem; top: calc(220px / 2 - 22px); }
.tp-catslider__prev { left: -16px; }
.tp-catslider__next { right: -16px; }

/* Dots — shared */
.tp-catslider__dots, .tp-prodslider__dots {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px; padding-top: 10px;
}
.tp-catslider__dot, .tp-prodslider__dot {
  border-radius: 50%; border: none; background: #c5cfe0;
  cursor: pointer; transition: background .25s, width .25s, border-radius .25s; padding: 0;
}
.tp-catslider__dot { width: 8px; height: 8px; }
.tp-prodslider__dot { width: 7px; height: 7px; }
.tp-catslider__dot.active { background: var(--tp-accent); width: 24px; border-radius: 4px; }
.tp-prodslider__dot.active { background: var(--tp-accent); width: 22px; border-radius: 4px; }

@media (max-width: 900px) { .tp-catslide { flex: 0 0 calc((100% - 24px) / 2); } }
@media (max-width: 560px) { .tp-catslide { flex: 0 0 85%; } .tp-catslider__prev { left: 0; } .tp-catslider__next { right: 0; } }

/* ── PRODUCTS BY CATEGORY ── */
.tp-catproducts { padding: 64px 0; }
.tp-catproducts--light { background: #f0f4f9; }
.tp-catproducts--white { background: #fff; }
.tp-catproducts__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.tp-catproducts__title-wrap { display: flex; align-items: center; gap: 18px; }
.tp-catproducts__icon { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; flex-shrink: 0; box-shadow: 0 4px 16px rgba(0,51,153,.15); }
.tp-catproducts__icon img { width: 100%; height: 100%; object-fit: cover; }
.tp-catproducts__icon--placeholder { background: linear-gradient(135deg, var(--tp-primary), var(--tp-accent)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; }
.tp-catproducts__count { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--tp-accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.tp-catproducts__title-wrap h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 800; color: var(--tp-primary); margin: 0 0 4px; line-height: 1.2; }
.tp-catproducts__title-wrap p { font-size: .85rem; color: var(--tp-text-light); margin: 0; max-width: 480px; }
.tp-catproducts__viewall { flex-shrink: 0; align-self: center; white-space: nowrap; }

/* Product slider */
.tp-prodslider {
  position: relative;
  padding-bottom: 44px;
  /* KHÔNG overflow:hidden ở đây — để nút prev/next hiện ra ngoài */
}
.tp-prodslider__viewport {
  overflow: hidden; /* overflow chỉ trên viewport, không phải toàn bộ wrapper */
}
.tp-prodslider__track { display: flex; gap: 20px; transition: transform .42s cubic-bezier(.4,0,.2,1); will-change: transform; }
.tp-prodslide {
  flex: 0 0 calc((100% - 60px) / 4); min-width: 0;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,51,153,.08); border: 1.5px solid var(--tp-border);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tp-catproducts--white .tp-prodslide { background: #f0f4ff; }
.tp-prodslide:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(0,51,153,.16); border-color: var(--tp-accent); }
.tp-prodslide__img-wrap { display: block; position: relative; height: 200px; overflow: hidden; background: #e8eeff; }
.tp-prodslide__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.tp-prodslide:hover .tp-prodslide__img-wrap img { transform: scale(1.07); }
.tp-prodslide__noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #c5cfe0; font-size: 2.5rem; }
.tp-prodslide__badge { position: absolute; top: 10px; left: 10px; font-size: .68rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; z-index: 2; }
.tp-prodslide__badge--sale { background: #e53e3e; color: #fff; }
.tp-prodslide__badge--out  { background: #718096; color: #fff; }
.tp-prodslide__hover-overlay { position: absolute; inset: 0; background: rgba(0,51,153,.55); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease; }
.tp-prodslide:hover .tp-prodslide__hover-overlay { opacity: 1; }
.tp-prodslide__hover-overlay span { color: #fff; font-size: .85rem; font-weight: 700; display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,.15); padding: 8px 18px; border-radius: 24px; border: 1px solid rgba(255,255,255,.4); }
.tp-prodslide__body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tp-prodslide__body h3 { font-size: .88rem; font-weight: 700; color: var(--tp-text); line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-prodslide__body h3 a { color: inherit; text-decoration: none; }
.tp-prodslide__body h3 a:hover { color: var(--tp-accent); }
.tp-prodslide__price { font-weight: 800; font-size: .95rem; color: var(--tp-accent); margin-top: auto; }
.tp-prodslide__price .woocommerce-Price-amount { color: var(--tp-accent); }
.tp-prodslide__price del { color: #a0aec0; font-size: .8rem; font-weight: 400; margin-right: 4px; }
.tp-prodslide__actions { display: flex; gap: 8px; margin-top: 4px; }
.tp-prodslide__actions .tp-btn--primary { flex: 1; justify-content: center; }

.tp-prodslider__prev, .tp-prodslider__next { width: 40px; height: 40px; font-size: .9rem; top: calc(200px / 2 - 20px); }
.tp-prodslider__prev { left: -20px; }
.tp-prodslider__next { right: -20px; }

.tp-products__empty { text-align: center; padding: 60px 20px; color: var(--tp-text-light); }
.tp-products__empty i { font-size: 3rem; margin-bottom: 16px; display: block; opacity: .4; }

@media (max-width: 1024px) { .tp-prodslide { flex: 0 0 calc((100% - 40px) / 3); } }

@media (max-width: 768px) {
  .tp-prodslide { flex: 0 0 calc((100% - 20px) / 2); }

  /* Header danh mục trên mobile — style như ảnh mẫu */
  .tp-catproducts__header {
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
    background: var(--tp-primary);
    border-radius: 6px;
    padding: 12px 16px;
    border-bottom: 3px solid #e85d04;
  }
  .tp-catproducts__title-wrap {
    align-items: center;
    gap: 12px;
    flex: 1;
  }
  .tp-catproducts__icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    flex-shrink: 0;
    background: rgba(255,255,255,.15);
    box-shadow: none;
  }
  .tp-catproducts__icon img {
    filter: brightness(0) invert(1);
  }
  .tp-catproducts__icon--placeholder {
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 1rem;
  }
  .tp-catproducts__count {
    display: none; /* ẩn số sản phẩm trên mobile */
  }
  .tp-catproducts__title-wrap h2 {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0;
  }
  .tp-catproducts__title-wrap p {
    display: none;
  }
  /* Ẩn nút Xem tất cả trên mobile */
  .tp-catproducts__viewall {
    display: none;
  }

  /* Ẩn slider, hiện grid 2 cột */
  .tp-prodslider { display: none; }
  .tp-prodgrid-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (min-width: 769px) {
  /* Ẩn grid mobile trên desktop */
  .tp-prodgrid-mobile { display: none; }
}

@media (max-width: 480px) {
  /* Section padding gọn hơn */
  .tp-catproducts { padding: 32px 0; }

  /* Header danh mục */
  .tp-catproducts__header {
    gap: 10px;
    margin-bottom: 14px;
  }
  .tp-catproducts__title-wrap {
    gap: 10px;
  }
  .tp-catproducts__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .tp-catproducts__icon--placeholder {
    font-size: 1.1rem;
  }
  .tp-catproducts__title-wrap h2 {
    font-size: 1rem;
    line-height: 1.2;
  }
  .tp-catproducts__count {
    font-size: .65rem;
    margin-bottom: 1px;
  }

  /* Grid mobile: 2 cột */
  .tp-prodgrid-mobile {
    gap: 10px;
  }

  /* Card trong grid mobile */
  .tp-prodgrid-mobile .tp-prodslide {
    flex: none;
    width: 100%;
    border-radius: 12px;
  }
  .tp-prodgrid-mobile .tp-prodslide__img-wrap {
    height: 160px;
  }
  .tp-prodgrid-mobile .tp-prodslide__body {
    padding: 10px 10px 12px;
    gap: 6px;
  }
  .tp-prodgrid-mobile .tp-prodslide__body h3 {
    font-size: .8rem;
    -webkit-line-clamp: 2;
  }
  .tp-prodgrid-mobile .tp-prodslide__price {
    font-size: .82rem;
  }
  .tp-prodgrid-mobile .tp-prodslide__actions {
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
  }
  .tp-prodgrid-mobile .tp-prodslide__actions .tp-btn--primary {
    width: 100%;
    justify-content: center;
    padding: 9px 10px;
    font-size: .78rem;
    border-radius: 8px;
    background: #ffff00;
    color: #003399;
    border-color: #ffff00;
  }
  .tp-prodgrid-mobile .tp-prodslide__actions .tp-btn--icon {
    display: none;
  }
}

/* ── WHY SECTION ── */
.tp-why { background: var(--tp-primary); position: relative; overflow: hidden; }
.tp-why__bg {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.tp-why__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.tp-why__left h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.tp-why__left p { color: rgba(255,255,255,.75); font-size: .95rem; line-height: 1.7; margin-bottom: 28px; }
.tp-why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tp-why-item { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--tp-radius); padding: 24px 20px; text-align: center; transition: var(--tp-transition); }
.tp-why-item:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.tp-why-item__icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--tp-accent), var(--tp-gold)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.2rem; color: #fff; }
.tp-why-item h4 { color: #fff; font-size: .88rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.tp-why-item p { color: rgba(255,255,255,.6); font-size: .78rem; line-height: 1.5; }
@media (max-width: 1024px) { .tp-why__inner { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 768px) { .tp-why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tp-why__grid { grid-template-columns: 1fr; } }

/* ── CÔNG TRÌNH TIÊU BIỂU ── */
.tp-projects { background: #f0f4f9; }
.tp-projects__tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.tp-projects__tab { padding: 8px 20px; border-radius: 24px; border: 1.5px solid var(--tp-border); background: #fff; color: var(--tp-text-light); font-size: .82rem; font-weight: 600; cursor: pointer; transition: var(--tp-transition); }
.tp-projects__tab:hover, .tp-projects__tab.active { background: var(--tp-primary); border-color: var(--tp-primary); color: #fff; }
.tp-projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tp-projects__empty { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--tp-text-light); }
.tp-projects__empty i { font-size: 3rem; opacity: .3; display: block; margin-bottom: 16px; }

.tp-ct-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,51,153,.08); border: 1.5px solid var(--tp-border); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; display: flex; flex-direction: column; }
.tp-ct-card:hover { transform: translateY(-6px); box-shadow: 0 18px 48px rgba(0,51,153,.16); border-color: var(--tp-accent); }
.tp-ct-card__img-wrap { position: relative; height: 230px; overflow: hidden; background: #ccd6f6; }
.tp-ct-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.tp-ct-card:hover .tp-ct-card__img-wrap img { transform: scale(1.06); }
.tp-ct-card__noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #b0bec5; font-size: 3rem; }
.tp-ct-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,20,80,.85) 0%, rgba(0,20,80,.2) 60%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; opacity: 0; transition: opacity .35s ease; }
.tp-ct-card:hover .tp-ct-card__overlay { opacity: 1; }
.tp-ct-card__overlay-btn { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: .82rem; font-weight: 700; padding: 7px 16px; border-radius: 24px; text-decoration: none; align-self: flex-start; margin-bottom: 10px; transition: background .25s; }
.tp-ct-card__overlay-btn:hover { background: rgba(255,255,255,.28); }
.tp-ct-card__gallery-preview { display: flex; gap: 6px; align-items: center; }
.tp-ct-card__gallery-preview img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 2px solid rgba(255,255,255,.5); }
.tp-ct-card__gallery-more { background: rgba(255,255,255,.2); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.3); }
.tp-ct-card__badge { position: absolute; font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; z-index: 2; }
.tp-ct-card__badge--hot { top: 12px; left: 12px; background: var(--tp-accent); color: #fff; }
.tp-ct-card__badge--cat { top: 12px; right: 12px; background: rgba(0,51,153,.85); color: #fff; }
.tp-ct-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.tp-ct-card__body h3 { font-size: 1rem; font-weight: 800; color: var(--tp-primary); line-height: 1.35; margin: 0; }
.tp-ct-card__body h3 a { color: inherit; text-decoration: none; }
.tp-ct-card__body h3 a:hover { color: var(--tp-accent); }
.tp-ct-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.tp-ct-card__meta-item { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--tp-text-light); }
.tp-ct-card__meta-item i { color: var(--tp-accent); font-size: .75rem; flex-shrink: 0; width: 14px; }
.tp-ct-card__quote { font-size: .8rem; color: var(--tp-text-light); font-style: italic; line-height: 1.6; padding: 10px 14px; background: #f0f4ff; border-left: 3px solid var(--tp-accent); border-radius: 0 8px 8px 0; margin: 0; }
.tp-ct-card__quote .fa-quote-left { color: var(--tp-accent); margin-right: 6px; font-size: .75rem; }
.tp-ct-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--tp-border); }
.tp-ct-card__price { font-size: .82rem; font-weight: 700; color: var(--tp-primary); display: flex; align-items: center; gap: 5px; }
.tp-ct-card__price i { color: var(--tp-accent); }
@media (max-width: 900px) { .tp-projects__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tp-projects__grid { grid-template-columns: 1fr; } }

/* ── CTA BANNER ── */
.tp-cta-banner { position: relative; padding: 80px 0; overflow: hidden; }
.tp-cta-banner__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; }
.tp-cta-banner__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,20,80,.88), rgba(255,255,0,.7)); }
.tp-cta-banner__inner { position: relative; z-index: 1; text-align: center; max-width: 700px; margin: 0 auto; }
.tp-cta-banner__inner h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; color: #fff; margin-bottom: 14px; }
.tp-cta-banner__inner p { color: rgba(255,255,255,.85); font-size: 1rem; line-height: 1.7; margin-bottom: 28px; }
.tp-cta-banner__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── REVIEWS ── */
.tp-reviews {
    background: #f0f4f9;
}
.tp-reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tp-review-card {
    background: #ffffff;
    border-radius: var(--tp-radius-lg);
    padding: 28px;
    border: 1px solid var(--tp-border);
    transition: var(--tp-transition);
    position: relative;
}
.tp-review-card::before { content: '\201C'; position: absolute; top: 16px; right: 24px; font-size: 5rem; color: var(--tp-accent); opacity: .12; font-family: Georgia, serif; line-height: 1; }
.tp-review-card:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow-lg); border-color: var(--tp-accent); }
.tp-review-card__stars { color: var(--tp-gold); font-size: .9rem; margin-bottom: 14px; display: flex; gap: 3px; }
.tp-review-card blockquote { font-size: .88rem; color: var(--tp-text); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.tp-review-card__author { display: flex; align-items: center; gap: 12px; }
.tp-review-card__avatar { width: 44px; height: 44px; background: linear-gradient(135deg, var(--tp-primary), var(--tp-accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; flex-shrink: 0; }
.tp-review-card__author strong { display: block; font-size: .88rem; color: var(--tp-primary); font-weight: 700; }
.tp-review-card__author span { font-size: .75rem; color: var(--tp-text-light); display: flex; align-items: center; gap: 4px; }
@media (max-width: 768px) { .tp-reviews__grid { grid-template-columns: 1fr; } }

/* ── CONTACT & FORM ── */
.tp-contact { background: var(--tp-bg); }
.tp-contact__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.tp-contact__info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: var(--tp-primary); line-height: 1.2; margin-bottom: 14px; }
.tp-contact__info > p { color: var(--tp-text-light); font-size: .95rem; line-height: 1.7; margin-bottom: 28px; }
.tp-contact__list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.tp-contact__list li { display: flex; align-items: flex-start; gap: 14px; }
.tp-contact__icon { width: 42px; height: 42px; background: linear-gradient(135deg, var(--tp-primary), var(--tp-accent)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .95rem; flex-shrink: 0; }
.tp-contact__list strong { display: block; font-size: .8rem; color: var(--tp-text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.tp-contact__list a, .tp-contact__list span { font-size: .92rem; color: var(--tp-text); text-decoration: none; font-weight: 600; }
.tp-contact__list a:hover { color: var(--tp-accent); }
.tp-contact__benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tp-contact__benefit { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--tp-text); font-weight: 600; }
.tp-contact__benefit i { color: var(--tp-accent); }

.tp-form { background: #fff; border-radius: var(--tp-radius-lg); padding: 36px; box-shadow: var(--tp-shadow-lg); border: 1px solid var(--tp-border); }
.tp-form h3 { font-size: 1.2rem; font-weight: 800; color: var(--tp-primary); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.tp-form h3 i { color: var(--tp-accent); }
.tp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tp-form__field { margin-bottom: 16px; }
.tp-form__field label { display: block; font-size: .8rem; font-weight: 700; color: var(--tp-text); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.tp-form__field input,
.tp-form__field select,
.tp-form__field textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--tp-border); border-radius: 8px;
  font-size: .9rem; color: var(--tp-text); background: var(--tp-bg);
  transition: var(--tp-transition); outline: none; font-family: inherit;
}
.tp-form__field input:focus,
.tp-form__field select:focus,
.tp-form__field textarea:focus { border-color: var(--tp-accent); background: #fff; box-shadow: 0 0 0 3px rgba(255,255,0,.12); }
.tp-form__field textarea { resize: vertical; min-height: 80px; }
.tp-form__msg { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: .85rem; font-weight: 600; }
.tp-form__msg.success { background: #d4edda; color: #155724; }
.tp-form__msg.error   { background: #f8d7da; color: #721c24; }
.tp-form__note { text-align: center; font-size: .75rem; color: var(--tp-text-light); margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.tp-form__note i { color: var(--tp-accent); }

@media (max-width: 1024px) { .tp-contact__inner { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .tp-form__row { grid-template-columns: 1fr; } .tp-form { padding: 24px 18px; } .tp-contact__benefits { grid-template-columns: 1fr; } }

/* ── GLOBAL RESPONSIVE ── */
@media (max-width: 768px) {
  .tp-section { padding: 56px 0; }
}

/* ── TIN TỨC ── */
.tp-news { background: #fff; }

.tp-news__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Bài nổi bật */
.tp-news-featured {
  display: flex; flex-direction: column;
  text-decoration: none;
  border-radius: 20px; overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--tp-border);
  box-shadow: var(--tp-shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  height: 100%;
}
.tp-news-featured:hover {
  transform: translateY(-5px);
  box-shadow: var(--tp-shadow-lg);
  border-color: var(--tp-primary);
}
.tp-news-featured__img {
  position: relative; height: 280px; overflow: hidden; background: #e8eeff;
}
.tp-news-featured__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease; display: block;
}
.tp-news-featured:hover .tp-news-featured__img img { transform: scale(1.05); }
.tp-news-featured__noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: #ccd6f6;
}
.tp-news-featured__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,20,80,.5) 0%, transparent 60%);
}
.tp-news-featured__cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--tp-accent); color: var(--tp-primary);
  font-size: .7rem; font-weight: 800;
  padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .06em;
}
.tp-news-featured__body {
  padding: 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 10px;
}
.tp-news-featured__meta {
  display: flex; gap: 14px; font-size: .75rem; color: var(--tp-text-light);
}
.tp-news-featured__meta span { display: flex; align-items: center; gap: 5px; }
.tp-news-featured__meta i { color: var(--tp-primary); font-size: .7rem; }
.tp-news-featured__body h3 {
  font-size: 1.15rem; font-weight: 800; color: var(--tp-primary);
  line-height: 1.35; margin: 0;
}
.tp-news-featured__body p {
  font-size: .88rem; color: var(--tp-text-light);
  line-height: 1.7; flex: 1; margin: 0;
}
.tp-news-featured__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 700; color: var(--tp-primary);
  margin-top: 4px; transition: gap .25s ease;
}
.tp-news-featured:hover .tp-news-featured__link { gap: 10px; }

/* Danh sách 3 bài nhỏ */
.tp-news-list {
  display: flex; flex-direction: column; gap: 16px;
}
.tp-news-item {
  display: flex; gap: 14px; align-items: flex-start;
  text-decoration: none;
  background: #fff; border-radius: 14px; padding: 14px;
  border: 1.5px solid var(--tp-border);
  box-shadow: 0 2px 10px rgba(0,51,153,.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.tp-news-item:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 28px rgba(0,51,153,.13);
  border-color: var(--tp-primary);
}
.tp-news-item__img {
  width: 90px; height: 80px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden; background: #e8eeff;
}
.tp-news-item__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease; display: block;
}
.tp-news-item:hover .tp-news-item__img img { transform: scale(1.08); }
.tp-news-item__noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #ccd6f6;
}
.tp-news-item__body { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.tp-news-item__cat {
  font-size: .68rem; font-weight: 800; color: var(--tp-primary);
  text-transform: uppercase; letter-spacing: .06em;
  background: #e8eeff; padding: 2px 8px; border-radius: 20px;
  display: inline-block; align-self: flex-start;
}
.tp-news-item__body h4 {
  font-size: .88rem; font-weight: 700; color: var(--tp-primary);
  line-height: 1.4; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tp-news-item__meta {
  display: flex; gap: 10px; font-size: .72rem; color: var(--tp-text-light);
  margin-top: 2px;
}
.tp-news-item__meta span { display: flex; align-items: center; gap: 4px; }
.tp-news-item__meta i { color: var(--tp-primary); font-size: .68rem; }

/* Responsive */
@media (max-width: 900px) {
  .tp-news__grid { grid-template-columns: 1fr; }
  .tp-news-featured__img { height: 220px; }
  .tp-news-list { flex-direction: row; flex-wrap: wrap; }
  .tp-news-item { flex: 1 1 calc(50% - 8px); }
}
@media (max-width: 560px) {
  .tp-news-list { flex-direction: column; }
  .tp-news-item { flex: 1 1 100%; }
}

/* ═══════════════════════════════════════════════════════════
   COLOR CONTRAST FIXES
   #ffff00 là màu sáng — chữ trên nền vàng phải tối
═══════════════════════════════════════════════════════════ */

/* Nút primary (nền vàng) → chữ navy đậm */
.tp-btn--primary,
.tp-btn--gold,
.az9s-btn--primary,
.az9s-header__cta {
  color: #003399 !important;
}
.tp-btn--primary:hover,
.tp-btn--gold:hover {
  color: #002277 !important;
}

/* Badge, tag trên nền vàng → chữ navy */
.tp-section__tag,
.tp-catslide__badge,
.tp-prodslide__badge--sale,
.tp-ct-card__badge--hot,
.tp-catproducts__count {
  color: #003399 !important;
}

/* Floatbar icon vàng → đổi thành trắng để nổi trên nền navy */
.tp-floatbar__item > i { color: #ffff00; }

/* Hero stats số vàng → giữ nguyên (nền tối, vàng đọc được) */
.tp-hero__stat strong { color: #ffff00; }

/* Why item icon: nền gradient vàng → chữ navy */
.tp-why-item__icon { color: #003399 !important; }

/* Review stars */
.tp-review-card__stars { color: #ffff00; }

/* Header phone & CTA khi transparent */
.home .az9s-header:not(.tp-header--solid) .az9s-header__cta {
  background: #ffff00 !important;
  color: #003399 !important;
  border-color: #ffff00 !important;
}
.home .az9s-header.tp-header--solid .az9s-header__cta {
  background: #ffff00 !important;
  color: #003399 !important;
  border-color: #ffff00 !important;
}

/* Urgency bar: nền navy, chữ vàng */
.az9s-urgency { background: #003399 !important; color: #ffff00 !important; }
.az9s-urgency__cta { background: #ffff00 !important; color: #003399 !important; }
.az9s-urgency__timer { color: #ffff00 !important; }

/* Footer primary button */
.az9s-btn--primary { background: #003399 !important; color: #ffff00 !important; border-color: #003399 !important; }
.az9s-btn--primary:hover { background: #002277 !important; border-color: #002277 !important; }
.az9s-footer__logo img {
    max-width: 100%;
    display: block;
    filter: brightness(0) invert(1);
    height: 70px !important;
}
/* WooCommerce price */
.tp-prodslide__price,
.tp-prodslide__price .woocommerce-Price-amount { color: #003399 !important; }

/* Contact icon background */
.tp-contact__icon { background: linear-gradient(135deg, #003399, #1a4db3) !important; }

/* Form focus */
.tp-form__field input:focus,
.tp-form__field select:focus,
.tp-form__field textarea:focus {
  border-color: #003399 !important;
  box-shadow: 0 0 0 3px rgba(0,51,153,.15) !important;
}

/* CTA banner overlay */
.tp-cta-banner__overlay {
  background: linear-gradient(135deg, rgba(0,20,80,.90), rgba(0,51,153,.75)) !important;
}

/* Scrollbar accent */
::-webkit-scrollbar-thumb { background: #003399; }
::-webkit-scrollbar-thumb:hover { background: #002277; }
