/* style/gift-codes.css */
:root {
    --primary-color: #007BFF;
    --secondary-color: #FFC107;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --background-dark: #0a0a0a; /* Body background from shared.css */
    --background-light: #f1f3f5;
    --card-background: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
}

.page-gift-codes {
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    background-color: var(--background-dark);
}

/* Fixed Navbar Spacing */
.page-gift-codes__hero-banner {
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3); /* Darker blue gradient */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-gift-codes__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

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

.page-gift-codes__hero-subtitle {
    font-size: 22px;
    color: var(--text-color-dark-bg);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-gift-codes__hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-gift-codes__cta-button:hover {
    background: #e6b000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-gift-codes__cta-button--small {
    padding: 10px 25px;
    font-size: 16px;
}

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

.page-gift-codes__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-color-dark-bg);
}

.page-gift-codes__text-block {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-color-dark-bg);
}

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

/* Sections */
.page-gift-codes__introduction-section,
.page-gift-codes__types-section,
.page-gift-codes__faq-section {
    padding: 60px 0;
    background-color: var(--background-light);
    color: var(--text-color-light-bg);
}

.page-gift-codes__introduction-section .page-gift-codes__section-title,
.page-gift-codes__types-section .page-gift-codes__section-title,
.page-gift-codes__faq-section .page-gift-codes__section-title {
    color: var(--text-color-light-bg);
}

.page-gift-codes__introduction-section .page-gift-codes__text-block,
.page-gift-codes__types-section .page-gift-codes__text-block,
.page-gift-codes__faq-section .page-gift-codes__text-block {
    color: var(--text-color-light-bg);
}

.page-gift-codes__how-to-get-section,
.page-gift-codes__featured-offers-section,
.page-gift-codes__conclusion-section {
    padding: 60px 0;
    background-color: var(--background-dark);
    color: var(--text-color-dark-bg);
}

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

.page-gift-codes__link-text:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.page-gift-codes__card,
.page-gift-codes__offer-card {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-gift-codes__card:hover,
.page-gift-codes__offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-gift-codes__card-image {
    width: 100%;
    max-width: 250px; /* Larger image for content cards */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-gift-codes__card-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color-dark-bg);
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-gift-codes__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-gift-codes__list li {
    background: #ffffff;
    color: var(--text-color-light-bg);
    margin-bottom: 15px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
}

.page-gift-codes__list-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-gift-codes__list li p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color-light-bg);
}

.page-gift-codes__offer-logo {
    max-width: 150px; /* Larger logo for offer cards */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-gift-codes__offer-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color-dark-bg);
}

.page-gift-codes__offer-link {
    color: var(--text-color-dark-bg);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-gift-codes__offer-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-gift-codes__offer-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color-dark-bg);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-gift-codes__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.page-gift-codes__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-gift-codes__faq-question:hover {
    background: #f5f5f5;
}

.page-gift-codes__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color-light-bg);
}

.page-gift-codes__faq-toggle {
    font-size: 28px;
    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;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-gift-codes__faq-item.active .page-gift-codes__faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary-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, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    color: var(--text-color-light-bg);
}

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

/* Conclusion Section */
.page-gift-codes__conclusion-section {
    padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gift-codes__hero-title {
        font-size: 40px;
    }
    .page-gift-codes__hero-subtitle {
        font-size: 20px;
    }
    .page-gift-codes__section-title {
        font-size: 32px;
    }
    .page-gift-codes__card-title {
        font-size: 22px;
    }
    .page-gift-codes__list-title {
        font-size: 20px;
    }
    .page-gift-codes__offer-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .page-gift-codes__hero-banner {
        padding-top: 140px !important; /* Mobile: Adjust based on fixed header height */
        padding-bottom: 40px;
    }
    .page-gift-codes__hero-title {
        font-size: 32px;
    }
    .page-gift-codes__hero-subtitle {
        font-size: 18px;
    }
    .page-gift-codes__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-gift-codes__cta-button--large {
        padding: 15px 40px;
        font-size: 18px;
    }
    .page-gift-codes__section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    .page-gift-codes__text-block {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-gift-codes__introduction-section,
    .page-gift-codes__how-to-get-section,
    .page-gift-codes__types-section,
    .page-gift-codes__featured-offers-section,
    .page-gift-codes__faq-section,
    .page-gift-codes__conclusion-section {
        padding: 40px 0;
    }
    .page-gift-codes__container {
        padding: 0 15px;
    }
    .page-gift-codes__grid,
    .page-gift-codes__offers-grid {
        gap: 20px;
    }
    .page-gift-codes__card,
    .page-gift-codes__offer-card {
        padding: 25px;
    }
    .page-gift-codes__card-image,
    .page-gift-codes__offer-logo {
        max-width: 120px;
    }
    .page-gift-codes__card-title {
        font-size: 20px;
    }
    .page-gift-codes__list li {
        padding: 20px;
    }
    .page-gift-codes__list-title {
        font-size: 18px;
    }
    .page-gift-codes__list li p {
        font-size: 15px;
    }
    .page-gift-codes__offer-title {
        font-size: 18px;
    }
    .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: 26px;
        height: 26px;
    }
    .page-gift-codes__faq-answer {
        padding: 0 20px;
    }
    .page-gift-codes__faq-item.active .page-gift-codes__faq-answer {
        padding: 15px 20px !important;
    }

    /* Mobile image responsive adaptation */
    .page-gift-codes img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-gift-codes__hero-banner,
    .page-gift-codes__introduction-section,
    .page-gift-codes__how-to-get-section,
    .page-gift-codes__types-section,
    .page-gift-codes__featured-offers-section,
    .page-gift-codes__faq-section,
    .page-gift-codes__conclusion-section,
    .page-gift-codes__container,
    .page-gift-codes__card,
    .page-gift-codes__offer-card,
    .page-gift-codes__list li,
    .page-gift-codes__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-gift-codes__hero-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}