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

.page-home__hero-section {
    background-color: #1A1A1A; /* Auxiliary dark background for hero text */
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #f0f0f0; /* Light text for dark background */
}

.page-home__hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-home__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay to make text readable */
}

.page-home__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-home__hero-title {
    font-size: 3.5em;
    color: #FFD700; /* Primary gold color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.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, transform 0.3s ease;
    font-size: 1.1em;
    cursor: pointer;
}

.page-home__btn--primary {
    background-color: #FFD700; /* Primary gold button */
    color: #1A1A1A;
    border: 2px solid #FFD700;
}

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

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

.page-home__btn--secondary:hover {
    background-color: #FFD700;
    color: #1A1A1A;
    transform: translateY(-3px);
}

.page-home__btn--cta {
    background-color: #FFD700;
    color: #1A1A1A;
    border: none;
    padding: 18px 40px;
    font-size: 1.3em;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-home__btn--cta:hover {
    background-color: #e6c200;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-home__btn--download {
    background-color: #FFD700;
    color: #1A1A1A;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 6px;
    margin-top: 15px;
}

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

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

.page-home__btn--small:hover {
    background-color: #e6c200;
    transform: translateY(-1px);
}

.page-home__btn--text {
    background-color: transparent;
    color: #FFD700;
    border: none;
    text-decoration: underline;
    padding: 0;
}

.page-home__btn--text:hover {
    color: #e6c200;
    transform: none;
}

.page-home__about-section, .page-home__games-section, .page-home__promotions-section, .page-home__app-section, .page-home__security-section, .page-home__testimonials-section, .page-home__cta-section, .page-home__blog-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-home__about-container, .page-home__promotions-container, .page-home__app-container {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-home__about-container {
    flex-direction: row;
}

.page-home__promotions-container {
    flex-direction: row-reverse; /* Image on right for promotions */
}

.page-home__app-container {
    flex-direction: row;
}

.page-home__about-image-wrapper, .page-home__promotions-image-wrapper, .page-home__app-image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-home__about-image, .page-home__promotions-image, .page-home__app-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-home__about-content, .page-home__promotions-content, .page-home__app-content {
    flex: 1;
}

.page-home__about-title, .page-home__games-title, .page-home__promotions-title, .page-home__app-title, .page-home__security-title, .page-home__testimonials-title, .page-home__cta-title, .page-home__blog-title {
    font-size: 2.8em;
    color: #1A1A1A;
    margin-bottom: 25px;
}

.page-home__about-text, .page-home__games-description, .page-home__promotions-description, .page-home__app-description, .page-home__security-description, .page-home__cta-description {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.page-home__about-list, .page-home__promotions-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-home__about-list-item, .page-home__promotions-list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-home__about-list-item::before, .page-home__promotions-list-item::before {
    content: '⭐'; /* Unicode star emoji */
    position: absolute;
    left: 0;
    color: #FFD700;
    font-size: 1.2em;
    top: 0;
}

.page-home__games-grid, .page-home__security-features, .page-home__testimonial-grid, .page-home__blog-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

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

.page-home__game-card, .page-home__security-card, .page-home__testimonial-card, .page-home__blog-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-home__game-card:hover, .page-home__security-card:hover, .page-home__testimonial-card:hover, .page-home__blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-home__game-card-image, .page-home__blog-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-home__game-card-title, .page-home__blog-card-title {
    font-size: 1.5em;
    color: #1A1A1A;
    margin-bottom: 10px;
}

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

.page-home__game-card-title a:hover, .page-home__blog-card-title a:hover {
    color: #FFD700;
}

.page-home__game-card-text, .page-home__blog-card-text {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-home__security-features {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.page-home__security-card-title {
    font-size: 1.6em;
    color: #1A1A1A;
    margin-bottom: 15px;
}

.page-home__security-card-text {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

.page-home__app-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 30px;
}

.page-home__testimonials-section {
    background-color: #f9f9f9;
}

.page-home__testimonial-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-home__testimonial-card {
    padding: 30px;
    background-color: #ffffff;
    border-left: 5px solid #FFD700;
    text-align: left;
}

.page-home__testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #FFD700;
}

.page-home__testimonial-text {
    font-style: italic;
    font-size: 1.1em;
    line-height: 1.7;
    color: #444444;
    margin-bottom: 15px;
}

.page-home__testimonial-author {
    font-weight: bold;
    color: #1A1A1A;
}

.page-home__cta-section {
    background-color: #1A1A1A;
    color: #f0f0f0;
    padding: 100px 20px;
}

.page-home__cta-title {
    color: #FFD700;
    font-size: 3em;
    margin-bottom: 20px;
}

.page-home__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-home__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-home__hero-title {
        font-size: 3em;
    }
    .page-home__about-title, .page-home__games-title, .page-home__promotions-title, .page-home__app-title, .page-home__security-title, .page-home__testimonials-title, .page-home__cta-title, .page-home__blog-title {
        font-size: 2.5em;
    }
    .page-home__about-container, .page-home__promotions-container, .page-home__app-container {
        flex-direction: column;
        text-align: center;
    }
    .page-home__about-content, .page-home__promotions-content, .page-home__app-content {
        order: 1;
    }
    .page-home__about-image-wrapper, .page-home__promotions-image-wrapper, .page-home__app-image-wrapper {
        order: 2;
    }
    .page-home__app-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-home__hero-section {
        padding: 60px 15px;
    }
    .page-home__hero-title {
        font-size: 2.5em;
    }
    .page-home__hero-description {
        font-size: 1em;
    }
    .page-home__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-home__btn {
        width: 80%;
        max-width: 300px;
    }
    .page-home__about-section, .page-home__games-section, .page-home__promotions-section, .page-home__app-section, .page-home__security-section, .page-home__testimonials-section, .page-home__cta-section, .page-home__blog-section {
        padding: 50px 15px;
    }
    .page-home__about-title, .page-home__games-title, .page-home__promotions-title, .page-home__app-title, .page-home__security-title, .page-home__testimonials-title, .page-home__cta-title, .page-home__blog-title {
        font-size: 2em;
    }
    .page-home__cta-title {
        font-size: 2.5em;
    }
    .page-home__game-card-image, .page-home__blog-card-image {
        height: 180px;
    }
    .page-home__game-card-title, .page-home__blog-card-title {
        font-size: 1.3em;
    }
    .page-home__security-icon {
        width: 80px;
        height: 80px;
    }
    .page-home__testimonial-avatar {
        width: 60px;
        height: 60px;
    }
    .page-home__about-list-item, .page-home__promotions-list-item {
        padding-left: 25px;
        font-size: 1em;
    }
    .page-home__about-list-item::before, .page-home__promotions-list-item::before {
        font-size: 1em;
    }

    /* CRITICAL: Mobile content area images must be constrained */
    .page-home img {
        max-width: 100%;
        height: auto;
    }
    .page-home__game-card-image, .page-home__blog-card-image {
        max-width: 100%;
        height: auto;
        min-height: 200px; /* Ensure minimum size */
    }
    .page-home__security-icon, .page-home__testimonial-avatar {
        max-width: 100px; /* Allow smaller icons in these specific contexts if needed, but not below 200px for content images */
        height: auto;
        min-width: 60px;
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .page-home__hero-title {
        font-size: 2em;
    }
    .page-home__hero-description {
        font-size: 0.9em;
    }
    .page-home__btn--primary, .page-home__btn--secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-home__about-title, .page-home__games-title, .page-home__promotions-title, .page-home__app-title, .page-home__security-title, .page-home__testimonials-title, .page-home__cta-title, .page-home__blog-title {
        font-size: 1.8em;
    }
    .page-home__cta-title {
        font-size: 2em;
    }
    .page-home__btn--cta {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    .page-home__about-text, .page-home__games-description, .page-home__promotions-description, .page-home__app-description, .page-home__security-description, .page-home__cta-description {
        font-size: 1em;
    }
    .page-home__testimonial-text {
        font-size: 1em;
    }
}