.page-index-cac-loai-hinh-ca-cuoc {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Main text color for dark background */
    background-color: #0A0A0A; /* Page background color */
}

.page-index-cac-loai-hinh-ca-cuoc__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* Hero Section */
.page-index-cac-loai-hinh-ca-cuoc__hero-section {
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 60px;
    background-color: #0A0A0A; /* Ensure consistent background */
    position: relative;
    overflow: hidden;
}

.page-index-cac-loai-hinh-ca-cuoc__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1170px;
    margin: 0 auto;
    padding: 60px 16px;
}

.page-index-cac-loai-hinh-ca-cuoc__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #FFF6D6;
    text-align: left;
}

.page-index-cac-loai-hinh-ca-cuoc__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2C14E; /* Brand color for title */
}

.page-index-cac-loai-hinh-ca-cuoc__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFF6D6;
}

.page-index-cac-loai-hinh-ca-cuoc__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-index-cac-loai-hinh-ca-cuoc__btn-primary,
.page-index-cac-loai-hinh-ca-cuoc__btn-secondary {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* For mobile responsiveness */
    word-wrap: break-word; /* For mobile responsiveness */
}

.page-index-cac-loai-hinh-ca-cuoc__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #ffffff; /* White text for contrast */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-index-cac-loai-hinh-ca-cuoc__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-index-cac-loai-hinh-ca-cuoc__btn-secondary {
    background: #111111; /* Card BG color */
    color: #F2C14E; /* Brand color for text */
    border: 2px solid #F2C14E;
}

.page-index-cac-loai-hinh-ca-cuoc__btn-secondary:hover {
    background: #F2C14E;
    color: #ffffff;
}

.page-index-cac-loai-hinh-ca-cuoc__hero-image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: right;
}

.page-index-cac-loai-hinh-ca-cuoc__hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
}

/* General Sections */
.page-index-cac-loai-hinh-ca-cuoc__introduction-section,
.page-index-cac-loai-hinh-ca-cuoc__game-category-section,
.page-index-cac-loai-hinh-ca-cuoc__why-choose-section,
.page-index-cac-loai-hinh-ca-cuoc__cta-bottom-section {
    padding: 60px 0;
    background-color: #0A0A0A;
}

.page-index-cac-loai-hinh-ca-cuoc__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: #F2C14E;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-index-cac-loai-hinh-ca-cuoc__section-description {
    font-size: 1.05em;
    color: #FFF6D6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Category Grid */
.page-index-cac-loai-hinh-ca-cuoc__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-cac-loai-hinh-ca-cuoc__category-card {
    background-color: #111111; /* Card BG color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #3A2A12; /* Border color */
}

.page-index-cac-loai-hinh-ca-cuoc__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-index-cac-loai-hinh-ca-cuoc__card-media {
    width: 100%;
    height: 200px; /* Fixed height for image area */
    overflow: hidden;
}

.page-index-cac-loai-hinh-ca-cuoc__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-index-cac-loai-hinh-ca-cuoc__category-card:hover .page-index-cac-loai-hinh-ca-cuoc__card-media img {
    transform: scale(1.05);
}

.page-index-cac-loai-hinh-ca-cuoc__card-title {
    font-size: 1.5em;
    color: #F2C14E;
    margin: 20px 20px 10px 20px;
    font-weight: 600;
}

.page-index-cac-loai-hinh-ca-cuoc__card-title a {
    color: #F2C14E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index-cac-loai-hinh-ca-cuoc__card-title a:hover {
    color: #FFD36B;
}

.page-index-cac-loai-hinh-ca-cuoc__card-text {
    font-size: 0.95em;
    color: #FFF6D6;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-index-cac-loai-hinh-ca-cuoc__card-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin: 0 20px 20px 20px;
    transition: opacity 0.3s ease;
    text-align: center;
    max-width: calc(100% - 40px); /* Adjust for padding */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index-cac-loai-hinh-ca-cuoc__card-btn:hover {
    opacity: 0.9;
}

/* Why Choose Section */
.page-index-cac-loai-hinh-ca-cuoc__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-cac-loai-hinh-ca-cuoc__benefit-item {
    background-color: #111111;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12;
    transition: transform 0.3s ease;
}

.page-index-cac-loai-hinh-ca-cuoc__benefit-item:hover {
    transform: translateY(-5px);
}

.page-index-cac-loai-hinh-ca-cuoc__benefit-item img {
    
    
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px; /* Slightly rounded corners for these images */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-index-cac-loai-hinh-ca-cuoc__benefit-title {
    font-size: 1.4em;
    color: #FFD36B; /* Auxiliary color */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-index-cac-loai-hinh-ca-cuoc__benefit-text {
    font-size: 0.95em;
    color: #FFF6D6;
}

/* CTA Bottom Section */
.page-index-cac-loai-hinh-ca-cuoc__cta-bottom-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-index-cac-loai-hinh-ca-cuoc__cta-bottom-content {
    background-color: #111111;
    border-radius: 12px;
    padding: 50px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid #3A2A12;
}

.page-index-cac-loai-hinh-ca-cuoc__cta-bottom-content .page-index-cac-loai-hinh-ca-cuoc__section-title {
    margin-bottom: 15px;
}

.page-index-cac-loai-hinh-ca-cuoc__cta-bottom-content .page-index-cac-loai-hinh-ca-cuoc__section-description {
    margin-bottom: 30px;
}

.page-index-cac-loai-hinh-ca-cuoc__cta-bottom-content .page-index-cac-loai-hinh-ca-cuoc__cta-buttons {
    justify-content: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-index-cac-loai-hinh-ca-cuoc__hero-container {
        flex-direction: column-reverse; /* Content on top, image below */
        text-align: center;
        padding: 40px 16px;
    }

    .page-index-cac-loai-hinh-ca-cuoc__hero-content {
        text-align: center;
    }

    .page-index-cac-loai-hinh-ca-cuoc__hero-image {
        text-align: center;
        margin-bottom: 30px;
    }

    .page-index-cac-loai-hinh-ca-cuoc__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }

    .page-index-cac-loai-hinh-ca-cuoc__section-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-index-cac-loai-hinh-ca-cuoc__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
    }
    .page-index-cac-loai-hinh-ca-cuoc__hero-container {
        padding: 30px 15px;
        gap: 20px;
    }
    .page-index-cac-loai-hinh-ca-cuoc__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-index-cac-loai-hinh-ca-cuoc__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-index-cac-loai-hinh-ca-cuoc__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to buttons container */
    }
    .page-index-cac-loai-hinh-ca-cuoc__btn-primary,
    .page-index-cac-loai-hinh-ca-cuoc__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
    }
    .page-index-cac-loai-hinh-ca-cuoc__hero-image {
        text-align: center;
        margin-bottom: 20px;
    }
    .page-index-cac-loai-hinh-ca-cuoc__hero-img {
        border-radius: 8px;
    }
}
}