/* style/promotions-latest-offers.css */

/* Base styles for the page content */
.page-promotions-latest-offers {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text on dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Fixed header offset for the first content section */
.page-promotions-latest-offers__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #1a1a2e; /* Dark background for hero */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    overflow: hidden; /* Prevent image overflow */
}

.page-promotions-latest-offers__hero-content {
    max-width: 900px;
    z-index: 2;
    padding: 20px;
}

.page-promotions-latest-offers__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-promotions-latest-offers__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Slightly dim the image to make text stand out */
}

/* General section styling */
.page-promotions-latest-offers__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-promotions-latest-offers__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #cccccc; /* Lighter text for descriptions on dark background */
}

.page-promotions-latest-offers__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Overview Section */
.page-promotions-latest-offers__overview-section {
    padding: 60px 0;
    background-color: #1f1f3a; /* Slightly lighter dark background */
}

.page-promotions-latest-offers__dark-bg {
    background-color: #1a1a2e;
    color: #ffffff;
}

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

.page-promotions-latest-offers__highlight-item {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-promotions-latest-offers__highlight-item:hover {
    transform: translateY(-5px);
}

.page-promotions-latest-offers__highlight-title {
    color: #26A9E0;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.page-promotions-latest-offers__highlight-item p {
    color: #cccccc;
    font-size: 0.95em;
}

/* Details Section */
.page-promotions-latest-offers__details-section {
    padding: 60px 0;
    background-color: #1a1a2e;
}

.page-promotions-latest-offers__offer-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.page-promotions-latest-offers__offer-card:nth-child(even) {
    flex-direction: column-reverse; /* Alternate image/text layout for visual variety */
}

.page-promotions-latest-offers__offer-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 400px; /* Limit height for consistency */
}

.page-promotions-latest-offers__card-content {
    padding: 30px;
}

.page-promotions-latest-offers__card-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-promotions-latest-offers__card-text {
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-promotions-latest-offers__card-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-promotions-latest-offers__card-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
    color: #e0e0e0;
}

.page-promotions-latest-offers__card-list li strong {
    color: #26A9E0;
}

/* How to Claim Section */
.page-promotions-latest-offers__how-to-claim {
    padding: 60px 0;
    background-color: #1f1f3a;
    text-align: center;
}

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

.page-promotions-latest-offers__step-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions-latest-offers__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #EA7C07; /* Login color for emphasis */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid #EA7C07;
}

.page-promotions-latest-offers__step-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-promotions-latest-offers__step-text {
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-promotions-latest-offers__step-link {
    display: inline-block;
    background: #26A9E0;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.page-promotions-latest-offers__step-link:hover {
    background: #1e87b7;
}

.page-promotions-latest-offers__how-to-claim-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-promotions-latest-offers__faq-section {
    padding: 60px 0;
    background-color: #1a1a2e;
}

.page-promotions-latest-offers__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-promotions-latest-offers__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.page-promotions-latest-offers__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.page-promotions-latest-offers__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit */
}

.page-promotions-latest-offers__faq-item summary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.page-promotions-latest-offers__faq-qtext {
    flex-grow: 1;
    color: #ffffff;
}

.page-promotions-latest-offers__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #EA7C07; /* Login color for toggle */
}

.page-promotions-latest-offers__faq-answer {
    padding: 15px 25px 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1em;
    color: #cccccc;
}

/* CTA Section */
.page-promotions-latest-offers__cta-section {
    padding: 60px 0;
    background-color: #1f1f3a;
    text-align: center;
}

.page-promotions-latest-offers__cta-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-promotions-latest-offers__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-promotions-latest-offers__btn-primary {
    background: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-promotions-latest-offers__btn-primary:hover {
    background: #1e87b7;
    border-color: #1e87b7;
    transform: translateY(-2px);
}

.page-promotions-latest-offers__btn-secondary {
    background: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-promotions-latest-offers__btn-secondary:hover {
    background: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-promotions-latest-offers__hero-title {
        font-size: 2.8em;
    }
    .page-promotions-latest-offers__section-title {
        font-size: 2em;
    }
    .page-promotions-latest-offers__offer-card {
        flex-direction: column !important; /* Force column on medium screens */
    }
    .page-promotions-latest-offers__card-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-promotions-latest-offers__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-promotions-latest-offers__hero-content {
        padding: 15px;
    }
    .page-promotions-latest-offers__hero-title {
        font-size: 2em;
        line-height: 1.3;
    }
    .page-promotions-latest-offers__hero-description {
        font-size: 1em;
    }
    .page-promotions-latest-offers__section-title {
        font-size: 1.8em;
    }
    .page-promotions-latest-offers__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-promotions-latest-offers__container {
        padding: 0 15px; /* Add side padding for mobile content */
    }

    /* Images responsive */
    .page-promotions-latest-offers img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions-latest-offers__hero-image-wrapper,
    .page-promotions-latest-offers__offer-card,
    .page-promotions-latest-offers__how-to-claim-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons responsive */
    .page-promotions-latest-offers__cta-button,
    .page-promotions-latest-offers__btn-primary,
    .page-promotions-latest-offers__btn-secondary,
    .page-promotions-latest-offers a[class*="button"],
    .page-promotions-latest-offers 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 !important; /* Ensure padding inside button */
        padding-right: 15px !important;
    }
    .page-promotions-latest-offers__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically on mobile */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px !important; /* Add padding to button container */
        overflow: hidden !important;
    }

    /* Card and highlight items padding for mobile */
    .page-promotions-latest-offers__highlight-item,
    .page-promotions-latest-offers__offer-card,
    .page-promotions-latest-offers__step-item,
    .page-promotions-latest-offers__faq-item {
        padding: 20px;
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px); /* Adjust width to account for margin */
        box-sizing: border-box;
    }

    .page-promotions-latest-offers__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-promotions-latest-offers__faq-answer {
        padding: 10px 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-promotions-latest-offers__hero-title {
        font-size: 1.8em;
    }
    .page-promotions-latest-offers__section-title {
        font-size: 1.5em;
    }
    .page-promotions-latest-offers__highlight-title {
        font-size: 1.2em;
    }
    .page-promotions-latest-offers__card-title {
        font-size: 1.5em;
    }
}