/* style/resources-promotion-analysis.css */

:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #000080; /* Navy Blue */
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f5f5f5;
    --border-color: #e0e0e0;
}

.page-resources-promotion-analysis {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark); /* Default dark text on light body background */
    line-height: 1.6;
    background-color: #ffffff;
}

.page-resources-promotion-analysis__section {
    padding: 60px 0;
    position: relative;
}

.page-resources-promotion-analysis__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-resources-promotion-analysis__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-resources-promotion-analysis__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
}

/* Hero Section */
.page-resources-promotion-analysis__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background-color: var(--secondary-color);
    color: var(--text-light);
    overflow: hidden;
}

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

.page-resources-promotion-analysis__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

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

.page-resources-promotion-analysis__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-resources-promotion-analysis__main-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-promotion-analysis__main-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.page-resources-promotion-analysis__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-resources-promotion-analysis__cta-button:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-promotion-analysis__cta-button--final {
    margin-top: 50px;
    padding: 20px 50px;
    font-size: 22px;
}

/* Overview Section */
.page-resources-promotion-analysis__overview-section {
    background-color: var(--background-light);
}

.page-resources-promotion-analysis__image-wrapper {
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.page-resources-promotion-analysis__image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Detail Analysis Section */
.page-resources-promotion-analysis__detail-analysis {
    background-color: #ffffff;
}

.page-resources-promotion-analysis__card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources-promotion-analysis__card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-resources-promotion-analysis__card-text {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: justify;
}

.page-resources-promotion-analysis__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-resources-promotion-analysis__list li {
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--text-dark);
}

.page-resources-promotion-analysis__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--text-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-resources-promotion-analysis__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Claim Guide Section */
.page-resources-promotion-analysis__claim-guide {
    background-color: var(--background-light);
}

.page-resources-promotion-analysis__ordered-list {
    list-style: decimal inside;
    margin-bottom: 30px;
    padding-left: 20px;
}

.page-resources-promotion-analysis__ordered-list li {
    margin-bottom: 15px;
    font-size: 17px;
    color: var(--text-dark);
}

.page-resources-promotion-analysis__ordered-list li strong {
    color: var(--secondary-color);
}

/* FAQ Section */
.page-resources-promotion-analysis__faq-section {
    background-color: #ffffff;
}

.page-resources-promotion-analysis__faq-list {
    margin-top: 30px;
}

.page-resources-promotion-analysis__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-promotion-analysis__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 15px;
    opacity: 0;
    color: var(--text-dark);
}

.page-resources-promotion-analysis__faq-item.active .page-resources-promotion-analysis__faq-answer {
    max-height: 2000px !important; /* Use !important and sufficient value */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-resources-promotion-analysis__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-resources-promotion-analysis__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources-promotion-analysis__faq-question:active {
    background: #eeeeee;
}

.page-resources-promotion-analysis__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--secondary-color);
}

.page-resources-promotion-analysis__faq-toggle {
    font-size: 24px;
    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;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources-promotion-analysis__faq-item.active .page-resources-promotion-analysis__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(180deg);
}

.page-resources-promotion-analysis__image-wrapper--faq {
    margin-top: 40px;
}

/* Conclusion Section */
.page-resources-promotion-analysis__conclusion-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
}

.page-resources-promotion-analysis__conclusion-section .page-resources-promotion-analysis__section-title {
    color: var(--primary-color);
}

.page-resources-promotion-analysis__conclusion-section .page-resources-promotion-analysis__section-title::after {
    background-color: var(--primary-color);
}

.page-resources-promotion-analysis__conclusion-section .page-resources-promotion-analysis__text-block {
    color: var(--text-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-promotion-analysis__image-wrapper--final-cta {
    margin-top: 40px;
}

/* General Image Styles */
.page-resources-promotion-analysis img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Center images */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-promotion-analysis__main-title {
        font-size: 40px;
    }
    .page-resources-promotion-analysis__main-description {
        font-size: 18px;
    }
    .page-resources-promotion-analysis__section-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .page-resources-promotion-analysis__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-resources-promotion-analysis__hero-image img {
        border-radius: 4px;
    }
    
    .page-resources-promotion-analysis__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-promotion-analysis__main-title {
        font-size: 32px;
    }
    .page-resources-promotion-analysis__main-description {
        font-size: 16px;
    }
    .page-resources-promotion-analysis__section {
        padding: 40px 0;
    }
    .page-resources-promotion-analysis__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-resources-promotion-analysis__text-block,
    .page-resources-promotion-analysis__card-text,
    .page-resources-promotion-analysis__list li,
    .page-resources-promotion-analysis__ordered-list li {
        font-size: 15px;
    }
    .page-resources-promotion-analysis__card {
        padding: 20px;
        margin-bottom: 20px;
    }
    .page-resources-promotion-analysis__card-title {
        font-size: 20px;
    }
    .page-resources-promotion-analysis__btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ Mobile Styles */
    .page-resources-promotion-analysis__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-resources-promotion-analysis__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-resources-promotion-analysis__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-resources-promotion-analysis__faq-answer {
        padding: 0 15px;
    }
    
    .page-resources-promotion-analysis__faq-item.active .page-resources-promotion-analysis__faq-answer {
        padding: 15px !important;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-resources-promotion-analysis img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-resources-promotion-analysis__container,
    .page-resources-promotion-analysis__section,
    .page-resources-promotion-analysis__card,
    .page-resources-promotion-analysis__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-promotion-analysis__hero-container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-resources-promotion-analysis__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources-promotion-analysis__cta-button--final {
        padding: 15px 35px;
        font-size: 18px;
    }
}