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

/* Variables */
:root {
    --page-primary-color: #26A9E0;
    --page-secondary-color: #FFFFFF;
    --page-text-color: #333333;
    --page-dark-text-color: #000000;
    --page-light-text-color: #FFFFFF;
    --page-login-color: #EA7C07;
    --page-background-color: #FFFFFF;
    --header-offset: 120px; /* Default value, will be overridden by shared.css */
}

/* Base styles for the page content */
.page-resources-s888-latest-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-text-color);
    background-color: var(--page-background-color);
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

/* General Container */
.page-resources-s888-latest-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section Titles and Descriptions */
.page-resources-s888-latest-promotions__section-title {
    font-size: 2.5em;
    color: var(--page-dark-text-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources-s888-latest-promotions__section-description {
    font-size: 1.1em;
    color: var(--page-text-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-resources-s888-latest-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: var(--page-primary-color);
    color: var(--page-light-text-color);
    padding: 80px 0;
    overflow: hidden;
}

.page-resources-s888-latest-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.page-resources-s888-latest-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--page-light-text-color);
    line-height: 1.2;
    font-weight: bold;
}

.page-resources-s888-latest-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.5;
}

.page-resources-s888-latest-promotions__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-resources-s888-latest-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay for text readability */
    z-index: 1;
}

/* Buttons */
.page-resources-s888-latest-promotions__btn-primary,
.page-resources-s888-latest-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-resources-s888-latest-promotions__btn-primary {
    background-color: var(--page-primary-color);
    color: var(--page-light-text-color);
    border: 2px solid var(--page-primary-color);
}

.page-resources-s888-latest-promotions__btn-primary:hover {
    background-color: #1e87b7; /* Darken primary color */
    border-color: #1e87b7;
    opacity: 0.9;
}

.page-resources-s888-latest-promotions__btn-secondary {
    background-color: transparent;
    color: var(--page-light-text-color);
    border: 2px solid var(--page-light-text-color);
}

.page-resources-s888-latest-promotions__btn-secondary:hover {
    background-color: var(--page-light-text-color);
    color: var(--page-primary-color);
}

.page-resources-s888-latest-promotions__btn-large {
    padding: 18px 40px;
    font-size: 1.1em;
}

/* Video Section */
.page-resources-s888-latest-promotions__video-section {
    padding: 80px 0;
    background-color: var(--page-background-color);
}

.page-resources-s888-latest-promotions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px; /* Max width for desktop */
    background: #000;
    margin: 0 auto; /* Center the video */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-s888-latest-promotions__video-wrapper .page-resources-s888-latest-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-resources-s888-latest-promotions__video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    cursor: pointer;
}

/* Features Section */
.page-resources-s888-latest-promotions__features-section {
    padding: 80px 0;
    background-color: var(--page-primary-color); /* Dark background */
    color: var(--page-light-text-color); /* Light text */
}

.page-resources-s888-latest-promotions__features-section .page-resources-s888-latest-promotions__section-title,
.page-resources-s888-latest-promotions__features-section .page-resources-s888-latest-promotions__section-description {
    color: var(--page-light-text-color);
}

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

.page-resources-s888-latest-promotions__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-resources-s888-latest-promotions__feature-card:hover {
    transform: translateY(-10px);
}

.page-resources-s888-latest-promotions__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-height: 200px; /* Limit height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block; /* Important for max-width: 100% to work correctly */
}

.page-resources-s888-latest-promotions__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--page-light-text-color);
}

.page-resources-s888-latest-promotions__feature-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

/* Promotions List */
.page-resources-s888-latest-promotions__promotions-list {
    padding: 80px 0;
    background-color: var(--page-background-color);
}

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

.page-resources-s888-latest-promotions__card {
    background-color: var(--page-secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources-s888-latest-promotions__card:hover {
    transform: translateY(-10px);
}

.page-resources-s888-latest-promotions__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block; /* Important for max-width: 100% to work correctly */
}

.page-resources-s888-latest-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources-s888-latest-promotions__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--page-dark-text-color);
    line-height: 1.3;
}

.page-resources-s888-latest-promotions__card-link {
    text-decoration: none;
    color: var(--page-dark-text-color);
}

.page-resources-s888-latest-promotions__card-link:hover {
    color: var(--page-primary-color);
}

.page-resources-s888-latest-promotions__card-text {
    font-size: 1em;
    color: var(--page-text-color);
    margin-bottom: 20px;
}

.page-resources-s888-latest-promotions__cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-resources-s888-latest-promotions__cta-text {
    font-size: 1.4em;
    color: var(--page-dark-text-color);
    margin-bottom: 30px;
    font-weight: bold;
}

/* FAQ Section */
.page-resources-s888-latest-promotions__faq-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.page-resources-s888-latest-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-s888-latest-promotions__faq-item {
    background-color: var(--page-secondary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-resources-s888-latest-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--page-secondary-color);
    border-bottom: 1px solid #eee;
}

.page-resources-s888-latest-promotions__faq-question:hover {
    background-color: #f9f9f9;
}

.page-resources-s888-latest-promotions__faq-title {
    font-size: 1.2em;
    color: var(--page-dark-text-color);
    margin: 0;
}

.page-resources-s888-latest-promotions__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--page-primary-color);
    transition: transform 0.3s ease;
}

.page-resources-s888-latest-promotions__faq-item.active .page-resources-s888-latest-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-s888-latest-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources-s888-latest-promotions__faq-item.active .page-resources-s888-latest-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

.page-resources-s888-latest-promotions__faq-answer p {
    margin-bottom: 0;
    color: var(--page-text-color);
}

/* Contact CTA Section */
.page-resources-s888-latest-promotions__contact-cta {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-primary-color);
    color: var(--page-light-text-color);
}

.page-resources-s888-latest-promotions__contact-cta .page-resources-s888-latest-promotions__section-title,
.page-resources-s888-latest-promotions__contact-cta .page-resources-s888-latest-promotions__section-description {
    color: var(--page-light-text-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-s888-latest-promotions__hero-title {
        font-size: 3em;
    }
    .page-resources-s888-latest-promotions__hero-description {
        font-size: 1.2em;
    }
    .page-resources-s888-latest-promotions__section-title {
        font-size: 2em;
    }
    .page-resources-s888-latest-promotions__section-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-resources-s888-latest-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources-s888-latest-promotions__hero-section {
        min-height: 500px;
        padding: 60px 0;
    }
    .page-resources-s888-latest-promotions__hero-title {
        font-size: 2.5em;
    }
    .page-resources-s888-latest-promotions__hero-description {
        font-size: 1em;
    }
    .page-resources-s888-latest-promotions__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-s888-latest-promotions__btn-primary,
    .page-resources-s888-latest-promotions__btn-secondary,
    .page-resources-s888-latest-promotions a[class*="button"],
    .page-resources-s888-latest-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-resources-s888-latest-promotions__cta-buttons,
    .page-resources-s888-latest-promotions__button-group,
    .page-resources-s888-latest-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;
        display: flex; /* Ensure flex for wrapping if multiple buttons */
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    .page-resources-s888-latest-promotions__section-title {
        font-size: 1.8em;
    }
    .page-resources-s888-latest-promotions__section-description {
        font-size: 0.9em;
    }
    .page-resources-s888-latest-promotions__features-grid,
    .page-resources-s888-latest-promotions__promotion-cards {
        grid-template-columns: 1fr;
    }
    .page-resources-s888-latest-promotions__feature-card,
    .page-resources-s888-latest-promotions__card {
        margin: 0 15px; /* Add side padding to cards */
    }

    /* Mobile image adaptation */
    .page-resources-s888-latest-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-s888-latest-promotions__section,
    .page-resources-s888-latest-promotions__card,
    .page-resources-s888-latest-promotions__container,
    .page-resources-s888-latest-promotions__video-section,
    .page-resources-s888-latest-promotions__video-container,
    .page-resources-s888-latest-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent overflow */
    }
    .page-resources-s888-latest-promotions__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section is below header */
    }
    .page-resources-s888-latest-promotions__faq-item.active .page-resources-s888-latest-promotions__faq-answer {
        padding: 15px 15px 25px 15px; /* Adjust padding for mobile */
    }
    .page-resources-s888-latest-promotions__faq-question {
        padding: 15px 15px; /* Adjust padding for mobile */
    }
    .page-resources-s888-latest-promotions__faq-answer {
        padding: 0 15px; /* Adjust padding for mobile */
    }
}