/* style/gift-code.css */
:root {
    --primary-color: #8B0000; /* Deep Red */
    --secondary-color: #FFD700; /* Gold */
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #111;
    --background-light: #f1f3f5;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
}

.page-gift-code {
    color: var(--text-light); /* Body background is dark, so text is light */
    background-color: var(--background-dark);
    padding-top: 120px; /* Desktop: Adjust for fixed header */
}

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

.page-gift-code__hero-banner {
    background: linear-gradient(135deg, var(--primary-color), #6a0000);
    padding: 60px 0;
    text-align: center;
    color: var(--text-light);
}

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

.page-gift-code__hero-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-light);
}

.page-gift-code__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    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: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-gift-code__cta-button--secondary {
    background: var(--text-light);
    color: var(--primary-color);
    margin-left: 20px;
}

.page-gift-code__cta-button--secondary:hover {
    background: #f0f0f0;
    color: #6a0000;
}

.page-gift-code__section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-gift-code__section:nth-of-type(even) {
    background-color: #1a1a1a;
}

.page-gift-code__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-gift-code__content-block {
    background: rgba(255, 255, 255, 0.08); /* Light background for content on dark page */
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    line-height: 1.7;
    font-size: 16px;
}

.page-gift-code__content-block p {
    margin-bottom: 15px;
}

.page-gift-code__content-block h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

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

.page-gift-code__content-block a:hover {
    text-decoration: underline;
    color: #FFC107;
}

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

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

.page-gift-code__list-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-gift-code__list-item:hover {
    transform: translateY(-5px);
}

.page-gift-code__list-item h3 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-gift-code__list-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 0;
}

.page-gift-code__list-image {
    width: 150px; /* Larger image for list items */
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.page-gift-code__call-to-action {
    text-align: center;
    font-size: 18px;
    margin-top: 40px;
    font-weight: bold;
    color: var(--text-light);
}

.page-gift-code__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    counter-reset: step-counter;
}

.page-gift-code__step-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--secondary-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-gift-code__step-item::before {
    counter-increment: step-counter;
    content: "Bước " counter(step-counter);
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
}

.page-gift-code__step-item h3 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-gift-code__step-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 0;
}

.page-gift-code__grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0;
    list-style: none;
    margin-top: 30px;
}

.page-gift-code__grid-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-gift-code__grid-item:hover {
    transform: translateY(-5px);
}

.page-gift-code__grid-image {
    width: 250px; /* Larger image for grid items */
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-gift-code__grid-item h3 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-gift-code__grid-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
}

.page-gift-code__text-center {
    text-align: center;
    margin-top: 30px;
    font-size: 17px;
    color: var(--text-light);
}

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

.page-gift-code__list--small-icon li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.page-gift-code__list-icon {
    font-size: 20px;
    color: var(--secondary-color);
    margin-right: 15px;
    flex-shrink: 0;
    line-height: 1.6;
}

.page-gift-code__list--small-icon li p {
    margin-bottom: 0;
    color: var(--text-light);
}

.page-gift-code__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0;
    list-style: none;
    margin-top: 30px;
}

.page-gift-code__benefit-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-gift-code__benefit-item:hover {
    transform: translateY(-5px);
}

.page-gift-code__benefit-image {
    width: 250px; /* Larger image for benefit items */
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-gift-code__benefit-item h3 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-gift-code__benefit-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
}

.page-gift-code__action-area {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-gift-code__faq-section {
    background-color: #1a1a1a;
}

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

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

.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(--text-light);
}

.page-gift-code__faq-item.active .page-gift-code__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0 0 8px 8px;
}

.page-gift-code__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--primary-color);
    border: 1px solid #6a0000;
    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: #6a0000;
    border-color: #4a0000;
}

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

.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(--text-light);
}

.page-gift-code__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--text-light);
    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: 32px;
    height: 32px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-gift-code__main-title {
        font-size: 38px;
    }
    .page-gift-code__section-title {
        font-size: 32px;
    }
    .page-gift-code__content-block {
        padding: 30px;
    }
    .page-gift-code__grid-list, .page-gift-code__benefits-grid {
        gap: 20px;
    }
    .page-gift-code__list-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .page-gift-code__list-image {
        margin-bottom: 15px;
    }
    .page-gift-code__action-area .page-gift-code__cta-button--secondary {
        margin-top: 15px;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .page-gift-code {
        padding-top: 100px !important; /* Mobile: Adjust for fixed header */
        font-size: 16px;
        line-height: 1.6;
    }
    .page-gift-code__container {
        padding: 0 15px;
    }
    .page-gift-code__hero-banner {
        padding: 40px 0;
    }
    .page-gift-code__main-title {
        font-size: 30px;
        margin-bottom: 15px;
    }
    .page-gift-code__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-gift-code__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-gift-code__cta-button--large {
        font-size: 18px;
        padding: 15px 35px;
    }
    .page-gift-code__cta-button--secondary {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 15px auto 0 auto;
    }
    .page-gift-code__section {
        padding: 40px 0;
    }
    .page-gift-code__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-gift-code__content-block {
        padding: 25px;
        font-size: 15px;
    }
    .page-gift-code__content-block h3 {
        font-size: 20px;
    }
    .page-gift-code__list-item {
        padding: 20px;
    }
    .page-gift-code__list-image {
        width: 100%;
        height: auto;
        max-height: 100px;
        object-fit: cover;
    }
    .page-gift-code__list-item h3 {
        font-size: 18px;
    }
    .page-gift-code__list-item p {
        font-size: 15px;
    }
    .page-gift-code__step-item {
        padding: 20px;
    }
    .page-gift-code__step-item::before {
        top: -10px;
        left: 15px;
        padding: 3px 10px;
        font-size: 12px;
    }
    .page-gift-code__step-item h3 {
        font-size: 18px;
    }
    .page-gift-code__step-item p {
        font-size: 15px;
    }
    .page-gift-code__grid-list, .page-gift-code__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-gift-code__grid-image, .page-gift-code__benefit-image {
        width: 100%;
        height: auto;
        max-height: 150px;
        object-fit: cover;
    }
    .page-gift-code__grid-item h3, .page-gift-code__benefit-item h3 {
        font-size: 18px;
    }
    .page-gift-code__grid-item p, .page-gift-code__benefit-item p {
        font-size: 15px;
    }
    .page-gift-code__list--small-icon li {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-gift-code__list-icon {
        margin-bottom: 10px;
    }
    .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;
    }
    .page-gift-code__faq-item.active .page-gift-code__faq-answer {
        padding: 15px 20px !important;
    }
    /* Ensure all images 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__content-block,
    .page-gift-code__list-item,
    .page-gift-code__step-item,
    .page-gift-code__grid-item,
    .page-gift-code__benefit-item,
    .page-gift-code__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gift-code__faq-section .page-gift-code__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-gift-code__faq-list {
        padding: 0 15px;
    }
}