/* style/gift-code.css */

/* Biến CSS */
:root {
    --primary-color: #0056B3; /* Deep Blue */
    --secondary-color: #FFC107; /* Amber/Gold */
    --dark-text-color: #333333;
    --light-text-color: #ffffff;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --section-bg-light: #f8f9fa;
    --section-bg-dark: #0d0d0d; /* Assuming dark-bg-1 is dark from shared.css */
}

.page-gift-code {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--light-text-color); /* Default text color for dark body background */
    background-color: var(--section-bg-dark); /* Ensure content has contrasting background if body is dark */
    padding-top: 120px; /* Adjust for fixed header on desktop */
}

@media (max-width: 768px) {
    .page-gift-code {
        padding-top: 100px !important; /* Adjust for fixed header on mobile */
    }
}

/* Hero Section - Not the homepage hero, but a prominent intro */
.page-gift-code__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color), #003F8C); /* Darker blue gradient */
    color: var(--light-text-color);
    padding-top: 180px; /* Specific padding for hero to clear fixed header */
}

@media (max-width: 768px) {
    .page-gift-code__hero-section {
        padding-top: 140px !important; /* Mobile specific padding for hero */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

.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;
}

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

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

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

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

.page-gift-code__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

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

.page-gift-code__cta-button:hover {
    background: #FFDA6A; /* Lighter secondary color */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-gift-code__cta-button--small {
    padding: 10px 25px;
    font-size: 1em;
    margin-top: 20px;
}

/* General Section Styling */
.page-gift-code__section {
    padding: 60px 20px;
    background-color: var(--section-bg-light); /* Light background for content sections */
    color: var(--dark-text-color);
}

.page-gift-code__section:nth-of-type(even) {
    background-color: #f1f3f5; /* Slightly different light background for contrast */
}

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

.page-gift-code__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-gift-code__section-subtitle {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-text-color);
}

.page-gift-code__text-block p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 1em;
    color: var(--dark-text-color);
}

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

.page-gift-code__text-block a:hover {
    text-decoration: underline;
    color: #003F8C;
}

.page-gift-code__list {
    list-style: disc inside;
    margin-bottom: 1.5em;
    padding-left: 20px;
    color: var(--dark-text-color);
}

.page-gift-code__list-item {
    margin-bottom: 0.8em;
    font-size: 1.05em;
}

.page-gift-code__list-item strong {
    color: var(--primary-color);
}

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

.page-gift-code__card {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--dark-text-color);
}

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

.page-gift-code__card-image {
    width: 100%;
    max-width: 400px; /* Ensure images are not too small */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

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

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

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

.page-gift-code__card-description a:hover {
    text-decoration: underline;
    color: #003F8C;
}

.page-gift-code__card-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: var(--dark-text-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-gift-code__card-button:hover {
    background: #FFDA6A;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-gift-code__section--faq {
    background-color: var(--section-bg-light);
}

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

.page-gift-code__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.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, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: var(--dark-text-color);
}

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

.page-gift-code__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
    color: var(--dark-text-color);
}

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

.page-gift-code__faq-answer a:hover {
    text-decoration: underline;
    color: #003F8C;
}

.page-gift-code__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    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;
    color: var(--dark-text-color);
}

.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: 1.1em;
    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: var(--primary-color);
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gift-code__main-title {
        font-size: 2.8em;
    }
    .page-gift-code__hero-description {
        font-size: 1.1em;
    }
    .page-gift-code__section-title {
        font-size: 2em;
    }
    .page-gift-code__text-block p, .page-gift-code__list-item {
        font-size: 1em;
    }
    .page-gift-code__card-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-gift-code__main-title {
        font-size: 2.2em;
    }
    .page-gift-code__hero-description {
        font-size: 1em;
    }
    .page-gift-code__cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-gift-code__section {
        padding: 40px 15px;
    }
    .page-gift-code__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-gift-code__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-gift-code__card {
        padding: 20px;
    }
    .page-gift-code__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-gift-code__card-title {
        font-size: 1.2em;
    }
    .page-gift-code__card-description {
        font-size: 0.95em;
    }
    .page-gift-code__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-gift-code__faq-question h3 {
        font-size: 1em;
        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;
    }

    /* Ensure all images and containers are responsive */
    .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__hero-section,
    .page-gift-code__hero-container,
    .page-gift-code__hero-image,
    .page-gift-code__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gift-code__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-gift-code__hero-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-gift-code__main-title {
        font-size: 1.8em;
    }
    .page-gift-code__section-title {
        font-size: 1.5em;
    }
    .page-gift-code__cta-button {
        padding: 10px 25px;
        font-size: 0.9em;
    }
    .page-gift-code__text-block p, .page-gift-code__list-item {
        font-size: 0.95em;
    }
}