/* style/resources-latest-promotions-analysis.css */

.page-resources-latest-promotions-analysis {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Inherited from shared.css, set for context */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-resources-latest-promotions-analysis__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background-color: #26A9E0; /* Brand color as background */
    color: #ffffff;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.page-resources-latest-promotions-analysis__hero-content {
    max-width: 900px;
    z-index: 1;
}

.page-resources-latest-promotions-analysis__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-resources-latest-promotions-analysis__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-resources-latest-promotions-analysis__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources-latest-promotions-analysis__btn-primary,
.page-resources-latest-promotions-analysis__btn-secondary,
.page-resources-latest-promotions-analysis__card-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.page-resources-latest-promotions-analysis__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-resources-latest-promotions-analysis__btn-primary:hover {
    background-color: #d16e06;
    border-color: #d16e06;
}

.page-resources-latest-promotions-analysis__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-resources-latest-promotions-analysis__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-resources-latest-promotions-analysis__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-resources-latest-promotions-analysis__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    display: block;
}

.page-resources-latest-promotions-analysis__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #0a0a0a; /* Dark background from body */
    color: #ffffff; /* Light text for dark background */
}

.page-resources-latest-promotions-analysis__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0; /* Brand color for titles */
}

.page-resources-latest-promotions-analysis__paragraph {
    font-size: 1.1em;
    text-align: justify;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources-latest-promotions-analysis__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-latest-promotions-analysis__promotion-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    height: 100%; /* Ensure cards have equal height */
}

.page-resources-latest-promotions-analysis__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-latest-promotions-analysis__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-resources-latest-promotions-analysis__card-title {
    font-size: 1.5em;
    padding: 20px 20px 10px;
    color: #26A9E0; /* Brand color for card titles */
}

.page-resources-latest-promotions-analysis__card-title a {
    color: #26A9E0; /* Link color for card titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-latest-promotions-analysis__card-title a:hover {
    color: #ffffff;
}

.page-resources-latest-promotions-analysis__card-description {
    font-size: 1em;
    padding: 0 20px 20px;
    flex-grow: 1; /* Make description take available space */
    color: #f0f0f0;
}

.page-resources-latest-promotions-analysis__card-button {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin: 0 20px 20px;
    padding: 12px 20px;
    border-radius: 6px;
}

.page-resources-latest-promotions-analysis__card-button:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

.page-resources-latest-promotions-analysis__benefits-section {
    padding: 60px 20px;
    background-color: #0a0a0a; /* Dark background from body */
    color: #ffffff; /* Light text for dark background */
    text-align: center;
}

.page-resources-latest-promotions-analysis__benefits-list {
    max-width: 1200px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-resources-latest-promotions-analysis__benefit-item {
    background-color: rgba(255, 255, 255, 0.08); /* Card background on dark section */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: #ffffff;
}

.page-resources-latest-promotions-analysis__benefit-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for benefit titles */
}

.page-resources-latest-promotions-analysis__benefit-description {
    font-size: 1.05em;
    color: #f0f0f0;
}

.page-resources-latest-promotions-analysis__faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #0a0a0a; /* Dark background from body */
    color: #ffffff; /* Light text for dark background */
}

.page-resources-latest-promotions-analysis__faq-list {
    margin-top: 40px;
}

.page-resources-latest-promotions-analysis__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Card background on dark section */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-resources-latest-promotions-analysis__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15); /* Slightly darker for question background */
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-resources-latest-promotions-analysis__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-resources-latest-promotions-analysis__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0; /* Brand color for toggle icon */
}

.page-resources-latest-promotions-analysis__faq-item.active .page-resources-latest-promotions-analysis__faq-toggle {
    transform: rotate(45deg); /* Rotate to form an 'x' or '-' */
}

.page-resources-latest-promotions-analysis__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-resources-latest-promotions-analysis__faq-item.active .page-resources-latest-promotions-analysis__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 20px 20px;
}

.page-resources-latest-promotions-analysis__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

.page-resources-latest-promotions-analysis__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #26A9E0; /* Brand color as background */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.page-resources-latest-promotions-analysis__cta-content {
    max-width: 800px;
    z-index: 1;
}

.page-resources-latest-promotions-analysis__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-resources-latest-promotions-analysis__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #ffffff;
}

.page-resources-latest-promotions-analysis__cta-button {
    background-color: #EA7C07; /* Login color for CTA button */
    color: #ffffff;
    border: 2px solid #EA7C07;
    padding: 18px 40px;
    border-radius: 10px;
    font-size: 1.1em;
}

.page-resources-latest-promotions-analysis__cta-button:hover {
    background-color: #d16e06;
    border-color: #d16e06;
}

.page-resources-latest-promotions-analysis__cta-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-resources-latest-promotions-analysis__cta-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources-latest-promotions-analysis__hero-title {
        font-size: 2.8em;
    }
    .page-resources-latest-promotions-analysis__section-title,
    .page-resources-latest-promotions-analysis__cta-title {
        font-size: 2.2em;
    }
    .page-resources-latest-promotions-analysis__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-resources-latest-promotions-analysis__benefits-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources-latest-promotions-analysis {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }

    .page-resources-latest-promotions-analysis__hero-section,
    .page-resources-latest-promotions-analysis__content-area,
    .page-resources-latest-promotions-analysis__benefits-section,
    .page-resources-latest-promotions-analysis__faq-section,
    .page-resources-latest-promotions-analysis__cta-section {
        padding: 40px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources-latest-promotions-analysis__hero-title {
        font-size: 2.2em;
    }
    .page-resources-latest-promotions-analysis__hero-description {
        font-size: 1em;
    }

    .page-resources-latest-promotions-analysis__section-title,
    .page-resources-latest-promotions-analysis__cta-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources-latest-promotions-analysis__paragraph {
        font-size: 1em;
    }

    .page-resources-latest-promotions-analysis__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .page-resources-latest-promotions-analysis__btn-primary,
    .page-resources-latest-promotions-analysis__btn-secondary,
    .page-resources-latest-promotions-analysis__card-button,
    .page-resources-latest-promotions-analysis__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add padding for inner content */
        padding-right: 15px;
    }

    .page-resources-latest-promotions-analysis img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-latest-promotions-analysis__hero-image-wrapper,
    .page-resources-latest-promotions-analysis__cta-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources-latest-promotions-analysis__promotion-card,
    .page-resources-latest-promotions-analysis__benefit-item,
    .page-resources-latest-promotions-analysis__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources-latest-promotions-analysis__promotions-grid,
    .page-resources-latest-promotions-analysis__benefits-list {
        grid-template-columns: 1fr;
    }

    .page-resources-latest-promotions-analysis__faq-question {
        font-size: 1.1em;
    }
    .page-resources-latest-promotions-analysis__benefit-title {
        font-size: 1.5em;
    }
    .page-resources-latest-promotions-analysis__cta-title {
        font-size: 2em;
    }
}

/* Color Contrast Enforcement */
.page-resources-latest-promotions-analysis__dark-bg {
    color: #ffffff; /* Deep dark background, so light text */
}
.page-resources-latest-promotions-analysis__light-bg {
    color: #ffffff; /* Still light text for dark sections */
}

.page-resources-latest-promotions-analysis p,
.page-resources-latest-promotions-analysis li {
  color: #f0f0f0; /* Ensure body text is light for dark background */
}

/* Specific overrides for buttons to maintain contrast */
.page-resources-latest-promotions-analysis__btn-primary {
  background: #EA7C07;
  color: #ffffff;
}

.page-resources-latest-promotions-analysis__btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.page-resources-latest-promotions-analysis__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-resources-latest-promotions-analysis__card-button {
  background: #26A9E0;
  color: #ffffff;
}
.page-resources-latest-promotions-analysis__card-button:hover {
  background: #1e87b7;
}

.page-resources-latest-promotions-analysis__card-title a {
    color: #26A9E0;
}
.page-resources-latest-promotions-analysis__card-title a:hover {
    color: #ffffff;
}