.page-resources-hi88-latest-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--secondary-color, #FFFFFF); /* Default body background is light */
}

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

/* Hero Section */
.page-resources-hi88-latest-promotions__hero-section {
    position: relative;
    background-color: #017439; /* Brand primary color for dark background */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px 40px; /* Adjust padding-top based on header offset */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-resources-hi88-latest-promotions__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Special color for hero title */
}

.page-resources-hi88-latest-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    color: #f0f0f0;
}

.page-resources-hi88-latest-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-resources-hi88-latest-promotions__btn-register,
.page-resources-hi88-latest-promotions__btn-login {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-resources-hi88-latest-promotions__btn-register {
    background-color: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom color for register text */
    border: 2px solid #FFFF00;
}

.page-resources-hi88-latest-promotions__btn-register:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-resources-hi88-latest-promotions__btn-login {
    background-color: #C30808; /* Custom color for login */
    color: #FFFF00; /* Custom color for login text */
    border: 2px solid #FFFF00;
}

.page-resources-hi88-latest-promotions__btn-login:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-resources-hi88-latest-promotions__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it's a block element for proper spacing */
    margin-top: 20px;
}

/* General Section Styling */
.page-resources-hi88-latest-promotions__section {
    padding: 60px 0;
}

.page-resources-hi88-latest-promotions__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-resources-hi88-latest-promotions__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-resources-hi88-latest-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section (dark/light bg) */
}

.page-resources-hi88-latest-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-hi88-latest-promotions__text-link {
    color: #017439; /* Brand primary color for links on light bg */
    text-decoration: underline;
    font-weight: bold;
}
.page-resources-hi88-latest-promotions__dark-bg .page-resources-hi88-latest-promotions__text-link {
    color: #FFFF00; /* Yellow for links on dark bg */
}

.page-resources-hi88-latest-promotions__list {
    list-style: disc;
    margin-left: 40px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-hi88-latest-promotions__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

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

.page-resources-hi88-latest-promotions__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
}

.page-resources-hi88-latest-promotions__promo-card:hover {
    transform: translateY(-10px);
}

.page-resources-hi88-latest-promotions__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it's a block element */
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources-hi88-latest-promotions__card-text {
    font-size: 1em;
    text-align: justify;
}

/* Guide Steps */
.page-resources-hi88-latest-promotions__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-hi88-latest-promotions__guide-item {
    text-align: center;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-hi88-latest-promotions__guide-icon {
    width: 200px; /* Min size for image */
    height: 150px; /* Min size for image */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-resources-hi88-latest-promotions__guide-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #017439;
    font-weight: bold;
}

.page-resources-hi88-latest-promotions__guide-text {
    font-size: 1em;
    text-align: justify;
}

/* Tips Section */
.page-resources-hi88-latest-promotions__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-hi88-latest-promotions__tip-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
}

.page-resources-hi88-latest-promotions__tip-card:hover {
    transform: translateY(-10px);
}

/* FAQ Section */
.page-resources-hi88-latest-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-resources-hi88-latest-promotions__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-resources-hi88-latest-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: #ffffff;
    font-weight: bold;
    color: #017439; /* Brand primary color for FAQ questions */
    transition: background-color 0.3s ease;
}