:root {
    --primary-color: #26A9E0;
    --secondary-color: #EA7C07; /* Login color */
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #26A9E0; /* Using primary color for dark sections */
    --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-index {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background: var(--background-light); /* Default body background is light */
}

/* HERO Section */
.page-index__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 header offset */
    background: linear-gradient(135deg, var(--primary-color), var(--background-light));
    color: var(--text-light); /* Text on gradient background */
}

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

.page-index__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

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

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

.page-index__hero-title {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: var(--text-light); /* Ensure high contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index__hero-description {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-light); /* Ensure high contrast */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color); /* Login color */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin: 0 10px 20px 10px;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.page-index__cta-button:hover {
    background: #c76a06; /* Darken on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--secondary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.page-index__cta-button--secondary:hover {
    background: #2197cc; /* Darken on hover */
    border-color: #2197cc;
}

/* General Section Styles */
.page-index__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-index__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-index__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-index__text-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    line-height: 1.8;
}

.page-index__text-block a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-index__text-block a:hover {
    text-decoration: underline;
}

/* Background Colors */
.page-index__light-bg {
    background: var(--background-light);
    color: var(--text-dark);
}

.page-index__dark-section {
    background: var(--background-dark); /* Using primary color for dark sections */
    color: var(--text-light);
}

.page-index__dark-section .page-index__section-title {
    color: var(--text-light);
}

.page-index__dark-section .page-index__section-title::after {
    background-color: var(--secondary-color);
}

.page-index__dark-section .page-index__text-block a {
    color: var(--text-light);
    text-decoration: underline;
}

/* Module 1: Intro Section */
.page-index__intro-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index__feature-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-index__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index__feature-item img {
    
    
    margin-bottom: 20px;
    object-fit: contain;
}

.page-index__feature-item h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-index__feature-item p {
    color: var(--text-dark);
    font-size: 1em;
}

/* Module 2: Quick Access Section */
.page-index__button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.page-index__btn-primary,
.page-index__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: 2px solid;
    box-sizing: border-box; /* Crucial for responsive buttons */
    text-align: center;
}

.page-index__btn-primary {
    background: var(--secondary-color);
    color: var(--text-light);
    border-color: var(--secondary-color);
}

.page-index__btn-primary:hover {
    background: #c76a06;
    border-color: #c76a06;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
    background: var(--background-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.page-index__text-block--small {
    font-size: 0.9em;
    margin-top: 20px;
    opacity: 0.8;
}

/* Module 3: Games Section */
.page-index__games-section {
    padding-bottom: 60px;
}

.page-index__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index__game-category-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.page-index__game-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index__game-category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-index__game-category-card h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin: 20px 15px 10px 15px;
}

.page-index__game-category-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-index__game-category-card h3 a:hover {
    text-decoration: underline;
}

.page-index__game-category-card p {
    color: var(--text-dark);
    padding: 0 15px 20px 15px;
    flex-grow: 1;
}

.page-index__btn-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-index__btn-link:hover {
    background: #2197cc;
}

/* Module 4: Promotions Section */
.page-index__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index__promo-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.page-index__promo-card img {
    width: 100%;
    
    object-fit: cover;
    display: block;
}

.page-index__promo-card h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin: 20px 15px 10px 15px;
}

.page-index__promo-card p {
    color: var(--text-dark);
    padding: 0 15px 20px 15px;
    flex-grow: 1;
}

.page-index__promo-card .page-index__btn-primary {
    margin-top: auto; /* Push button to bottom */
    margin-bottom: 20px;
}

/* Module 5: Security & Support Section */
.page-index__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index__security-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-index__security-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index__security-item img {
    
    
    margin-bottom: 20px;
    object-fit: contain;
}

.page-index__security-item h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-index__security-item p {
    color: var(--text-dark);
    font-size: 1em;
}

.page-index__contact-cta {
    text-align: center;
    margin-top: 50px;
}

/* Module 6: FAQ Section */
.page-index__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

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

.page-index__faq-item.active .page-index__faq-answer {
    max-height: 2000px !important; /* Ensure content fits */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-index__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    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;
}

.page-index__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-index__faq-question:active {
    background: #eeeeee;
}

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

.page-index__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__faq-item.active .page-index__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Optional: rotate for 'X' effect */
}

/* Module 7: Blog Section */
.page-index__blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index__blog-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

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

.page-index__blog-card h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin: 20px 15px 10px 15px;
}

.page-index__blog-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-index__blog-card h3 a:hover {
    text-decoration: underline;
}

.page-index__blog-card p {
    color: var(--text-dark);
    padding: 0 15px 15px 15px;
    flex-grow: 1;
}

.page-index__blog-date {
    display: block;
    font-size: 0.9em;
    color: #888;
    text-align: right;
    padding: 0 15px 20px 15px;
    margin-top: auto;
}

.page-index__view-all-button {
    text-align: center;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 3em;
    }
    .page-index__hero-description {
        font-size: 1.2em;
    }
    .page-index__section-title {
        font-size: 2em;
    }
}