/* style/index.css */

/* General Page Styles */
.page-index {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: var(--secondary-color); /* Matches body background: #FFFFFF */
}

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

.page-index__section-title {
    font-size: 32px;
    font-weight: bold;
    color: #26A9E0; /* Primary color for titles */
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-index__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #EA7C07; /* Login color for accent */
    border-radius: 2px;
}

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

.page-index__text-block a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

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

/* Color schemes */
.page-index__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-index__dark-bg {
    background-color: #26A9E0; /* Primary color as background */
    color: #FFFFFF; /* White text for contrast */
}

.page-index__dark-bg .page-index__section-title {
    color: #FFFFFF;
}

.page-index__dark-bg .page-index__section-title::after {
    background-color: #FFFFFF;
}

.page-index__dark-bg .page-index__text-block {
    color: #f0f0f0;
}

.page-index__dark-bg .page-index__text-block a {
    color: #FFFFFF;
}

/* CTA Buttons */
.page-index__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-index__cta-group--center {
    margin-top: 40px;
}

.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-index__cta-button--primary {
    background-color: #26A9E0; /* Primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

.page-index__cta-button--secondary {
    background-color: #EA7C07; /* Login color */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-index__cta-button--secondary:hover {
    background-color: #c46606;
    border-color: #c46606;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 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); /* Fixed header offset */
    background: linear-gradient(135deg, #26A9E0, #a0d8f2); /* Gradient background */
    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;
    width: 100%;
}

.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: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-index__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-index__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-index__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Introduction Section (Module 1) */
.page-index__introduction-section {
    padding: 80px 0;
}

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

.page-index__feature-item {
    text-align: center;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 350px; /* Ensure cards have consistent height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

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

.page-index__feature-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-index__feature-title {
    font-size: 22px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* Quick Access Section (Module 2) */
.page-index__quick-access-section {
    padding: 80px 0;
}

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

.page-index__access-link-card {
    display: block;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on primary background */
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #FFFFFF;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.page-index__access-link-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-index__access-link-card p {
    font-size: 15px;
    color: #f0f0f0;
}

/* Games Section (Module 3) */
.page-index__games-section {
    padding: 80px 0;
}

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

.page-index__game-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 450px; /* Consistent card height */
    display: flex;
    flex-direction: column;
}

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

.page-index__game-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistent image display */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-index__game-title {
    font-size: 22px;
    font-weight: bold;
    margin: 20px 15px 10px;
    color: #26A9E0;
}

.page-index__game-title a {
    color: #26A9E0;
    text-decoration: none;
}

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