/* style/gift-code.css */
:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f1f3f5;
  --border-light: #e0e0e0;
}

.page-gift-code {
  font-family: 'Arial', sans-serif;
  line-height: 1.7;
  color: var(--text-light); /* Default text color for dark background sections */
  background-color: var(--bg-light); /* Overall page background */
}

/* Fixed header padding for main content */
.page-gift-code__hero-banner-section {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
}

.page-gift-code__section {
  padding: 60px 20px;
  text-align: center;
}

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

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

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

.page-gift-code__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-gift-code__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

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

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

.page-gift-code__section-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.page-gift-code__dark-bg .page-gift-code__section-title {
  color: var(--secondary-color);
}

.page-gift-code__text-block {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-gift-code__dark-bg .page-gift-code__text-block {
  color: var(--text-light);
}

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

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

.page-gift-code__sub-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-gift-code__dark-bg .page-gift-code__sub-title {
  color: var(--secondary-color);
}

/* Hero Banner Section */
.page-gift-code__hero-banner-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
  overflow: hidden;
}

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

.page-gift-code__hero-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

/* CTA Buttons */
.page-gift-code__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-gift-code__btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-gift-code__btn-primary:hover {
  background: #e6b800;
  border-color: #e6b800;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-gift-code__btn-secondary {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-gift-code__btn-secondary:hover {
  background: #06101c;
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Card Grid */
.page-gift-code__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

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

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

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

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

.page-gift-code__card-description {
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

/* List styles */
.page-gift-code__list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 900px;
  text-align: left;
}

.page-gift-code__list-item {
  background: #ffffff;
  border-left: 5px solid var(--secondary-color);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 16px;
  color: var(--text-dark);
}

.page-gift-code__dark-bg .page-gift-code__list-item {
  background: #1a2a41;
  color: var(--text-light);
}

.page-gift-code__list-item strong {
  color: var(--primary-color);
}

.page-gift-code__dark-bg .page-gift-code__list-item strong {
  color: var(--secondary-color);
}

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

.page-gift-code__step-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  color: var(--text-dark);
}

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

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

.page-gift-code__step-description {
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

.page-gift-code__step-description a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

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

/* Casino List */
.page-gift-code__casino-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.page-gift-code__casino-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: var(--text-dark);
}

.page-gift-code__casino-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-right: 20px;
  flex-shrink: 0;
}

.page-gift-code__casino-info {
  flex-grow: 1;
  margin-right: 20px;
}

.page-gift-code__casino-name {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--primary-color);
}

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

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

.page-gift-code__casino-offer {
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
}

.page-gift-code__casino-offer a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

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

/* FAQ Section */
.page-gift-code__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-gift-code__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;
}

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

.page-gift-code__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  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-code__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-gift-code__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
}

.page-gift-code__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-code__faq-item.active .page-gift-code__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

.page-gift-code__faq-answer p {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
  text-align: left;
}

.page-gift-code__faq-answer a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-gift-code__main-title {
    font-size: 38px;
  }
  .page-gift-code__section-title {
    font-size: 28px;
  }
  .page-gift-code__sub-title {
    font-size: 22px;
  }
  .page-gift-code__card-grid {
    gap: 20px;
  }
  .page-gift-code__steps-grid {
    gap: 20px;
  }
  .page-gift-code__casino-item {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .page-gift-code__casino-logo {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-gift-code__casino-info {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-gift-code__casino-name {
    font-size: 20px;
  }
  .page-gift-code__casino-offer {
    font-size: 14px;
  }
  .page-gift-code__casino-item .page-gift-code__btn-primary {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-gift-code__hero-banner-section {
    padding-top: 160px !important; /* Mobile: Adjust based on mobile fixed header height */
    padding-bottom: 40px;
  }
  .page-gift-code__hero-banner-image {
    margin-bottom: 20px;
  }
  .page-gift-code__main-title {
    font-size: 32px;
    line-height: 1.2;
  }
  .page-gift-code__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-gift-code__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-gift-code__section {
    padding: 40px 15px;
  }
  .page-gift-code__section-title {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .page-gift-code__sub-title {
    font-size: 20px;
  }
  .page-gift-code__text-block {
    font-size: 15px;
    text-align: justify;
  }
  .page-gift-code__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-gift-code__list-item {
    font-size: 15px;
    padding: 12px 15px;
  }
  .page-gift-code__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-gift-code__step-title {
    font-size: 18px;
  }
  .page-gift-code__step-description {
    font-size: 14px;
  }
  .page-gift-code__casino-item {
    padding: 15px 20px;
    flex-direction: column;
    align-items: center;
  }
  .page-gift-code__casino-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }
  .page-gift-code__casino-info {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-gift-code__casino-name {
    font-size: 18px;
  }
  .page-gift-code__casino-offer {
    font-size: 13px;
  }
  .page-gift-code__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-gift-code__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-gift-code__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-gift-code__faq-answer {
    padding: 0 15px;
  }
  .page-gift-code__faq-item.active .page-gift-code__faq-answer {
    padding: 15px !important;
  }
  /* Ensure all images are responsive */
  .page-gift-code img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-gift-code__container,
  .page-gift-code__section,
  .page-gift-code__card,
  .page-gift-code__step-card,
  .page-gift-code__casino-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}