/* style/index.css */

/* Reset & Base Styles for .page-index scope */
.page-index {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-index__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Auxiliary gold color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-index__section-subtitle {
    font-size: 1.2em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
}

.page-index__button--primary {
    background-color: #FFD700;
    color: #0A1931;
    border: 2px solid #FFD700;
}

.page-index__button--primary:hover {
    background-color: #e0b800;
    transform: translateY(-2px);
}

.page-index__button--secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-index__button--secondary:hover {
    background-color: #FFD700;
    color: #0A1931;
    transform: translateY(-2px);
}

.page-index__button--large {
    padding: 15px 35px;
    font-size: 1.1em;
}

.page-index__button--small {
    padding: 8px 18px;
    font-size: 0.9em;
}

.page-index__button--text {
    background: none;
    border: none;
    color: #FFD700;
    text-decoration: underline;
    padding: 0;
    display: inline;
}

.page-index__button--text:hover {
    color: #e0b800;
    transform: none;
}

/* Hero Section */
.page-index__hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 50px; /* Adjust as needed */
}

.page-index__hero-container {
    position: relative;
    width: 100%;
    max-width: 100%; /* Ensure it doesn't cause overflow with padding */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero */
}

.page-index__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6);
}

.page-index__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for readability */
    border-radius: 10px;
}

.page-index__hero-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

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

/* About Section */
.page-index__about-section {
    padding: 80px 0;
    background-color: #0A1931;
}

.page-index__about-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-index__about-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #cccccc;
}

/* Games Section */
.page-index__games-section {
    padding: 80px 0;
    background-color: #050E1A;
}

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

.page-index__game-card {
    background-color: #0A1931;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.page-index__game-image {
    width: 100%;
    height: 200px; /* Minimum height for content images */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-index__game-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
}

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

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

.page-index__game-description {
    color: #cccccc;
    font-size: 0.95em;
    padding: 0 15px;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-index__promotions-section {
    padding: 80px 0;
    background-color: #0A1931;
}

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

.page-index__promo-card {
    background-color: #050E1A;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

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

.page-index__promo-image {
    width: 100%;
    height: 250px; /* Minimum height for content images */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-index__promo-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-index__promo-title a {
    color: #FFD700;
    text-decoration: none;
}

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

.page-index__promo-description {
    color: #cccccc;
    font-size: 0.95em;
    padding: 0 15px;
    margin-bottom: 20px;
}

.page-index__full-promo-cta {
    text-align: center;
    margin-top: 50px;
}

/* Why Choose Us Section */
.page-index__why-choose-us-section {
    padding: 80px 0;
    background-color: #050E1A;
}

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

.page-index__feature-card {
    background-color: #0A1931;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.page-index__feature-icon {
    width: 100px; /* Minimum size for feature icons */
    height: 100px; /* Minimum size for feature icons */
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(1.2);
}

.page-index__feature-title {
    font-size: 1.3em;
    color: #FFD700;
    margin-bottom: 10px;
}

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

/* Download App Section */
.page-index__download-app-section {
    padding: 80px 0;
    background-color: #0A1931;
}

.page-index__download-app-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-index__download-content {
    flex: 1;
    min-width: 300px;
}

.page-index__download-content p {
    color: #cccccc;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.page-index__download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-index__download-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-index__download-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
    object-fit: cover;
}

/* News Section */
.page-index__news-section {
    padding: 80px 0;
    background-color: #050E1A;
}

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

.page-index__news-card {
    background-color: #0A1931;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.page-index__news-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-index__news-title a {
    color: #FFD700;
    text-decoration: none;
}

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

.page-index__news-excerpt {
    color: #cccccc;
    font-size: 0.95em;
    margin-bottom: 20px;
}

.page-index__full-news-cta {
    text-align: center;
    margin-top: 50px;
}

/* Detail Pages Section */
.page-index__detail-pages-section {
    padding: 80px 0;
    background-color: #0A1931;
}

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

.page-index__detail-card {
    background-color: #050E1A;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

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

.page-index__detail-image {
    width: 100%;
    height: 220px; /* Minimum height for content images */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-index__detail-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-index__detail-title a {
    color: #FFD700;
    text-decoration: none;
}

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

.page-index__detail-description {
    color: #cccccc;
    font-size: 0.95em;
    padding: 0 15px;
    margin-bottom: 20px;
}

/* Responsible Gambling Section */
.page-index__responsible-gambling-section {
    padding: 80px 0;
    background-color: #050E1A;
    text-align: center;
}

.page-index__responsible-gambling-section p {
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #cccccc;
    font-size: 1.1em;
}

/* CTA Section */
.page-index__cta-section {
    padding: 80px 0;
    background-color: #0A1931;
    text-align: center;
}

.page-index__cta-section .page-index__button {
    margin: 0 10px;
}

.page-index__cta-section .page-index__button--large {
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index__hero-title {
        font-size: 2.8em;
    }
    .page-index__hero-description {
        font-size: 1.1em;
    }
    .page-index__section-title {
        font-size: 2em;
    }
    .page-index__section-subtitle {
        font-size: 1em;
    }
    .page-index__download-app-flex {
        flex-direction: column;
        text-align: center;
    }
    .page-index__download-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-index__hero-title {
        font-size: 2.2em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__button--large {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__game-image, .page-index__promo-image, .page-index__detail-image {
        height: 180px;
    }
    .page-index__feature-icon {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 1.8em;
    }
    .page-index__hero-description {
        font-size: 0.9em;
    }
    .page-index__hero-actions {
        gap: 10px;
    }
    .page-index__button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-index__section-title {
        font-size: 1.5em;
    }
    .page-index__games-grid, .page-index__promotions-grid, .page-index__features-grid, .page-index__news-grid, .page-index__detail-pages-grid {
        grid-template-columns: 1fr;
    }
    .page-index__game-image, .page-index__promo-image, .page-index__detail-image {
        height: 150px;
    }
    .page-index__download-buttons {
        flex-direction: column;
        align-items: center;
    }
}