.page-casino {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light backgrounds */
    line-height: 1.6;
}

.page-casino__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    justify-content: center;
    background-color: #017439;
    padding-bottom: 40px;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover for desktop */
}

.page-casino__hero-content {
    text-align: center;
    padding: 30px 20px;
    max-width: 900px;
    margin-top: 20px; /* Space below image */
    color: #ffffff;
}

.page-casino__hero-title {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-casino__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-casino__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-casino__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-casino__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-casino__btn-secondary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-casino__btn-secondary:hover {
    background-color: #005a2e;
    transform: translateY(-2px);
}

.page-casino__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #017439;
}

.page-casino__introduction-section,
.page-casino__registration-section,
.page-casino__security-section,
.page-casino__faq-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
}

.page-casino__dark-section {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 0;
}

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

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

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

.page-casino__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-casino__games-library-section .page-casino__text-block {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__game-categories {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 40px;
}

.page-casino__game-category {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.page-casino__game-category .page-casino__category-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-casino__game-category .page-casino__category-description {
    font-size: 1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-casino__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.page-casino__game-tile {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 250px;
    box-sizing: border-box;
}

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

.page-casino__game-tile img {
    width: 100%;
    max-width: 200px; /* Max width for images within tiles */
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 10px;
    object-fit: contain; /* Ensure full image is visible */
}

.page-casino__game-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1em;
}

.page-casino__registration-steps {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
}

.page-casino__registration-steps li {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.5;
}

.page-casino__registration-steps li strong {
    color: #017439;
}

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

.page-casino__promotion-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-casino__promotion-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-casino__promotion-card .page-casino__card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #017439;
    padding: 15px 20px 0;
}

.page-casino__promotion-card .page-casino__card-description {
    font-size: 0.95em;
    color: #555555;
    padding: 0 20px 15px;
    flex-grow: 1;
}

.page-casino__card-button {
    background-color: #C30808;
    color: #FFFF00;
    border: none;
    padding: 10px 20px;
    margin: 15px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    display: block;
    width: calc(100% - 40px);
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-casino__card-button:hover {
    background-color: #a00606;
}

.page-casino__all-promotions-cta {
    text-align: center;
    margin-top: 40px;
}

.page-casino__security-features {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 900px;
    color: #f0f0f0;
}

.page-casino__security-features li {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #ffffff;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.5;
}

.page-casino__security-features li strong {
    color: #ffffff;
}

.page-casino__image-and-text {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.page-casino__security-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__image-and-text .page-casino__text-block {
    flex: 1;
    margin-bottom: 0;
}

.page-casino__contact-methods {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    color: #f0f0f0;
    text-align: center;
}

.page-casino__contact-methods li {
    font-size: 1.1em;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-casino__contact-methods li::before {
    content: '📞'; /* Example icon */
    position: absolute;
    left: 0;
    top: 0;
}

.page-casino__contact-methods li:nth-child(2)::before { content: '📧'; }
.page-casino__contact-methods li:nth-child(3)::before { content: '☎️'; }

.page-casino__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-casino__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #017439;
    cursor: pointer;
    list-style: none; /* Remove default marker */
}

.page-casino__faq-item summary::-webkit-details-marker, 
.page-casino__faq-item summary::marker {
    display: none;
}

.page-casino__faq-question .page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-casino__faq-item[open] .page-casino__faq-question .page-casino__faq-toggle {
    transform: rotate(45deg);
}

.page-casino__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: #555555;
    line-height: 1.6;
}

.page-casino__faq-answer p {
    margin-bottom: 0;
}

.page-casino__final-cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439;
    color: #ffffff;
}

.page-casino__final-cta-section .page-casino__section-title {
    color: #ffffff;
    margin-bottom: 30px;
}

.page-casino__final-cta-section .page-casino__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px;
}