/* style/giftcode-redeem.css */

/* Base styles for the page content, ensuring proper text color for dark body background */
.page-giftcode-redeem {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Light text for dark background */
    line-height: 1.6;
    background-color: #08160F; /* Ensure consistency with body background */
}

.page-giftcode-redeem a {
    color: #F2C14E; /* Gold for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-giftcode-redeem a:hover {
    color: #57E38D; /* Lighter gold/green on hover */
}

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

/* Hero Section */
.page-giftcode-redeem__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: #0A4B2C; /* Darker green for hero background */
    min-height: 500px;
}

.page-giftcode-redeem__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit image height to prevent excessive stretching */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-giftcode-redeem__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-giftcode-redeem__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    margin-top: -100px; /* Pull content slightly over image for visual appeal, but not overlapping text */
    border-radius: 10px;
}

.page-giftcode-redeem__main-title {
    color: #F2FFF6;
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-giftcode-redeem__description {
    color: #A7D9B8;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.page-giftcode-redeem__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff; /* White text for button for contrast */
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-giftcode-redeem__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Section General Styles */
.page-giftcode-redeem__section {
    padding: 60px 0;
    background-color: #08160F;
    border-bottom: 1px solid #1E3A2A;
}

.page-giftcode-redeem__section:last-of-type {
    border-bottom: none;
}

.page-giftcode-redeem__section-title {
    color: #F2FFF6;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-giftcode-redeem__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #F2C14E;
    border-radius: 2px;
}

.page-giftcode-redeem__sub-title {
    color: #F2C14E;
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.page-giftcode-redeem__text-block {
    color: #A7D9B8;
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: justify;
}

.page-giftcode-redeem__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Lists */
.page-giftcode-redeem__ordered-list,
.page-giftcode-redeem__unordered-list {
    list-style-position: inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-giftcode-redeem__ordered-list {
    list-style-type: decimal;
}

.page-giftcode-redeem__unordered-list {
    list-style-type: disc;
}

.page-giftcode-redeem__list-item {
    color: #A7D9B8;
    margin-bottom: 10px;
}

.page-giftcode-redeem__list-item strong {
    color: #F2FFF6;
}

/* Card Grid for Types Section */
.page-giftcode-redeem__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-giftcode-redeem__card {
    background-color: #11271B; /* Dark card background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid #2E7A4E;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-giftcode-redeem__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-giftcode-redeem__card-title {
    color: #F2C14E;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.page-giftcode-redeem__card-description {
    color: #A7D9B8;
    font-size: 1rem;
}

/* Benefits List */
.page-giftcode-redeem__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-giftcode-redeem__benefits-item {
    background-color: #11271B;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #2E7A4E;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-giftcode-redeem__benefits-title {
    color: #F2FFF6;
    font-size: 1.6rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.page-giftcode-redeem__benefits-title::before {
    content: '✅'; /* Icon for list items */
    margin-right: 10px;
    font-size: 1.2em;
}

.page-giftcode-redeem__benefits-description {
    color: #A7D9B8;
    font-size: 1rem;
}

/* FAQ Section */
.page-giftcode-redeem__faq-section {
    background-color: #0A4B2C;
}

.page-giftcode-redeem__faq-list {
    margin-top: 40px;
}

.page-giftcode-redeem__faq-item {
    background-color: #11271B;
    border: 1px solid #2E7A4E;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-giftcode-redeem__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    color: #F2FFF6;
    font-weight: bold;
    font-size: 1.1rem;
    list-style: none; /* Remove default marker */
}

.page-giftcode-redeem__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

.page-giftcode-redeem__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-giftcode-redeem__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-giftcode-redeem__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #F2C14E;
}

.page-giftcode-redeem__faq-answer {
    padding: 0 20px 20px 20px;
    color: #A7D9B8;
    font-size: 1rem;
    text-align: justify;
}

/* CTA Section */
.page-giftcode-redeem__cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: #08160F;
    position: relative;
    overflow: hidden;
}

.page-giftcode-redeem__cta-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
    padding: 40px;
    border-radius: 15px;
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid #F2C14E;
}

.page-giftcode-redeem__cta-title {
    color: #F2FFF6;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.page-giftcode-redeem__cta-description {
    color: #A7D9B8;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
}

.page-giftcode-redeem__cta-button--large {
    padding: 18px 40px;
    font-size: 1.3rem;
}

.page-giftcode-redeem__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    z-index: 0;
    border-radius: 15px; /* Match container border-radius */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-giftcode-redeem__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .page-giftcode-redeem__section-title {
        font-size: 2rem;
    }

    .page-giftcode-redeem__sub-title {
        font-size: 1.5rem;
    }

    .page-giftcode-redeem__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-giftcode-redeem {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-giftcode-redeem__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-giftcode-redeem__hero-content {
        padding: 20px 15px;
        margin-top: -50px;
    }

    .page-giftcode-redeem__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-giftcode-redeem__description {
        font-size: 1rem;
    }

    .page-giftcode-redeem__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-giftcode-redeem__section {
        padding: 40px 0;
    }

    .page-giftcode-redeem__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-giftcode-redeem__sub-title {
        font-size: 1.3rem;
    }

    .page-giftcode-redeem__text-block,
    .page-giftcode-redeem__card-description,
    .page-giftcode-redeem__benefits-description,
    .page-giftcode-redeem__faq-answer p {
        font-size: 0.95rem;
    }

    .page-giftcode-redeem__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-giftcode-redeem__card {
        padding: 20px;
    }

    .page-giftcode-redeem__benefits-title {
        font-size: 1.4rem;
    }

    .page-giftcode-redeem__faq-item summary {
        font-size: 1rem;
        padding: 15px;
    }

    .page-giftcode-redeem__faq-answer {
        padding: 0 15px 15px 15px;
    }

    .page-giftcode-redeem__cta-section {
        padding: 60px 0;
    }

    .page-giftcode-redeem__cta-title {
        font-size: 1.8rem;
    }

    .page-giftcode-redeem__cta-description {
        font-size: 1rem;
    }

    .page-giftcode-redeem__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    /* Images responsive */
    .page-giftcode-redeem img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-giftcode-redeem__section,
    .page-giftcode-redeem__card,
    .page-giftcode-redeem__container,
    .page-giftcode-redeem__cta-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-giftcode-redeem__hero-section {
        padding-top: 10px !important;
    }

    /* Button container for multiple buttons (if any) */
    .page-giftcode-redeem__button-group {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}