:root {
  --primary-color: #007BFF;
  --secondary-color: #28A745;
  --accent-color: #FFD700; /* Gold */
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-dark: #0a0a0a;
  --background-light: #f8f9fa;
  --card-background: #ffffff;
  --border-color: #e0e0e0;
}

/* Base styles for the specific page */
.page-gift-codes-how-to-use {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Inherits from body */
  padding-top: 120px; /* Desktop: Space for fixed header */
}

@media (max-width: 768px) {
  .page-gift-codes-how-to-use {
    padding-top: 100px; /* Mobile: Space for fixed header */
  }
}

/* Ensure all images are responsive */
.page-gift-codes-how-to-use img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Sections */
.page-gift-codes-how-to-use__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-color-dark-bg);
}

.page-gift-codes-how-to-use__hero-section {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-color-dark-bg);
  position: relative;
  z-index: 1;
}

.page-gift-codes-how-to-use__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg);
  line-height: 1.2;
}

.page-gift-codes-how-to-use__subtitle {
  font-size: 20px;
  margin-bottom: 40px;
  color: var(--text-color-dark-bg);
}

.page-gift-codes-how-to-use__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-gift-codes-how-to-use__introduction-section,
.page-gift-codes-how-to-use__guide-section,
.page-gift-codes-how-to-use__maximize-section,
.page-gift-codes-how-to-use__news-section {
  padding: 60px 0;
}

.page-gift-codes-how-to-use__types-section,
.page-gift-codes-how-to-use__notes-section,
.page-gift-codes-how-to-use__faq-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
}

.page-gift-codes-how-to-use__light-bg .page-gift-codes-how-to-use__section-title,
.page-gift-codes-how-to-use__light-bg p,
.page-gift-codes-how-to-use__light-bg li,
.page-gift-codes-how-to-use__light-bg h2,
.page-gift-codes-how-to-use__light-bg h3 {
  color: var(--text-color-light-bg);
}

.page-gift-codes-how-to-use__dark-bg .page-gift-codes-how-to-use__section-title,
.page-gift-codes-how-to-use__dark-bg p,
.page-gift-codes-how-to-use__dark-bg li,
.page-gift-codes-how-to-use__dark-bg h2,
.page-gift-codes-how-to-use__dark-bg h3 {
  color: var(--text-color-dark-bg);
}

/* Cards */
.page-gift-codes-how-to-use__card {
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin-bottom: 30px;
  color: var(--text-color-light-bg);
}

.page-gift-codes-how-to-use__card h2, .page-gift-codes-how-to-use__card h3 {
  color: var(--text-color-light-bg);
}

.page-gift-codes-how-to-use__card--small {
  padding: 30px;
}

.page-gift-codes-how-to-use__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
  color: var(--primary-color);
}

.page-gift-codes-how-to-use__card--small .page-gift-codes-how-to-use__image {
  margin-bottom: 20px;
  max-height: 250px;
  width: 100%;
  object-fit: cover;
}

/* Grid Layouts */
.page-gift-codes-how-to-use__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gift-codes-how-to-use__grid--notes {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Steps List */
.page-gift-codes-how-to-use__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-gift-codes-how-to-use__steps-list li {
  background: var(--background-light);
  border-left: 5px solid var(--primary-color);
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-color-light-bg);
}

.page-gift-codes-how-to-use__steps-list li h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-gift-codes-how-to-use__steps-list li p {
  margin-bottom: 0;
  color: var(--text-color-light-bg);
}

/* Buttons */
.page-gift-codes-how-to-use__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--secondary-color), #218838);
  color: var(--text-color-dark-bg);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  border: none;
}

.page-gift-codes-how-to-use__cta-button:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.page-gift-codes-how-to-use__cta-button--centered {
  display: block;
  margin: 30px auto 0 auto;
  width: fit-content;
}

.page-gift-codes-how-to-use__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.page-gift-codes-how-to-use__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-dark-bg);
  transform: translateY(-2px);
}

.page-gift-codes-how-to-use__btn-text {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-gift-codes-how-to-use__btn-text:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Images */
.page-gift-codes-how-to-use__image {
  margin: 30px auto;
  display: block;
  max-width: 80%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-gift-codes-how-to-use__image--large-margin {
  margin-top: 50px;
  margin-bottom: 50px;
}

/* Text elements */
.page-gift-codes-how-to-use__highlight-text {
  color: var(--accent-color);
  font-weight: bold;
}

.page-gift-codes-how-to-use__text-block {
  text-align: center;
  margin-bottom: 30px;
  font-size: 18px;
}

/* News Grid */
.page-gift-codes-how-to-use__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-gift-codes-how-to-use__news-card {
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: var(--text-color-light-bg);
  display: flex;
  flex-direction: column;
}

.page-gift-codes-how-to-use__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.page-gift-codes-how-to-use__news-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 20px 10px 20px;
  color: var(--primary-color);
}

.page-gift-codes-how-to-use__news-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-gift-codes-how-to-use__news-title a:hover {
  text-decoration: underline;
}

.page-gift-codes-how-to-use__news-excerpt {
  font-size: 15px;
  color: #555555;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-gift-codes-how-to-use__news-card .page-gift-codes-how-to-use__btn-text {
  display: block;
  text-align: right;
  margin: 0 20px 20px 20px;
}

/* FAQ Section */
.page-gift-codes-how-to-use__faq-section {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-gift-codes-how-to-use__faq-list {
  margin-top: 40px;
}

.page-gift-codes-how-to-use__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-gift-codes-how-to-use__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 30px;
  opacity: 0;
  color: var(--text-color-light-bg);
}

.page-gift-codes-how-to-use__faq-item.active .page-gift-codes-how-to-use__faq-answer {
  max-height: 2000px !important;
  padding: 25px 30px !important;
  opacity: 1;
  background: var(--background-light);
  border-radius: 0 0 12px 12px;
}

.page-gift-codes-how-to-use__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-gift-codes-how-to-use__faq-question:hover {
  background: #f0f0f0;
  border-color: #d0d0d0;
}

.page-gift-codes-how-to-use__faq-question:active {
  background: #eeeeee;
}

.page-gift-codes-how-to-use__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-color-light-bg);
}

.page-gift-codes-how-to-use__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-how-to-use__faq-item.active .page-gift-codes-how-to-use__faq-toggle {
  color: #333;
  transform: rotate(45deg);
}

/* General link color for light backgrounds */
.page-gift-codes-how-to-use__light-bg a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-gift-codes-how-to-use__light-bg a:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* General link color for dark backgrounds */
.page-gift-codes-how-to-use__dark-bg a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

.page-gift-codes-how-to-use__dark-bg a:hover {
  text-decoration: underline;
  color: #ffd700;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gift-codes-how-to-use__main-title {
    font-size: 40px;
  }
  .page-gift-codes-how-to-use__subtitle {
    font-size: 18px;
  }
  .page-gift-codes-how-to-use__section-title {
    font-size: 28px;
  }
  .page-gift-codes-how-to-use__card {
    padding: 30px;
  }
  .page-gift-codes-how-to-use__steps-list li {
    padding: 20px 25px;
  }
  .page-gift-codes-how-to-use__steps-list li h3 {
    font-size: 20px;
  }
  .page-gift-codes-how-to-use__news-title {
    font-size: 18px;
  }
  .page-gift-codes-how-to-use__faq-question h3 {
    font-size: 17px;
  }
  .page-gift-codes-how-to-use__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 768px) {
  .page-gift-codes-how-to-use {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-gift-codes-how-to-use__hero-section {
    padding: 60px 15px;
  }
  .page-gift-codes-how-to-use__main-title {
    font-size: 32px;
  }
  .page-gift-codes-how-to-use__subtitle {
    font-size: 16px;
  }
  .page-gift-codes-how-to-use__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-gift-codes-how-to-use__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-gift-codes-how-to-use__introduction-section,
  .page-gift-codes-how-to-use__types-section,
  .page-gift-codes-how-to-use__guide-section,
  .page-gift-codes-how-to-use__notes-section,
  .page-gift-codes-how-to-use__maximize-section,
  .page-gift-codes-how-to-use__faq-section,
  .page-gift-codes-how-to-use__news-section {
    padding: 40px 0;
  }
  .page-gift-codes-how-to-use__card {
    padding: 25px;
    margin-bottom: 20px;
  }
  .page-gift-codes-how-to-use__card--small {
    padding: 20px;
  }
  .page-gift-codes-how-to-use__card-title {
    font-size: 20px;
  }
  .page-gift-codes-how-to-use__image {
    max-width: 95%;
    margin: 20px auto;
  }
  .page-gift-codes-how-to-use__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-gift-codes-how-to-use__steps-list li {
    padding: 15px 20px;
  }
  .page-gift-codes-how-to-use__steps-list li h3 {
    font-size: 18px;
  }
  .page-gift-codes-how-to-use__news-image {
    height: 180px;
  }
  .page-gift-codes-how-to-use__news-title {
    font-size: 17px;
    margin: 15px 15px 8px 15px;
  }
  .page-gift-codes-how-to-use__news-excerpt {
    padding: 0 15px 15px 15px;
    font-size: 14px;
  }
  .page-gift-codes-how-to-use__news-card .page-gift-codes-how-to-use__btn-text {
    margin: 0 15px 15px 15px;
  }
  .page-gift-codes-how-to-use__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .page-gift-codes-how-to-use__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
    margin-bottom: 0;
  }
  .page-gift-codes-how-to-use__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 22px;
  }
  .page-gift-codes-how-to-use__faq-item.active .page-gift-codes-how-to-use__faq-answer {
    padding: 15px 20px !important;
  }
  .page-gift-codes-how-to-use img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-gift-codes-how-to-use__section,
  .page-gift-codes-how-to-use__card,
  .page-gift-codes-how-to-use__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-gift-codes-how-to-use__hero-section {
    padding-top: 160px !important;
  }
}