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

/* Base styles for the page content */
.page-index-latest-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Default text color for dark body background */
    background-color: var(--header-bg-dark); /* Inherited from shared.css */
}

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

.page-index-latest-promotions__section {
    padding: 60px 0;
    text-align: center;
}

.page-index-latest-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #ffffff; /* Default for dark sections */
}

.page-index-latest-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Default for dark sections */
}

/* Color contrast adjustments for sections */
.page-index-latest-promotions__dark-bg {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

.page-index-latest-promotions__dark-bg .page-index-latest-promotions__section-title {
    color: #ffffff;
}

.page-index-latest-promotions__dark-bg .page-index-latest-promotions__text-block,
.page-index-latest-promotions__dark-bg .page-index-latest-promotions__list-item {
    color: #f0f0f0;
}

.page-index-latest-promotions__light-bg {
    background-color: #ffffff; /* Auxiliary color for light sections */
    color: #333333;
}

.page-index-latest-promotions__light-bg .page-index-latest-promotions__section-title {
    color: #017439; /* Brand primary color for titles on light background */
}

.page-index-latest-promotions__light-bg .page-index-latest-promotions__text-block,
.page-index-latest-promotions__light-bg .page-index-latest-promotions__list-item {
    color: #333333;
}

/* Links within content */
.page-index-latest-promotions__text-block a,
.page-index-latest-promotions__list-item a,
.page-index-latest-promotions__card-description a {
    color: #017439; /* Brand primary for links */
    text-decoration: underline;
    font-weight: bold;
}

.page-index-latest-promotions__text-block a:hover,
.page-index-latest-promotions__list-item a:hover,
.page-index-latest-promotions__card-description a:hover {
    color: #004d2c; /* Darker shade on hover */
}


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

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

.page-index-latest-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-index-latest-promotions__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

.page-index-latest-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-index-latest-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-index-latest-promotions__btn-primary,
.page-index-latest-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-index-latest-promotions__btn-primary {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-index-latest-promotions__btn-primary:hover {
    background-color: #004d2c;
    border-color: #004d2c;
}

.page-index-latest-promotions__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Main brand color for text */
    border: 2px solid #017439;
}

.page-index-latest-promotions__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #004d2c;
    border-color: #004d2c;
}

/* Custom button colors */
.page-index-latest-promotions__btn-register {
    background-color: #C30808; /* Red for register */
    color: #FFFF00; /* Yellow for register font */
    border-color: #C30808;
}

.page-index-latest-promotions__btn-register:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-index-latest-promotions__btn-login {
    background-color: #C30808; /* Red for login */
    color: #FFFF00; /* Yellow for login font */
    border-color: #C30808;
}

.page-index-latest-promotions__btn-login:hover {
    background-color: #a00606;
    border-color: #a00606;
}

/* Video Section */
.page-index-latest-promotions__video-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background for video section */
}

.page-index-latest-promotions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index-latest-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    cursor: pointer; /* Indicate it's clickable */
}

.page-index-latest-promotions__video-cta {
    margin-top: 30px;
}

/* Promotion Types Grid */
.page-index-latest-promotions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-latest-promotions__card {
    background-color: #ffffff; /* White background for cards */
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

.page-index-latest-promotions__card:hover {
    transform: translateY(-5px);
}

.page-index-latest-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-index-latest-promotions__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand primary for card titles */
}

.page-index-latest-promotions__card-title a {
    color: #017439;
    text-decoration: none;
}

.page-index-latest-promotions__card-title a:hover {
    text-decoration: underline;
}

.page-index-latest-promotions__card-description {
    font-size: 1em;
    line-height: 1.6;
    flex-grow: 1; /* Allow description to take available space */
}

/* Guide Section Steps */
.page-index-latest-promotions__step-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index-latest-promotions__step-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
}

.page-index-latest-promotions__step-description {
    font-size: 1.1em;
    color: #333333;
    margin-bottom: 20px;
}

.page-index-latest-promotions__button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Notes Section List */
.page-index-latest-promotions__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-index-latest-promotions__list-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: #f0f0f0;
}

.page-index-latest-promotions__list-item::before {
    content: '✓';
    color: #FFFF00; /* Yellow checkmark */
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
}

/* FAQ Section */
.page-index-latest-promotions__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-index-latest-promotions__faq-item {
    background-color: #f9f9f9; /* Light background for FAQ items */
    color: #333333;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index-latest-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-index-latest-promotions__faq-question:hover {
    background-color: #f0f0f0;
}

.page-index-latest-promotions__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #017439; /* Brand primary for FAQ questions */
}

.page-index-latest-promotions__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439; /* Brand primary for toggle icon */
    transition: transform 0.3s ease;
}

.page-index-latest-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333;
}

.page-index-latest-promotions__faq-answer p {
    margin: 0 0 15px 0;
    padding-top: 15px;
    font-size: 1em;
}

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

.page-index-latest-promotions__faq-item.active .page-index-latest-promotions__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes cross */
}

/* Conclusion Section */
.page-index-latest-promotions__conclusion .page-index-latest-promotions__text-block {
    margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-index-latest-promotions__hero-title {
        font-size: 3em;
    }
}