/* style/gift-codes.css */
:root {
  --primary-color: #1A2B4C;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a;
  --background-light: #f1f3f5;
  --border-color: #e0e0e0;
}

.page-gift-codes {
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark);
}

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

/* Fixed navigation padding */
.page-gift-codes__hero-banner-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
  position: relative;
  overflow: hidden;
  color: var(--text-light);
}

.page-gift-codes__hero-banner-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-gift-codes__hero-banner-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

.page-gift-codes__hero-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: rgba(26, 43, 76, 0.85); /* Darker primary color with transparency */
}

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

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

.page-gift-codes__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure long words break */
  min-width: 180px;
}

.page-gift-codes__btn-primary {
  background: linear-gradient(135deg, var(--secondary-color), #FFA500);
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  border: none;
}

.page-gift-codes__btn-primary:hover {
  background: linear-gradient(135deg, #FFA500, #FFD700);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-gift-codes__btn-secondary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-gift-codes__btn-secondary:hover {
  background: #2A3B5C;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-gift-codes__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: var(--text-light);
  line-height: 1.6;
}

.page-gift-codes__intro-section, .page-gift-codes__guide-section, .page-gift-codes__responsible-gaming-section, .page-gift-codes__latest-news-section {
  background-color: var(--background-light);
  color: var(--text-dark);
  padding: 60px 0;
}

.page-gift-codes__intro-section .page-gift-codes__section-title,
.page-gift-codes__guide-section .page-gift-codes__section-title,
.page-gift-codes__responsible-gaming-section .page-gift-codes__section-title,
.page-gift-codes__latest-news-section .page-gift-codes__section-title {
  color: var(--primary-color);
}

.page-gift-codes__intro-section p,
.page-gift-codes__guide-section p,
.page-gift-codes__responsible-gaming-section p,
.page-gift-codes__latest-news-section p {
  color: var(--text-dark);
}

.page-gift-codes__content-image {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-gift-codes__card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-gift-codes__card-image {
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 10px;
}

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

.page-gift-codes__card-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--text-light);
  flex-grow: 1;
}

.page-gift-codes__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 50px;
}

.page-gift-codes__step-item {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  color: var(--text-dark);
}

.page-gift-codes__step-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-gift-codes__step-number {
  min-width: 60px;
  height: 60px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2em;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

.page-gift-codes__step-content {
  flex-grow: 1;
}

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

.page-gift-codes__step-item p {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-dark);
}

.page-gift-codes__step-image {
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.page-gift-codes__center-cta {
  text-align: center;
  margin-top: 60px;
}

.page-gift-codes__center-cta p {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 600;
}

.page-gift-codes__benefit-list {
  list-style: none;
  padding: 0;
  margin: 50px auto 0 auto;
  max-width: 900px;
}

.page-gift-codes__benefit-item {
  background: rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--secondary-color);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-light);
}

.page-gift-codes__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: 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: #1A2B4C;
  border-radius: 0 0 8px 8px;
  color: var(--text-light);
}

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

.page-gift-codes__faq-question:hover {
  background: rgba(26, 43, 76, 0.8);
  border-color: var(--secondary-color);
}

.page-gift-codes__faq-question:active {
  background: rgba(26, 43, 76, 0.9);
}

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

.page-gift-codes__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  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: 32px;
  height: 32px;
}

.page-gift-codes__faq-item.active .page-gift-codes__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
}

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

.page-gift-codes__news-card {
  background: #ffffff;
  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;
  color: var(--text-dark);
}

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

.page-gift-codes__news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

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

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

.page-gift-codes__news-title a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

.page-gift-codes__news-excerpt {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 15px;
}

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

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

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

  .page-gift-codes__hero-description {
    font-size: 1.15em;
  }

  .page-gift-codes__section-title {
    font-size: 2em;
  }

  .page-gift-codes__step-item {
    flex-direction: column;
    text-align: center;
  }

  .page-gift-codes__step-item:nth-child(even) {
    flex-direction: column;
  }

  .page-gift-codes__step-image {
    order: -1;
    margin-bottom: 20px;
  }
}

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

  .page-gift-codes__hero-banner-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-gift-codes__hero-banner-content {
    padding: 20px;
    max-width: 100%;
  }

  .page-gift-codes__main-title {
    font-size: 2em;
  }

  .page-gift-codes__hero-description {
    font-size: 1em;
  }

  .page-gift-codes__cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
    min-width: unset;
  }

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

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

  .page-gift-codes__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-gift-codes__intro-section, .page-gift-codes__types-section, .page-gift-codes__guide-section, .page-gift-codes__benefits-section, .page-gift-codes__responsible-gaming-section, .page-gift-codes__faq-section, .page-gift-codes__latest-news-section {
    padding: 40px 0;
  }

  .page-gift-codes__card-grid {
    grid-template-columns: 1fr;
  }

  .page-gift-codes__card {
    padding: 20px;
  }

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

  .page-gift-codes__card-title {
    font-size: 1.3em;
  }

  .page-gift-codes__card-text {
    font-size: 0.9em;
  }

  .page-gift-codes__step-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .page-gift-codes__step-item:nth-child(even) {
    flex-direction: column;
  }

  .page-gift-codes__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-gift-codes__step-title {
    font-size: 1.4em;
  }

  .page-gift-codes__step-item p {
    font-size: 0.95em;
  }

  .page-gift-codes__step-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    order: -1;
    margin-bottom: 20px;
  }

  .page-gift-codes__benefit-item {
    font-size: 0.95em;
    padding: 15px 20px;
  }

  .page-gift-codes__faq-question {
    padding: 15px;
  }

  .page-gift-codes__faq-question h3 {
    font-size: 1em;
  }

  .page-gift-codes__faq-toggle {
    font-size: 1.8em;
    width: 28px;
    height: 28px;
  }

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

  .page-gift-codes__news-grid {
    grid-template-columns: 1fr;
  }

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

  .page-gift-codes__news-title {
    font-size: 1.2em;
  }

  .page-gift-codes__news-excerpt {
    font-size: 0.9em;
  }

  /* Ensure all images and containers adapt */
  .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__hero-banner-section,
  .page-gift-codes__intro-section,
  .page-gift-codes__types-section,
  .page-gift-codes__guide-section,
  .page-gift-codes__benefits-section,
  .page-gift-codes__responsible-gaming-section,
  .page-gift-codes__faq-section,
  .page-gift-codes__latest-news-section,
  .page-gift-codes__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-gift-codes__main-title {
    font-size: 1.8em;
  }

  .page-gift-codes__hero-description {
    font-size: 0.9em;
  }

  .page-gift-codes__section-title {
    font-size: 1.6em;
  }

  .page-gift-codes__step-title {
    font-size: 1.2em;
  }
  .page-gift-codes__hero-banner-content {
    padding: 15px;
  }
  .page-gift-codes__news-content {
    padding: 20px;
  }
}