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

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

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

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

.page-index__text-block {
    text-align: center;
    margin-bottom: 30px;
    font-size: 17px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-index__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
    padding-top: var(--header-offset, 120px);
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(1, 116, 57, 0.8) 50%, var(--secondary-color) 100%); /* Adjusted gradient for better contrast */
}

.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%;
}

.page-index__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__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%;
    padding: 0 15px;
    box-sizing: border-box;
}

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

.page-index__hero-description {
    font-size: 20px;
    color: var(--text-color-light);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-index__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index__btn-register {
    background: var(--register-btn-color);
    color: var(--register-login-font-color);
    border: 2px solid var(--register-login-font-color);
}

.page-index__btn-register:hover {
    background: #a20707; /* Darkened version of #C30808 */
    border-color: #ffffff;
}

.page-index__btn-login {
    background: var(--login-btn-color);
    color: var(--register-login-font-color);
    border: 2px solid var(--register-login-font-color);
}

.page-index__btn-login:hover {
    background: #a20707; /* Darkened version of #C30808 */
    border-color: #ffffff;
}

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

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

/* Intro Section */
.page-index__intro-section {
    padding-bottom: 60px;
    background: var(--secondary-color);
}

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

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

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

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

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

.page-index__feature-item p {
    font-size: 16px;
    color: #555;
}

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

.page-index__quick-access-section .page-index__section-title,
.page-index__quick-access-section .page-index__text-block {
    color: var(--text-color-light);
}

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

.page-index__quick-link-card {
    display: block;
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color-light);
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__quick-link-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.page-index__quick-link-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color-light);
}

.page-index__quick-link-card p {
    font-size: 15px;
    opacity: 0.9;
}

/* Games Section */
.page-index__games-section {
    padding-bottom: 60px;
    background: var(--secondary-color);
}

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

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

.page-index__game-card:hover {
    transform: translateY(-5px);
}

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

.page-index__game-card h3 {
    font-size: 22px;
    margin: 20px 20px 10px;
}

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

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

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

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

.page-index__promotions-section .page-index__section-title,
.page-index__promotions-section .page-index__text-block {
    color: var(--text-color-light);
}

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

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

.page-index__promo-card:hover {
    transform: translateY(-5px);
}

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

.page-index__promo-card h3 {
    font-size: 22px;
    margin: 20px 20px 10px;
}

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

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

.page-index__promo-card p {
    font-size: 15px;
    opacity: 0.9;
    padding: 0 20px 20px;
}

.page-index__promotions-cta {
    margin-top: 50px;
}

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

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

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

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

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

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

.page-index__security-item p {
    font-size: 16px;
    color: #555;
}

.page-index__support-cta {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

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

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

.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    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 25px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    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 h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color-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 {
    transform: rotate(45deg); /* Changed to rotate for '+' to 'x' visual */
    color: var(--register-btn-color);
}

.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 25px;
    opacity: 0;
    background: #fefefe;
    color: #555;
    font-size: 16px;
}

.page-index__faq-item.active .page-index__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
    border-top: 1px dashed var(--border-color);
}

/* Blog Section */
.page-index__blog-section {
    padding-bottom: 60px;
    background: var(--secondary-color);
}

.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: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-index__blog-card:hover {
    transform: translateY(-5px);
}

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

.page-index__blog-card h3 {
    font-size: 20px;
    margin: 20px 20px 10px;
}

.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 {
    font-size: 15px;
    color: #555;
    padding: 0 20px;
    margin-bottom: 15px;
}