:root {
    --primary-color: #017439; /* Main brand green */
    --secondary-color: #FFFFFF; /* Auxiliary white */
    --register-color: #C30808; /* Red for register */
    --login-color: #C30808; /* Red for login */
    --background-color: #FFFFFF; /* Default background */
    --register-login-font-color: #FFFF00; /* Yellow for register/login font */
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-light: #e0e0e0;
}

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

/* HERO Section */
.page-index-our-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); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a8a60 100%); /* Green gradient for hero */
    color: var(--text-light);
    overflow: hidden; /* Prevent content overflow */
}

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

.page-index-our-advantages__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index-our-advantages__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-index-our-advantages__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
}

.page-index-our-advantages__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

.page-index-our-advantages__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-index-our-advantages__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
}

.page-index-our-advantages__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px; /* Ensure buttons have a minimum width */
    text-align: center;
}

.page-index-our-advantages__cta-button--register {
    background: var(--register-color); /* Custom register color */
    color: var(--register-login-font-color); /* Custom font color */
    border: 2px solid var(--register-color);
}

.page-index-our-advantages__cta-button--register:hover {
    background: #e62e2e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index-our-advantages__cta-button--login {
    background: var(--login-color); /* Custom login color */
    color: var(--register-login-font-color); /* Custom font color */
    border: 2px solid var(--login-color);
}

.page-index-our-advantages__cta-button--login:hover {
    background: #e62e2e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-index-our-advantages__section {
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
}

.page-index-our-advantages__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-index-our-advantages__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.page-index-our-advantages__section-title a {
    color: var(--primary-color);
    text-decoration: none;
}
.page-index-our-advantages__section-title a:hover {
    text-decoration: underline;
}

.page-index-our-advantages__description {
    font-size: 1.1em;
    color: var(--text-dark);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Light Background sections */
.page-index-our-advantages__light-bg {
    background-color: var(--background-color);
    color: var(--text-dark);
}

.page-index-our-advantages__light-bg .page-index-our-advantages__section-title {
    color: var(--primary-color);
}

/* Dark Background sections */
.page-index-our-advantages__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-index-our-advantages__dark-bg .page-index-our-advantages__section-title {
    color: var(--text-light);
}

.page-index-our-advantages__dark-bg .page-index-our-advantages__description {
    color: rgba(255, 255, 255, 0.9);
}

/* Module 1: Introduction Section */
.page-index-our-advantages__introduction-section .page-index-our-advantages__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-index-our-advantages__introduction-section .page-index-our-advantages__text-block {
    flex: 1;
}

.page-index-our-advantages__introduction-section .page-index-our-advantages__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: var(--text-dark);
}

.page-index-our-advantages__introduction-section .page-index-our-advantages__image-block {
    flex: 1;
    min-width: 400px; /* Minimum size for image block */
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-our-advantages__introduction-section .page-index-our-advantages__image-block img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Module 2: Quick Access Links */
.page-index-our-advantages__quick-access-section .page-index-our-advantages__link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-index-our-advantages__link-card {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark background */
    padding: 25px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-light);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-index-our-advantages__link-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index-our-advantages__link-card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 600;
}

.page-index-our-advantages__link-card p {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

/* Module 3: Core Games/Services */
.page-index-our-advantages__games-section .page-index-our-advantages__game-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-our-advantages__game-card {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
}

.page-index-our-advantages__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index-our-advantages__game-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-index-our-advantages__game-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
    padding: 0 15px;
}

.page-index-our-advantages__game-title a {
    color: var(--primary-color);
    text-decoration: none;
}
.page-index-our-advantages__game-title a:hover {
    text-decoration: underline;
}

.page-index-our-advantages__game-card p {
    font-size: 1em;
    color: var(--text-dark);
    padding: 0 15px 20px;
}

/* Secondary Button Style */
.page-index-our-advantages__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-index-our-advantages__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Module 4: Promotions */
.page-index-our-advantages__promotions-section .page-index-our-advantages__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-our-advantages__promo-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-index-our-advantages__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}