/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jul 14 2025 | 02:28:58 */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  height: 400px;
  background: url('https://erasol.vn/wp-content/uploads/2025/07/Blue-professional-real-estate-business-card-1.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.hero-content {
  background: rgba(255, 255, 255, 0.7); /* giảm thêm opacity */
  padding: 40px;
  border-radius: 12px;
  max-width: 700px;
  text-align: center;
}

.hero-content h1 {
  color: #ce0e2d;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

section {
  margin: 60px auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

.about-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.about-columns > div {
  flex: 1 1 400px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about-columns h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #292160;
  margin-bottom: 16px;
}

.about-columns p,
.about-columns ul li {
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: balance;
  overflow-wrap: break-word;
  white-space: normal;
}

/* ✅ Không cho xuống dòng lẻ từ cuối */
.about-columns li strong {
  white-space: nowrap;
}
.about-columns li,
.about-columns p {
  widows: 2;
  orphans: 2;
  hyphens: auto;
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  margin-top: 50px;
}

.cta-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-grid a {
  width: 240px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  color: white !important;
  font-weight: bold;
  border: 2px solid transparent;
  position: relative;
  z-index: 1;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Nút 1: Gradient tím than */
.cta-grid a[href*="san-pham-era-sol"] {
  background: linear-gradient(to right, #292160, #3a2d91) !important;
}

/* Nút 2: Gradient đỏ sẫm */
.cta-grid a[href="#lienhe"] {
  background: linear-gradient(to right, #8e1537, #ce0e2d) !important;
}

/* Hover */
.cta-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}

/* ===== Dự án ===== */
.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.project-item {
  position: relative;
  width: 22%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(41, 33, 96, 0.6);
  color: white;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

.project-item:hover img {
  transform: scale(1.05);
}

/* ===== Đối tác ===== */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.partner-logo {
  width: 160px;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.4s ease;
  border-radius: 8px;
}

.partner-logo:hover {
  filter: none;
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  background: white;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .project-item { width: 45%; }
}
@media (max-width: 768px) {
  .about-columns > div {
    flex: 1 1 100%;
    padding: 20px;
  }

  .hero-content {
    padding: 28px;
  }

  .cta-grid {
    gap: 20px;
    flex-direction: column; /* Ép 2 nút xếp cột */
    align-items: center;    /* Canh giữa */
  }

  .cta-grid a {
    width: 100%;
    max-width: 300px;
    font-size: 14px;
    padding: 12px 16px;
  }

  .partner-logo {
    width: 45%;
    max-width: 160px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .about-columns p,
  .about-columns ul li {
    font-size: 0.95rem;
  }

  .project-item {
    width: 100%;
  }
}
/* Tự động xuống dòng phần sau dấu – trên mobile */
@media (max-width: 768px) {
  .break-mobile {
    display: block;
    margin-left: 0;
  }
}
