/* style/gift-code.css */
:root {
  --primary-color: #1A2A44;
  --secondary-color: #FFCC00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --bg-dark-1: #0d0d0d; /* Assuming shared.css defines --dark-bg-1 as a dark color */
}

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

/* Fixed navigation bar spacing */
.page-gift-code__intro-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

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

.page-gift-code__main-title,
.page-gift-code__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
}

.page-gift-code__intro-text,
.page-gift-code__text-block,
.page-gift-code__note-text {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-gift-code__cta-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-gift-code__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
}

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

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

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

.page-gift-code__cta-button--secondary:hover {
  background-color: #111d2e;
  border-color: #111d2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Dark section styling for contrast */
.page-gift-code__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

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

.page-gift-code__dark-section .page-gift-code__text-block a,
.page-gift-code__dark-section .page-gift-code__list-content a {
  color: var(--secondary-color);
}

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

.page-gift-code__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 30px auto;
}

.page-gift-code__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-gift-code__list-icon {
  width: 80px;
  height: 80px;
  min-width: 80px;
  object-fit: contain;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 10px;
}

.page-gift-code__list-content h4 {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-light);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-gift-code__list-content p {
  font-size: 16px;
  color: #e0e0e0;
  text-align: left;
  margin-bottom: 0;
}

.page-gift-code__how-to-get-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

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

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

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

.page-gift-code__grid-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  background-color: #f0f0f0;
}

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

.page-gift-code__grid-item p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 20px;
  text-align: center;
}

.page-gift-code__btn-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.page-gift-code__btn-link:hover {
  background-color: #e6b800;
}

.page-gift-code__how-to-redeem-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.page-gift-code__steps-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
}

.page-gift-code__steps-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.page-gift-code__step-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
}

.page-gift-code__step-content h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-gift-code__step-content p {
  font-size: 16px;
  color: var(--text-dark);
  text-align: left;
  margin-bottom: 0;
}

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

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

.page-gift-code__note-text {
  font-style: italic;
  color: #666;
  margin-top: 30px;
  font-size: 15px;
}

.page-gift-code__latest-offers-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

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

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

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

.page-gift-code__offer-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  background-color: #f0f0f0;
}

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

.page-gift-code__offer-card p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: center;
}

.page-gift-code__offer-card .page-gift-code__cta-button {
  width: 100%;
  margin-top: auto; /* Push button to bottom */
}

.page-gift-code__responsible-gambling-section {
  padding: 60px 0;
}

.page-gift-code__faq-section {
  padding: 60px 0;
}

.page-gift-code__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-gift-code__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.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;
}

.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: 17px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-gift-code__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-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: 28px;
  height: 28px;
}

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

.page-gift-code__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
  color: var(--text-dark);
  text-align: left;
}

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

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

.page-gift-code__related-articles-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

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

.page-gift-code__article-card {
  background-color: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.0s ease, box-shadow 0.3s ease;
}

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

.page-gift-code__article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-gift-code__article-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  padding: 20px 20px 10px;
  margin: 0;
  flex-grow: 1;
}

.page-gift-code__article-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-gift-code__article-card h3 a:hover {
  text-decoration: underline;
}

.page-gift-code__article-card p {
  font-size: 15px;
  color: var(--text-dark);
  padding: 0 20px 20px;
  margin: 0;
  text-align: left;
}

.page-gift-code__btn-read-more {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-gift-code__btn-read-more:hover {
  background-color: #111d2e;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-gift-code__main-title {
    font-size: 32px;
  }
  .page-gift-code__section-title {
    font-size: 30px;
  }
  .page-gift-code__list-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
  }
  .page-gift-code__list-content h4 {
    font-size: 18px;
  }
  .page-gift-code__grid-image {
    width: 120px;
    height: 120px;
  }
  .page-gift-code__offer-image {
    height: 150px;
  }
}

@media (max-width: 768px) {
  .page-gift-code__intro-section {
    padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-gift-code__container {
    padding: 15px;
  }
  .page-gift-code__main-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-gift-code__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .page-gift-code__intro-text,
  .page-gift-code__text-block,
  .page-gift-code__note-text,
  .page-gift-code__list-content p,
  .page-gift-code__grid-item p,
  .page-gift-code__step-content p,
  .page-gift-code__offer-card p,
  .page-gift-code__faq-answer p,
  .page-gift-code__article-card p {
    font-size: 15px;
    text-align: left;
  }
  .page-gift-code__cta-wrapper {
    flex-direction: column;
    gap: 15px;
  }
  .page-gift-code__cta-button {
    width: 100%;
    font-size: 16px;
    padding: 12px 20px;
  }
  .page-gift-code__list-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .page-gift-code__list-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    margin-bottom: 15px;
  }
  .page-gift-code__list-content h4 {
    font-size: 17px;
  }
  .page-gift-code__sub-title {
    font-size: 20px;
  }
  .page-gift-code__grid-item,
  .page-gift-code__offer-card,
  .page-gift-code__article-card {
    padding: 20px;
  }
  .page-gift-code__grid-image {
    width: 100px;
    height: 100px;
  }
  .page-gift-code__grid-item h3,
  .page-gift-code__offer-card h3,
  .page-gift-code__article-card h3 {
    font-size: 18px;
  }
  .page-gift-code__btn-link,
  .page-gift-code__btn-read-more {
    font-size: 14px;
    padding: 8px 15px;
  }
  .page-gift-code__step-number {
    width: 35px;
    height: 35px;
    min-width: 35px;
    font-size: 18px;
  }
  .page-gift-code__step-content h3 {
    font-size: 18px;
  }
  .page-gift-code__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-gift-code__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-gift-code__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-gift-code__faq-item.active .page-gift-code__faq-answer {
    padding: 15px !important;
  }
  .page-gift-code img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-gift-code__section,
  .page-gift-code__card,
  .page-gift-code__container,
  .page-gift-code__list-item,
  .page-gift-code__grid-item,
  .page-gift-code__offer-card,
  .page-gift-code__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-gift-code__offer-image {
    width: 100%;
    height: auto;
  }
  .page-gift-code__article-image {
    height: 150px;
  }
}