/* style/index-popular-games-showcase.css */

/* Base Styles & Utilities */
.page-index-popular-games-showcase {
    font-family: 'Arial', sans-serif;
    color: #f0f0f0; /* Light text on dark background */
    line-height: 1.6;
    background-color: #0d1a2d; /* A darker shade of primary for main background */
}

.page-index-popular-games-showcase__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-index-popular-games-showcase__section {
    padding: 60px 0;
    text-align: center;
}

.page-index-popular-games-showcase__section-title {
    font-size: 2.8em;
    color: #FFCC00; /* Secondary color for titles */
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.page-index-popular-games-showcase__section-description {
    font-size: 1.2em;
    color: #b0c4de; /* Lighter shade for descriptions */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-popular-games-showcase .highlight {
    color: #FFCC00;
}

.page-index-popular-games-showcase__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    margin: 10px;
    border: 2px solid transparent;
}

.page-index-popular-games-showcase__btn--primary {
    background-color: #FFCC00;
    color: #003366;
    border-color: #FFCC00;
}

.page-index-popular-games-showcase__btn--primary:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    transform: translateY(-2px);
}

.page-index-popular-games-showcase__btn--secondary {
    background-color: transparent;
    color: #FFCC00;
    border-color: #FFCC00;
}

.page-index-popular-games-showcase__btn--secondary:hover {
    background-color: #FFCC00;
    color: #003366;
    transform: translateY(-2px);
}

.page-index-popular-games-showcase__btn--small {
    padding: 8px 18px;
    font-size: 0.9em;
    margin: 5px;
}

.page-index-popular-games-showcase__btn--play {
    background-color: #003366;
    color: #FFCC00;
    border-color: #003366;
    margin-top: 15px;
}

.page-index-popular-games-showcase__btn--play:hover {
    background-color: #002244;
    border-color: #002244;
    transform: translateY(-2px);
}

/* Hero Section */
.page-index-popular-games-showcase__hero {
    background: linear-gradient(135deg, #003366 0%, #0d1a2d 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: left;
}

.page-index-popular-games-showcase__hero-title {
    font-size: 3.8em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-index-popular-games-showcase__hero-subtitle {
    font-size: 1.4em;
    color: #e0e0e0;
    margin-bottom: 30px;
    max-width: 700px;
}

.page-index-popular-games-showcase__hero-image-wrapper {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
}

.page-index-popular-games-showcase__hero-image {
    max-width: 100%;
    height: auto;
    opacity: 0.7;
    filter: brightness(0.8);
}

/* Adjust hero content for image */
.page-index-popular-games-showcase__hero > .page-index-popular-games-showcase__container {
    z-index: 1;
    position: relative;
    max-width: 50%; /* Make space for the image */
    text-align: left;
    padding-right: 40px;
}

/* Game Categories */
.page-index-popular-games-showcase__game-categories {
    background-color: #0d1a2d;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-index-popular-games-showcase__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index-popular-games-showcase__category-card {
    background-color: #003366;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index-popular-games-showcase__category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-index-popular-games-showcase__category-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: invert(80%) sepia(80%) saturate(1000%) hue-rotate(350deg) brightness(100%) contrast(100%); /* Gold tint */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-index-popular-games-showcase__category-title {
    font-size: 1.8em;
    color: #FFCC00;
    margin-bottom: 15px;
}

.page-index-popular-games-showcase__category-text {
    font-size: 1em;
    color: #e0e0e0;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Featured Games */
.page-index-popular-games-showcase__featured-games {
    background-color: #0a1424;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-index-popular-games-showcase__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-index-popular-games-showcase__game-card {
    background-color: #003366;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-index-popular-games-showcase__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-index-popular-games-showcase__game-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #FFCC00;
}

.page-index-popular-games-showcase__game-card h3,
.page-index-popular-games-showcase__game-card p,
.page-index-popular-games-showcase__game-card ul {
    padding: 0 20px;
}

.page-index-popular-games-showcase__game-title {
    font-size: 1.8em;
    color: #FFCC00;
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-index-popular-games-showcase__game-description {
    font-size: 0.95em;
    color: #b0c4de;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-index-popular-games-showcase__game-features {
    list-style: none;
    padding: 0;
    margin: 0 20px 20px 20px;
    color: #e0e0e0;
}

.page-index-popular-games-showcase__game-features li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
}

.page-index-popular-games-showcase__game-features li::before {
    content: '✓';
    color: #FFCC00;
    position: absolute;
    left: 0;
    top: 0;
}

.page-index-popular-games-showcase__game-card .page-index-popular-games-showcase__btn--play {
    align-self: flex-start;
    margin: 0 20px 20px 20px; /* Ensure button padding is correct */
}

/* Why HM88 Section */
.page-index-popular-games-showcase__why-hm88 {
    background-color: #0d1a2d;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-index-popular-games-showcase__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

.page-index-popular-games-showcase__advantage-item:hover {
    transform: translateY(-10px);
}

.page-index-popular-games-showcase__advantage-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: invert(80%) sepia(80%) saturate(1000%) hue-rotate(350deg) brightness(100%) contrast(100%);
}

.page-index-popular-games-showcase__advantage-title {
    font-size: 1.5em;
    color: #FFCC00;
    margin-bottom: 10px;
}

.page-index-popular-games-showcase__advantage-item p {
    color: #e0e0e0;
    font-size: 0.95em;
}

/* CTA Banner */
.page-index-popular-games-showcase__cta-banner {
    background: linear-gradient(90deg, #003366 0%, #0a1424 100%);
    padding: 80px 0;
    text-align: left;
}

.page-index-popular-games-showcase__cta-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-index-popular-games-showcase__cta-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.page-index-popular-games-showcase__cta-text {
    flex: 2;
    min-width: 400px;
}

.page-index-popular-games-showcase__cta-title {
    font-size: 2.5em;
    color: #FFCC00;
    margin-bottom: 15px;
}

.page-index-popular-games-showcase__cta-description {
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.page-index-popular-games-showcase__cta-buttons .page-index-popular-games-showcase__btn {
    margin-right: 15px;
}

/* FAQ Section */
.page-index-popular-games-showcase__faq {
    background-color: #0a1424;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-index-popular-games-showcase__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

.page-index-popular-games-showcase__faq-item {
    background-color: #003366;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index-popular-games-showcase__faq-question {
    font-size: 1.4em;
    color: #FFCC00;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-index-popular-games-showcase__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #FFCC00;
    transition: transform 0.3s ease;
}

.page-index-popular-games-showcase__faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-index-popular-games-showcase__faq-answer {
    font-size: 1.05em;
    color: #e0e0e0;
    display: none; /* Hidden by default */
    padding-top: 10px;
    border-top: 1px solid rgba(255, 204, 0, 0.2);
    margin-top: 15px;
}

.page-index-popular-games-showcase__faq-answer.active {
    display: block;
}

/* SEO Content Section */
.page-index-popular-games-showcase__seo-content {
    background-color: #0d1a2d;
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: left;
}

.page-index-popular-games-showcase__seo-content h2 {
    font-size: 2.5em;
    color: #FFCC00;
    margin-bottom: 25px;
    text-align: center;
}

.page-index-popular-games-showcase__seo-content h3 {
    font-size: 2em;
    color: #FFCC00;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-index-popular-games-showcase__seo-content p {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-index-popular-games-showcase__seo-content ul {
    list-style: disc inside;
    color: #e0e0e0;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-index-popular-games-showcase__seo-content ul li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

.page-index-popular-games-showcase__seo-content a {
    color: #FFCC00;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-index-popular-games-showcase__seo-content a:hover {
    color: #e6b800;
}

.page-index-popular-games-showcase__seo-cta {
    margin-top: 40px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-popular-games-showcase__hero-title {
        font-size: 3em;
    }
    .page-index-popular-games-showcase__hero-subtitle {
        font-size: 1.2em;
    }
    .page-index-popular-games-showcase__hero > .page-index-popular-games-showcase__container {
        max-width: 60%;
        padding-right: 20px;
    }
    .page-index-popular-games-showcase__hero-image-wrapper {
        width: 40%;
    }
    .page-index-popular-games-showcase__section-title {
        font-size: 2.2em;
    }
    .page-index-popular-games-showcase__cta-content {
        flex-direction: column;
        text-align: center;
    }
    .page-index-popular-games-showcase__cta-image {
        order: -1;
        margin-bottom: 30px;
    }
    .page-index-popular-games-showcase__cta-text {
        min-width: unset;
        width: 100%;
    }
    .page-index-popular-games-showcase__cta-buttons .page-index-popular-games-showcase__btn {
        margin-right: 10px;
        margin-left: 10px;
    }
}

@media (max-width: 768px) {
    .page-index-popular-games-showcase__hero {
        text-align: center;
        padding: 80px 20px;
        min-height: 500px;
    }
    .page-index-popular-games-showcase__hero > .page-index-popular-games-showcase__container {
        max-width: 100%;
        padding-right: 0;
    }
    .page-index-popular-games-showcase__hero-image-wrapper {
        display: none;
    }
    .page-index-popular-games-showcase__hero-title {
        font-size: 2.5em;
    }
    .page-index-popular-games-showcase__hero-subtitle {
        font-size: 1.1em;
    }
    .page-index-popular-games-showcase__section-title {
        font-size: 1.8em;
    }
    .page-index-popular-games-showcase__section-description {
        font-size: 1em;
    }
    .page-index-popular-games-showcase__category-grid,
    .page-index-popular-games-showcase__game-grid,
    .page-index-popular-games-showcase__advantages-grid {
        grid-template-columns: 1fr;
    }
    .page-index-popular-games-showcase__cta-title {
        font-size: 2em;
    }
    .page-index-popular-games-showcase__cta-description {
        font-size: 1em;
    }
    .page-index-popular-games-showcase__faq-question {
        font-size: 1.2em;
    }
    .page-index-popular-games-showcase__faq-answer {
        font-size: 0.95em;
    }
    .page-index-popular-games-showcase__seo-content h2 {
        font-size: 2em;
    }
    .page-index-popular-games-showcase__seo-content h3 {
        font-size: 1.6em;
    }
    .page-index-popular-games-showcase__seo-content p,
    .page-index-popular-games-showcase__seo-content ul li {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .page-index-popular-games-showcase__hero-title {
        font-size: 2em;
    }
    .page-index-popular-games-showcase__hero-subtitle {
        font-size: 0.95em;
    }
    .page-index-popular-games-showcase__btn {
        padding: 10px 20px;
        font-size: 1em;
        margin: 5px;
    }
    .page-index-popular-games-showcase__section-title {
        font-size: 1.5em;
    }
    .page-index-popular-games-showcase__cta-title {
        font-size: 1.8em;
    }
    .page-index-popular-games-showcase__cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .page-index-popular-games-showcase__cta-buttons .page-index-popular-games-showcase__btn {
        width: 90%;
        margin: 5px 0;
    }
    .page-index-popular-games-showcase__faq-question {
        font-size: 1.1em;
    }
    .page-index-popular-games-showcase__faq-item {
        padding: 20px;
    }
    .page-index-popular-games-showcase__seo-content h2 {
        font-size: 1.8em;
    }
    .page-index-popular-games-showcase__seo-content h3 {
        font-size: 1.4em;
    }
}