:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --page-bg-color: #F5F7FA;
    --border-color: #E0E0E0;
}

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

.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: 10px; /* Small top padding as body handles header offset */
    background-color: var(--primary-color); /* Or a gradient related to brand colors */
    color: #ffffff;
}

.page-index__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width within max-width */
}

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

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

.page-index__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px; /* Constrain text width */
}

.page-index__hero-content h1 {
    font-size: 3.2em; /* Use clamp if needed, but for now, keep it readable */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.page-index__hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-index__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-index__cta-button--primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-index__cta-button--primary:hover {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

.page-index__cta-button--secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__cta-button--secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

.page-index__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.page-index__section-title--light {
    color: #ffffff;
}

.page-index__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--text-main-color);
}

.page-index__section-description--light {
    color: rgba(255, 255, 255, 0.9);
}

.page-index__light-bg {
    background-color: var(--page-bg-color);
    color: var(--text-main-color);
}

.page-index__dark-section {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Module 1: Intro Section */
.page-index__intro-section {
    padding-bottom: 60px;
}

.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-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-index__feature-item img {
    
    
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Module 2: Quick Links Section */
.page-index__quick-links-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-index__quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.page-index__quick-link-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__quick-link-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-index__quick-link-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
    color: var(--secondary-color);
}

.page-index__quick-link-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-index__quick-link-card p {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 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(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index__game-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-index__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index__game-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-index__game-card-content {
    padding: 25px;
    text-align: center;
}

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

.page-index__game-card-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__game-card-content h3 a:hover {
    color: var(--secondary-color);
}

.page-index__game-card-content p {
    font-size: 0.95em;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

.page-index__game-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-index__game-button:hover {
    background: var(--secondary-color);
}

/* Module 4: Promotions Section */
.page-index__promotions-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-index__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-index__promo-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-index__promo-card-content {
    padding: 25px;
    text-align: center;
    color: #ffffff;
}

.page-index__promo-card-content h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-index__promo-card-content p {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.page-index__promo-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-index__promo-button:hover {
    background: #ffffff;
    color: var(--primary-color);
}

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

/* Module 5: Security & Support Section */
.page-index__security-support-section {
    padding-bottom: 60px;
}

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

.page-index__info-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-index__info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index__info-card img {
    
    
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-index__info-card p {
    font-size: 1em;
    color: var(--text-main-color);
}

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

/* Module 6: FAQ Section */
.page-index__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-index__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

details.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
details.page-index__faq-item summary.page-index__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;
    color: #ffffff;
}
details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
    display: none;
}
details.page-index__faq-item summary.page-index__faq-question:hover {
    background: rgba(255, 255, 255, 0.2);
}
.page-index__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}
.page-index__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-index__faq-item .page-index__faq-answer {
    padding: 0 20px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 5px 5px;
    color: rgba(255, 255, 255, 0.8);
}

.page-index__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

/* Module 7: Blog Section */
.page-index__blog-section {
    padding-bottom: 60px;
}

.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-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-index__blog-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-index__blog-card-content {
    padding: 25px;
}

.page-index__blog-card-content h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.3;
}

.page-index__blog-card-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__blog-card-content h3 a:hover {
    color: var(--secondary-color);
}

.page-index__blog-date {
    font-size: 0.85em;
    color: #888888;
    margin-bottom: 15px;
}

.page-index__blog-card-content p {
    font-size: 0.95em;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

.page-index__blog-button {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-index__blog-button:hover {
    background: var(--secondary-color);
}

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

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

@media (max-width: 768px) {
    .page-index__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-index__hero-image {
        margin-bottom: 20px;
    }

    .page-index__hero-content h1 {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-index__hero-content p {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-index__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-index__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-index__container {
        padding: 30px 15px;
    }

    .page-index__section-title {
        font-size: 1.8em;
    }

    .page-index__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-index__intro-features,
    .page-index__quick-links-grid,
    .page-index__game-categories,
    .page-index__promo-grid,
    .page-index__security-support-grid,
    .page-index__blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-index__feature-item,
    .page-index__quick-link-card,
    .page-index__game-card,
    .page-index__promo-card,
    .page-index__info-card,
    .page-index__blog-card {
        padding: 20px;
    }

    .page-index__game-card img,
    .page-index__promo-card img,
    .page-index__blog-card img {
        
    }

    .page-index__faq-qtext { font-size: 15px; }
    details.page-index__faq-item summary.page-index__faq-question { padding: 15px; }
    details.page-index__faq-item .page-index__faq-answer { padding: 0 15px 15px; }

    /* Enforce image responsive rules */
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-index__section,
    .page-index__card,
    .page-index__container,
    .page-index__cta-buttons,
    .page-index__button-group,
    .page-index__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-index__cta-buttons {
      flex-wrap: wrap !important;
      gap: 10px;
    }
}