/* style/index.css */

/* Variables from custom palette */
:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --page-bg: #F4F7FB;
    --text-main: #1F2D3D;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

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

/* --- 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: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-bg);
    overflow: hidden; /* Prevent image overflow */
}

.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; /* Added for aesthetic */
    overflow: hidden; /* Ensure image corners are rounded */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-index__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px; /* Match container border-radius */
}

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

.page-index__hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 2.8rem); /* Use clamp for H1 */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-index__hero-content p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px; /* Adjusted margin-top */
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index__cta-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

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

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

.page-index__section-description--light {
    color: #f0f0f0;
}

/* --- Button Styles (General) --- */
.page-index__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--card-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* --- Image Styles (General) --- */
.page-index img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Module 1: Introduction Section --- */
.page-index__introduction-section {
    background-color: var(--page-bg);
    padding: 60px 0;
}

.page-index__grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-index__text-block p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.page-index__text-block .page-index__btn-secondary {
    margin-top: 20px;
}

.page-index__image-block img {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* --- Module 2: Quick Links Section --- */
.page-index__quick-links-section {
    background-color: var(--primary-color); /* Dark background for this section */
    color: #ffffff;
    padding: 60px 0;
}

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

.page-index__link-card {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    box-sizing: border-box;
}

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

.page-index__link-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-index__link-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-index__link-card p {
    font-size: 0.95rem;
    color: #e0e0e0;
}

/* --- Module 3: Core Games/Services --- */
.page-index__games-section {
    background-color: var(--page-bg);
    padding: 60px 0;
}

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

.page-index__game-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.page-index__game-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding: 0 20px;
}

.page-index__game-card p {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 25px;
    padding: 0 20px;
    flex-grow: 1;
}

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

/* --- Module 4: Promotions --- */
.page-index__promotions-section {
    background-color: var(--primary-color); /* Dark background for this section */
    color: #ffffff;
    padding: 60px 0;
}

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

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

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

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

.page-index__promo-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-index__promo-card p {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 25px;
    padding: 0 20px;
    flex-grow: 1;
}

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

/* --- Module 5: Security & Customer Service --- */
.page-index__security-support-section {
    background-color: var(--page-bg);
    padding: 60px 0;
}

/* Uses .page-index__grid-two-columns defined earlier */
.page-index__security-support-section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-index__security-support-section p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.page-index__security-support-section .page-index__btn-primary {
    margin-top: 20px;
}

/* --- Module 6: FAQ Section --- */
.page-index__faq-section {
    background-color: var(--page-bg);
    padding: 60px 0;
}

.page-index__faq-list {
    margin-top: 40px;
}

details.page-index__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
details.page-index__faq-item summary.page-index__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
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: #f0f5ff; /* Lighter hover for contrast */
}
.page-index__faq-qtext {
    flex: 1;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}
.page-index__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}