/* Vpq custom visual layer
   Chỉ thay đổi trình bày. Không đổi nội dung, cấu trúc, URL hoặc hành vi form. */
:root {
  --vpq-navy: #0b213b;
  --vpq-blue: #173b61;
  --vpq-gold: #b58a45;
  --vpq-red: #e24a3b;
  --vpq-paper: #f6f7f8;
  --vpq-line: #e7ebef;
  --vpq-muted: #667384;
  --vpq-radius: 6px;
  --vpq-shadow: 0 12px 30px rgba(11, 33, 59, .10);
}

html { scroll-behavior: smooth; }
body {
  background: var(--vpq-paper);
  color: #172333;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}
a { color: var(--vpq-blue); transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--vpq-red); }
img { max-width: 100%; height: auto; }

/* Thanh đầu trang và menu */
body > header,
header.site-header,
.header,
.main-header,
.top-header {
  background: #fff;
  border-bottom: 1px solid var(--vpq-line);
  box-shadow: 0 2px 15px rgba(11, 33, 59, .06);
}
nav a,
.menu a,
.navbar a {
  color: var(--vpq-navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
nav a:hover,
.menu a:hover,
.navbar a:hover { color: var(--vpq-red); }

/* Khung nội dung thoáng, giữ nguyên DOM */
.container,
.content-wrapper,
.main-content,
.page-content,
.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
section,
.section,
.block,
.module { padding-block: clamp(42px, 6vw, 78px); }
h1, h2, h3, h4 { color: var(--vpq-navy); line-height: 1.18; letter-spacing: -.015em; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 24px; }

/* Khu vực banner/ảnh đầu trang */
.banner,
.hero,
.slider,
.slideshow,
.carousel {
  border-radius: var(--vpq-radius);
  overflow: hidden;
}
.banner img,
.hero img,
.slider img,
.carousel img { object-fit: cover; }

/* Các card dự án, bài viết, tin tức */
.project-item,
.project-card,
.property-card,
.news-item,
.post-card,
article {
  background: #fff;
  border: 1px solid var(--vpq-line);
  border-radius: var(--vpq-radius);
  box-shadow: 0 4px 16px rgba(11, 33, 59, .05);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-item:hover,
.project-card:hover,
.property-card:hover,
.news-item:hover,
.post-card:hover,
article:hover {
  transform: translateY(-3px);
  box-shadow: var(--vpq-shadow);
}
.project-item img,
.project-card img,
.property-card img,
.news-item img,
.post-card img,
article img { aspect-ratio: 16 / 10; object-fit: cover; }

/* Nút hành động */
button,
input[type="submit"],
input[type="button"],
.btn,
.button,
.read-more,
.contact-btn {
  border: 0;
  border-radius: 4px;
  background: var(--vpq-red);
  color: #fff;
  font-weight: 700;
  padding: 11px 18px;
  transition: background .2s ease, transform .2s ease;
}
button:hover,
input[type="submit"]:hover,
.btn:hover,
.button:hover,
.read-more:hover,
.contact-btn:hover { background: #bd382e; color: #fff; transform: translateY(-1px); }

/* Form tìm kiếm và đăng ký: giữ nguyên trường dữ liệu */
form { border-radius: var(--vpq-radius); }
input, select, textarea {
  border: 1px solid #d9e0e7;
  border-radius: 4px;
  background: #fff;
  color: #172333;
  min-height: 44px;
  padding: 10px 12px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(181, 138, 69, .28);
  border-color: var(--vpq-gold);
}

/* Khu vực footer */
footer,
.footer {
  background: var(--vpq-navy);
  color: #dbe5ef;
  padding-block: 48px;
}
footer a, .footer a { color: #dbe5ef; }
footer a:hover, .footer a:hover { color: #e5c889; }

/* Mobile: ưu tiên nội dung và thao tác chính */
@media (max-width: 768px) {
  .container, .content-wrapper, .main-content, .page-content, .section-inner {
    width: min(100% - 28px, 620px);
  }
  section, .section, .block, .module { padding-block: 42px; }
  .project-item, .project-card, .property-card, .news-item, .post-card, article {
    margin-bottom: 16px;
  }
  nav ul, .menu ul, .navbar ul { gap: 8px; }
  nav a, .menu a, .navbar a { font-size: 12px; }
  .floating-contact, .floating-buttons { bottom: 64px; }
}

/* Cân đối chiều cao thẻ dự án/sản phẩm (.v-row-sp > .v-main-sp > .v-sp) */
.v-row-sp {
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.v-row-sp > .v-main-sp {
  display: flex;
  height: 100%;
}
.v-row-sp .v-sp {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid var(--vpq-line);
  border-radius: var(--vpq-radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.v-row-sp .v-sp:hover {
  transform: translateY(-3px);
  box-shadow: var(--vpq-shadow);
}
.v-row-sp .v-sp > .img {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.v-row-sp .v-sp > .img a,
.v-row-sp .v-sp > .img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v-row-sp .v-title {
  flex: 0 0 auto;
  min-height: 2.5em;
  margin: 16px 20px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v-row-sp .v-desc {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
}
.v-row-sp .v-desc .v-title-sub { margin: 0 0 6px; }
.v-row-sp .v-desc .v-line {
  margin: 0;
  min-height: 1.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v-row-sp .v-desc .v-line:last-child { margin-top: auto; padding-top: 8px; }
@media (max-width: 768px) {
  .v-row-sp { grid-auto-rows: auto; }
}

/* Khóa kích thước để các thẻ trong cùng hàng thẳng hàng tuyệt đối */
.v-row-sp > .v-main-sp { padding: 5px !important; min-width: 0; }
.v-row-sp .v-sp { width: 100% !important; margin: 0 !important; }
.v-row-sp .v-sp > .img {
  height: 212px !important;
  aspect-ratio: auto !important;
}
.v-row-sp .v-sp > .img img { height: 212px !important; }
.v-row-sp .v-title {
  display: -webkit-box !important;
  height: auto !important;
  min-height: 3em;
  padding: 0 !important;
  line-height: 1.5 !important;
  text-align: center;
}
.v-row-sp .v-desc { padding-top: 8px !important; }
@media (max-width: 768px) {
  .v-row-sp .v-sp > .img,
  .v-row-sp .v-sp > .img img { height: auto !important; aspect-ratio: 16 / 9 !important; }
}

/* Mobile project-card typography: keep the investor line aligned with the other details. */
@media (max-width: 768px) {
  .v-row-sp .v-desc .v-title-sub,
  .v-row-sp .v-desc .v-title-sub a {
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 400 !important;
  }
}

/* Homepage news blocks: aligned editorial cards for transfers and updates. */
.v-home-news {
  padding: clamp(42px, 5vw, 72px) 0;
  background: #fff;
}
.v-home-news + .v-home-news {
  background: #f6f7f8;
}
.v-home-news > .container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}
.v-home-news .v-s-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--vpq-line);
  color: var(--vpq-navy);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}
.v-home-news .v-s-title > span { min-width: 0; }
.v-home-news .v-s-title .xem-them {
  flex: 0 0 auto;
  color: var(--vpq-blue);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.v-home-news > .container > .v-tp-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.v-home-news > .container > .v-tp-2 > .v-col,
.v-home-news .v-tp-2 > .v-col { min-width: 0; }
.v-home-news > .container > .v-tp-2 > .v-col:first-child > .v-news-b {
  height: 100%;
}
.v-home-news .v-tp-2 > .v-col > .v-tp-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  height: 100%;
}
.v-home-news .v-news-b {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--vpq-line);
  border-radius: var(--vpq-radius);
  box-shadow: 0 4px 16px rgba(11, 33, 59, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.v-home-news .v-news-b:hover {
  transform: translateY(-3px);
  box-shadow: var(--vpq-shadow);
}
.v-home-news .v-img {
  flex: 0 0 auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e9edf1;
}
.v-home-news .v-img a,
.v-home-news .v-img img {
  display: block;
  width: 100%;
  height: 100%;
}
.v-home-news .v-img img {
  object-fit: cover;
  transition: transform .3s ease;
}
.v-home-news .v-news-b:hover .v-img img { transform: scale(1.03); }
.v-home-news .v-desc {
  flex: 1 1 auto;
  padding: 14px 16px 16px;
}
.v-home-news .v-news-title {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}
.v-home-news .v-news-title a { color: var(--vpq-navy); }
.v-home-news .v-news-title a:hover { color: var(--vpq-red); }
.v-home-news .v-desc p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--vpq-muted);
  font-size: 15px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.v-home-news .v-tp-2 > .v-col > .v-tp-2 .v-desc p {
  color: var(--vpq-navy);
  font-size: 15px;
  font-weight: 600;
  -webkit-line-clamp: 2;
}
@media (max-width: 900px) {
  .v-home-news > .container > .v-tp-2 { grid-template-columns: 1fr; }
  .v-home-news > .container > .v-tp-2 > .v-col:first-child > .v-news-b { height: auto; }
}
@media (max-width: 560px) {
  .v-home-news { padding: 34px 0; }
  .v-home-news > .container { width: calc(100% - 28px); }
  .v-home-news .v-s-title { margin-bottom: 18px; font-size: 24px; }
  .v-home-news .v-s-title .xem-them { font-size: 13px; }
  .v-home-news .v-tp-2 > .v-col > .v-tp-2 { grid-template-columns: 1fr; gap: 14px; }
  .v-home-news .v-news-title { font-size: 18px; }
  .v-home-news .v-desc { padding: 12px 14px 14px; }
}
