/* style/index.css */

/* Base styles for the page content, ensuring header offset */
.page-index {
    color: #333333; /* Dark text for light body background */
    padding-top: var(--header-offset, 120px); /* Ensures content starts below the fixed header */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #ffffff; /* Explicitly set for clarity, though body is default white */
}

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

/* Hero Section */
.page-index__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #1A237E; /* Primary color background for hero */
    color: #ffffff; /* White text on dark primary background */
    padding: 80px 0; /* Add some padding for content */
    text-align: center;
}

.page-index__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
}

.page-index__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    object-fit: cover; /* Ensures image covers the area without distortion */
    max-width: 100%; /* Ensure responsiveness */
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px; /* Minimum size for content images */
}

.page-index__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: -50px; /* Overlap with image slightly for visual appeal */
    background-color: rgba(26, 35, 126, 0.8); /* Semi-transparent primary background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-index__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Auxiliary color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

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

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

/* General Button Styles */
.page-index__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 180px; /* Ensure buttons are not too small */
    text-align: center;
}

.page-index__button--primary {
    background-color: #FFD700; /* Auxiliary color */
    color: #1A237E; /* Primary color text */
    border: 2px solid #FFD700;
}

.page-index__button--primary:hover {
    background-color: #e5c100;
    border-color: #e5c100;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.3);
}

.page-index__button--secondary {
    background-color: #1A237E; /* Primary color */
    color: #FFD700; /* Auxiliary color text */
    border: 2px solid #FFD700;
}

.page-index__button--secondary:hover {
    background-color: #2e389e;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(26, 35, 126, 0.3);
}

.page-index__button--download {
    background-color: #4CAF50; /* Green for download */
    color: #ffffff;
    border: 2px solid #4CAF50;
}

.page-index__button--download:hover {
    background-color: #45a049;
    border-color: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.3);
}

.page-index__button--small {
    padding: 10px 20px;
    font-size: 0.95em;
    min-width: unset;
}

/* General Section Styles */
.page-index__section {
    padding: 60px 0;
    background-color: #ffffff; /* Default light background */
    color: #333333; /* Default dark text */
}

.page-index__section:nth-of-type(odd) {
    background-color: #f8f8f8; /* Light grey background for alternating sections */
}

.page-index__section-title {
    font-size: 2.5em;
    color: #1A237E; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-index__section-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #555555;
}

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

.page-index__feature-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

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

.page-index__feature-icon {
    width: 400px; /* Explicit width to meet min 200px requirement */
    height: 300px; /* Maintain aspect ratio (4:3 for 400x300) */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
}

.page-index__feature-title {
    font-size: 1.5em;
    color: #1A237E;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index__feature-description {
    font-size: 0.95em;
    color: #666666;
}

/* Game Categories Showcase */
.page-index__game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index__game-card,
.page-index__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

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

.page-index__game-card-image,
.page-index__promo-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency in cards */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-index__game-card-content,
.page-index__promo-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index__game-card-title,
.page-index__promo-card-title {
    font-size: 1.8em;
    color: #1A237E;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index__game-card-description,
.page-index__promo-card-description {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
}

/* Promotions Section - uses similar card structure */
.page-index__promo-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Why Choose Us Section - SEO content subtitle */
.page-index__content-subtitle {
    font-size: 2em;
    color: #1A237E;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__content-sub-subtitle {
    font-size: 1.5em;
    color: #1A237E;
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index__content-paragraph {
    font-size: 1em;
    color: #444444;
    margin-bottom: 20px;
    text-align: left;
}

/* Payment Section */
.page-index__payment-section {
    background-color: #f0f0f0;
}

.page-index__payment-icons-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-index__payment-icon {
    width: 250px; /* Example size, adjust as needed */
    height: 200px; /* Example size, adjust as needed */
    object-fit: contain;
    min-width: 200px; /* Enforce min size for content images if these are *not* from shared footer */
    min-height: 200px; /* Enforce min size for content images if these are *not* from shared footer */
    max-width: 250px; /* Max width to prevent them from becoming too large */
    height: auto; /* Maintain aspect ratio */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Support and Responsible Gaming */
.page-index__support-section,
.page-index__responsible-gaming-section {
    background-color: #ffffff;
}

/* Final Call to Action */
.page-index__final-cta-section {
    background-color: #1A237E;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-index__final-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 2.8em;
    }
    .page-index__hero-description {
        font-size: 1.2em;
    }
    .page-index__section-title {
        font-size: 2.2em;
    }
    .page-index__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-index__feature-icon,
    .page-index__game-card-image,
    .page-index__promo-card-image,
    .page-index__payment-icon {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        padding: 60px 0;
    }
    .page-index__hero-title {
        font-size: 2.2em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__button {
        width: 80%;
        max-width: 300px;
    }
    .page-index__section {
        padding: 40px 0;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__section-text {
        font-size: 0.95em;
    }
    .page-index__features-grid,
    .page-index__game-cards-grid,
    .page-index__promo-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-index__feature-item,
    .page-index__game-card,
    .page-index__promo-card {
        padding: 20px;
    }
    .page-index__feature-icon {
        width: 100%; /* Ensure responsiveness */
        height: auto; /* Maintain aspect ratio */
        min-width: 200px; /* Enforce min size */
        min-height: 200px; /* Enforce min size */
    }
    .page-index__game-card-image,
    .page-index__promo-card-image {
        width: 100%;
        height: auto; /* Maintain aspect ratio */
        min-width: 200px; /* Enforce min size */
        min-height: 200px; /* Enforce min size */
    }
    .page-index__payment-icon {
        width: 100%; /* Ensure responsiveness */
        height: auto; /* Maintain aspect ratio */
        min-width: 200px; /* Enforce min size */
        min-height: 200px; /* Enforce min size */
    }
    .page-index__content-subtitle {
        font-size: 1.6em;
    }
    .page-index__content-sub-subtitle {
        font-size: 1.3em;
    }
    /* Ensure content area does not cause horizontal scroll */
    .page-index {
        overflow-x: hidden;
    }
    .page-index__container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 1.8em;
    }
    .page-index__hero-description {
        font-size: 0.9em;
    }
    .page-index__section-title {
        font-size: 1.6em;
    }
    .page-index__button {
        width: 90%;
    }
    .page-index__hero-content {
        padding: 20px;
    }
    .page-index__hero-image {
        margin-top: 20px;
    }
}