/* style/home.css */
.page-home {
    color: #333333; /* Dark text for light body background */
    padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
}

.page-home__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000000; /* Fallback background */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-home__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0.7;
}

.page-home__hero-container {
    position: relative;
    width: 100%;
}

.page-home__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #FFFFFF;
    max-width: 900px;
    padding: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-home__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FCBC45; /* Login button color for emphasis */
}

.page-home__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #FFFFFF;
}

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

.page-home__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.1em;
    min-width: 200px; /* Ensure buttons are not too small */
    text-align: center;
}

.page-home__btn--primary {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for light button */
    border: 2px solid #FCBC45;
}

.page-home__btn--primary:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

.page-home__btn--secondary {
    background-color: #000000; /* Main color */
    color: #FFFFFF; /* Register button color */
    border: 2px solid #FFFFFF;
}

.page-home__btn--secondary:hover {
    background-color: #333333;
    border-color: #FCBC45;
}

.page-home__btn--small {
    padding: 10px 20px;
    font-size: 0.9em;
    min-width: 120px;
    background-color: #000000;
    color: #FCBC45;
    border: 1px solid #FCBC45;
}

.page-home__btn--small:hover {
    background-color: #333333;
    color: #FFFFFF;
}

.page-home__btn--text-link {
    background: none;
    border: none;
    color: #FCBC45;
    padding: 0;
    min-width: unset;
    text-decoration: underline;
    font-size: 1em;
    display: inline-block;
    margin-top: 20px;
}

.page-home__btn--text-link:hover {
    color: #e0a53b;
}

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

.page-home__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.page-home__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FCBC45;
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-home__section-text {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    color: #333333;
}

.page-home__call-to-action-text {
    text-align: center;
    margin-top: 30px;
    font-weight: bold;
    color: #000000;
}

.page-home__about-section,
.page-home__games-section,
.page-home__promotions-section,
.page-home__security-section,
.page-home__mobile-app-section,
.page-home__support-section,
.page-home__cta-section,
.page-home__responsible-gaming-section,
.page-home__payment-methods-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

.page-home__game-card,
.page-home__promo-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-home__game-card-image,
.page-home__promo-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-home__game-card-title {
    font-size: 1.5em;
    color: #000000;
    margin: 0 15px 10px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-home__game-card-title a {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s ease;
}

.page-home__game-card-title a:hover {
    color: #FCBC45;
}

.page-home__game-card-description {
    font-size: 0.95em;
    color: #555555;
    margin: 0 15px 20px;
    flex-grow: 1;
}

.page-home__security-image,
.page-home__mobile-app-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-home__app-download-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.page-home__app-download-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-home__cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-home__hero-title {
        font-size: 2.8em;
    }
    .page-home__hero-description {
        font-size: 1.1em;
    }
    .page-home__section-title {
        font-size: 2em;
    }
    .page-home__btn {
        padding: 12px 25px;
        font-size: 1em;
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .page-home {
        padding-top: var(--header-offset, 120px); /* Ensure mobile content clears fixed header */
    }
    .page-home__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-home__hero-description {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .page-home__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-home__btn {
        width: 100%;
        max-width: 300px; /* Constrain button width on small screens */
        margin: 0 auto;
    }
    .page-home__section-title {
        font-size: 1.8em;
    }
    .page-home__section-text {
        font-size: 1em;
    }
    .page-home__games-grid,
    .page-home__promotions-grid {
        grid-template-columns: 1fr;
    }
    .page-home__game-card-image,
    .page-home__promo-card-image {
        height: 200px;
    }
    .page-home__app-download-content {
        flex-direction: column;
        gap: 20px;
    }
    .page-home__app-download-text {
        text-align: center;
    }
    .page-home__security-image, 
    .page-home__mobile-app-image, 
    .page-home__game-card-image, 
    .page-home__promo-card-image, 
    .page-home__hero-image {
        max-width: 100%; /* Ensure images do not overflow */
        height: auto; /* Maintain aspect ratio */
    }
    .page-home__cta-actions {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-home__hero-title {
        font-size: 1.5em;
    }
    .page-home__hero-description {
        font-size: 0.8em;
    }
    .page-home__btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-home__section-title {
        font-size: 1.5em;
    }
    .page-home__game-card-title {
        font-size: 1.2em;
    }
    .page-home__game-card-description {
        font-size: 0.85em;
    }
}