/* style/promotions.css */

/* Base styles for the promotions page content */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Assuming default light background for main content */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-promotions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 2;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-promotions__hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styling */
.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add some padding for mobile safety */
    box-sizing: border-box;
}

.page-promotions__heading {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #017439; /* Brand color for headings */
}

.page-promotions__heading--white {
    color: #ffffff;
}

.page-promotions__text {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__text--white {
    color: #f0f0f0;
}

.page-promotions__highlight {
    color: #017439;
    font-weight: bold;
}
.page-promotions__text--white .page-promotions__highlight {
    color: #FFFF00; /* Yellow highlight on dark background */
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
    color: #ffffff;
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-promotions__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Dark Background Section */
.page-promotions__dark-bg {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
}

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

.page-promotions__card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    color: #333333; /* Dark text on white card */
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

.page-promotions__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand color for card titles */
    line-height: 1.3;
}
.page-promotions__card-title a {
    color: #017439;
    text-decoration: none;
}
.page-promotions__card-title a:hover {
    text-decoration: underline;
}

.page-promotions__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-promotions__card-button {
    align-self: center; /* Center button within card */
    margin-top: auto; /* Push button to the bottom */
    width: 100%; /* Make button full width within card padding */
    max-width: 250px; /* Limit max width for aesthetic */
}

/* How to Claim Section */
.page-promotions__introduction a,
.page-promotions__how-to-claim a,
.page-promotions__benefits a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__introduction a:hover,
.page-promotions__how-to-claim a:hover,
.page-promotions__benefits a:hover {
    text-decoration: underline;
}

.page-promotions__list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__list-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__list-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-promotions__list-description {
    font-size: 1em;
    color: #555555;
}

.page-promotions__cta-wrapper {
    margin-top: 40px;
    text-align: center;
}

.page-promotions__cta-button {
    max-width: 300px; /* Limit button width */
}

/* Benefits Section */
.page-promotions__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-promotions__benefits-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
}

.page-promotions__benefits-title {
    font-size: 1.3em;
    color: #FFFF00; /* Yellow for highlight on dark background */
    margin-bottom: 10px;
}

.page-promotions__benefits-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1;
}

/* FAQ Section */
.page-promotions__faq {
    padding-bottom: 80px;
}

.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    list-style: none; /* For details/summary */
    outline: none; /* Remove default outline */
}
.page-promotions__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker in WebKit */
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #017439;
    margin-left: 15px;
}

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* For <details> tag, native open state handles display */
.page-promotions__faq-item[open] .page-promotions__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 10px;
}

/* Final CTA Section */
.page-promotions__cta-final {
    padding: 80px 20px;
    background-color: #017439;
    color: #ffffff;
}

.page-promotions__cta-content {
    max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__heading {
        font-size: 2em;
    }
    .page-promotions__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile-specific adjustments */
    .page-promotions__hero-section {
        height: 450px;
    }
    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__hero-cta-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-promotions__heading {
        font-size: 1.8em;
    }
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__container {
        padding: 0; /* Remove horizontal padding here, handled by section padding */
        max-width: 100%; /* Ensure container doesn't overflow */
    }

    /* Images and Videos Responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to content containers */
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-promotions__card-image {
        height: auto; /* Allow image height to scale */
    }
    .page-promotions__card-button {
        max-width: 100%;
    }
    .page-promotions__list-item {
        padding: 15px 20px;
    }
    .page-promotions__list-title {
        font-size: 1.2em;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-promotions__benefits-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-section {
        height: 400px;
    }
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__hero-description {
        font-size: 0.9em;
    }
    .page-promotions__heading {
        font-size: 1.5em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-promotions__card {
        padding: 20px;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
}