:root {
  --primary-color: #0A2463;
  --secondary-color: #E3B505;
  --dark-bg-1: #1a1a2e;
  --text-light: #ffffff;
  --text-dark: #333333;
  --gray-light: #f1f3f5;
  --gray-medium: #e0e0e0;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Assuming body background is dark */
}

/* Ensure main content has padding-top to clear fixed header */
.page-content {
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
}

@media (max-width: 768px) {
  .page-content {
    padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
  }
}

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

.page-gift-codes__main-heading,
.page-gift-codes__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-light);
}

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

.page-gift-codes__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-gift-codes__description a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-gift-codes__description a:hover {
  text-decoration: underline;
}

.page-gift-codes__cta-button {
  display: block;
  width: fit-content;
  margin: 0 auto 40px auto;
  padding: 15px 30px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-gift-codes__cta-button:hover {
  background-color: #f0c52a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gift-codes__cta-button--secondary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
}

.page-gift-codes__cta-button--secondary:hover {
  background-color: #0d307a;
  border-color: #f0c52a;
}

.page-gift-codes__cta-button--small {
  font-size: 16px;
  padding: 10px 20px;
  margin-bottom: 20px;
}

/* Sections */
.page-gift-codes__intro-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-gift-codes__benefits-section,
.page-gift-codes__promotions-section,
.page-gift-codes__faq-section {
  padding: 60px 0;
  background-color: var(--gray-light);
  color: var(--text-dark);
}

.page-gift-codes__benefits-section .page-gift-codes__main-heading,
.page-gift-codes__benefits-section .page-gift-codes__section-title,
.page-gift-codes__benefits-section .page-gift-codes__description,
.page-gift-codes__promotions-section .page-gift-codes__main-heading,
.page-gift-codes__promotions-section .page-gift-codes__section-title,
.page-gift-codes__promotions-section .page-gift-codes__description,
.page-gift-codes__faq-section .page-gift-codes__main-heading,
.page-gift-codes__faq-section .page-gift-codes__section-title,
.page-gift-codes__faq-section .page-gift-codes__description {
  color: var(--text-dark);
}

.page-gift-codes__news-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-gift-codes__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-gift-codes__light-bg {
  background-color: var(--gray-light);
  color: var(--text-dark);
}

/* Content Grid for Benefits Section */
.page-gift-codes__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-gift-codes__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}

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

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

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

.page-gift-codes__card-text {
  font-size: 16px;
  line-height: 1.7;
  flex-grow: 1;
}

.page-gift-codes__card-list {
  list-style-type: disc;
  text-align: left;
  margin: 0 auto;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.7;
  flex-grow: 1;
}

.page-gift-codes__list-highlight {
  color: var(--primary-color);
}

.page-gift-codes__text-block {
  font-size: 17px;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-gift-codes__text-block a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-gift-codes__text-block a:hover {
  text-decoration: underline;
}

.page-gift-codes__text-block--center {
  text-align: center;
}

/* How-to-Get Section */
.page-gift-codes__steps-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-gift-codes__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}

.page-gift-codes__step-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.page-gift-codes__step-card p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-gift-codes__step-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.7;
  flex-grow: 1;
}

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

.page-gift-codes__note {
  font-style: italic;
  color: #c0392b;
  font-weight: bold;
  margin-top: 20px;
  font-size: 15px;
}

/* Promotions Section */
.page-gift-codes__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-gift-codes__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-gift-codes__promo-image {
  max-width: 100%;
  height: 180px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-gift-codes__promo-description {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-gift-codes__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-gift-codes__btn-primary:hover {
  background-color: #0d307a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* News Section */
.page-gift-codes__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-gift-codes__news-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-gift-codes__news-image {
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-gift-codes__news-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-gift-codes__news-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-gift-codes__news-title a:hover {
  text-decoration: underline;
}

.page-gift-codes__news-excerpt {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-gift-codes__news-date {
  font-size: 13px;
  color: #777777;
}

/* FAQ Section */
.page-gift-codes__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-gift-codes__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  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;
  padding: 0 15px;
  opacity: 0;
}

.page-gift-codes__faq-item.active .page-gift-codes__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-gift-codes__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--gray-medium);
  border-radius: 5px;
  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: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-gift-codes__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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-codes__faq-item.active .page-gift-codes__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gift-codes__main-heading,
  .page-gift-codes__section-title {
    font-size: 32px;
  }
  .page-gift-codes__description {
    font-size: 16px;
  }
  .page-gift-codes__content-grid,
  .page-gift-codes__steps-wrapper,
  .page-gift-codes__promotion-grid,
  .page-gift-codes__news-grid {
    gap: 20px;
  }
  .page-gift-codes__card,
  .page-gift-codes__step-card,
  .page-gift-codes__promo-card,
  .page-gift-codes__news-card {
    padding: 25px;
  }
  .page-gift-codes__card-title,
  .page-gift-codes__step-title,
  .page-gift-codes__promo-title,
  .page-gift-codes__news-title {
    font-size: 20px;
  }
  .page-gift-codes__card-text,
  .page-gift-codes__card-list,
  .page-gift-codes__step-card p,
  .page-gift-codes__step-list,
  .page-gift-codes__promo-description,
  .page-gift-codes__news-excerpt {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-gift-codes__container {
    padding: 0 15px;
  }
  .page-gift-codes__main-heading,
  .page-gift-codes__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-gift-codes__description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-gift-codes__cta-button {
    font-size: 18px;
    padding: 12px 25px;
    margin-bottom: 30px;
  }
  .page-gift-codes__intro-section,
  .page-gift-codes__benefits-section,
  .page-gift-codes__promotions-section,
  .page-gift-codes__news-section,
  .page-gift-codes__faq-section {
    padding: 40px 0;
  }
  .page-gift-codes__content-grid,
  .page-gift-codes__steps-wrapper,
  .page-gift-codes__promotion-grid,
  .page-gift-codes__news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-gift-codes__card,
  .page-gift-codes__step-card,
  .page-gift-codes__promo-card,
  .page-gift-codes__news-card {
    padding: 20px;
  }
  .page-gift-codes__card-image,
  .page-gift-codes__promo-image,
  .page-gift-codes__news-image {
    height: 150px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-gift-codes__card-title,
  .page-gift-codes__step-title,
  .page-gift-codes__promo-title,
  .page-gift-codes__news-title {
    font-size: 18px;
  }
  .page-gift-codes__card-text,
  .page-gift-codes__card-list,
  .page-gift-codes__step-card p,
  .page-gift-codes__step-list,
  .page-gift-codes__promo-description,
  .page-gift-codes__news-excerpt,
  .page-gift-codes__text-block p {
    font-size: 14px;
  }
  .page-gift-codes__btn-primary {
    font-size: 14px;
    padding: 10px 20px;
  }
  .page-gift-codes__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-gift-codes__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-gift-codes__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-gift-codes__faq-answer {
    padding: 0 15px;
  }
  .page-gift-codes__faq-item.active .page-gift-codes__faq-answer {
    padding: 15px !important;
  }
  .page-gift-codes__text-block {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-gift-codes__main-heading,
  .page-gift-codes__section-title {
    font-size: 24px;
  }
  .page-gift-codes__cta-button {
    font-size: 16px;
    padding: 10px 20px;
  }
  .page-gift-codes__card-title,
  .page-gift-codes__step-title,
  .page-gift-codes__promo-title,
  .page-gift-codes__news-title {
    font-size: 16px;
  }
}

/* Ensure all images are responsive and do not cause horizontal scroll */
.page-gift-codes img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-gift-codes__section,
.page-gift-codes__card,
.page-gift-codes__container,
.page-gift-codes__steps-wrapper,
.page-gift-codes__promotion-grid,
.page-gift-codes__news-grid {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-gift-codes img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-gift-codes__section,
  .page-gift-codes__card,
  .page-gift-codes__container,
  .page-gift-codes__steps-wrapper,
  .page-gift-codes__promotion-grid,
  .page-gift-codes__news-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}