/* style/index.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-login-button-bg: #C30808;
    --register-login-font-color: #FFFF00;
    --body-bg: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
}

.page-index {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--body-bg);
}

.page-index__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-index__section-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

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

.page-index__text-block p {
    margin-bottom: 15px;
    font-size: 16px;
}

/* HERO Section Styles */
.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);
    background-color: var(--primary-color);
    color: var(--text-color-light);
    overflow: hidden;
}

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

.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 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index__main-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-index__intro-text {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--text-color-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--register-login-button-bg);
    color: var(--register-login-font-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index__cta-button:hover {
    background: darken(var(--register-login-button-bg), 10%); /* This won't work in plain CSS, need to define a slightly darker color */
    background: #a50707;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Intro Section */
.page-index__intro-section {
    padding: 80px 20px;
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

/* Quick Access Section */
.page-index__quick-access-section {
    padding: 80px 20px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-index__quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-index__quick-access-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__quick-access-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__quick-access-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-index__quick-access-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

.page-index__quick-access-item p {
    font-size: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.page-index__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--register-login-button-bg);
    color: var(--register-login-font-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__btn-primary:hover {
    background-color: #a50707;
    transform: translateY(-2px);
}

/* Games Section */
.page-index__games-section {
    padding: 80px 20px;
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

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

.page-index__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-index__game-card p {
    font-size: 15px;
    margin: 0 20px 20px;
    color: #555555;
}

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

.page-index__btn-secondary:hover {
    background-color: darken(var(--primary-color), 10%);
    background-color: #005f2c;
}

/* Promotions Section */
.page-index__promotions-section {
    padding: 80px 20px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

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

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

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

.page-index__promo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-index__promo-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color-light);
    padding: 0 15px;
}

.page-index__promo-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 15px 20px;
}

/* Security & Support Section */
.page-index__security-support-section {
    padding: 80px 20px;
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

.page-index__security-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-index__security-text {
    flex: 2;
}

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

.page-index__security-text p {
    margin-bottom: 20px;
}

.page-index__security-image {
    flex: 1;
    text-align: center;
}

.page-index__security-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* FAQ Section */
.page-index__faq-section {
    padding: 80px 20px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-index__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    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;
    pointer-events: none;
    color: var(--text-color-dark);
}

.page-index__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    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(--primary-color);
    transform: rotate(180deg);
}

.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;
    background: #f9f9f9;
    color: var(--text-color-dark);
}

.page-index__faq-item.active .page-index__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

/* Blog Section */
.page-index__blog-section {
    padding: 80px 20px;
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

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

.page-index__blog-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.page-index__blog-card h3 a:hover {
    color: #005f2c;
}

.page-index__blog-card p {
    font-size: 15px;
    margin: 0 20px 15px;
    color: #555555;
}

.page-index__blog-date {
    display: block;
    font-size: 13px;
    color: #888888;
    margin: 0 20px 20px;
}

/* Global Image Responsive Styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-index__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-index__hero-image img {
        border-radius: 4px;
    }

    .page-index__main-title {
        font-size: 32px;
        line-height: 1.3;
    }

    .page-index__intro-text {
        font-size: 16px;
    }

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

    .page-index__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .page-index__intro-section,
    .page-index__quick-access-section,
    .page-index__games-section,
    .page-index__promotions-section,
    .page-index__security-support-section,
    .page-index__faq-section,
    .page-index__blog-section {
        padding: 40px 15px;
    }

    .page-index__quick-access-grid,
    .page-index__games-grid,
    .page-index__promotions-grid,
    .page-index__blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-index__quick-access-item img,
    .page-index__game-card img,
    .page-index__promo-card img,
    .page-index__blog-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-index__security-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-index__security-text,
    .page-index__security-image {
        flex: none;
        width: 100%;
    }

    .page-index__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-index__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }

    .page-index__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

    .page-index__faq-answer {
        padding: 0 15px;
    }

    .page-index__faq-item.active .page-index__faq-answer {
        padding: 15px !important;
    }

    /* Button responsive adaptations */
    .page-index__btn-primary,
    .page-index__btn-secondary,
    .page-index a[class*="button"],
    .page-index a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .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;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-index__quick-access-grid a.page-index__btn-primary {
        width: calc(100% - 30px); /* Adjust for padding in item */
        margin: 0 15px; /* Center button within card */
    }
}

/* General image and container responsive rules for all content */
.page-index img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-index__section,
.page-index__card,
.page-index__container,
.page-index__text-block {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .page-index img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-index__section,
    .page-index__card,
    .page-index__container,
    .page-index__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}