/* style/index.css */

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

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

.page-index__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #017439; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-index__text-block {
    font-size: 17px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #333333;
}

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

/* CTA Buttons */
.page-index__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0 10px;
    box-sizing: border-box;
}

.page-index__cta-button--primary {
    background: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

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

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

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

/* Secondary Button Style (for cards, etc.) */
.page-index__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background: #017439;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid #017439;
    box-sizing: border-box;
}

.page-index__btn-secondary:hover {
    background: #005f2e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Backgrounds for sections */
.page-index__light-bg {
    background-color: #FFFFFF; /* Auxiliary color */
    color: #333333;
}

.page-index__dark-bg {
    background-color: #017439; /* Primary color */
    color: #FFFFFF;
}

/* 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, #017439, #005f2e); /* Gradient for depth */
    overflow: hidden; /* Ensure content doesn't spill */
}

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

.page-index__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Min image size requirement */
    min-height: 200px; /* Min image size requirement */
}

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

.page-index__hero-title {
    font-size: 48px;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.page-index__hero-description {
    font-size: 20px;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.page-index__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

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

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

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

.page-index__quick-link-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

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

.page-index__quick-link-text {
    color: #FFFF00; /* Custom font color for register/login */
}

/* Module 3: Games Section */
.page-index__games-section {
    padding: 80px 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: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index__game-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size requirement */
    min-height: 200px; /* Min image size requirement */
}

.page-index__game-card-title {
    font-size: 24px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 15px;
    padding: 0 20px;
}

.page-index__game-card-description {
    font-size: 16px;
    color: #555555;
    margin-bottom: 25px;
    padding: 0 20px;
    flex-grow: 1;
}

.page-index__game-card-button {
    margin: 0 auto;
}

/* Module 4: Promotions Section */
.page-index__promotions-section {
    padding: 80px 0;
}

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

.page-index__promotion-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index__promotion-card-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size requirement */
    min-height: 200px; /* Min image size requirement */
}

.page-index__promotion-card-title {
    font-size: 22px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-index__promotion-card-description {
    font-size: 15px;
    color: #555555;
    margin-bottom: 20px;
    padding: 0 20px;
    flex-grow: 1;
}