:root {
    --primary-color: #113B7A; /* Main Blue */
    --secondary-color: #1D5FD1; /* Accent Blue */
    --card-bg: #10233F; /* Card Background */
    --text-main: #F3F8FF; /* Main Text Color */
    --text-secondary: #AFC4E8; /* Secondary Text Color */
    --border-color: #244D84; /* Border Color */
    --glow-color: #4FA8FF; /* Glow Effect */
    --gold-color: #F2C14E; /* Gold Accent */
    --divider-color: #1B3357; /* Divider Color */
    --deep-navy-bg: #08162B; /* Deep Navy Background (body background) */
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button Gradient */
}

.page-casino {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Ensure text is visible on deep-navy-bg (body) */
    background-color: var(--deep-navy-bg); /* Body background is deep-navy-bg */
}

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

.page-casino__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--gold-color); /* Using gold for section titles for prominence */
    text-align: center;
    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: 3px;
    background: var(--gold-color);
    border-radius: 2px;
}

.page-casino__section-description {
    font-size: 18px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* 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: 10px; /* As per instruction: 8-16px, recommended 10px */
    overflow: hidden; /* Ensure nothing overflows */
}

.page-casino__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width up to max-width */
}

.page-casino__hero-image-wrapper {
    width: 100%;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-casino__hero-image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-casino__hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Using clamp for H1 font size */
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.page-casino__hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* CTA Button - General */
.page-casino__cta-button {
    display: inline-block;
    padding: 16px 45px;
    background: var(--button-gradient); /* Custom button gradient */
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-size: 19px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-casino__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

/* Introduction Section */
.page-casino__introduction-section {
    padding: 80px 0;
    background-color: var(--deep-navy-bg); /* Consistent with body */
}

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

.page-casino__intro-card {
    background: var(--card-bg); /* Card background color */
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__card-title {
    font-size: 24px;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-casino__intro-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Quick Access Section */
.page-casino__quick-access-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Using primary color for contrast */
}

.page-casino__quick-access-section .page-casino__section-title {
    color: var(--text-main); /* White text on primary background */
}
.page-casino__quick-access-section .page-casino__section-title::after {
    background: var(--text-main);
}

.page-casino__button-group {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%; /* Ensure responsiveness */
}

.page-casino__btn-primary {
    background: var(--button-gradient); /* Custom button gradient */
    color: var(--text-main);
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.page-casino__btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
    box-shadow: none;
}

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

/* Core Games Section */
.page-casino__games-section {
    padding: 80px 0;
    background-color: var(--deep-navy-bg); /* Consistent with body */
}

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

.page-casino__game-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.page-casino__game-card .page-casino__card-title {
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-casino__game-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-casino__btn-text {
    display: inline-block;
    color: var(--gold-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.page-casino__btn-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-color);
    transition: width 0.3s ease;
}

.page-casino__btn-text:hover {
    color: var(--glow-color);
}

.page-casino__btn-text:hover::after {
    width: 0;
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}
.page-casino__promotions-section .page-casino__section-title {
    color: var(--text-main);
}
.page-casino__promotions-section .page-casino__section-title::after {
    background: var(--text-main);
}

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

.page-casino__promo-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.page-casino__promo-card .page-casino__card-title {
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-casino__promo-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

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

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

.page-casino__security-item {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__security-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__security-item img {
    width: 100%;
    max-width: 250px; /* Max width for security icons */
    height: auto;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}