/* style/blog-cap-nhat-khuyen-mai-f88.css */

:root {
  --f88-primary-blue: #2F6BFF;
  --f88-secondary-blue: #6FA3FF;
  --f88-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --f88-card-bg: #FFFFFF;
  --f88-background-light: #F4F7FB;
  --f88-text-main: #1F2D3D;
  --f88-text-black: #000000;
  --f88-border-light: #D6E2FF;
  --f88-glow-effect: #A5C4FF;
}

.page-blog-cap-nhat-khuyen-mai-f88 {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--f88-text-main);
  background-color: var(--f88-background-light);
}

.page-blog-cap-nhat-khuyen-mai-f88__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Hero Section */
.page-blog-cap-nhat-khuyen-mai-f88__hero-section {
  padding-top: 10px; /* Adhere to fixed header spacing rule */
  padding-bottom: 60px;
  background-color: var(--f88-background-light);
}

.page-blog-cap-nhat-khuyen-mai-f88__hero-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 40px;
}

.page-blog-cap-nhat-khuyen-mai-f88__hero-text {
  flex: 1;
}

.page-blog-cap-nhat-khuyen-mai-f88__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--f88-text-black);
  margin-bottom: 20px;
  max-width: 700px;
}

.page-blog-cap-nhat-khuyen-mai-f88__hero-description {
  font-size: 1.1rem;
  color: var(--f88-text-main);
  margin-bottom: 30px;
  max-width: 600px;
}

.page-blog-cap-nhat-khuyen-mai-f88__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-blog-cap-nhat-khuyen-mai-f88__btn-primary,
.page-blog-cap-nhat-khuyen-mai-f88__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-blog-cap-nhat-khuyen-mai-f88__btn-primary {
  background: var(--f88-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-blog-cap-nhat-khuyen-mai-f88__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog-cap-nhat-khuyen-mai-f88__btn-secondary {
  background: #ffffff;
  color: var(--f88-primary-blue);
  border: 2px solid var(--f88-primary-blue);
}

.page-blog-cap-nhat-khuyen-mai-f88__btn-secondary:hover {
  background: var(--f88-primary-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-blog-cap-nhat-khuyen-mai-f88__hero-image {
  flex: 1;
  text-align: right;
}

.page-blog-cap-nhat-khuyen-mai-f88__hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Promo List Section */
.page-blog-cap-nhat-khuyen-mai-f88__promo-list-section {
  padding: 80px 0;
  background-color: var(--f88-background-light);
}

.page-blog-cap-nhat-khuyen-mai-f88__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--f88-text-black);
  text-align: center;
  margin-bottom: 20px;
}

.page-blog-cap-nhat-khuyen-mai-f88__section-description {
  font-size: 1.1rem;
  color: var(--f88-text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.page-blog-cap-nhat-khuyen-mai-f88__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-blog-cap-nhat-khuyen-mai-f88__promo-card {
  background-color: var(--f88-card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--f88-border-light);
}

.page-blog-cap-nhat-khuyen-mai-f88__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-blog-cap-nhat-khuyen-mai-f88__promo-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card image display */
  overflow: hidden;
}

.page-blog-cap-nhat-khuyen-mai-f88__promo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-blog-cap-nhat-khuyen-mai-f88__promo-card-content {
  padding: 25px;
}

.page-blog-cap-nhat-khuyen-mai-f88__promo-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--f88-text-black);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog-cap-nhat-khuyen-mai-f88__promo-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-blog-cap-nhat-khuyen-mai-f88__promo-card-title a:hover {
  color: var(--f88-primary-blue);
}

.page-blog-cap-nhat-khuyen-mai-f88__promo-card-text {
  font-size: 1rem;
  color: var(--f88-text-main);
  margin-bottom: 15px;
}

.page-blog-cap-nhat-khuyen-mai-f88__promo-card-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

.page-blog-cap-nhat-khuyen-mai-f88__btn-link {
  color: var(--f88-primary-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  position: relative;
}

.page-blog-cap-nhat-khuyen-mai-f88__btn-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--f88-primary-blue);
  transition: width 0.3s ease;
}

.page-blog-cap-nhat-khuyen-mai-f88__btn-link:hover::after {
  width: 100%;
}

.page-blog-cap-nhat-khuyen-mai-f88__view-all-promos {
  text-align: center;
  margin-top: 60px;
}

/* CTA Banner Section */
.page-blog-cap-nhat-khuyen-mai-f88__cta-banner {
  padding: 80px 0;
  background: var(--f88-primary-blue);
  color: #ffffff;
  text-align: center;
}

.page-blog-cap-nhat-khuyen-mai-f88__banner-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-blog-cap-nhat-khuyen-mai-f88__banner-description {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

.page-blog-cap-nhat-khuyen-mai-f88__cta-banner .page-blog-cap-nhat-khuyen-mai-f88__cta-buttons {
  justify-content: center;
}

.page-blog-cap-nhat-khuyen-mai-f88__cta-banner .page-blog-cap-nhat-khuyen-mai-f88__btn-secondary {
  background: #ffffff;
  color: var(--f88-primary-blue);
  border-color: #ffffff;
}

.page-blog-cap-nhat-khuyen-mai-f88__cta-banner .page-blog-cap-nhat-khuyen-mai-f88__btn-secondary:hover {
  background: var(--f88-secondary-blue);
  color: #ffffff;
  border-color: var(--f88-secondary-blue);
}

/* FAQ Section */
.page-blog-cap-nhat-khuyen-mai-f88__faq-section {
  padding: 80px 0;
  background-color: var(--f88-background-light);
}

.page-blog-cap-nhat-khuyen-mai-f88__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog-cap-nhat-khuyen-mai-f88__faq-item {
  background-color: var(--f88-card-bg);
  border: 1px solid var(--f88-border-light);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-blog-cap-nhat-khuyen-mai-f88__faq-item[open] .page-blog-cap-nhat-khuyen-mai-f88__faq-question {
  background-color: var(--f88-primary-blue);
  color: #ffffff;
  border-bottom-color: transparent;
}

.page-blog-cap-nhat-khuyen-mai-f88__faq-item[open] .page-blog-cap-nhat-khuyen-mai-f88__faq-toggle {
  color: #ffffff;
}

.page-blog-cap-nhat-khuyen-mai-f88__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--f88-text-black);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog-cap-nhat-khuyen-mai-f88__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog-cap-nhat-khuyen-mai-f88__faq-qtext {
  flex-grow: 1;
}

.page-blog-cap-nhat-khuyen-mai-f88__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 15px;
  color: var(--f88-primary-blue);
  transition: transform 0.3s ease;
}

.page-blog-cap-nhat-khuyen-mai-f88__faq-item[open] .page-blog-cap-nhat-khuyen-mai-f88__faq-toggle {
  transform: rotate(45deg);
}

.page-blog-cap-nhat-khuyen-mai-f88__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--f88-text-main);
  line-height: 1.6;
}

.page-blog-cap-nhat-khuyen-mai-f88__faq-answer p {
    margin-bottom: 0;
}

/* General image responsiveness */
.page-blog-cap-nhat-khuyen-mai-f88 img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-blog-cap-nhat-khuyen-mai-f88__hero-content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__hero-text,
  .page-blog-cap-nhat-khuyen-mai-f88__hero-image {
    flex: none;
    width: 100%;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__hero-image {
    text-align: center;
    order: -1; /* Image above text on smaller screens */
  }

  .page-blog-cap-nhat-khuyen-mai-f88__main-title,
  .page-blog-cap-nhat-khuyen-mai-f88__hero-description {
    max-width: none;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__cta-buttons {
    justify-content: center;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__section-title {
    font-size: 2rem;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__banner-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-blog-cap-nhat-khuyen-mai-f88__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__hero-content-wrapper {
    gap: 20px;
    padding-top: 20px;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  /* Buttons and Button Containers */
  .page-blog-cap-nhat-khuyen-mai-f88__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__btn-primary,
  .page-blog-cap-nhat-khuyen-mai-f88__btn-secondary,
  .page-blog-cap-nhat-khuyen-mai-f88__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__view-all-promos .page-blog-cap-nhat-khuyen-mai-f88__btn-primary {
    max-width: 90% !important;
    margin: 0 auto;
  }

  /* General Content Sections */
  .page-blog-cap-nhat-khuyen-mai-f88__promo-list-section,
  .page-blog-cap-nhat-khuyen-mai-f88__cta-banner,
  .page-blog-cap-nhat-khuyen-mai-f88__faq-section {
    padding: 50px 0;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__section-description {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__promo-card-image {
    height: 200px;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__promo-card-title {
    font-size: 1.2rem;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__promo-card-text {
    font-size: 0.9rem;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__banner-title {
    font-size: 1.8rem;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__banner-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__faq-toggle {
    font-size: 1.2rem;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* Universal Image Responsiveness */
  .page-blog-cap-nhat-khuyen-mai-f88 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog-cap-nhat-khuyen-mai-f88__section,
  .page-blog-cap-nhat-khuyen-mai-f88__card,
  .page-blog-cap-nhat-khuyen-mai-f88__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}