/* style/gift-codes.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #FFA500;
  --dark-background: #0a0a0a;
  --dark-card-background: #1A1A1A;
  --light-background: #f1f3f5;
  --text-light: #ffffff;
  --text-dark: #333333;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

.page-gift-codes {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--dark-background); /* Ensure consistent background */
}

.page-gift-codes__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Top padding for fixed header */
.page-gift-codes__hero-banner {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

.page-gift-codes__hero-banner.page-gift-codes__dark-bg {
  background: var(--dark-background);
  color: var(--text-light);
  padding-bottom: 60px;
}

.page-gift-codes__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-gift-codes__hero-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-gift-codes__hero-content {
  max-width: 800px;
}

.page-gift-codes__main-title {
  font-size: 42px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gift-codes__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-gift-codes__highlight {
  color: var(--primary-color);
  font-weight: bold;
}

.page-gift-codes__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--dark-background);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
  border: none;
}

.page-gift-codes__cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
  color: var(--dark-background);
}

.page-gift-codes__cta-button--small {
  font-size: 16px;
  padding: 12px 25px;
}

.page-gift-codes__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-gift-codes__section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.6;
}

.page-gift-codes__card {
  background: var(--dark-card-background);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

.page-gift-codes__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-gift-codes__card-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--dark-background);
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
}

.page-gift-codes__card-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
  color: var(--dark-background);
}

/* Review Content Section (Module 1.5) */
.page-gift-codes__review-content-section {
  padding: 60px 0;
  background: var(--light-background); /* Light background for contrast */
  color: var(--text-dark);
}

.page-gift-codes__review-content-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-gift-codes__review-content-card {
  background: #ffffff; /* White background */
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 50px;
  color: var(--text-dark);
}

.page-gift-codes__review-content-card h2 {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 30px;
  text-align: center;
}

.page-gift-codes__review-content-card h3 {
  font-size: 24px;
  font-weight: bold; /* Tiểu đề in đậm */
  color: var(--text-dark);
  margin-top: 35px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-gift-codes__review-body {
  color: var(--text-dark);
  line-height: 1.8; /* Đoạn văn bản có chiều cao dòng 1.6～1.8 */
  font-size: 17px;
}

.page-gift-codes__review-body p {
  margin-bottom: 18px;
}

/* Info Section (Module 2) */
.page-gift-codes__info-section {
  padding: 60px 0;
  background: var(--dark-background);
  color: var(--text-light);
}

.page-gift-codes__info-section .page-gift-codes__section-title {
  color: var(--primary-color);
}

.page-gift-codes__grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-gift-codes__text-block {
  flex: 1;
  line-height: 1.7;
  font-size: 17px;
}

.page-gift-codes__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-gift-codes__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Types Section (Module 3) */
.page-gift-codes__types-section {
  padding: 60px 0;
  background: var(--light-background);
  color: var(--text-dark);
}

.page-gift-codes__types-section .page-gift-codes__section-title {
  color: var(--text-dark);
}

.page-gift-codes__types-section .page-gift-codes__section-subtitle {
  color: var(--text-dark);
}

.page-gift-codes__types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-gift-codes__type-card {
  text-align: center;
  background: #ffffff;
  color: var(--text-dark);
  padding: 35px 25px;
}

.page-gift-codes__type-icon {
  width: 150px; /* Min size 200x200, but typeicon can be smaller if it's an abstract illustration */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-gift-codes__type-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-gift-codes__type-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
}

.page-gift-codes__steps-to-claim {
  background: #ffffff;
  color: var(--text-dark);
  padding: 40px;
}

.page-gift-codes__steps-to-claim .page-gift-codes__type-title {
  color: var(--text-dark);
  font-size: 28px;
  margin-bottom: 25px;
}

.page-gift-codes__ordered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.8;
}

.page-gift-codes__ordered-list li {
  margin-bottom: 10px;
}

.page-gift-codes__ordered-list strong {
  color: var(--primary-color);
}

/* Promotions Section (Module 4) */
.page-gift-codes__promotions-section {
  padding: 60px 0;
  background: var(--dark-background);
  color: var(--text-light);
}

.page-gift-codes__promotions-section .page-gift-codes__section-title {
  color: var(--primary-color);
}

.page-gift-codes__promotions-section .page-gift-codes__section-subtitle {
  color: var(--text-light);
}

.page-gift-codes__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-gift-codes__promotion-card {
  background: var(--dark-card-background);
  color: var(--text-light);
  text-align: center;
  padding: 35px 25px;
}

.page-gift-codes__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-gift-codes__promotion-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-gift-codes__promotion-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light);
}

/* FAQ Section (Module 5) */
.page-gift-codes__faq-section {
  padding: 60px 0;
  background: var(--light-background);
  color: var(--text-dark);
}

.page-gift-codes__faq-section .page-gift-codes__section-title {
  color: var(--text-dark);
}

.page-gift-codes__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-gift-codes__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-gift-codes__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
}

.page-gift-codes__faq-item.active .page-gift-codes__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: var(--text-dark);
}

.page-gift-codes__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-gift-codes__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-gift-codes__faq-question:active {
  background: #eeeeee;
}

.page-gift-codes__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-gift-codes__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-gift-codes__faq-item.active .page-gift-codes__faq-toggle {
  color: var(--text-dark);
  transform: rotate(45deg); /* Change + to X or a rotated minus */
}

/* Blog Section (Module 6) */
.page-gift-codes__blog-section {
  padding: 60px 0;
  background: var(--dark-background);
  color: var(--text-light);
}

.page-gift-codes__blog-section .page-gift-codes__section-title {
  color: var(--primary-color);
}

.page-gift-codes__blog-section .page-gift-codes__section-subtitle {
  color: var(--text-light);
}

.page-gift-codes__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-gift-codes__blog-card {
  background: var(--dark-card-background);
  color: var(--text-light);
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.page-gift-codes__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.page-gift-codes__blog-content {
  padding: 25px;
}

.page-gift-codes__blog-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-gift-codes__blog-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-gift-codes__blog-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-gift-codes__blog-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-gift-codes__read-more-button {
  display: inline-block;
  padding: 8px 18px;
  background: var(--primary-color);
  color: var(--dark-background);
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.page-gift-codes__read-more-button:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(255, 165, 0, 0.2);
  color: var(--dark-background);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gift-codes__main-title {
    font-size: 38px;
  }

  .page-gift-codes__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-gift-codes__hero-banner {
    padding-top: 100px !important; /* Mobile: Adjust based on mobile fixed header height */
    padding-bottom: 40px;
  }

  .page-gift-codes__hero-container {
    padding: 0 15px;
  }

  .page-gift-codes__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-gift-codes__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-gift-codes__cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }

  .page-gift-codes__container {
    padding: 30px 15px;
  }

  .page-gift-codes__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-gift-codes__section-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .page-gift-codes__review-content-section {
    padding: 40px 0;
  }

  .page-gift-codes__review-content-card {
    padding: 30px 20px;
  }

  .page-gift-codes__review-content-card h2 {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-gift-codes__review-content-card h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-gift-codes__review-body {
    font-size: 15px;
    line-height: 1.7;
  }

  .page-gift-codes__grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-gift-codes__types-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
  }

  .page-gift-codes__type-card {
    padding: 30px 20px;
  }

  .page-gift-codes__type-icon {
    width: 120px;
  }

  .page-gift-codes__type-title {
    font-size: 20px;
  }

  .page-gift-codes__type-description {
    font-size: 14px;
  }

  .page-gift-codes__steps-to-claim {
    padding: 30px 20px;
  }

  .page-gift-codes__steps-to-claim .page-gift-codes__type-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-gift-codes__ordered-list {
    font-size: 15px;
    padding-left: 20px;
    margin-bottom: 25px;
  }

  .page-gift-codes__promotions-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-gift-codes__promotion-card {
    padding: 30px 20px;
  }

  .page-gift-codes__promotion-image {
    height: 180px;
  }

  .page-gift-codes__promotion-title {
    font-size: 20px;
  }

  .page-gift-codes__promotion-description {
    font-size: 14px;
  }

  .page-gift-codes__faq-question {
    padding: 15px 20px;
  }
  
  .page-gift-codes__faq-question h3 {
    font-size: 16px;
  }

  .page-gift-codes__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }

  .page-gift-codes__faq-item.active .page-gift-codes__faq-answer {
    padding: 15px !important;
  }

  .page-gift-codes__blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-gift-codes__blog-image {
    height: 180px;
  }

  .page-gift-codes__blog-title {
    font-size: 18px;
  }

  .page-gift-codes__blog-excerpt {
    font-size: 14px;
  }

  .page-gift-codes__read-more-button {
    font-size: 13px;
    padding: 7px 15px;
  }

  /* Ensure all images and containers adapt to mobile */
  .page-gift-codes img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-gift-codes__hero-banner,
  .page-gift-codes__review-content-section,
  .page-gift-codes__info-section,
  .page-gift-codes__types-section,
  .page-gift-codes__promotions-section,
  .page-gift-codes__faq-section,
  .page-gift-codes__blog-section,
  .page-gift-codes__container,
  .page-gift-codes__review-content-container,
  .page-gift-codes__review-content-card,
  .page-gift-codes__grid,
  .page-gift-codes__types-grid,
  .page-gift-codes__type-card,
  .page-gift-codes__steps-to-claim,
  .page-gift-codes__promotions-grid,
  .page-gift-codes__promotion-card,
  .page-gift-codes__faq-list,
  .page-gift-codes__faq-item,
  .page-gift-codes__blog-grid,
  .page-gift-codes__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}