/* style/blog-hi99-latest-promotions.css */

/* Custom properties for colors */
:root {
    --hi99-primary: #11A84E; /* Main color */
    --hi99-secondary: #22C768; /* Auxiliary color */
    --hi99-bg-card: #11271B; /* Card background */
    --hi99-bg-main: #08160F; /* Main background */
    --hi99-text-main: #F2FFF6; /* Main text color */
    --hi99-text-secondary: #A7D9B8; /* Secondary text color */
    --hi99-border: #2E7A4E; /* Border color */
    --hi99-glow: #57E38D; /* Glow effect */
    --hi99-gold: #F2C14E; /* Gold color */
    --hi99-divider: #1E3A2A; /* Divider color */
    --hi99-deep-green: #0A4B2C; /* Deep green */

    /* Button gradient */
    --hi99-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-blog-hi99-latest-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--hi99-text-main); /* Default text color for the page */
    background-color: var(--hi99-bg-main); /* Page background color */
}

/* Ensure content is not covered by fixed header */
/* body padding-top is handled by shared.css */

.page-blog-hi99-latest-promotions__section {
    padding: 60px 20px;
    position: relative;
    overflow: hidden; /* Ensure no overflow issues */
}

.page-blog-hi99-latest-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure container takes full width up to max-width */
    box-sizing: border-box;
}

/* HERO Section */
.page-blog-hi99-latest-promotions__hero-section {
    background-color: var(--hi99-deep-green);
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.page-blog-hi99-latest-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.page-blog-hi99-latest-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-blog-hi99-latest-promotions__hero-content {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-blog-hi99-latest-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--hi99-text-main);
    margin-bottom: 20px;
}

.page-blog-hi99-latest-promotions__intro-text {
    font-size: 1.15rem;
    color: var(--hi99-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Titles */
.page-blog-hi99-latest-promotions__section-title {
    font-size: 2.5rem;
    color: var(--hi99-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-blog-hi99-latest-promotions__subsection-title {
    font-size: 1.8rem;
    color: var(--hi99-text-main);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-blog-hi99-latest-promotions__card-title {
    font-size: 1.5rem;
    color: var(--hi99-text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-blog-hi99-latest-promotions__card-subtitle {
    font-size: 1.2rem;
    color: var(--hi99-text-main);
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Text Blocks */
.page-blog-hi99-latest-promotions__text-block {
    font-size: 1rem;
    color: var(--hi99-text-secondary);
    margin-bottom: 20px;
}

/* Buttons */
.page-blog-hi99-latest-promotions__cta-button {
    display: inline-block;
    background: var(--hi99-btn-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-blog-hi99-latest-promotions__cta-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-blog-hi99-latest-promotions__cta-button--secondary {
    background: transparent;
    border: 2px solid var(--hi99-primary);
    color: var(--hi99-primary);
    box-shadow: none;
}

.page-blog-hi99-latest-promotions__cta-button--secondary:hover {
    background: var(--hi99-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-blog-hi99-latest-promotions__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Cards */
.page-blog-hi99-latest-promotions__feature-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.page-blog-hi99-latest-promotions__card {
    background-color: var(--hi99-bg-card);
    border: 1px solid var(--hi99-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--hi99-text-secondary); /* Default text for card content */
}

.page-blog-hi99-latest-promotions__card-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure image takes full width and no extra space */
}

/* Lists */
.page-blog-hi99-latest-promotions__list,
.page-blog-hi99-latest-promotions__ordered-list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--hi99-text-secondary);
}

.page-blog-hi99-latest-promotions__ordered-list {
    list-style-type: decimal;
}

.page-blog-hi99-latest-promotions__list li,
.page-blog-hi99-latest-promotions__ordered-list li {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* FAQ Section */
.page-blog-hi99-latest-promotions__faq-list {
    margin-top: 40px;
}

.page-blog-hi99-latest-promotions__faq-item {
    background-color: var(--hi99-bg-card);
    border: 1px solid var(--hi99-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--hi99-text-secondary);
}

.page-blog-hi99-latest-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--hi99-text-main);
    transition: background-color 0.3s ease;
}

.page-blog-hi99-latest-promotions__faq-question:hover {
    background-color: rgba(var(--hi99-primary), 0.1); /* Using rgba with custom prop for slight hover effect */
}

.page-blog-hi99-latest-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-blog-hi99-latest-promotions__faq-item[open] .page-blog-hi99-latest-promotions__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-blog-hi99-latest-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--hi99-text-secondary);
}

/* Specific styling for details/summary */
.page-blog-hi99-latest-promotions__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-blog-hi99-latest-promotions__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit */
}

/* Global image responsiveness for content area */
.page-blog-hi99-latest-promotions img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below images */
    object-fit: cover; /* Ensures images cover their area without distortion */
}

/* No CSS filters allowed for images */
.page-blog-hi99-latest-promotions img {
    filter: none !important; /* Explicitly remove any potential filters */
}

/* CSS for mobile responsiveness */
@media (max-width: 768px) {
    .page-blog-hi99-latest-promotions__section {
        padding: 40px 15px;
    }

    .page-blog-hi99-latest-promotions__hero-section {
        padding: 10px 15px 40px 15px;
    }

    .page-blog-hi99-latest-promotions__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-blog-hi99-latest-promotions__intro-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-blog-hi99-latest-promotions__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .page-blog-hi99-latest-promotions__subsection-title {
        font-size: 1.5rem;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-blog-hi99-latest-promotions__card-title {
        font-size: 1.3rem;
    }

    .page-blog-hi99-latest-promotions__cta-button {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 10px; /* Space between stacked buttons */
        text-align: center;
    }

    .page-blog-hi99-latest-promotions__button-group {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog-hi99-latest-promotions__card {
        min-width: unset;
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }

    .page-blog-hi99-latest-promotions__list,
    .page-blog-hi99-latest-promotions__ordered-list {
        margin-left: 20px;
    }

    .page-blog-hi99-latest-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-blog-hi99-latest-promotions__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Mobile image responsiveness - REQUIRED */
    .page-blog-hi99-latest-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers with images/content must be responsive */
    .page-blog-hi99-latest-promotions__container,
    .page-blog-hi99-latest-promotions__section,
    .page-blog-hi99-latest-promotions__hero-image-wrapper,
    .page-blog-hi99-latest-promotions__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }
}