/* style/gift-codes.css */
:root {
    --primary-color: #0A192F;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #f1f3f5;
    --background-dark: var(--dark-bg-1);
    --border-color: #e0e0e0;
    --highlight-color: #0066cc;
}

.page-gift-codes {
    color: var(--text-light); /* Default to light text for dark body background */
    background-color: var(--background-dark);
    font-family: 'Arial', sans-serif;
}

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

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

/* Hero Banner Section */
.page-gift-codes__hero-banner {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #334e68 100%); /* Darker gradient for hero */
    color: var(--text-light);
}

.page-gift-codes__hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-gift-codes__hero-image {
    width: 100%;
    max-width: 1000px; /* Adjust max-width for the image */
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-gift-codes__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.page-gift-codes__main-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color); /* Gold color for main title */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

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

.page-gift-codes__hero-description a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-gift-codes__hero-description a:hover {
    color: #fff;
    text-decoration: underline;
}

.page-gift-codes__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--secondary-color), #FFC107);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: none;
}

.page-gift-codes__cta-button:hover {
    background: linear-gradient(135deg, #FFC107, var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-gift-codes__cta-button--secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* General Sections */
.page-gift-codes__intro-section, 
.page-gift-codes__how-to-claim-section, 
.page-gift-codes__benefits-section {
    padding: 60px 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

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

.page-gift-codes__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

.page-gift-codes__light-bg .page-gift-codes__section-title {
    color: var(--primary-color);
}

.page-gift-codes__dark-bg .page-gift-codes__section-title {
    color: var(--secondary-color);
}

.page-gift-codes__text-block {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    color: inherit;
}

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

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

.page-gift-codes__highlight {
    font-weight: bold;
    color: var(--secondary-color);
}

.page-gift-codes__light-bg .page-gift-codes__highlight {
    color: var(--primary-color);
}

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

.page-gift-codes__card {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-radius: 12px;
    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;
}

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

.page-gift-codes__card-icon {
    width: 200px; /* Min size */
    height: 200px; /* Min size */
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-gift-codes__card-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
}

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

.page-gift-codes__step-card {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-gift-codes__step-number {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 30px;
    font-weight: bold;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-right-radius: 12px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-gift-codes__step-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
}

.page-gift-codes__center-content {
    text-align: center;
    margin-top: 40px;
}

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

.page-gift-codes__promo-card {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-radius: 12px;
    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;
}

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

.page-gift-codes__promo-image {
    width: 250px; /* Recommended size for promo images */
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-gift-codes__promo-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 25px;
}

.page-gift-codes__promo-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-gift-codes__promo-button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Benefits Section */
.page-gift-codes__benefit-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-gift-codes__benefit-list li {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: var(--text-dark);
}

.page-gift-codes__benefit-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 20px;
}

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

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

.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 25px;
  opacity: 0;
  background-color: var(--text-light);
  color: var(--text-dark);
  border-radius: 0 0 8px 8px;
}

.page-gift-codes__faq-item.active .page-gift-codes__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-gift-codes__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    color: var(--text-dark);
}

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

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

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

.page-gift-codes__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-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__faq-item.active .page-gift-codes__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change + to X for active state */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gift-codes__main-title {
        font-size: 38px;
    }
    .page-gift-codes__hero-description {
        font-size: 18px;
    }
    .page-gift-codes__cta-button {
        padding: 15px 35px;
        font-size: 18px;
    }
    .page-gift-codes__section-title {
        font-size: 32px;
    }
    .page-gift-codes__text-block, .page-gift-codes__card-text, .page-gift-codes__step-text, .page-gift-codes__promo-description, .page-gift-codes__benefit-list li {
        font-size: 17px;
    }
    .page-gift-codes__card-icon, .page-gift-codes__promo-image {
        width: 180px;
        height: auto;
    }
    .page-gift-codes__card-title, .page-gift-codes__step-title, .page-gift-codes__promo-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .page-gift-codes__hero-banner {
        padding-top: 100px !important; /* Mobile: Adjust based on mobile fixed header height */
        padding-bottom: 40px;
    }
    .page-gift-codes__hero-image {
        border-radius: 8px;
        margin-bottom: 20px;
    }
    .page-gift-codes__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-gift-codes__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-gift-codes__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        margin-top: 15px;
    }
    .page-gift-codes__container {
        padding: 15px;
    }
    .page-gift-codes__intro-section, 
    .page-gift-codes__types-section, 
    .page-gift-codes__how-to-claim-section, 
    .page-gift-codes__promotions-section, 
    .page-gift-codes__benefits-section, 
    .page-gift-codes__faq-section {
        padding: 40px 0;
    }
    .page-gift-codes__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-gift-codes__text-block, .page-gift-codes__card-text, .page-gift-codes__step-text, .page-gift-codes__promo-description, .page-gift-codes__benefit-list li {
        font-size: 15px;
    }
    .page-gift-codes__card, .page-gift-codes__step-card, .page-gift-codes__promo-card {
        padding: 25px;
    }
    .page-gift-codes__card-icon, .page-gift-codes__promo-image {
        width: 200px !important;
        height: auto !important;
        max-width: 100% !important;
    }
    .page-gift-codes__card-title, .page-gift-codes__step-title, .page-gift-codes__promo-title {
        font-size: 20px;
    }
    .page-gift-codes__step-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    .page-gift-codes__promo-button {
        padding: 10px 20px;
        font-size: 15px;
    }
    .page-gift-codes__faq-list {
        margin-top: 30px;
    }
    .page-gift-codes__faq-question {
        padding: 15px 20px;
    }
    .page-gift-codes__faq-question h3 {
        font-size: 16px;
    }
    .page-gift-codes__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
        margin-left: 15px;
    }
    .page-gift-codes__faq-item.active .page-gift-codes__faq-answer {
        padding: 15px 20px !important;
    }

    /* Ensure all images are responsive and prevent horizontal scroll */
    .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-container,
    .page-gift-codes__promo-card,
    .page-gift-codes__step-card,
    .page-gift-codes__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gift-codes__hero-banner .page-gift-codes__hero-container {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-gift-codes__main-title {
        font-size: 28px;
    }
    .page-gift-codes__section-title {
        font-size: 24px;
    }
    .page-gift-codes__hero-image {
        border-radius: 6px;
    }
    .page-gift-codes__card-icon, .page-gift-codes__promo-image {
        width: 150px !important;
        height: auto !important;
    }
    .page-gift-codes__card-title, .page-gift-codes__step-title, .page-gift-codes__promo-title {
        font-size: 18px;
    }
    .page-gift-codes__faq-question h3 {
        font-size: 15px;
    }
    .page-gift-codes__faq-toggle {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }
}