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

/* Base styles for the page content */
.page-promotions-latest-details {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: var(--secondary-color, #FFFFFF); /* Assumes light background from shared.css */
    padding-top: 0; /* Handled by shared body padding or specific section below */
}

/* Hero Section */
.page-promotions-latest-details__hero-section {
    position: relative;
    padding: 100px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: var(--primary-color, #017439); /* Dark background */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

.page-promotions-latest-details__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-promotions-latest-details__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-promotions-latest-details__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-promotions-latest-details__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* For mobile responsiveness */
}

.page-promotions-latest-details__btn-primary,
.page-promotions-latest-details__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;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

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

.page-promotions-latest-details__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

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

.page-promotions-latest-details__btn-secondary:hover {
    background-color: #ffffff;
    color: var(--primary-color, #017439);
}

.page-promotions-latest-details__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

/* General Section Styling */
.page-promotions-latest-details__overview-section,
.page-promotions-latest-details__guide-section,
.page-promotions-latest-details__faq-section,
.page-promotions-latest-details__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
}

.page-promotions-latest-details__details-section,
.page-promotions-latest-details__terms-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color, #017439); /* Dark background */
    color: #ffffff; /* White text for dark background */
}

.page-promotions-latest-details__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-promotions-latest-details__dark-bg {
    background-color: var(--primary-color, #017439);
    color: #ffffff;
}

.page-promotions-latest-details__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-promotions-latest-details__text-block {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 30px auto;
    line-height: 1.8;
}

.page-promotions-latest-details__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Promo Grid */
.page-promotions-latest-details__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions-latest-details__promo-card {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 550px; /* Ensure cards have similar height */
}

.page-promotions-latest-details__card-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-promotions-latest-details__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--primary-color, #017439);
}

.page-promotions-latest-details__card-text {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Guide Section */
.page-promotions-latest-details__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-latest-details__guide-item {
    background-color: #f9f9f9;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}