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

.page-gift-code {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-text-color);
    background: var(--medium-gray-bg);
}

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

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

.page-gift-code__section-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.page-gift-code__description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
}

.page-gift-code__intro-section {
    padding: 180px 0 60px 0; /* Desktop padding-top for fixed header */
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: var(--light-text-color);
}

.page-gift-code__intro-section .page-gift-code__main-title,
.page-gift-code__intro-section .page-gift-code__description {
    color: var(--light-text-color);
}

.page-gift-code__image-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

.page-gift-code__main-image,
.page-gift-code__content-image {
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
}

.page-gift-code__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-gift-code__btn-primary,
.page-gift-code__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.page-gift-code__btn-primary {
    background: var(--secondary-color);
    color: var(--dark-text-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-gift-code__btn-primary:hover {
    background: #e0a800;
    border-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-gift-code__btn-secondary {
    background: transparent;
    color: var(--light-text-color);
    border: 2px solid var(--light-text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-gift-code__intro-section .page-gift-code__btn-secondary {
    color: var(--light-text-color);
    border-color: var(--light-text-color);
}

.page-gift-code__btn-secondary:hover {
    background: var(--light-text-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-gift-code__how-to-get-section,
.page-gift-code__types-section,
.page-gift-code__platforms-section,
.page-gift-code__news-section {
    padding: 60px 0;
    background: var(--light-bg-color);
}

.page-gift-code__guide-section {
    padding: 60px 0;
    background: var(--primary-color);
    color: var(--light-text-color);
}

.page-gift-code__guide-section .page-gift-code__section-title,
.page-gift-code__guide-section .page-gift-code__list-title,
.page-gift-code__guide-section p,
.page-gift-code__guide-section .page-gift-code__important-note {
    color: var(--light-text-color);
}

.page-gift-code__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-gift-code__ordered-list {
    list-style: decimal;
    padding-left: 20px;
}

.page-gift-code__list-item {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    padding: 25px;
    line-height: 1.7;
    color: var(--dark-text-color);
}

.page-gift-code__guide-section .page-gift-code__list-item {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text-color);
}

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

.page-gift-code__guide-section .page-gift-code__list-title {
    color: var(--secondary-color);
}

.page-gift-code__important-note {
    background: var(--secondary-color);
    color: var(--dark-text-color);
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 30px;
    font-weight: bold;
    text-align: center;
    display: block;
}

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

.page-gift-code__text-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.page-gift-code__guide-section .page-gift-code__text-link {
    color: var(--secondary-color);
}

.page-gift-code__guide-section .page-gift-code__text-link:hover {
    color: #e0a800;
}

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

.page-gift-code__card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gift-code__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-gift-code__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-gift-code__card-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-gift-code__card-button:hover {
    background: #0056b3;
}

.page-gift-code__cta-group--center {
    margin-top: 40px;
}

/* FAQ Section */
.page-gift-code__faq-section {
    padding: 60px 0;
    background: var(--light-bg-color);
}

.page-gift-code__faq-list {
    margin-top: 30px;
}

.page-gift-code__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.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 15px;
    opacity: 0;
}

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

.page-gift-code__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    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-code__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

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

.page-gift-code__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-code__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-code__faq-item.active .page-gift-code__faq-toggle {
    color: #333;
}

/* News Section */
.page-gift-code__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-gift-code__news-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-gift-code__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-gift-code__news-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
}

.page-gift-code__news-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 15px 15px 10px 15px;
    line-height: 1.4;
}

.page-gift-code__news-link {
    text-decoration: none;
    color: var(--primary-color);
}

.page-gift-code__news-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

.page-gift-code__news-excerpt {
    font-size: 15px;
    color: var(--dark-text-color);
    margin: 0 15px 15px 15px;
    line-height: 1.6;
}

.page-gift-code__read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin: 0 15px 15px 15px;
    transition: color 0.3s ease;
}

.page-gift-code__read-more:hover {
    color: #0056b3;
    text-decoration: underline;
}

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

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

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

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

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

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

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

    .page-gift-code__section-title {
        font-size: 22px;
        margin-bottom: 20px;
        padding-top: 15px;
    }

    .page-gift-code__description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .page-gift-code__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-gift-code__btn-primary,
    .page-gift-code__btn-secondary,
    .page-gift-code__card-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }

    .page-gift-code__how-to-get-section,
    .page-gift-code__guide-section,
    .page-gift-code__types-section,
    .page-gift-code__platforms-section,
    .page-gift-code__news-section,
    .page-gift-code__faq-section {
        padding: 40px 0;
    }

    .page-gift-code__list-item {
        padding: 20px;
    }

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

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

    .page-gift-code__card-image {
        height: 180px;
    }

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

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

    .page-gift-code__news-image {
        height: 180px;
    }

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

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

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

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

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

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

    .page-gift-code img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-gift-code__section,
    .page-gift-code__card,
    .page-gift-code__container,
    .page-gift-code__list-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

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

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

    .page-gift-code__btn-primary,
    .page-gift-code__btn-secondary,
    .page-gift-code__card-button {
        font-size: 14px;
        padding: 10px 15px;
    }
    .page-gift-code__main-image, .page-gift-code__content-image {
        max-width: 100%;
    }
}