/* ============================================================
   Đồng phục Core – Đầu Tư Hình Ảnh
   ============================================================ */

.dtha-section *, .dtha-section *::before, .dtha-section *::after {
  box-sizing: border-box;
}

.dtha-section {
  font-family: 'Be Vietnam Pro', 'SVN-Gilroy', sans-serif;
  background: #fff;
  padding: 40px 0;
  overflow: hidden;
}

/* ── Desktop: 3-column grid ─────────────────────────────── */
.dtha-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 400px;
}

/* ── LEFT COLUMN ─────────────────────────────────────────── */
.dtha-col--left {
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dtha-subtitle {
  font-size: 13px;
  color: #444;
  line-height: 1.65;
  margin-bottom: 20px;
  /* no max-width */
}

/* Nav */
.dtha-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #fff;
}

.dtha-nav__item {
  display: flex;
  align-items: baseline;
  gap: 5px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 0;
  text-align: left;
  justify-content: flex-start !important;
  border-bottom: 1px solid #e8e8e8;
  width: 100%;
  transition: none;
}
/* removed :first-child border-top */

.dtha-nav__item .dtha-nav__num {
  font-size: 14px;
  font-weight: 700;
  color: #767676;
  min-width: 32px;
  flex-shrink: 0;
}
.dtha-nav__item .dtha-nav__label {
  font-size: 13.5px;
  font-weight: 500;
  color: #767676;
}

.dtha-nav__item--active .dtha-nav__num {
  font-size: 16px;
  font-weight: 800;
  color: #000000;
}
.dtha-nav__item--active .dtha-nav__label {
  font-size: 14.5px;
  font-weight: 700;
  color: #000000;
}

.dtha-nav__item:not(.dtha-nav__item--active):hover .dtha-nav__num,
.dtha-nav__item:not(.dtha-nav__item--active):hover .dtha-nav__label {
  color: #333;
}

/* ── CENTER COLUMN ───────────────────────────────────────── */
.dtha-col--center {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dtha-images-wrap {
  width: 100%;
  max-width: 340px;
}

.dtha-tab-img {
  display: none;
  width: 100%;
  animation: dthaFadeIn 0.35s ease;
}
.dtha-tab-img--active { display: block; }

.dtha-tab-img img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  display: block;
}

.dtha-img-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}
.dtha-img-placeholder svg { width: 160px; height: auto; }

@keyframes dthaFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── RIGHT COLUMN ────────────────────────────────────────── */
.dtha-col--right {
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Panel per tab */
.dtha-panel {
  display: none;
  animation: dthaFadeIn 0.3s ease;
  flex-direction: column;
  gap: 20px;
}
.dtha-panel--active { display: flex; }

/* Badge wrap: title left-align, star at bottom-right */
.dtha-badge-wrap {
  position: relative;
  padding-left: 0;
  padding-bottom: 16px;
}

.dtha-badge-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  margin: 0;
  position: relative;
  z-index: 1;
  text-align: right;
}

/* Star image: absolute, bottom-right, behind text */
.dtha-star-shape {
  position: absolute;
  right: -10px;
  bottom: -10px;
  z-index: 0;
  opacity: 0.95;
  pointer-events: none;
}
.dtha-star-shape img {
  display: block;
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.dtha-panel__desc {
  font-size: 13.5px;
  color: #555;
  line-height: 1.75;
  margin: 0;
}

/* ============================================================
   RESPONSIVE – TABLET (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  .dtha-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0 16px;
  }
  .dtha-col--left   { grid-column: 1; grid-row: 1; padding-right: 12px; }
  .dtha-col--center { grid-column: 2; grid-row: 1; }
  .dtha-col--right  {
    grid-column: 1 / -1; grid-row: 2;
    padding-left: 0; padding-top: 28px;
  }
}

/* ============================================================
   RESPONSIVE – MOBILE (≤600px)
   nav tabs ở trên, ảnh + content ở dưới
   ============================================================ */
@media (max-width: 600px) {
  .dtha-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px 0;
    min-height: unset;
  }

  /* 1. Nav tabs lên trên cùng */
  .dtha-col--left {
    grid-column: 1;
    grid-row: 1;
    padding-right: 0;
    order: 1;
  }

  /* Nav tabs nằm ngang, scroll nếu tràn, không xuống dòng */
  .dtha-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid #e8e8e8;
  }
  .dtha-nav::-webkit-scrollbar { display: none; }

  .dtha-nav__item {
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    padding: 10px 14px;
    border-bottom: none;
    border-right: 1px solid #e8e8e8;
    white-space: nowrap;
    flex-shrink: 0;
    gap: 2px;
  }
  .dtha-nav__item:last-child { border-right: none; }

  .dtha-nav__item .dtha-nav__num {
    font-size: 11px;
    min-width: unset;
    display: block;
  }
  .dtha-nav__item .dtha-nav__label {
    font-size: 12px;
    white-space: nowrap;
    display: block;
  }
  .dtha-nav__item--active .dtha-nav__num { font-size: 12px; }
  .dtha-nav__item--active .dtha-nav__label { font-size: 13px; }

  /* Active indicator: bottom border on active tab */
  .dtha-nav__item--active {
    border-bottom: 2px solid #000 !important;
    margin-bottom: -1px;
  }

  /* Hide subtitle on mobile to keep clean */
  .dtha-subtitle { font-size: 12px; }

  /* 2. Ảnh */
  .dtha-col--center {
    grid-column: 1;
    grid-row: 2;
    order: 2;
  }
  .dtha-images-wrap { max-width: 100%; }

  /* 3. Content (badge + desc) */
  .dtha-col--right {
    grid-column: 1;
    grid-row: 3;
    order: 3;
    padding-left: 0;
    padding-top: 0;
  }

  .dtha-badge-title { font-size: 20px; }
}
