/* ============================================================
   index.css — Vietnam Unlock Homepage
   Chỉ load trên front-page. Dùng prefix hp- để tránh conflict.
   ============================================================ */

/* ── Homepage color tokens ─────────────────────────────────── */
:root {
  --hp-dark:       #1A1A2E;
  --hp-dark2:      #16213E;
  --hp-red:        #C0392B;
  --hp-red-dark:   #96281B;
  --hp-gold:       #F39C12;
  --hp-gold-light: #F8C471;
  --hp-bg:         #FAFAF8;
  --hp-bg2:        #F4F1EC;
  --hp-text:       #2C3E50;
  --hp-muted:      #7F8C8D;
  --hp-border:     #E8E0D5;
  --hp-white:      #FFFFFF;
  --hp-green:      #27AE60;
}

body { background-color: var(--hp-bg); }

/* ── Header: transparent → dark when scrolled ──────────────── */
header#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent !important;
  box-shadow: none !important;
  transition: background 0.35s, box-shadow 0.35s;
  z-index: 200;
}
header#site-header.scrolled {
  background: var(--olive) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35) !important;
}
.header-inner { padding: 22px 48px; }
header#site-header.scrolled .header-inner { padding: 14px 48px; }


/* ════════════════════════════════════════════════════════════
   SHARED LAYOUT
   ════════════════════════════════════════════════════════════ */
.hp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hp-section-tag {
  font-size: 10px;
  font-family: -apple-system, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--hp-red);
  display: block;
  margin-bottom: 8px;
}

.hp-section-header { margin-bottom: 36px; }

.hp-section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--hp-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hp-section-header p {
  font-size: 15px;
  color: var(--hp-muted);
  margin-top: 8px;
  font-family: -apple-system, sans-serif;
  max-width: 540px;
  line-height: 1.6;
}

.hp-section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--hp-border);
}

.hp-section-title-row h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--hp-text);
  line-height: 1.2;
}

.hp-see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-red);
  text-decoration: none;
  white-space: nowrap;
  margin-bottom: 4px;
  font-family: -apple-system, sans-serif;
}
.hp-see-all:hover { color: var(--hp-red-dark); }


/* ════════════════════════════════════════════════════════════
   1. HERO — ảnh thật làm background
   ════════════════════════════════════════════════════════════ */
.hp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(
      to right,
      rgba(20,28,15,0.82) 0%,
      rgba(20,28,15,0.55) 50%,
      rgba(20,28,15,0.15) 100%
    ),
    url('https://vietnamunlock.com/wp-content/uploads/2026/04/hero-bg-1920x1080.jpg') center / cover no-repeat;
}

.hp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ── Hero Left ───────────────────────────────────────────── */
.hp-hero-content {
  background: rgba(8,14,6,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 36px 40px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.hp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(243,156,18,0.18);
  border: 1px solid rgba(243,156,18,0.5);
  color: #F8C471;
  font-family: -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 22px;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hp-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.8), 0 0 40px rgba(0,0,0,0.6);
}

.hp-hero-content h1 em {
  font-style: italic;
  color: var(--hp-gold-light);
}

.hp-hero-sub {
  font-size: 17px;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 32px;
  font-family: -apple-system, sans-serif;
  max-width: 500px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

.hp-hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.hp-hero-stat { display: flex; flex-direction: column; }

.hp-stat-num {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  font-family: -apple-system, sans-serif;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hp-stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.95);
  font-family: -apple-system, sans-serif;
  margin-top: 3px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.hp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hp-btn-primary {
  background: var(--hp-red);
  color: #fff;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-family: -apple-system, sans-serif;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hp-btn-primary:hover { background: var(--hp-red-dark); transform: translateY(-1px); }

.hp-btn-ghost {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-family: -apple-system, sans-serif;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hp-btn-ghost:hover { background: rgba(255,255,255,0.13); }

/* ── Hero Right: email capture box ──────────────────────── */
.hp-hero-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hp-box-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  font-family: -apple-system, sans-serif;
  line-height: 1.3;
}

.hp-box-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.48);
  margin-bottom: 20px;
  font-family: -apple-system, sans-serif;
  line-height: 1.55;
}

.hp-email-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hp-email-form input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 11px 14px;
  color: #fff;
  font-size: 13px;
  font-family: -apple-system, sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.hp-email-form input::placeholder { color: rgba(255,255,255,0.28); }
.hp-email-form input:focus { border-color: rgba(255,255,255,0.38); }

.hp-email-form button {
  background: var(--hp-gold);
  color: var(--hp-dark);
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: -apple-system, sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.hp-email-form button:hover { background: var(--hp-gold-light); }

.hp-box-features {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
}

.hp-box-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.48);
  font-family: -apple-system, sans-serif;
}

.hp-box-features li::before {
  content: '✓';
  color: var(--hp-green);
  font-weight: 700;
  flex-shrink: 0;
}


/* ════════════════════════════════════════════════════════════
   2. REGION CARDS
   ════════════════════════════════════════════════════════════ */
.hp-regions {
  background: #fff;
  padding: 64px 0;
}

.hp-regions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hp-region-card {
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  transition: transform 0.22s, box-shadow 0.22s;
}
.hp-region-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.hp-region-thumb {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Bottom fade overlay — only covers bottom 60% */
.hp-region-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30,40,20,0.82) 0%,
    rgba(30,40,20,0.35) 50%,
    transparent 100%
  );
  border-radius: inherit;
}

.hp-region-info {
  position: relative;
  z-index: 1;
  padding: 18px 16px 16px;
}

.hp-region-count {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  font-size: 10px;
  font-family: -apple-system, sans-serif;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 6px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
}

.hp-region-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  font-family: -apple-system, sans-serif;
  margin-bottom: 6px;
  line-height: 1.2;
}

.hp-region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hp-region-tags span {
  font-size: 10px;
  font-family: -apple-system, sans-serif;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.15);
}


/* ════════════════════════════════════════════════════════════
   3. FEATURED ARTICLES
   ════════════════════════════════════════════════════════════ */
.hp-featured {
  background: var(--hp-bg2);
  padding: 64px 0;
  border-top: 1px solid var(--hp-border);
  border-bottom: 1px solid var(--hp-border);
}

/* 1 big card left + 2 stacked right */
.hp-articles-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}

.hp-article-card {
  background: var(--hp-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hp-border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.hp-article-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.hp-article-thumb {
  height: 200px;
  background: var(--olive);
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}
.hp-article-big .hp-article-thumb { height: 260px; }

.hp-article-cat {
  position: absolute;
  bottom: 10px; left: 10px;
  background: var(--hp-red);
  color: #fff;
  font-size: 9px;
  font-family: -apple-system, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
}

.hp-article-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hp-article-meta {
  font-size: 11px;
  color: var(--hp-muted);
  font-family: -apple-system, sans-serif;
  margin-bottom: 8px;
}

.hp-article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--hp-text);
  flex: 1;
}
.hp-article-card:not(.hp-article-big) .hp-article-body h3 { font-size: 15px; }

.hp-article-body p {
  font-size: 13px;
  color: var(--hp-muted);
  line-height: 1.6;
  font-family: -apple-system, sans-serif;
  margin-bottom: 14px;
}

.hp-article-author {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--hp-border);
  margin-top: auto;
  font-size: 11px;
  color: var(--hp-muted);
  font-family: -apple-system, sans-serif;
}

.hp-author-avatar {
  width: 26px; height: 26px;
  border-radius: 99px;
  background: var(--hp-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}


/* ════════════════════════════════════════════════════════════
   4. ABOUT
   ════════════════════════════════════════════════════════════ */
.hp-about {
  background: #F2F5EE;
  padding: 80px 0;
  overflow: hidden;
}

.hp-about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: center;
}

.hp-about-photo {
  position: relative;
  flex-shrink: 0;
}

.hp-about-photo::before {
  content: '';
  position: absolute;
  top: 14px; left: 14px;
  right: -14px; bottom: -14px;
  background: var(--olive);
  border-radius: 16px;
  opacity: 0.18;
}

.hp-about-photo img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  position: relative;
  z-index: 1;
  display: block;
}

.hp-about-content .hp-section-tag {
  color: var(--olive);
}

.hp-about-heading {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  color: #2C3E50;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.hp-about-title {
  font-size: 12px;
  color: #8A9B7A;
  font-family: -apple-system, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hp-about-quote {
  border-left: 3px solid var(--olive);
  padding-left: 22px;
  margin: 0 0 28px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  color: #4A5568;
  line-height: 1.75;
}

.hp-about-creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-bottom: 28px;
}

.hp-cred-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: -apple-system, sans-serif;
  color: #6B7B5E;
}

.hp-cred-item::before {
  content: '✓';
  color: var(--olive);
  font-weight: 700;
  flex-shrink: 0;
}

.hp-about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--olive);
  text-decoration: none;
  font-family: -apple-system, sans-serif;
  transition: gap 0.15s;
}
.hp-about-link:hover { gap: 10px; }


/* ════════════════════════════════════════════════════════════
   5. LATEST FEED
   ════════════════════════════════════════════════════════════ */
.hp-feed {
  background: var(--hp-bg);
  padding: 64px 0;
}

.hp-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-feed-row {
  display: grid;
  grid-template-columns: 140px 1fr 40px;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--hp-border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}
.hp-feed-list li:first-child .hp-feed-row { border-top: 1px solid var(--hp-border); }
.hp-feed-row:hover { opacity: 0.78; }

.hp-feed-thumb {
  width: 140px;
  height: 88px;
  border-radius: 8px;
  background: var(--olive);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.hp-feed-text { min-width: 0; }

.hp-feed-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-red);
  margin-bottom: 6px;
  font-family: -apple-system, sans-serif;
}

.hp-feed-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--hp-text);
  line-height: 1.3;
  margin-bottom: 5px;
}

.hp-feed-text p {
  font-size: 13px;
  color: var(--hp-muted);
  line-height: 1.5;
  font-family: -apple-system, sans-serif;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hp-feed-arrow {
  font-size: 18px;
  color: var(--hp-red);
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.hp-feed-row:hover .hp-feed-arrow { opacity: 1; transform: translateX(4px); }


/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hp-hero-inner {
    grid-template-columns: 1fr 320px;
    gap: 40px;
  }
  .hp-articles-grid {
    grid-template-columns: 3fr 2fr;
  }
  .hp-article-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hp-hero-inner {
    grid-template-columns: 1fr;
    padding: 110px 24px 60px;
    gap: 36px;
  }
  .hp-hero-content h1 { font-size: 36px; }
  .hp-hero-stats { gap: 20px; }
  .hp-hero-sub { font-size: 15px; }

  .hp-regions-grid { grid-template-columns: repeat(2, 1fr); }

  .hp-articles-grid {
    grid-template-columns: 1fr;
  }
  .hp-article-card:last-child { grid-column: auto; }
  .hp-article-big .hp-article-thumb { height: 220px; }

  .hp-about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hp-about-photo { max-width: 320px; margin: 0 auto; }
  .hp-about-photo img { height: 360px; }
  .hp-about-photo::before { display: none; }
  .hp-about-quote { text-align: left; }
  .hp-about-creds { justify-items: start; }
  .hp-about-link { margin: 0 auto; }

  .hp-feed-row { grid-template-columns: 100px 1fr; }
  .hp-feed-thumb { width: 100px; height: 68px; }
  .hp-feed-arrow { display: none; }
}

@media (max-width: 480px) {
  .header-inner { padding: 16px 20px !important; }

  .hp-hero-content h1 { font-size: 30px; }
  .hp-hero-sub { font-size: 14px; margin-bottom: 24px; }
  .hp-hero-stats { flex-wrap: wrap; gap: 16px; }
  .hp-hero-actions { flex-direction: column; }
  .hp-btn-primary,
  .hp-btn-ghost { text-align: center; justify-content: center; }

  .hp-regions-grid { gap: 10px; }

  .hp-section-title-row h2,
  .hp-section-header h2 { font-size: 24px; }

  .hp-feed-row { grid-template-columns: 80px 1fr; gap: 12px; }
  .hp-feed-thumb { width: 80px; height: 56px; }
  .hp-feed-text h3 { font-size: 15px; }
  .hp-feed-text p { display: none; }
}
