/* ============================================================
   HOMEPAGE – Matches Canva SVG design
   Primary teal: #45c0c2  |  Dark navy: #232c65  |  White: #fff
   ============================================================ */

:root {
  --hp-teal: #45c0c2;
  --hp-teal-light: #d4f1f2;
  --hp-teal-mid: #a0dfe0;
  --hp-dark: #232c65;
  --hp-gray: #666;
  --hp-text: #333;
  --hp-bg: #f7fbfb;
}

/* Reset body for homepage */
.hp-body { background: #fff; }

/* ---- Shared container ---- */
.hp-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Section heading style (| TITLE) ---- */
.hp-section-heading {
  font-size: 28px;
  font-weight: 800;
  color: var(--hp-teal);
  padding-left: 16px;
  border-left: 5px solid var(--hp-teal);
  margin-bottom: 32px;
  line-height: 1.2;
}

/* ============================================================
   NAV overrides for homepage
   ============================================================ */
.hp-nav {
  background: #fff;
  border-bottom: 1px solid #eee;
}
.hp-nav .nav-link {
  color: #444;
  font-weight: 600;
  font-size: 13px;
}
.hp-nav .nav-link.active,
.hp-nav .nav-link:hover {
  color: var(--hp-teal);
}
.hp-nav-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  padding: 6px;
  display: flex;
  align-items: center;
}
.hp-nav-search {
  background: var(--hp-teal);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 4px;
}

/* ============================================================
   SECTION 1: HERO
   ============================================================ */
.hp-hero {
  width: 100%;
  line-height: 0;
  display: block;
}
.hp-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   SECTION 2: INTRO CARDS
   ============================================================ */
.hp-intro {
  padding: 56px 0;
  background: #fff;
}
.hp-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.hp-intro-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0 40px;
  border-left: 1px solid #eee;
}
.hp-intro-card:first-child { border-left: none; padding-left: 0; }
.hp-intro-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-intro-body {}
.hp-intro-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--hp-teal);
  margin-bottom: 10px;
}
.hp-intro-body p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   SECTION 3: ỨNG DỤNG AI CẢNH BÁO SỚM
   ============================================================ */
.hp-ai-section {
  padding: 56px 0 64px;
  background: #fff;
}
.hp-ai-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}
.hp-ai-left {}
.hp-ai-heading {
  margin-bottom: 24px;
}
.hp-ai-heading-line1 {
  display: block;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: var(--hp-teal);
  line-height: 1.1;
}
.hp-ai-heading-line2 {
  display: block;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  color: var(--hp-teal);
  line-height: 1.1;
}
.hp-ai-phone-wrap {
  max-width: 240px;
}
.hp-ai-phone {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* Right side */
.hp-ai-right {
  padding-top: 20px;
}
.hp-disease-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.hp-disease-btn {
  display: block;
  background: var(--hp-teal);
  color: #fff;
  text-align: center;
  padding: 14px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.hp-disease-btn:hover {
  background: #36adb0;
  transform: translateY(-2px);
}
.hp-ai-divider {
  border: none;
  border-top: 2px solid var(--hp-teal);
  margin: 24px 0;
}
.hp-download-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #444;
  margin-bottom: 12px;
}
.hp-store-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hp-store-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hp-store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  min-width: 160px;
  transition: opacity 0.2s;
}
.hp-store-btn:hover { opacity: 0.85; }
.hp-store-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 0.5px;
  opacity: 0.8;
}
.hp-store-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.hp-qr-code {}
.hp-qr-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 4px;
}
.hp-qr-placeholder {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e0f5f5;
  border-radius: 10px;
  background: #f8fefe;
  padding: 4px;
}

/* ============================================================
   SECTION 4: GIẢI PHÁP HCC APP
   ============================================================ */
.hp-features-section {
  position: relative;
  padding: 64px 0;
  background: #e8f8f8;
  overflow: hidden;
}
.hp-features-bg {
  position: absolute;
  right: 0;
  top: 0;
  width: 40%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hp-features-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center left;
  opacity: 0.18;
}
.hp-features-section .hp-container { position: relative; z-index: 1; }
.hp-features-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  color: var(--hp-teal);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 1px;
}
.hp-features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.hp-feat-card {
  background: var(--hp-teal);
  border-radius: 16px;
  padding: 24px 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.hp-feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(69,192,194,0.35);
}
.hp-feat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-feat-card span {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* ============================================================
   SECTION 5: TIN TỨC + TẠI SAO CHỌN HCC
   ============================================================ */
.hp-news-why {
  padding: 64px 0;
  background: #fff;
}
.hp-news-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}
/* Divider between columns */
.hp-news-why-grid::after {
  display: none;
}
.hp-news-col,
.hp-why-col {
  border-top: 2px solid var(--hp-teal);
  padding-top: 28px;
}

/* News items */
.hp-news-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hp-news-item {
  display: flex;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eee;
}
.hp-news-item:last-child { border-bottom: none; padding-bottom: 0; }
.hp-news-date {
  flex-shrink: 0;
  background: var(--hp-teal-light);
  border-radius: 8px;
  width: 64px;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.hp-news-day {
  font-size: 24px;
  font-weight: 800;
  color: var(--hp-teal);
  line-height: 1;
}
.hp-news-month-year {
  font-size: 11px;
  font-weight: 600;
  color: var(--hp-teal);
  text-align: center;
  line-height: 1.3;
}
.hp-news-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--hp-teal);
  margin-bottom: 6px;
  line-height: 1.3;
}
.hp-news-body p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 8px;
}
.hp-news-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--hp-teal);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.hp-news-link:hover { text-decoration: underline; }

/* Why items */
.hp-why-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hp-why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.hp-why-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--hp-teal);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-why-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--hp-teal);
  margin-bottom: 8px;
}
.hp-why-content ul {
  margin: 0;
  padding-left: 16px;
}
.hp-why-content ul li {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* ============================================================
   SECTION 6: PHÁT TRIỂN BỀN VỮNG
   ============================================================ */
.hp-sdg-section {
  padding: 64px 0;
  background: #fff;
}
.hp-sdg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}
.hp-sdg-card {
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}
.hp-sdg-card img {
  width: 100%;
  height: auto;
  display: block;
}
.hp-sdg-card h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--hp-teal);
  padding: 16px 8px 4px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hp-sdg-more {
  text-align: right;
}
.hp-more-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--hp-teal);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.hp-more-link:hover { text-decoration: underline; }

/* ============================================================
   SECTION 7: ĐỐI TÁC Y TẾ
   ============================================================ */
.hp-partners-section {
  padding: 64px 0;
  background: #fff;
}
.hp-partners-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hp-carousel-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #888;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
}
.hp-carousel-btn:hover { border-color: var(--hp-teal); color: var(--hp-teal); }
.hp-partners-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 32px;
  align-items: center;
}
.hp-partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 90px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eef0f2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.hp-partner-item:hover {
  box-shadow: 0 6px 20px rgba(69,192,194,0.18);
  transform: translateY(-2px);
}
.hp-partner-item img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ============================================================
   SECTION 8: KẾT NỐI NHANH
   ============================================================ */
.hp-quicklinks-section {
  padding: 64px 0;
  background: #fff;
}
.hp-ql-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.hp-ql-card {
  position: relative;
  background: linear-gradient(145deg, #b2e8ea 0%, #e8f8f8 100%);
  border-radius: 16px;
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 140px;
}
.hp-ql-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(69,192,194,0.25);
}
.hp-ql-card span {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}
.hp-ql-tall {
  grid-row: span 2;
  min-height: 300px;
  justify-content: flex-end;
}
.hp-ql-plus {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.25);
  background: transparent;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(0,0,0,0.4);
  line-height: 1;
  pointer-events: none;
}

/* ============================================================
   SECTION 9: CONTACT FORM
   ============================================================ */
.hp-contact-section {
  padding: 72px 0;
  background: #fff;
}
.hp-contact-inner {
  max-width: 700px;
}
.hp-contact-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--hp-teal);
  margin-bottom: 10px;
}
.hp-contact-subtitle {
  font-size: 15px;
  color: var(--hp-teal);
  margin-bottom: 28px;
}
.hp-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hp-check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hp-check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--hp-teal-light);
  border: 1.5px solid var(--hp-teal);
  border-radius: 8px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background 0.15s;
}
.hp-check-item:hover { background: #c2eef0; }
.hp-check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--hp-teal);
  flex-shrink: 0;
}
.hp-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hp-form-field label {
  font-size: 13px;
  color: var(--hp-teal);
  font-weight: 600;
}
.hp-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--hp-teal);
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.hp-input:focus { border-color: #2fa0a2; }
.hp-submit-btn {
  width: 100%;
  background: var(--hp-teal);
  color: #fff;
  border: none;
  padding: 18px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.hp-submit-btn:hover { background: #36adb0; }

/* ============================================================
   FOOTER
   ============================================================ */
.hp-footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 56px 0 32px;
}
.hp-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.hp-footer-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
}
.hp-footer-col-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--hp-teal);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hp-footer-brand {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}
.hp-footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hp-footer-contacts p {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}
.hp-footer-links {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hp-footer-links li { font-size: 13px; color: #555; }
.hp-footer-links a {
  color: #555;
  text-decoration: none;
  line-height: 1.5;
}
.hp-footer-links a:hover { color: var(--hp-teal); }
.hp-footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
}
.hp-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hp-container { padding: 0 24px; }
  .hp-features-grid { grid-template-columns: repeat(5, 1fr); }
  .hp-partners-grid { grid-template-columns: repeat(4, 1fr); }
  .hp-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hp-intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .hp-intro-card { border-left: none; padding-left: 0; border-top: 1px solid #eee; padding-top: 20px; }
  .hp-intro-card:first-child { border-top: none; padding-top: 0; }
  .hp-ai-layout { grid-template-columns: 1fr; gap: 32px; }
  .hp-ai-phone-wrap { max-width: 200px; }
  .hp-news-why-grid { grid-template-columns: 1fr; gap: 40px; }
  .hp-features-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .hp-sdg-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hp-partners-grid { grid-template-columns: repeat(3, 1fr); }
  .hp-ql-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hp-ql-tall { grid-row: span 1; min-height: 140px; }
  .hp-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .hp-container { padding: 0 16px; }
  .hp-features-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hp-feat-card { padding: 16px 8px; }
  .hp-disease-grid { grid-template-columns: 1fr; }
  .hp-store-row { flex-direction: column; align-items: flex-start; }
  .hp-sdg-grid { grid-template-columns: 1fr 1fr; }
  .hp-partners-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-ql-grid { grid-template-columns: 1fr 1fr; }
  .hp-footer-grid { grid-template-columns: 1fr; }
  .hp-partners-carousel { flex-direction: column; }
  .hp-carousel-btn { display: none; }
}
