/* style/blog-cbvip-latest-offers.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */

:root {
  --cbvip-primary-color: #11A84E;
  --cbvip-secondary-color: #22C768;
  --cbvip-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --cbvip-card-bg: #11271B;
  --cbvip-background: #08160F;
  --cbvip-text-main: #F2FFF6;
  --cbvip-text-secondary: #A7D9B8;
  --cbvip-border-color: #2E7A4E;
  --cbvip-glow-color: #57E38D;
  --cbvip-gold-color: #F2C14E;
  --cbvip-divider-color: #1E3A2A;
  --cbvip-deep-green: #0A4B2C;
}

.page-blog-cbvip-latest-offers {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--cbvip-text-main); /* Mặc định cho toàn bộ trang */
  background-color: var(--cbvip-background);
}

.page-blog-cbvip-latest-offers__section {
  padding: 60px 20px;
  text-align: center;
}

.page-blog-cbvip-latest-offers__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Thêm padding ngang cho container */
  box-sizing: border-box;
}

/* HERO Section */
.page-blog-cbvip-latest-offers__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Nhỏ gọn, không dùng var(--header-offset) */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--cbvip-background);
}

.page-blog-cbvip-latest-offers__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Giới hạn chiều cao của ảnh hero */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-blog-cbvip-latest-offers__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

.page-blog-cbvip-latest-offers__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 0 15px;
}

.page-blog-cbvip-latest-offers__main-title {
  color: var(--cbvip-text-main);
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Sử dụng clamp cho kích thước chữ linh hoạt */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-blog-cbvip-latest-offers__intro-text {
  color: var(--cbvip-text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-cbvip-latest-offers__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog-cbvip-latest-offers__cta-buttons--center {
  margin-top: 30px;
}

.page-blog-cbvip-latest-offers__btn-primary,
.page-blog-cbvip-latest-offers__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Cho phép xuống dòng */
  word-wrap: break-word; /* Đảm bảo từ không bị tràn */
  max-width: 100%;
}

.page-blog-cbvip-latest-offers__btn-primary {
  background: var(--cbvip-button-gradient);
  color: var(--cbvip-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-blog-cbvip-latest-offers__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  opacity: 0.9;
}

.page-blog-cbvip-latest-offers__btn-secondary {
  background: transparent;
  color: var(--cbvip-primary-color);
  border: 2px solid var(--cbvip-primary-color);
}

.page-blog-cbvip-latest-offers__btn-secondary:hover {
  background: var(--cbvip-primary-color);
  color: var(--cbvip-text-main);
  transform: translateY(-3px);
  opacity: 0.9;
}

/* Common Section Styles */
.page-blog-cbvip-latest-offers__section-title {
  color: var(--cbvip-text-main);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-blog-cbvip-latest-offers__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--cbvip-gold-color);
  border-radius: 2px;
}

.page-blog-cbvip-latest-offers__section-description {
  color: var(--cbvip-text-secondary);
  font-size: 1rem;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-blog-cbvip-latest-offers__light-bg {
  background-color: var(--cbvip-background);
  color: var(--cbvip-text-main);
}

.page-blog-cbvip-latest-offers__dark-section {
  background-color: var(--cbvip-card-bg);
  color: var(--cbvip-text-main);
}

/* Image Content */
.page-blog-cbvip-latest-offers__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-blog-cbvip-latest-offers__image-card {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

/* Grid for Offers Type */
.page-blog-cbvip-latest-offers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-cbvip-latest-offers__card {
  background-color: var(--cbvip-background);
  border: 1px solid var(--cbvip-border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
}

.page-blog-cbvip-latest-offers__card-title {
  color: var(--cbvip-gold-color);
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.page-blog-cbvip-latest-offers__card-text {
  color: var(--cbvip-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog-cbvip-latest-offers__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.page-blog-cbvip-latest-offers__list-item {
  color: var(--cbvip-text-secondary);
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 0.95rem;
}

.page-blog-cbvip-latest-offers__list-item::before {
  content: '✔';
  color: var(--cbvip-glow-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-blog-cbvip-latest-offers__list--benefits .page-blog-cbvip-latest-offers__list-item::before {
  content: '⭐';
}

.page-blog-cbvip-latest-offers__ordered-list {
  list-style: decimal;
  padding-left: 20px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-blog-cbvip-latest-offers__ordered-list .page-blog-cbvip-latest-offers__list-item {
  color: var(--cbvip-text-secondary);
  margin-bottom: 15px;
  font-size: 1rem;
  padding-left: 0;
}

.page-blog-cbvip-latest-offers__ordered-list .page-blog-cbvip-latest-offers__list-item::before {
  content: none;
}

/* FAQ Section */
.page-blog-cbvip-latest-offers__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-cbvip-latest-offers__faq-item {
  background-color: var(--cbvip-background);
  border: 1px solid var(--cbvip-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog-cbvip-latest-offers__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cbvip-text-main);
  cursor: pointer;
  background-color: var(--cbvip-deep-green);
  border-bottom: 1px solid var(--cbvip-border-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-blog-cbvip-latest-offers__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog-cbvip-latest-offers__faq-question:hover {
  background-color: var(--cbvip-primary-color);
}

.page-blog-cbvip-latest-offers__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--cbvip-glow-color);
  transition: transform 0.3s ease;
}

.page-blog-cbvip-latest-offers__faq-item[open] .page-blog-cbvip-latest-offers__faq-toggle {
  transform: rotate(45deg);
}

.page-blog-cbvip-latest-offers__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--cbvip-text-secondary);
  line-height: 1.6;
}

.page-blog-cbvip-latest-offers__faq-answer p {
  margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-blog-cbvip-latest-offers {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog-cbvip-latest-offers__section {
    padding: 40px 10px;
  }

  .page-blog-cbvip-latest-offers__container {
    padding: 0 10px;
  }

  .page-blog-cbvip-latest-offers__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-blog-cbvip-latest-offers__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-blog-cbvip-latest-offers__intro-text {
    font-size: 1rem;
  }

  .page-blog-cbvip-latest-offers__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog-cbvip-latest-offers__btn-primary,
  .page-blog-cbvip-latest-offers__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog-cbvip-latest-offers__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-blog-cbvip-latest-offers__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog-cbvip-latest-offers__card {
    padding: 20px;
  }

  .page-blog-cbvip-latest-offers__card-title {
    font-size: 1.4rem;
  }

  .page-blog-cbvip-latest-offers__list-item,
  .page-blog-cbvip-latest-offers__card-text {
    font-size: 0.9rem;
  }

  .page-blog-cbvip-latest-offers__image-content,
  .page-blog-cbvip-latest-offers__image-card {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-blog-cbvip-latest-offers__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-blog-cbvip-latest-offers__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  /* Ensure all containers and elements containing images/videos/buttons are responsive */
  .page-blog-cbvip-latest-offers__section,
  .page-blog-cbvip-latest-offers__card,
  .page-blog-cbvip-latest-offers__container,
  .page-blog-cbvip-latest-offers__cta-buttons,
  .page-blog-cbvip-latest-offers__grid,
  .page-blog-cbvip-latest-offers__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-blog-cbvip-latest-offers__hero-image-wrapper {
    max-height: 400px; /* Adjust hero image height for mobile */
  }
}