/* style/casino.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-color: #F5F7FA;
    --border-color: #E0E0E0;
    --gradient-button: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    --dark-text-color: #333333; /* Default for light backgrounds */
    --light-text-color: #ffffff; /* Default for dark backgrounds */
}

/* Base styles for the casino page */
.page-casino {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Default text color for light background */
    background-color: var(--background-color); /* Page background */
    line-height: 1.6;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom for content separation */
    background-color: #1a1a1a; /* Dark background for hero to contrast with image */
    overflow: hidden; /* Ensure no overflow */
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and text */
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Enforce min size */
}

.page-casino__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--light-text-color); /* Light text on dark hero background */
}

.page-casino__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--light-text-color);
    margin-bottom: 20px;
    /* No fixed font-size, rely on clamp if absolutely needed, otherwise let browser decide */
    font-size: clamp(2em, 4vw, 3.5em); /* Example clamp for responsive H1 */
}

.page-casino__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* General Section Styling */
.page-casino__section {
    padding: 60px 20px;
    text-align: center;
}

.page-casino__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: bold;
}

.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Inner padding for containers */
}

.page-casino__text-block {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
    color: var(--text-main-color);
}

/* Game Categories */
.page-casino__games-overview {
    background-color: var(--background-color);
}

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

.page-casino__card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have similar height */
}

.page-casino__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-casino__card-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino__card-text {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
}

/* Why Choose Us Section */
.page-casino__dark-section {
    background-color: var(--primary-color);
    color: var(--light-text-color); /* Light text on primary color background */
}

.page-casino__dark-section .page-casino__section-title {
    color: var(--light-text-color);
}

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

.page-casino__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on primary color */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.page-casino__feature-icon {
    width: 80px; /* Adjusted to be larger than 100px min width/height for content images, but still icon-like */
    height: 80px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min size for content images */
    min-height: 200px; /* Enforce min size for content images */
    width: auto; /* Allow auto scaling if needed */
    height: auto; /* Allow auto scaling if needed */
    max-width: 100%; /* Ensure responsiveness */
}

/* Override for feature icons to respect min-size while maintaining aspect ratio */
.page-casino__feature-item .page-casino__feature-icon {
    width: 200px; /* Minimum size enforced */
    height: 200px; /* Minimum size enforced */
    object-fit: contain; /* Ensure icon is visible within bounds */
    margin: 0 auto 15px auto; /* Center icon */
}


.page-casino__feature-title {
    font-size: 1.4em;
    color: var(--light-text-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__feature-text {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

/* How to Play Section */
.page-casino__how-to-play {
    background-color: var(--card-bg-color);
}

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

.page-casino__step-item {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
}

.page-casino__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
}

.page-casino__step-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__step-text {
    font-size: 1em;
    color: var(--text-main-color);
}

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