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

.page-gift-codes {
    color: var(--light-text-color); /* Default text color for sections on body bg */
    background-color: var(--dark-bg-color); /* Inherits from body, but ensures consistency */
}

.page-gift-codes__hero-banner {
    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 for fixed header */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text-color);
}

.page-gift-codes__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-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

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

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

.page-gift-codes__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--dark-text-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gift-codes__cta-button:hover {
    background: #ffc107; /* Slightly darker yellow */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gift-codes__hero-image {
    width: 100%;
    max-width: 800px; /* Limit image width to prevent it from being too wide */
    margin-top: 40px;
}

.page-gift-codes__image-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-gift-codes__section {
    padding: 60px 20px;
}

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

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

.page-gift-codes__content-area {
    max-width: 1000px; /* Slightly wider for main content */
    margin: 0 auto;
    text-align: left;
}

.page-gift-codes__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: inherit; /* Inherit color from section background */
}

.page-gift-codes__content-area p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: inherit;
}

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

.page-gift-codes__image-center {
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

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

.page-gift-codes__card {
    background: var(--card-bg-color);
    color: var(--dark-text-color);
    border-radius: 10px;
    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(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-gift-codes__card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--dark-text-color);
}

.page-gift-codes__btn-primary {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--light-text-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-gift-codes__btn-primary:hover {
    background: #155cb8; /* Slightly darker primary */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-gift-codes__steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.page-gift-codes__step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

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

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

.page-gift-codes__step-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text-color);
}

.page-gift-codes__ordered-list {
    list-style-type: decimal;
    padding-left: 25px;
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-text-color);
}

.page-gift-codes__ordered-list li {
    margin-bottom: 10px;
}

.page-gift-codes__ordered-list li strong {
    color: var(--primary-color);
}

.page-gift-codes__platform-list {
    list-style-type: disc;
    padding-left: 25px;
    margin-top: 30px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-text-color);
}

.page-gift-codes__platform-list li {
    margin-bottom: 10px;
}

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

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

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

.page-gift-codes__feature-item {
    background: var(--card-bg-color);
    color: var(--dark-text-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

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

.page-gift-codes__feature-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark-text-color);
}

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

.page-gift-codes__cta-large {
    padding: 18px 50px;
    font-size: 20px;
    border-radius: 10px;
}

.page-gift-codes__final-cta {
    text-align: center;
}

/* FAQ Section Styling */
.page-gift-codes__faq-list {
    margin-top: 40px;
}

.page-gift-codes__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--card-bg-color);
}

.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;
    padding: 0 15px;
    opacity: 0;
    color: var(--dark-text-color);
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .page-gift-codes__hero-banner {
        padding-top: 160px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-gift-codes__main-title {
        font-size: 36px;
    }

    .page-gift-codes__hero-description {
        font-size: 16px;
    }

    .page-gift-codes__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .page-gift-codes__section {
        padding: 40px 15px;
    }

    .page-gift-codes__section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .page-gift-codes__content-area p,
    .page-gift-codes__ordered-list,
    .page-gift-codes__platform-list,
    .page-gift-codes__step-content p {
        font-size: 15px;
        line-height: 1.6;
    }

    .page-gift-codes__card-grid,
    .page-gift-codes__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-gift-codes__card,
    .page-gift-codes__feature-item {
        padding: 25px;
    }

    .page-gift-codes__card-title,
    .page-gift-codes__feature-item h3 {
        font-size: 20px;
    }

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

    .page-gift-codes__step-number {
        margin-bottom: 15px;
    }

    .page-gift-codes__step-content h3 {
        font-size: 18px;
    }

    .page-gift-codes__cta-large {
        padding: 15px 35px;
        font-size: 18px;
    }

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

    .page-gift-codes__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }

    .page-gift-codes__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

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

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

    /* Mobile image responsive override */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}