/* style/gift-code.css */
:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --dark-background: #000;
    --light-text: #ffffff;
    --dark-text: #333333;
    --grey-background: #f1f3f5;
    --border-color: #e0e0e0;
}

.page-gift-code {
    color: var(--light-text); /* Body background is dark, so text is light */
    background-color: var(--dark-background);
}

/* Ensure content is not hidden by fixed header */
.page-gift-code__hero-section {
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    padding-bottom: 60px;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #007bff, #0056b3);
}

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

.page-gift-code__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-gift-code__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-gift-code__hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-gift-code__hero-description a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-gift-code__hero-description a:hover {
    text-decoration: underline;
}

.page-gift-code__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--secondary-color);
    color: var(--dark-text);
    text-decoration: none;
    border-radius: 10px;
    font-size: 22px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    border: none;
    cursor: pointer;
}

.page-gift-code__cta-button:hover {
    background: #e6b300;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

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

.page-gift-code__cta-button--secondary:hover {
    background: #0056b3;
    border-color: var(--secondary-color);
}

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

.page-gift-code__intro-section,
.page-gift-code__how-to-get-section,
.page-gift-code__types-section,
.page-gift-code__how-to-use-section,
.page-gift-code__benefits-section,
.page-gift-code__top-casinos-section,
.page-gift-code__faq-section {
    padding: 60px 0;
    background-color: var(--dark-background);
}

.page-gift-code__intro-section .page-gift-code__content-block,
.page-gift-code__how-to-get-section .page-gift-code__content-block,
.page-gift-code__types-section .page-gift-code__content-block,
.page-gift-code__how-to-use-section .page-gift-code__content-block,
.page-gift-code__benefits-section .page-gift-code__content-block,
.page-gift-code__top-casinos-section .page-gift-code__content-block {
    background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--light-text);
    line-height: 1.7;
}

.page-gift-code__section-title {
    font-size: 38px;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-gift-code__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.page-gift-code__sub-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-gift-code__content-block p {
    font-size: 18px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

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

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

.page-gift-code__content-block ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.page-gift-code__content-block li {
    font-size: 18px;
    margin-bottom: 8px;
    color: #e0e0e0;
}

.page-gift-code__image-full-width {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure responsiveness */
    display: block;
}

.page-gift-code__casino-logo {
    max-width: 200px; /* Example size, adjust as needed */
    height: auto;
    display: block;
    margin: 20px auto 30px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* FAQ Styles */
.page-gift-code__faq-section {
    background-color: #0d0d0d;
}

.page-gift-code__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-gift-code__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-gift-code__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #1a1a1a; /* Darker background for question */
    border: 1px solid #333333;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-gift-code__faq-question:hover {
    background: #2a2a2a;
    border-color: #555555;
}

.page-gift-code__faq-question:active {
    background: #3a3a3a;
}

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

.page-gift-code__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: 20px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-gift-code__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 25px;
    opacity: 0;
    background: #121212; /* Slightly lighter dark background for answer */
    color: #cccccc;
    border-radius: 0 0 8px 8px;
}

.page-gift-code__faq-answer p {
    color: #cccccc;
    font-size: 16px;
}

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

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

.page-gift-code__faq-item.active .page-gift-code__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid #333333;
}

.page-gift-code__faq-item.active .page-gift-code__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Change + to X or similar */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gift-code__main-title {
        font-size: 42px;
    }

    .page-gift-code__hero-description {
        font-size: 18px;
    }

    .page-gift-code__cta-button {
        padding: 15px 35px;
        font-size: 20px;
    }

    .page-gift-code__section-title {
        font-size: 34px;
    }

    .page-gift-code__sub-title {
        font-size: 24px;
    }

    .page-gift-code__content-block p,
    .page-gift-code__content-block li {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-gift-code__hero-section {
        padding-top: 140px !important; /* Mobile: Adjust for mobile fixed header */
        padding-bottom: 40px;
    }

    .page-gift-code__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-gift-code__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-gift-code__cta-button {
        padding: 12px 30px;
        font-size: 18px;
    }

    .page-gift-code__intro-section,
    .page-gift-code__how-to-get-section,
    .page-gift-code__types-section,
    .page-gift-code__how-to-use-section,
    .page-gift-code__benefits-section,
    .page-gift-code__top-casinos-section,
    .page-gift-code__faq-section {
        padding: 40px 0;
    }

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

    .page-gift-code__content-block {
        padding: 25px;
    }

    .page-gift-code__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-gift-code__sub-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-gift-code__content-block p,
    .page-gift-code__content-block li {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .page-gift-code__content-block ul {
        margin-left: 20px;
    }

    .page-gift-code__image-full-width {
        margin: 20px 0;
    }

    .page-gift-code__faq-question {
        padding: 15px 20px;
    }

    .page-gift-code__faq-question h3 {
        font-size: 16px;
    }

    .page-gift-code__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
        margin-left: 15px;
    }

    .page-gift-code__faq-answer {
        padding: 0 20px;
    }

    .page-gift-code__faq-item.active .page-gift-code__faq-answer {
        padding: 15px 20px !important;
    }
    
    /* Mobile image force responsiveness */
    .page-gift-code img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-gift-code__hero-section,
    .page-gift-code__intro-section,
    .page-gift-code__how-to-get-section,
    .page-gift-code__types-section,
    .page-gift-code__how-to-use-section,
    .page-gift-code__benefits-section,
    .page-gift-code__top-casinos-section,
    .page-gift-code__faq-section,
    .page-gift-code__container,
    .page-gift-code__content-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gift-code__hero-container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-gift-code__hero-image {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-gift-code__main-title {
        font-size: 28px;
    }

    .page-gift-code__hero-description {
        font-size: 15px;
    }

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

    .page-gift-code__section-title {
        font-size: 24px;
    }

    .page-gift-code__sub-title {
        font-size: 18px;
    }

    .page-gift-code__content-block p,
    .page-gift-code__content-block li {
        font-size: 14px;
    }

    .page-gift-code__faq-question h3 {
        font-size: 15px;
    }
}