:root {
    --primary-color: #26A9E0; /* 淡蓝色 */
    --secondary-color: #FFFFFF; /* 白色 */
    --login-color: #EA7C07; /* 登录按钮橙色 */
    --text-dark: #333333; /* 深色文字 */
    --text-light: #ffffff; /* 浅色文字 */
    --border-color: #e0e0e0;
    --background-light: #f9f9f9;
    --background-dark: #208cb3; /* Slightly darker primary for better contrast */
}

.page-casino {
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Default background for main content */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #34BBEF 100%); /* Blue gradient for hero */
    color: var(--text-light); /* Light text on dark/blue background */
    overflow: hidden; /* Prevent content overflow */
}

.page-casino__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-casino__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1; /* Ensure image is behind content if content is overlaid */
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    border-radius: 12px;
}

.page-casino__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    min-height: 300px; /* Ensure minimum height for hero image */
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay for text readability */
    border-radius: 12px;
    margin-top: -100px; /* Overlap with image slightly */
}

.page-casino__hero-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.2;
    font-weight: 700;
}

.page-casino__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--text-light);
    line-height: 1.6;
}

.page-casino__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--login-color); /* Use login color for CTA button */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__cta-button:hover {
    background: #e06c00; /* Slightly darker orange on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-casino__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

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

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

.page-casino__text-block--white {
    color: var(--text-light);
}

/* Intro Section */
.page-casino__intro-section {
    background-color: var(--background-light); /* Light background for intro */
    padding: 80px 0;
}

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

.page-casino__feature-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-casino__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-casino__feature-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-dark);
}

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

.page-casino__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Games Section */
.page-casino__games-section {
    background-color: var(--background-dark); /* Dark blue background */
    padding: 80px 0;
    color: var(--text-light);
}

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

.page-casino__game-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card on dark background */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.page-casino__game-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-casino__game-title {
    font-size: 1.6em;
    color: var(--primary-color); /* Primary color for titles on dark background */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-casino__game-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__game-title a:hover {
    color: #5ac4f5; /* Lighter blue on hover */
    text-decoration: underline;
}

.page-casino__game-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-light);
    flex-grow: 1; /* Allow description to take available space */
    margin-bottom: 20px;
}

.page-casino__btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--login-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: auto; /* Push button to bottom */
}

.page-casino__btn-primary:hover {
    background: #e06c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Promotions Section */
.page-casino__promotions-section {
    background-color: var(--background-light);
    padding: 80px 0;
}

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

.page-casino__promo-card {
    background: var(--secondary-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-casino__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-casino__promo-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-casino__promo-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-casino__promo-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__promo-title a:hover {
    color: #007bb6; /* Darker blue on hover */
    text-decoration: underline;
}

.page-casino__promo-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-dark);
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Security & Support Section */
.page-casino__security-support-section {
    background-color: var(--background-dark);
    padding: 80px 0;
    color: var(--text-light);
}

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

.page-casino__info-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-casino__info-item img {
     /* Smaller images for info items */
    
    object-fit: contain;
    margin-bottom: 20px;
    min- /* Enforce min size */
    min- /* Enforce min size */
}