/* General page styling */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default body background */
}

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

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

.page-casino__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #017439;
    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: 4px;
    background-color: #C30808;
    border-radius: 2px;
}

.page-casino__paragraph {
    margin-bottom: 20px;
    font-size: 16px;
    text-align: justify;
}

.page-casino__highlight {
    font-weight: bold;
    color: #017439;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    background-color: #f0f0f0;
    overflow: hidden;
}

.page-casino__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-casino__hero-image-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit hero image height */
}

.page-casino__hero-text-area {
    text-align: center;
    padding: 40px 20px 60px;
    max-width: 800px;
    box-sizing: border-box;
    z-index: 1; /* Ensure text is above any background elements if not separate */
    background-color: #FFFFFF; /* Explicit background for text area */
    border-radius: 0 0 10px 10px;
    margin-top: -10px; /* Slight overlap with image for visual flow */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-casino__main-title {
    font-size: 48px;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.page-casino__description {
    font-size: 18px;
    color: #555555;
    margin-bottom: 30px;
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-play,
.page-casino__btn-view-promo {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-casino__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-casino__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-casino__btn-secondary {
    background-color: #FFFFFF;
    color: #C30808; /* Register/Login color */
    border: 2px solid #C30808;
}

.page-casino__btn-secondary:hover {
    background-color: #C30808;
    color: #FFFFFF;
}

.page-casino__btn-play {
    background-color: #017439;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
}

.page-casino__btn-play:hover {
    background-color: #005a2e;
}

.page-casino__btn-view-promo {
    background-color: #017439;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
}

.page-casino__btn-view-promo:hover {
    background-color: #005a2e;
}

.page-casino__btn-large {
    min-width: 220px;
    font-size: 18px;
    padding: 18px 35px;
}

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

/* Dark Section Styling */
.page-casino__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
}

.page-casino__dark-section .page-casino__section-title {
    color: #FFFFFF;
}

.page-casino__dark-section .page-casino__section-title::after {
    background-color: #FFFF00; /* Yellow accent for dark section titles */
}

.page-casino__dark-section .page-casino__paragraph {
    color: #f0f0f0;
}

.page-casino__dark-section .page-casino__highlight {
    color: #FFFF00; /* Yellow for highlight on dark background */
}

/* Game Grid Section */
.page-casino__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__game-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.page-casino__game-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-casino__game-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 10px;
    padding: 0 15px;
    flex-grow: 1;
}

.page-casino__game-description {
    font-size: 15px;
    color: #555555;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Live Casino Section */
.page-casino__live-casino-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-casino__live-casino-text {
    flex: 1;
}

.page-casino__live-casino-image-container {
    flex: 1;
    max-width: 50%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-casino__live-casino-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

.page-casino__promo-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__promo-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
}

.page-casino__promo-description {
    font-size: 15px;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Security Section */
.page-casino__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-direction: row-reverse; /* Image on right, text on left */
}

.page-casino__security-text {
    flex: 1;
}

.page-casino__security-image-container {
    flex: 1;
    max-width: 50%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-casino__security-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Guide Section */
.page-casino__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__step-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-casino__step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #017439;
    color: #FFFFFF;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(1, 116, 57, 0.3);
}