/* style/index-hay88-app-advantages.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
    --login-button-color: #EA7C07;
}

.page-index-hay88-app-advantages {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color); /* Default light background */
}

/* General Section Styling */
.page-index-hay88-app-advantages__section {
    padding: 60px 0;
    text-align: center;
}

.page-index-hay88-app-advantages__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-index-hay88-app-advantages__dark-section .page-index-hay88-app-advantages__section-title,
.page-index-hay88-app-advantages__dark-section .page-index-hay88-app-advantages__section-description,
.page-index-hay88-app-advantages__dark-section .page-index-hay88-app-advantages__access-text {
    color: var(--text-light);
}

.page-index-hay88-app-advantages__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-index-hay88-app-advantages__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-index-hay88-app-advantages__section-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-index-hay88-app-advantages__dark-section .page-index-hay88-app-advantages__section-title {
    color: var(--text-light);
}

.page-index-hay88-app-advantages__section-description {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-dark);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-hay88-app-advantages__dark-section .page-index-hay88-app-advantages__section-description {
    color: var(--text-light);
}

.page-index-hay88-app-advantages__image--center {
    display: block;
    margin: 40px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.page-index-hay88-app-advantages__cta-button,
.page-index-hay88-app-advantages__btn-primary,
.page-index-hay88-app-advantages__btn-secondary,
.page-index-hay88-app-advantages__read-more {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding/border included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-index-hay88-app-advantages__cta-button--primary,
.page-index-hay88-app-advantages__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-index-hay88-app-advantages__cta-button--primary:hover,
.page-index-hay88-app-advantages__btn-primary:hover {
    background: #1f8ec4; /* Darkened primary color */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-index-hay88-app-advantages__cta-button--secondary,
.page-index-hay88-app-advantages__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-index-hay88-app-advantages__cta-button--secondary:hover,
.page-index-hay88-app-advantages__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-index-hay88-app-advantages__read-more {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    font-size: 14px;
    margin-top: 15px;
}

.page-index-hay88-app-advantages__read-more:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* HERO Section */
.page-index-hay88-app-advantages__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, var(--primary-color) 0%, #aed6f1 100%); /* Lighter blue gradient */
    color: var(--text-light);
}

.page-index-hay88-app-advantages__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-index-hay88-app-advantages__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-index-hay88-app-advantages__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-index-hay88-app-advantages__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-index-hay88-app-advantages__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index-hay88-app-advantages__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-index-hay88-app-advantages__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Module 1: Introduction */
.page-index-hay88-app-advantages__intro-section {
    background-color: var(--secondary-color);
}

.page-index-hay88-app-advantages__intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
    margin-top: 40px;
}

.page-index-hay88-app-advantages__intro-item {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.page-index-hay88-app-advantages__intro-item-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index-hay88-app-advantages__intro-item p {
    color: var(--text-dark);
}

/* Module 2: Quick Access Links */
.page-index-hay88-app-advantages__quick-access-section {
    background-color: var(--primary-color);
}

.page-index-hay88-app-advantages__quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.page-index-hay88-app-advantages__access-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 25px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index-hay88-app-advantages__access-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.page-index-hay88-app-advantages__access-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

/* Module 3: Core Games/Services Introduction */
.page-index-hay88-app-advantages__games-section {
    background-color: var(--secondary-color);
}

.page-index-hay88-app-advantages__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-hay88-app-advantages__game-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-index-hay88-app-advantages__game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-index-hay88-app-advantages__game-title {
    font-size: 20px;
    margin: 20px 15px 10px;
    font-weight: bold;
}

.page-index-hay88-app-advantages__game-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-index-hay88-app-advantages__game-title a:hover {
    text-decoration: underline;
}

.page-index-hay88-app-advantages__game-description {
    font-size: 15px;
    color: var(--text-dark);
    padding: 0 15px 20px;
}

/* Module 4: Promotions */
.page-index-hay88-app-advantages__promotions-section {
    background-color: var(--primary-color);
}

.page-index-hay88-app-advantages__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-hay88-app-advantages__promo-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-index-hay88-app-advantages__promo-title {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index-hay88-app-advantages__promo-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Module 5: Security & Customer Service */
.page-index-hay88-app-advantages__security-service-section {
    background-color: var(--secondary-color);
}

.page-index-hay88-app-advantages__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
    margin-top: 40px;
}

.page-index-hay88-app-advantages__security-item {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.page-index-hay88-app-advantages__security-item-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index-hay88-app-advantages__security-item p {
    color: var(--text-dark);
}

/* Module 6: FAQ */
.page-index-hay88-app-advantages__faq-section {
    background-color: var(--bg-light);
}

.page-index-hay88-app-advantages__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-hay88-app-advantages__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-index-hay88-app-advantages__faq-item.active .page-index-hay88-app-advantages__faq-answer {
    max-height: 2000px !important; /* IMPORTANT for FAQ */
    padding: 20px 15px !important;
    opacity: 1;
    background: #ffffff;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index-hay88-app-advantages__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.page-index-hay88-app-advantages__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-index-hay88-app-advantages__faq-question:active {
    background: #eeeeee;
}

.page-index-hay88-app-advantages__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-dark);
}

.page-index-hay88-app-advantages__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-index-hay88-app-advantages__faq-item.active .page-index-hay88-app-advantages__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Change to X or rotate */
}


/* Module 7: Latest Blog Content */
.page-index-hay88-app-advantages__blog-section {
    background-color: var(--secondary-color);
}

.page-index-hay88-app-advantages__blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-hay88-app-advantages__blog-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: left;
    border: 1px solid var(--border-color);
}

.page-index-hay88-app-advantages__blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-index-hay88-app-advantages__blog-title {
    font-size: 20px;
    margin: 20px 15px 10px;
    font-weight: bold;
}