/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-bottom: 60px; /* Space above footer */
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header offset for the first content section */
.page-promotions__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #017439; /* Primary brand color for hero background */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* For hero image */
    padding-bottom: 40px;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
}

.page-promotions__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

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

.page-promotions__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    filter: brightness(0.7); /* Darken to ensure text contrast */
}

/* General section styles */
.page-promotions__section-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff;
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #e0e0e0;
}

.page-promotions__subsection-title {
    font-size: 2em;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #e0e0e0;
}

/* Dark background sections */
.page-promotions__dark-section {
    background-color: #1a1a1a; /* Slightly lighter than body background for contrast */
    padding: 60px 0;
    color: #ffffff;
}

/* Light background sections (for contrast in content) */
.page-promotions__light-section {
    background-color: #2a2a2a; /* Another shade for variation */
    padding: 60px 0;
    color: #ffffff;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Use specific color for register/login */
    color: #FFFF00; /* Use specific color for register/login font */
    border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
    transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
    transform: translateY(-2px);
}

.page-promotions__btn-link {
    background-color: transparent;
    color: #FFFF00;
    border: none;
    padding: 5px 0;
    margin-top: 10px;
    font-size: 0.9em;
    text-decoration: underline;
}

.page-promotions__btn-link:hover {
    color: #e0e0e0;
    text-decoration: none;
}

/* Feature List */
.page-promotions__feature-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-promotions__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: #ffffff;
    border-left: 5px solid #017439;
}

.page-promotions__feature-item strong {
    color: #FFFF00; /* Highlight important text */
}

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