/* style/casino.css */

/* CSS Variables */
:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --accent-color: #E53E3E; /* For strong emphasis, if needed */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f7f6; /* Body background from shared.css */
    --border-light: #e0e0e0;
    --card-bg-light: #ffffff;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
}

.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light body background */
    background-color: var(--bg-light); /* Ensure consistency with body background */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-casino__section {
    padding: 60px 0;
    text-align: center;
}

.page-casino__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-casino__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-casino__text-block {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left; /* Align text blocks to left for better readability */
}

.page-casino__center-text {
    text-align: center;
}

.page-casino__mt-30 {
    margin-top: 30px;
}

/* HERO Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0; /* Adjust padding as hero image should be full width */
    background-color: var(--primary-color); /* Fallback background */
}

.page-casino__hero-container {
    position: relative;
    width: 100%;
    max-width: 1920px; /* Max width for hero content */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.page-casino__hero-image {
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-casino__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-casino__hero-content {
    position: absolute;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

.page-casino__hero-title {
    font-size: 52px;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-casino__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    max-width: 100%; /* Ensure button adapts to width */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-casino__cta-button--primary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.page-casino__cta-button--primary:hover {
    background: #FFEB3B; /* Lighter gold */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__cta-button--secondary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
}

.page-casino__cta-button--secondary:hover {
    background: #000000;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-casino__introduction .page-casino__text-block {
    text-align: justify;
}

/* Games Section */
.page-casino__games .page-casino__section-title {
    margin-bottom: 60px;
}

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