/* style/gift-code-latest-codes.css */

/* Variables */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #00CED1; /* Teal */
  --dark-background: #1a1a2e; /* Body background from shared.css */
  --light-text: #ffffff;
  --dark-text: #333333;
  --card-background-light: #ffffff;
  --card-background-dark: rgba(255, 255, 255, 0.05); /* Subtle white on dark body */
  --border-color-light: #e0e0e0;
  --border-color-dark: rgba(255, 255, 255, 0.1);
}

/* Base styles for the page content wrapper */
.page-gift-code-latest-codes {
  color: var(--light-text); /* Default text color for dark body background */
  background-color: var(--dark-background); /* Ensure consistency with body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Ensure the first section has enough padding-top to clear the fixed header */
.page-gift-code-latest-codes__intro-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
  padding-bottom: 40px;
  background: linear-gradient(135deg, #2a2a4a, #1a1a2e); /* Subtle gradient for intro */
}

.page-gift-code-latest-codes__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-gift-code-latest-codes__main-title {
  font-size: 42px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-gift-code-latest-codes__intro-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--light-text);
}

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

.page-gift-code-latest-codes__banner-image-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.page-gift-code-latest-codes__banner-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

/* Section styles */
.page-gift-code-latest-codes__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-gift-code-latest-codes__sub-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.page-gift-code-latest-codes__paragraph {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--light-text);
}

.page-gift-code-latest-codes__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--light-text);
}

.page-gift-code-latest-codes__ordered-list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--light-text);
}

.page-gift-code-latest-codes__list-item {
  margin-bottom: 8px;
  font-size: 16px;
}

.page-gift-code-latest-codes__link-in-text {
  color: var(--secondary-color); /* Teal for links in text */
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-gift-code-latest-codes__link-in-text:hover {
  color: #008B8B; /* Darker teal on hover */
}

/* Dark background sections */
.page-gift-code-latest-codes__dark-bg {
  background-color: var(--dark-background); /* Ensure it's dark */
  color: var(--light-text); /* Light text on dark background */
  padding: 60px 0;
}

/* Light background for cards within dark sections or general light sections */
.page-gift-code-latest-codes__light-bg {
  background-color: var(--card-background-light); /* White background */
  color: var(--dark-text); /* Dark text on light background */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

/* Overview section */
.page-gift-code-latest-codes__overview-section {
  padding: 60px 0;
}

/* Guide section */
.page-gift-code-latest-codes__guide-section {
  padding: 60px 0;
  background-color: #2a2a4a; /* Slightly lighter dark background */
}

.page-gift-code-latest-codes__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-gift-code-latest-codes__text-block {
  flex: 1;
}

.page-gift-code-latest-codes__image-block {
  flex: 1;
  text-align: center;
}

.page-gift-code-latest-codes__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* CTA Button styles */
.page-gift-code-latest-codes__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-gift-code-latest-codes__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: linear-gradient(135deg, var(--primary-color), #FFC107); /* Gold gradient */
  color: var(--dark-background); /* Dark text on gold button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-gift-code-latest-codes__cta-button:hover {
  background: linear-gradient(135deg, #FFC107, var(--primary-color));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Promotions section */
.page-gift-code-latest-codes__promotions-section {
  padding: 60px 0;
}

.page-gift-code-latest-codes__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-gift-code-latest-codes__promo-card {
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px; /* Ensure cards have similar height */
}

.page-gift-code-latest-codes__card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color); /* Teal for card titles */
  margin-bottom: 15px;
}

.page-gift-code-latest-codes__card-text {
  font-size: 15px;
  color: var(--dark-text);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* News section */
.page-gift-code-latest-codes__news-section {
  padding: 60px 0;
  background-color: #2a2a4a; /* Slightly lighter dark background */
}

.page-gift-code-latest-codes__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-gift-code-latest-codes__news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}

.page-gift-code-latest-codes__news-thumbnail {
  width: 100%;
  height: 200px; /* Fixed height for thumbnails */
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}

.page-gift-code-latest-codes__news-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-gift-code-latest-codes__news-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color); /* Teal for news titles */
}

.page-gift-code-latest-codes__news-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-gift-code-latest-codes__news-link:hover {
  color: #008B8B;
  text-decoration: underline;
}

.page-gift-code-latest-codes__news-excerpt {
  font-size: 15px;
  color: var(--dark-text);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-gift-code-latest-codes__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-gift-code-latest-codes__read-more:hover {
  color: #FFC107;
  text-decoration: underline;
}

/* FAQ Section */
.page-gift-code-latest-codes__faq-section {
  padding: 60px 0;
}

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

.page-gift-code-latest-codes__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: var(--card-background-dark); /* Dark card background */
}

.page-gift-code-latest-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 15px;
  opacity: 0;
  color: var(--light-text);
}

.page-gift-code-latest-codes__faq-item.active .page-gift-code-latest-codes__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background for answer */
  border-radius: 0 0 5px 5px;
}

.page-gift-code-latest-codes__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-background-dark); /* Dark card background */
  border: 1px solid var(--border-color-dark);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-gift-code-latest-codes__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-gift-code-latest-codes__faq-question:active {
  background: rgba(255, 255, 255, 0.15);
}

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

.page-gift-code-latest-codes__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* Teal for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-gift-code-latest-codes__faq-item.active .page-gift-code-latest-codes__faq-toggle {
  color: var(--primary-color); /* Gold when active */
  transform: rotate(45deg); /* Rotate to form an 'X' or similar */
}