/* CSS cho Trang chủ */
.page-index {
  color: #F2FFF6; /* Text Main */
  background: #08160F; /* Background */
}

.page-index__hero-section {
  padding-top: 10px;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.page-index__hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.page-index__page-title {
  color: #F2C14E; /* Gold */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 28px auto 24px;
  padding: 0 15px;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.3;
}
.page-index__page-title::before,
.page-index__page-title::after {
  content: '';
  width: 40px;
  height: 3px;
  background-color: #F2C14E; /* Gold */
  margin: 0 14px;
  flex-shrink: 0;
}

.page-index__blog-section {
  max-width: 1200px;
  margin: 0 auto 36px;
  padding: 0 15px;
  box-sizing: border-box;
}
.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}
.page-index__blog-card {
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.page-index__blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.page-index__blog-card-image {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  margin-bottom: 14px;
}
.page-index__blog-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-index__blog-date {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: #fff;
  border: 1px solid #F2C14E; /* Gold */
  color: #0A4B2C; /* Deep Green */
  text-align: center;
  min-width: 42px;
  padding: 6px 8px;
  line-height: 1.15;
  box-sizing: border-box;
  border-radius: 4px;
  font-weight: 600;
}
.page-index__blog-date-day {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}
.page-index__blog-date-month {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.page-index__blog-card-body {
  text-align: center;
  padding: 0 15px 20px;
}
.page-index__blog-card-title {
  color: #F2C14E; /* Gold */
  font-weight: 700;
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.35;
}
.page-index__blog-divider {
  width: 40px;
  height: 2px;
  background: #1E3A2A; /* Divider */
  margin: 0 auto 12px;
}
.page-index__blog-excerpt {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.page-index__content-section {
  padding-bottom: 48px;
}
.page-index__home-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  line-height: 1.7;
  color: #F2FFF6; /* Text Main */
  box-sizing: border-box;
}
.page-index__home-content em {
  font-style: italic;
  color: #A7D9B8; /* Text Secondary */
}
.page-index__home-content h2 {
  color: #F2C14E; /* Gold */
  font-size: 1.8rem;
  margin-top: 36px;
  margin-bottom: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.page-index__home-content h3 {
  color: #F2C14E; /* Gold */
  font-size: 1.4rem;
  margin-top: 28px;
  margin-bottom: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.page-index__home-content p {
  margin-bottom: 16px;
}
.page-index__home-content a {
  color: #57E38D; /* Glow */
  text-decoration: underline;
  font-weight: 500;
}
.page-index__home-content ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 16px;
  color: #F2FFF6; /* Text Main */
}
.page-index__home-content li {
  margin-bottom: 8px;
}

.page-index__wp-caption {
  margin: 20px auto;
  text-align: center;
  max-width: 800px;
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
}
.page-index__wp-caption img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.page-index__wp-caption figcaption {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.85rem;
  margin-top: 10px;
  line-height: 1.4;
}

.page-index__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button Gradient */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  transition: background 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}
.page-index__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-index__blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }
  .page-index__page-title {
    font-size: clamp(1.1rem, 2.8vw, 1.6rem);
  }
  .page-index__home-content h2 {
    font-size: 1.6rem;
  }
  .page-index__home-content h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 10px !important;
  }
  .page-index__page-title {
    font-size: clamp(1rem, 4vw, 1.4rem);
    margin: 20px auto 18px;
  }
  .page-index__page-title::before,
  .page-index__page-title::after {
    width: 25px;
    margin: 0 10px;
  }
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 0 15px;
  }
  .page-index__blog-card {
    margin-bottom: 15px;
  }
  .page-index__blog-card-image img,
  .page-index__wp-caption img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__blog-section,
  .page-index__content-section,
  .page-index__home-content,
  .page-index__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__home-content h2 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-index__home-content h3 {
    font-size: 1.2rem;
    margin-top: 24px;
    margin-bottom: 12px;
  }
  .page-index__home-content p,
  .page-index__home-content li {
    font-size: 0.95rem;
  }
  .page-index__cta-button {
    width: 100% !important;
    margin-top: 15px;
  }
}