/* style/gift-code-how-to-redeem.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #00CED1; /* Turquoise */
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-dark: #1a1a2e; /* Body background from shared.css */
    --card-background: #ffffff;
    --border-color: #e0e0e0;
}

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

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

/* Fixed header padding for desktop */
.page-gift-code-how-to-redeem__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color-dark);
}

.page-gift-code-how-to-redeem__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-code-how-to-redeem__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-gift-code-how-to-redeem__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-gift-code-how-to-redeem__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-gift-code-how-to-redeem__main-title {
    font-size: 42px;
    font-weight: bold;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-gift-code-how-to-redeem__hero-description {
    font-size: 20px;
    color: var(--text-color-dark);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-gift-code-how-to-redeem__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-color-dark);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-gift-code-how-to-redeem__cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-gift-code-how-to-redeem__cta-button--small {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 20px;
}

.page-gift-code-how-to-redeem__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-gift-code-how-to-redeem__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-gift-code-how-to-redeem__introduction-section,
.page-gift-code-how-to-redeem__get-code-section,
.page-gift-code-how-to-redeem__redeem-guide-section,
.page-gift-code-how-to-redeem__tips-section,
.page-gift-code-how-to-redeem__faq-section,
.page-gift-code-how-to-redeem__conclusion-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-gift-code-how-to-redeem__introduction-section,
.page-gift-code-how-to-redeem__redeem-guide-section,
.page-gift-code-how-to-redeem__tips-section,
.page-gift-code-how-to-redeem__conclusion-section {
    background-color: #22223a; /* Slightly lighter dark background for content sections */
    color: var(--text-color-light);
}

.page-gift-code-how-to-redeem__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-align: justify;
}

.page-gift-code-how-to-redeem__content-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-gift-code-how-to-redeem__list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-gift-code-how-to-redeem__list-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-left: 5px solid var(--primary-color);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 17px;
    color: var(--text-color-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-gift-code-how-to-redeem__list-item:hover {
    transform: translateY(-5px);
}

.page-gift-code-how-to-redeem__list-item strong {
    color: var(--primary-color);
}

.page-gift-code-how-to-redeem__link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-gift-code-how-to-redeem__link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-gift-code-how-to-redeem__steps-list {
    list-style: none;
    padding: 0;
}

.page-gift-code-how-to-redeem__step-item {
    background-color: var(--card-background);
    color: var(--text-color-dark);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-left: 8px solid var(--primary-color);
}

.page-gift-code-how-to-redeem__step-item h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.page-gift-code-how-to-redeem__step-item p {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-color-dark);
}

.page-gift-code-how-to-redeem__step-image {
    width: 100%;
    height: auto;
    max-width: 700px;
    display: block;
    margin: 20px auto 0 auto;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-gift-code-how-to-redeem__call-to-action {
    text-align: center;
    margin-top: 40px;
    background-color: rgba(0, 206, 209, 0.1);
    padding: 30px;
    border-radius: 10px;
    border: 1px dashed var(--secondary-color);
}

.page-gift-code-how-to-redeem__call-to-action p {
    font-size: 18px;
    color: var(--text-color-light);
    margin-bottom: 20px;
}

/* FAQ Section */
.page-gift-code-how-to-redeem__faq-section {
    background-color: var(--background-dark);
}

.page-gift-code-how-to-redeem__faq-list {
    margin-top: 40px;
}

.page-gift-code-how-to-redeem__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-gift-code-how-to-redeem__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-how-to-redeem__faq-item.active .page-gift-code-how-to-redeem__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #2a2a47;
    border-radius: 0 0 5px 5px;
    color: var(--text-color-light);
}

.page-gift-code-how-to-redeem__faq-answer p {
    color: var(--text-color-light);
    margin-bottom: 0;
}

.page-gift-code-how-to-redeem__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #3a3a5a;
    border: 1px solid #4a4a6a;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-gift-code-how-to-redeem__faq-question:hover {
    background: #4a4a6a;
    border-color: #5a5a7a;
}

.page-gift-code-how-to-redeem__faq-question:active {
    background: #5a5a7a;
}

.page-gift-code-how-to-redeem__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-code-how-to-redeem__faq-toggle {
    font-size: 24px;
    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: 28px;
    height: 28px;
}

.page-gift-code-how-to-redeem__faq-item.active .page-gift-code-how-to-redeem__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gift-code-how-to-redeem__main-title {
        font-size: 36px;
    }
    .page-gift-code-how-to-redeem__hero-description {
        font-size: 18px;
    }
    .page-gift-code-how-to-redeem__section-title {
        font-size: 30px;
    }
    .page-gift-code-how-to-redeem__text-block, .page-gift-code-how-to-redeem__list-item, .page-gift-code-how-to-redeem__step-item p {
        font-size: 16px;
    }
    .page-gift-code-how-to-redeem__step-item h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .page-gift-code-how-to-redeem__hero-section {
        padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gift-code-how-to-redeem__main-title {
        font-size: 28px;
    }
    .page-gift-code-how-to-redeem__hero-description {
        font-size: 16px;
    }
    .page-gift-code-how-to-redeem__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-gift-code-how-to-redeem__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-gift-code-how-to-redeem__introduction-section,
    .page-gift-code-how-to-redeem__get-code-section,
    .page-gift-code-how-to-redeem__redeem-guide-section,
    .page-gift-code-how-to-redeem__tips-section,
    .page-gift-code-how-to-redeem__faq-section,
    .page-gift-code-how-to-redeem__conclusion-section {
        padding: 40px 0;
    }
    .page-gift-code-how-to-redeem__container {
        padding: 0 15px;
    }
    .page-gift-code-how-to-redeem__text-block, .page-gift-code-how-to-redeem__list-item, .page-gift-code-how-to-redeem__step-item p {
        font-size: 15px;
    }
    .page-gift-code-how-to-redeem__list-item {
        padding: 15px 20px;
    }
    .page-gift-code-how-to-redeem__step-item {
        padding: 20px;
    }
    .page-gift-code-how-to-redeem__step-item h3 {
        font-size: 20px;
    }
    .page-gift-code-how-to-redeem__content-image, .page-gift-code-how-to-redeem__step-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
        box-sizing: border-box !important;
    }

    /* FAQ Responsive */
    .page-gift-code-how-to-redeem__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-gift-code-how-to-redeem__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-gift-code-how-to-redeem__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-gift-code-how-to-redeem__faq-answer {
        padding: 0 15px;
    }
    
    .page-gift-code-how-to-redeem__faq-item.active .page-gift-code-how-to-redeem__faq-answer {
        padding: 15px !important;
    }
}