/* ================================================
   home.css — Trang chủ Autotech
   ================================================ */

/* ---------- Biến màu dùng chung ---------- */
:root {
  --at-red: var(--at-accent);
  --at-dark: #1a1a1a;
  --at-gray: #6b7280;
  --at-light: #f9fafb;
  --at-border: #e5e7eb;
  --at-white: #ffffff;
}

/* ---------- Reset cơ bản cho trang ---------- */
.home-banner-section,
.home-stats-section,
.home-about-section,
.home-projects-section,
.home-partners-section,
.home-news-section,
.home-contact-section {
  box-sizing: border-box;
}
.home-banner-section .container,
.home-stats-section .container,
.home-about-section .container,
.home-projects-section .container,
.home-partners-section .container,
.home-news-section .container,
.home-contact-section .container {
  padding-left: 20px;
  padding-right: 20px;
  }

.home-banner-section *,
.home-stats-section *,
.home-about-section *,
.home-projects-section *,
.home-partners-section *,
.home-news-section *,
.home-contact-section * {
  box-sizing: inherit;
}


/* ================================================
   SECTION 1 — BANNER SLIDER
   ================================================ */

.home-banner-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.home-banner-section .swiper-container {
  width: 100%;
}

.home-banner-slide {
  position: relative;
  width: 100%;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-color: var(--at-dark);
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .home-banner-slide {
    min-height: 380px;
  }
}

.home-banner-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.28) 60%,
    rgba(0, 0, 0, 0.10) 100%
  );
  z-index: 1;
}

.home-banner-slide__content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.home-banner-slide__heading {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  font-weight: 700;
  color: var(--at-white);
  line-height: 1;
  margin: 0 0 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 16px;
}

.home-banner-slide__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 60px;
  height: 2px;
  background: var(--at-red);
  border-radius: 2px;
}

.home-banner-slide__heading span {
  display: block;
  line-height: 1.1;
}

.home-banner-slide__subheading {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 2rem;
}

.home-banner-slide__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  border-radius: 6px;
  color: var(--at-white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  transition: all 0.28s ease;
}

.home-banner-slide__btn-icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.28s ease;
}

.home-banner-slide__btn:hover {
  text-decoration: none;
}

.home-banner-slide__btn:hover .home-banner-slide__btn-icon {
  transform: translateX(4px);
  background-color: transparent;
}

/* Swiper controls */
.home-banner-section .swiper-button-prev,
.home-banner-section .swiper-button-next {
  color: var(--at-white);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.home-banner-section .swiper-button-prev:after,
.home-banner-section .swiper-button-next:after {
  font-size: 1rem;
  font-weight: 700;
}

.home-banner-section .swiper-button-prev:hover,
.home-banner-section .swiper-button-next:hover {
  background: var(--at-red);
}
.home-banner-section button .fal {
  display: none;
}

.home-banner-section .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  width: 8px;
  height: 8px;
  transition: background 0.2s, transform 0.2s;
}

.home-banner-section .swiper-pagination-bullet-active {
  background: var(--at-white);
  transform: scale(1.35);
}


/* ================================================
   SECTION 2 — STATS
   ================================================ */

.home-stats-section {
  /* padding: 0 36px; */
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 900px) {
  .home-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .home-stats-grid {
    grid-template-columns: 1fr;
  }
}

.home-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.home-stat-item:last-child {
  border-right: none;
}

@media (max-width: 900px) {
  .home-stat-item:nth-child(2) { border-right: none; }
  .home-stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.2); }
}

@media (max-width: 480px) {
  .home-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .home-stat-item:last-child { border-bottom: none; }
}

.home-stat-item__number {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 6px;
}

.home-stat-item__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--at-dark);
}

/* ─── Base label classes ─── */
.home-stat-item__label-top,
.home-stat-item__label-bot {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--at-dark);
}

/* ─── Type 1: Số lớn đỏ (trên) + Text nhỏ đen (dưới) ─── */
.home-stat-item--type1 .home-stat-item__number {
  color: var(--at-red);
  margin-bottom: 10px;
}

.home-stat-item--type1 .home-stat-item__label-top {
  font-size: 1rem;
  color: var(--at-dark);
}

.home-stat-item--type1 .home-stat-item__label-bot {
  font-size: 0.82rem;
  color: var(--at-dark);
  margin-top: 2px;
}

/* ─── Type 2: Text đen (trên) + Text đỏ (dưới), cùng size ─── */
.home-stat-item--type2 .home-stat-item__number {
  display: none;
}

.home-stat-item--type2 .home-stat-item__label-top {
  font-size: 1rem;
  font-weight: 600;
  color: var(--at-dark);
  margin-bottom: 6px;
}

.home-stat-item--type2 .home-stat-item__label-bot {
  font-size: 1rem;
  font-weight: 600;
  color: var(--at-red);
}


/* ================================================
   SECTION 3+4 — ABOUT + SERVICES
   ================================================ */

.home-about-section {
  padding-block: 80px 60px;
  background: var(--at-white);
}

@media (max-width: 768px) {
  .home-about-section { padding: 48px 0 40px; }
}

/* Bố cục 2 cột */
.home-about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .home-about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }
}

/* Cột ảnh */
.home-about-image-col {
  position: relative;
  height: 100%;
}

.home-about-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

/* Overlay card dịch vụ trên ảnh */
.home-about-services-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--at-red);
  color: var(--at-white);
  padding: 20px 24px;
  min-width: 200px;
  max-width: 280px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(227, 31, 37, 0.25);
}

@media (max-width: 900px) {
  .home-about-services-card {
    position: static;
    margin-top: 16px;
    max-width: 100%;
  }
}

.home-about-services-card__label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--at-white);
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-about-services-card__sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* Cột text */
.home-about-text-col {}

.home-about-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--at-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-about-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--at-red);
  flex-shrink: 0;
}

.home-about-heading {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--at-dark);
  line-height: 1.28;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.home-about-content {
  color: var(--at-gray);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

.home-about-content p { margin: 0 0 12px; }
.home-about-content p:last-child { margin-bottom: 0; }

.home-about-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--at-red);
  color: var(--at-white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  transition: background 0.2s, transform 0.15s;
  border-radius: 4px;
}

.home-about-btn:hover {
  background: var(--at-button-bg-hover);
  color: var(--at-white);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Services cards */
.home-services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 768px) {
  .home-services-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .home-services-row {
    grid-template-columns: 1fr;
  }
}

.home-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 24px 16px;
  border: 1px solid var(--at-border);
  border-radius: 8px;
  transition: box-shadow 0.22s, transform 0.22s;
  background: var(--at-white);
}

.home-service-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  text-decoration: none;
}

.home-service-card__thumb {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--at-border);
  margin-bottom: 14px;
  background: var(--at-light);
  flex-shrink: 0;
}

.home-service-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-service-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--at-dark);
  margin: 0;
  line-height: 1.4;
  transition: color 0.2s;
}

.home-service-card:hover .home-service-card__title {
  color: var(--at-red);
}


/* ================================================
   SECTION 5 — PROJECTS (với hover overlay)
   ================================================ */

.home-projects-section {
  padding: 80px 0;
  background: var(--at-light);
}

@media (max-width: 768px) {
  .home-projects-section { padding: 48px 0; }
}

.home-section-header {
  margin-bottom: 40px;
}

.home-section-header--center {
  text-align: center;
}

.home-section-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--at-red);
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--at-red);
  flex-shrink: 0;
}

.home-section-header--center .home-section-label {
  display: flex;
  justify-content: center;
}

.home-section-heading {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--at-dark);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.25;
}

/* Projects grid — 2 hàng: [1 large | 1 large] trên, [3 small] dưới */
.home-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}

@media (max-width: 768px) {
  .home-projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .home-projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Item 1: chiếm 2 cột, hàng 1 */
.home-project-item--1 {
  grid-column: 1 / 3;
  grid-row: 1;
}

/* Item 2: cột 3, hàng 1 */
.home-project-item--2 {
  grid-column: 3 / 4;
  grid-row: 1;
}

/* Items 3-5: hàng dưới, mỗi cột 1 */
.home-project-item--3 { grid-column: 1; grid-row: 2; }
.home-project-item--4 { grid-column: 2; grid-row: 2; }
.home-project-item--5 { grid-column: 3; grid-row: 2; }

@media (max-width: 768px) {
  .home-project-item--1 { grid-column: 1 / 3; grid-row: 1; }
  .home-project-item--2 { grid-column: 1 / 3; grid-row: 2; }
  .home-project-item--3 { grid-column: 1; grid-row: 3; }
  .home-project-item--4 { grid-column: 2; grid-row: 3; }
  .home-project-item--5 { grid-column: 1 / 3; grid-row: 4; }
}

@media (max-width: 480px) {
  .home-project-item--1,
  .home-project-item--2,
  .home-project-item--3,
  .home-project-item--4,
  .home-project-item--5 {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Item chung */
.home-project-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
  aspect-ratio: 4/3;
  background: #d1d5db;
}

.home-project-item--1 { aspect-ratio: 16/9; }
.home-project-item--2 { aspect-ratio: 4/3; }

.home-project-item__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}

.home-project-item:hover .home-project-item__img {
  transform: scale(1.06);
}

/* Hover overlay — tối từ trên xuống, nội dung trượt lên từ dưới */
.home-project-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 0, 12, 0.75);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.home-project-item:hover .home-project-item__overlay {
  opacity: 1;
}

.home-project-item__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  background: var(--at-red);
  padding: 16px 18px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.home-project-item__title {
  color: var(--at-white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.home-project-item__arrow {
  color: var(--at-red);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--at-white);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.home-project-item:hover .home-project-item__cta {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================
   SECTION 6 — PARTNERS SLIDER
   ================================================ */

.home-partners-section {
  padding: 20px 0;
  background: var(--at-white);
  border-top: 1px solid var(--at-border);
  border-bottom: 1px solid var(--at-border);
  overflow: hidden;
}

.home-partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
}

.home-partner-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.home-partner-logo {
  max-height: 100px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.home-partners-section .swiper-container {
  overflow: hidden;
  padding-bottom: 0;
}

.home-partners-section .swiper-wrapper {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 28px;
  animation: home-partners-marquee var(--partners-marquee-duration, 28s) linear infinite;
  will-change: transform;
}

.home-partners-section .swiper-slide {
  width: 230px;
  flex: 0 0 auto;
}

@keyframes home-partners-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ================================================
   SECTION 7 — NEWS (với hover effect)
   ================================================ */

.home-news-section {
  padding: 80px 0;
  background: var(--at-light);
}

@media (max-width: 768px) {
  .home-news-section { padding: 48px 0; }
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .home-news-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .home-news-grid { grid-template-columns: 1fr; }
}

.home-news-card {
  background: var(--at-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.home-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* Ảnh */
.home-news-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 16/9;
  background: var(--at-border);
}

.home-news-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--at-border);
  transition: transform 0.4s ease;
}

.home-news-card:hover .home-news-card__img {
  transform: scale(1.05);
}

.home-news-card__img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
}

.home-news-card:hover .home-news-card__img-overlay {
  background: rgba(227, 31, 37, 0.12);
}

/* Body */
.home-news-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.home-news-card__title {
  font-size: 0.97rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-card__title a {
  color: var(--at-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.home-news-card__title a:hover {
  color: var(--at-red);
}

.home-news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--at-gray);
}

.home-news-card__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-news-card__excerpt {
  font-size: 0.85rem;
  color: var(--at-gray);
  line-height: 1.65;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mũi tên — ẩn mặc định, hiện khi hover */
.home-news-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--at-red);
  border-radius: 50%;
  color: var(--at-red);
  text-decoration: none;
  align-self: flex-end;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s;
}

.home-news-card:hover .home-news-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

.home-news-card__arrow:hover {
  background: var(--at-red);
  color: var(--at-white);
}


/* ================================================
   SECTION 8 — CONTACT
   ================================================ */

.home-contact-section {
  background: var(--at-white);
}
.home-contact-section > .container {
  padding-block: 40px
}
.home-contact-heading-bar {
  background: var(--at-red);
  padding: 20px 0;
  text-align: center;
}

.home-contact-heading {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--at-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.home-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

@media (max-width: 900px) {
  .home-contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Form */
.home-contact-form-col {
  padding: 40px;
}

@media (max-width: 600px) {
  .home-contact-form-col { padding: 0 0 32px; }
}

.home-contact-form {}

.home-contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .home-contact-form__row { grid-template-columns: 1fr; }
}

.home-contact-form__captcha-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-contact-form__field {
  position: relative;
}

.home-contact-form__field input,
.home-contact-form__field textarea {
  width: 100%;
  border: 1px solid var(--at-border);
  border-radius: 4px;
  padding: 11px 14px;
  font-size: 0.9rem;
  color: var(--at-dark);
  background: var(--at-white);
  transition: border-color 0.2s;
  outline: none;
  font-family: inherit;
}

.home-contact-form__field input:focus,
.home-contact-form__field textarea:focus {
  border-color: var(--at-red);
}

.home-contact-form__field textarea {
  resize: vertical;
  min-height: 100px;
}

.home-contact-form__field--full {
  width: 100%;
  margin-bottom: 16px;
}

.home-contact-form__req {
  position: absolute;
  top: 11px;
  right: 10px;
  color: var(--at-red);
  font-size: 0.8rem;
  pointer-events: none;
  line-height: 1;
}

/* Captcha display */
.home-contact-captcha-display {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.home-contact-captcha-code {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: var(--at-dark);
  background: #f3f4f6;
  border: 1px solid var(--at-border);
  border-radius: 4px;
  padding: 4px 14px;
  letter-spacing: 0.16em;
  user-select: none;
  min-width: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-contact-captcha-code::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.04) 3px,
    rgba(0,0,0,0.04) 6px
  );
  pointer-events: none;
}

.home-contact-captcha-refresh {
  background: none;
  border: 1px solid var(--at-border);
  border-radius: 4px;
  cursor: pointer;
  padding: 6px 10px;
  color: var(--at-gray);
  font-size: 0.85rem;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1;
}

.home-contact-captcha-refresh:hover {
  color: var(--at-red);
  border-color: var(--at-red);
}

/* Actions */
.home-contact-form__actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.home-contact-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--at-red);
  color: var(--at-white);
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  border-radius: 2px;
}

.home-contact-form__submit:hover {
  background: var(--at-button-bg-hover);
}

.home-contact-form__reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--at-gray);
  border: 1px solid var(--at-border);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
  border-radius: 2px;
}

.home-contact-form__reset:hover {
  color: var(--at-dark);
  border-color: var(--at-dark);
}

/* Thông báo gửi thành công / thất bại */
.home-contact-alert {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: none;
}

.home-contact-alert.is-success {
  background: #d1fae5;
  color: #065f46;
  border-left: 4px solid #10b981;
  display: block;
}

.home-contact-alert.is-error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid var(--at-red);
  display: block;
}

/* Map */
.home-contact-map-col {
  position: relative;
  min-height: 400px;
}

.home-contact-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .home-contact-map-col {
    min-height: 340px;
    position: relative;
  }
}


/* ================================================
   RESPONSIVE – Container điều chỉnh
   ================================================ */

@media (max-width: 1200px) {
  .home-about-layout { gap: 40px; }
}

@media (max-width: 900px) {
  .home-projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* ================================================
   MIAN HOMEPAGE REDESIGN (TOP SECTIONS)
   ================================================ */

.home-banner-section {
  position: relative;
  overflow: visible;
}

.home-banner-slide {
  min-height: 640px;
}

.home-banner-slide__overlay {
  background: linear-gradient(105deg, rgba(8, 12, 20, 0.9) 5%, rgba(9, 16, 26, 0.7) 55%, rgba(9, 16, 26, 0.4) 100%);
}

.home-banner-slide__content {
  max-width: 1300px;
  padding-top: 110px;
  padding-bottom: 120px;
}

.home-banner-slide__heading {
  font-size: clamp(2.1rem, 2.7vw, 2.35rem);
  line-height: 1.08;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 900px;
  margin-bottom: 18px;
}

.home-banner-slide__subheading {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.2rem, 1.2vw, 1.4rem);
}

.home-banner-slide__btn {
  border-radius: 4px;
  padding: 14px 30px;
}

.home-banner-controls {
  bottom: 140px;
}

.home-stats-section {
  margin-top: -75px;
  position: relative;
  z-index: 10;
}

.home-stats-grid {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(5, 22, 46, 0.16);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px;
  gap: 0;
}

.home-stat-item {
  min-height: 172px;
  text-align: center;
  border-right: 1px solid #edf0f3;
  padding: 26px 18px;
}

.home-stat-item:last-child {
  border-right: none;
}

.home-stat-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f7ff;
  color: var(--at-red);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.home-stat-item__number {
  font-size: 2rem;
  margin-bottom: 2px;
}

.home-stat-item__label {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.home-stat-item__label--accent {
  color: var(--at-red);
  font-weight: 700;
}

.home-section-header--center {
  text-align: center;
  margin-bottom: 34px;
}

.home-section-heading {
  margin-bottom: 10px;
}

.home-about-section {
  /* padding: 0 24px; */
}

.home-about-layout {
  align-items: center;
  gap: 42px;
}

.home-about-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(11, 25, 45, 0.14);
}

.home-about-text-col {
  padding-right: 14px;
}

.home-about-content {
  color: #4f5b69;
}

.home-services-row {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-services-intro-card {
  background: var(--at-red);
  border-radius: 14px;
  color: #fff;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-services-intro-card__label {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.home-services-intro-card__title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 500;
}

.home-service-card--detail {
  text-decoration: none;
  color: inherit;
  border: 1px solid #ebeff4;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(14, 30, 50, 0.07);
  padding: 22px 18px 18px;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-service-card--detail:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(14, 30, 50, 0.11);
}

.home-service-card__thumb--round {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(130deg, #dce6f4, #eff3f8);
  margin: 0 0 16px;
}

.home-service-card__title {
  min-height: 52px;
}

.home-service-card__desc {
  margin: 0 0 14px;
  color: #5f6a78;
  font-size: 0.9rem;
  line-height: 1.62;
}

.home-service-card__arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d8dee8;
  color: var(--at-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1100px) {
  .home-stats-grid,
  .home-services-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-stat-item:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 780px) {
  .home-banner-slide {
    min-height: 560px;
  }

  .home-banner-controls {
    bottom: 32px;
  }

  .home-stats-section {
    margin-top: -36px;
  }

  .home-stats-grid,
  .home-services-row {
    grid-template-columns: 1fr;
  }

  .home-stat-item {
    border-right: none;
    border-bottom: 1px solid #edf0f3;
  }

  .home-stat-item:last-child {
    border-bottom: none;
  }
}
