/* Base styles for the blog-hi88-latest-news page */
.page-blog-hi88-latest-news {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light body background */
    background: #FFFFFF; /* Default body background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-blog-hi88-latest-news__hero-section {
    background: #017439; /* Brand primary color for hero background */
    color: #ffffff;
    padding-bottom: 40px;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-blog-hi88-latest-news__main-title {
    font-size: 42px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-blog-hi88-latest-news__subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-blog-hi88-latest-news__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Articles Section */
.page-blog-hi88-latest-news__articles-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.page-blog-hi88-latest-news__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #017439;
}

.page-blog-hi88-latest-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.page-blog-hi88-latest-news__article-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog-hi88-latest-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-blog-hi88-latest-news__article-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-blog-hi88-latest-news__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog-hi88-latest-news__article-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.page-blog-hi88-latest-news__article-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-blog-hi88-latest-news__article-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog-hi88-latest-news__article-title a:hover {
    color: #005f2f;
}

.page-blog-hi88-latest-news__article-excerpt {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-blog-hi88-latest-news__read-more-btn {
    display: inline-block;
    background: #017439;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog-hi88-latest-news__read-more-btn:hover {
    background-color: #005f2f;
}

.page-blog-hi88-latest-news__view-all-wrapper {
    text-align: center;
    margin-top: 50px;
}

.page-blog-hi88-latest-news__view-all-btn {
    display: inline-block;
    background: #C30808; /* Using custom red for CTA */
    color: #FFFF00; /* Custom yellow for CTA font */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: background-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog-hi88-latest-news__view-all-btn:hover {
    background-color: #a00606;
}

/* CTA Section */
.page-blog-hi88-latest-news__cta-section {
    background: #017439;
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.page-blog-hi88-latest-news__cta-title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-blog-hi88-latest-news__cta-description {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-blog-hi88-latest-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-blog-hi88-latest-news__btn-primary,
.page-blog-hi88-latest-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog-hi88-latest-news__btn-primary {
    background: #C30808; /* Custom red for register */
    color: #FFFF00; /* Custom yellow for register font */
    border: 2px solid transparent;
}

.page-blog-hi88-latest-news__btn-primary:hover {
    background-color: #a00606;
}

.page-blog-hi88-latest-news__btn-secondary {
    background: #C30808; /* Custom red for login */
    color: #FFFF00; /* Custom yellow for login font */
    border: 2px solid #FFFF00; /* Yellow border for login */
}

.page-blog-hi88-latest-news__btn-secondary:hover {
    background-color: #a00606;
    border-color: #FFFF00;
    color: #ffffff;
}

/* FAQ Section */
.page-blog-hi88-latest-news__faq-section {
    padding: 60px 0;
    background: #ffffff;
}

.page-blog-hi88-latest-news__faq-list {
    margin-top: 30px;
}

details.page-blog-hi88-latest-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333; /* Ensure text is dark on light background */
}
details.page-blog-hi88-latest-news__faq-item summary.page-blog-hi88-latest-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-blog-hi88-latest-news__faq-item summary.page-blog-hi88-latest-news__faq-question::-webkit-details-marker {
  display: none;
}
details.page-blog-hi88-latest-news__faq-item summary.page-blog-hi88-latest-news__faq-question:hover {
  background: #f5f5f5;
}
.page-blog-hi88-latest-news__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure text is dark on light background */
}
.page-blog-hi88-latest-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog-hi88-latest-news__faq-item .page-blog-hi88-latest-news__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555; /* Ensure text is dark on light background */
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-blog-hi88-latest-news__main-title {
        font-size: 36px;
    }
    .page-blog-hi88-latest-news__section-title {
        font-size: 32px;
    }
    .page-blog-hi88-latest-news__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-blog-hi88-latest-news__article-image {
        height: 200px;
    }
    .page-blog-hi88-latest-news__article-title {
        font-size: 20px;
    }
    .page-blog-hi88-latest-news__cta-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    /* General mobile adaptations */
    .page-blog-hi88-latest-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-blog-hi88-latest-news__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-blog-hi88-latest-news__hero-section {
        padding-top: 10px !important; /* Ensure small padding */
        padding-bottom: 30px;
    }
    .page-blog-hi88-latest-news__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-blog-hi88-latest-news__subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-blog-hi88-latest-news__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Articles Section */
    .page-blog-hi88-latest-news__articles-section {
        padding: 40px 0;
    }
    .page-blog-hi88-latest-news__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-blog-hi88-latest-news__articles-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 25px;
    }
    .page-blog-hi88-latest-news__article-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding: 0 !important; */ /* Remove card padding if any, if container has padding */
    }
    .page-blog-hi88-latest-news__article-image {
        height: 180px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-blog-hi88-latest-news__card-content {
        padding: 20px;
    }
    .page-blog-hi88-latest-news__article-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .page-blog-hi88-latest-news__article-excerpt {
        font-size: 14px;
        margin-bottom: 15px;
    }
    .page-blog-hi88-latest-news__read-more-btn {
        padding: 8px 15px;
        font-size: 14px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-blog-hi88-latest-news__view-all-wrapper {
        margin-top: 30px;
    }
    .page-blog-hi88-latest-news__view-all-btn {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* CTA Section */
    .page-blog-hi88-latest-news__cta-section {
        padding: 40px 0;
    }
    .page-blog-hi88-latest-news__cta-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-blog-hi88-latest-news__cta-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-blog-hi88-latest-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-blog-hi88-latest-news__btn-primary,
    .page-blog-hi88-latest-news__btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ Section */
    .page-blog-hi88-latest-news__faq-section {
        padding: 40px 0;
    }
    details.page-blog-hi88-latest-news__faq-item summary.page-blog-hi88-latest-news__faq-question {
        padding: 15px;
    }
    .page-blog-hi88-latest-news__faq-qtext {
        font-size: 15px;
    }
    .page-blog-hi88-latest-news__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-blog-hi88-latest-news__faq-item .page-blog-hi88-latest-news__faq-answer {
        padding: 0 15px 15px;
    }
}