.page-home {
    color: #333333; /* Dark text for default (white) body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.page-home__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a; /* Dark background for hero to make golden elements pop */
    color: #ffffff;
    padding-bottom: 60px;
}

.page-home__hero-image-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-top: 20px;
}

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

.page-home__hero-content {
    max-width: 900px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.page-home__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold primary color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.page-home__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-home__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.page-home__button--primary {
    background-color: #FFD700; /* Gold primary color */
    color: #1a1a1a;
    border: 2px solid #FFD700;
}

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

.page-home__button--secondary {
    background-color: transparent;
    color: #FFD700; /* Gold primary color */
    border: 2px solid #FFD700;
}

.page-home__button--secondary:hover {
    background-color: #FFD700;
    color: #1a1a1a;
    transform: translateY(-2px);
}

.page-home__button--light {
    background-color: #ffffff;
    color: #1E90FF; /* Deep sky blue auxiliary color */
    border: 2px solid #ffffff;
}

.page-home__button--light:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-home__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
    background-color: #1E90FF;
    color: #ffffff;
    border: none;
}

.page-home__button--small:hover {
    background-color: #1565b3;
}

.page-home__section-padding {
    padding: 80px 20px;
}

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

.page-home__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    text-align: center;
    color: #333333;
    font-weight: bold;
}

.page-home__section-title--light {
    color: #ffffff;
}

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

.page-home__section-description--light {
    color: #e0e0e0;
}

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

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

.page-home__feature-item:hover {
    transform: translateY(-5px);
}

.page-home__feature-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-home__feature-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-home__feature-text {
    font-size: 1em;
    color: #666666;
}

.page-home__bg--dark {
    background-color: #1a1a1a;
}

.page-home__bg--accent {
    background-color: #1E90FF; /* Deep sky blue auxiliary color */
}

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

.page-home__game-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

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

.page-home__game-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.page-home__game-card-title {
    font-size: 1.6em;
    color: #FFD700;
    margin: 20px 0 10px;
    padding: 0 15px;
}

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

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

.page-home__game-card-text {
    font-size: 0.95em;
    color: #cccccc;
    padding: 0 15px;
    flex-grow: 1;
}

.page-home__game-card .page-home__button--small {
    margin: 20px 15px 25px;
    align-self: center;
}

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

.page-home__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

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

.page-home__promo-card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.page-home__promo-card-title {
    font-size: 1.6em;
    color: #1E90FF;
    margin: 20px 0 10px;
    padding: 0 15px;
}

.page-home__promo-card-text {
    font-size: 0.95em;
    color: #666666;
    padding: 0 15px;
    flex-grow: 1;
}

.page-home__promo-card .page-home__button--secondary {
    margin: 20px 15px 25px;
    align-self: center;
}

.page-home__center-button {
    text-align: center;
    margin-top: 50px;
}

.page-home__app-download-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-home__app-text {
    flex: 1;
    min-width: 300px;
    color: #ffffff;
}

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

.page-home__app-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
}

.page-home__app-text .page-home__section-title {
    text-align: left;
    color: #ffffff;
}

.page-home__app-text .page-home__section-description {
    text-align: left;
    margin: 0 0 30px 0;
    color: #f0f0f0;
}

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

.page-home__why-choose-item {
    background-color: #f8f8f8;
    border-left: 5px solid #FFD700;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-home__why-choose-title {
    font-size: 1.5em;
    color: #1E90FF;
    margin-bottom: 10px;
}

.page-home__why-choose-text {
    font-size: 0.95em;
    color: #666666;
}

.page-home__cta-section {
    text-align: center;
}

.page-home__cta-content {
    max-width: 800px;
}

.page-home__cta-content .page-home__button--light {
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-home__hero-title {
        font-size: 3em;
    }
    .page-home__hero-description {
        font-size: 1.2em;
    }
    .page-home__section-title {
        font-size: 2.2em;
    }
    .page-home__section-description {
        font-size: 1em;
    }
    .page-home__app-download-content {
        flex-direction: column;
        text-align: center;
    }
    .page-home__app-text .page-home__section-title,
    .page-home__app-text .page-home__section-description {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-home__hero-section {
        padding-bottom: 40px;
    }
    .page-home__hero-title {
        font-size: 2.2em;
    }
    .page-home__hero-description {
        font-size: 1em;
    }
    .page-home__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-home__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-home__section-padding {
        padding: 60px 15px;
    }
    .page-home__section-title {
        font-size: 1.8em;
    }
    .page-home__section-description {
        font-size: 0.95em;
    }
    .page-home__feature-icon,
    .page-home__promo-card-image,
    .page-home__game-card-image,
    .page-home__app-image {
        max-width: 100%;
        height: auto; /* Ensures images are responsive and don't overflow */
        object-fit: cover;
    }
    /* Ensure all content area images are at least 200px wide for mobile */
    .page-home img {
        min-width: 200px;
        min-height: 200px;
    }
    .page-home__game-categories,
    .page-home__promo-cards,
    .page-home__why-choose-grid {
        grid-template-columns: 1fr;
    }
    .page-home__feature-item,
    .page-home__game-card,
    .page-home__promo-card,
    .page-home__why-choose-item {
        padding: 20px;
    }
    .page-home__app-text .page-home__button--light {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-home__hero-title {
        font-size: 1.8em;
    }
    .page-home__hero-description {
        font-size: 0.9em;
    }
    .page-home__section-title {
        font-size: 1.5em;
    }
    .page-home__section-description {
        font-size: 0.9em;
    }
    .page-home__hero-buttons {
        gap: 10px;
    }
}