/* style/index.css */

/* Variables for consistency */
:root {
    --page-index-primary-color: #E53E3E; /* Auxiliary color */
    --page-index-secondary-color: #1A202C; /* Main color */
    --page-index-text-light: #F7FAFC; /* Light text for dark backgrounds */
    --page-index-text-dark: #2D3748; /* Dark text for light backgrounds */
    --page-index-accent-gold: #FFD700; /* Gold accent for luxury/highlight */
    --page-index-border-color: #4A5568;
    --page-index-shadow-light: rgba(0, 0, 0, 0.1);
    --page-index-shadow-dark: rgba(0, 0, 0, 0.3);
}

.page-index {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-index-text-light);
    background-color: var(--page-index-secondary-color);
}

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

/* Hero Section */
.page-index__hero-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 20px;
}

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

.page-index__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.8), rgba(229, 62, 62, 0.6));
    z-index: 1;
}

.page-index__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: var(--page-index-text-light);
}

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

.page-index__hero-title .highlight {
    color: var(--page-index-primary-color);
}

.page-index__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.page-index__btn {
    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;
    border: none;
}

.page-index__btn--primary {
    background-color: var(--page-index-primary-color);
    color: var(--page-index-text-light);
    box-shadow: 0 4px 15px var(--page-index-primary-color);
}

.page-index__btn--primary:hover {
    background-color: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #c53030;
}

.page-index__btn--secondary {
    background-color: transparent;
    color: var(--page-index-primary-color);
    border: 2px solid var(--page-index-primary-color);
}

.page-index__btn--secondary:hover {
    background-color: var(--page-index-primary-color);
    color: var(--page-index-text-light);
    transform: translateY(-2px);
}

.page-index__btn--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-index__btn--small {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Section Titles */
.page-index__section-title {
    font-size: 2.5em;
    color: var(--page-index-primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-index__section-subtitle {
    font-size: 1.1em;
    color: var(--page-index-text-light);
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* Introduction Section */
.page-index__introduction-section {
    background-color: var(--page-index-secondary-color);
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-index__intro-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-index__intro-text {
    flex: 1;
    font-size: 1.1em;
    color: var(--page-index-text-light);
}

.page-index__intro-text p {
    margin-bottom: 15px;
}

.page-index__intro-text strong {
    color: var(--page-index-primary-color);
}

.page-index__intro-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-index__intro-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--page-index-shadow-dark);
}

/* Features Section */
.page-index__features-section {
    background-color: #2D3748;
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-index__feature-item {
    background-color: #1A202C;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px var(--page-index-shadow-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(229, 62, 62, 0.3);
}

.page-index__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: invert(70%) sepia(80%) saturate(2000%) hue-rotate(330deg) brightness(100%) contrast(100%); /* Makes icons red */
}

.page-index__feature-item h3 {
    font-size: 1.5em;
    color: var(--page-index-text-light);
    margin-bottom: 15px;
}

.page-index__feature-item p {
    color: var(--page-index-text-light);
    opacity: 0.8;
}

/* CTA Banner */
.page-index__cta-banner {
    background: linear-gradient(90deg, #E53E3E, #c53030);
    padding: 80px 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
    box-shadow: 0 15px 40px rgba(229, 62, 62, 0.4);
}

.page-index__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-index__cta-title {
    font-size: 2.8em;
    color: var(--page-index-text-light);
    margin-bottom: 25px;
    font-weight: bold;
}

.page-index__cta-description {
    font-size: 1.2em;
    color: var(--page-index-text-light);
    opacity: 0.9;
    margin-bottom: 40px;
}

/* Detail Pages Section */
.page-index__detail-pages-section {
    background-color: var(--page-index-secondary-color);
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-index__detail-card {
    background-color: #2D3748;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--page-index-shadow-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-index__detail-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--page-index-border-color);
}

.page-index__detail-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-index__detail-card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-index__detail-card-title a {
    color: var(--page-index-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index__detail-card-title a:hover {
    color: var(--page-index-accent-gold);
}

.page-index__detail-card-description {
    font-size: 0.95em;
    color: var(--page-index-text-light);
    opacity: 0.8;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Responsible Gaming Section */
.page-index__responsible-gaming-section {
    background-color: #2D3748;
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}

.page-index__responsible-gaming-section p {
    max-width: 800px;
    margin: 0 auto 20px auto;
    font-size: 1.1em;
    color: var(--page-index-text-light);
    opacity: 0.85;
}

.page-index__responsible-gaming-section .page-index__btn {
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-index__hero-title {
        font-size: 2.8em;
    }
    .page-index__hero-description {
        font-size: 1.1em;
    }
    .page-index__intro-grid {
        flex-direction: column;
    }
    .page-index__section-title {
        font-size: 2em;
    }
    .page-index__cta-title {
        font-size: 2.2em;
    }
    .page-index__cta-description {
        font-size: 1em;
    }
    .page-index__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__btn--large {
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .page-index__hero-section {
        height: 60vh;
    }
    .page-index__hero-title {
        font-size: 2.2em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__section-title {
        font-size: 1.8em;
    }
    .page-index__features-grid, .page-index__detail-cards-grid {
        grid-template-columns: 1fr;
    }
    .page-index__cta-title {
        font-size: 1.8em;
    }
    .page-index__cta-banner {
        padding: 60px 20px;
    }
    .page-index__btn--large {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .page-index__hero-section {
        height: 50vh;
    }
    .page-index__hero-title {
        font-size: 1.8em;
    }
    .page-index__hero-description {
        font-size: 0.9em;
    }
    .page-index__btn {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-index__section-title {
        font-size: 1.5em;
    }
    .page-index__cta-title {
        font-size: 1.6em;
    }
}