.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Matches body background (white) */
}

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

.page-casino__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #017439; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-casino__text-block {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.7;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none; /* Remove default button border */
}

/* Primary button style */
.page-casino__btn-primary {
    background: #017439; /* Primary color */
    color: #ffffff; /* White text for contrast */
}

.page-casino__btn-primary:hover {
    background: #005a2e; /* Slightly darker green on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Secondary button style */
.page-casino__btn-secondary {
    background: #ffffff;
    color: #017439; /* Primary color text */
    border: 2px solid #017439; /* Primary color border */
}

.page-casino__btn-secondary:hover {
    background: #f0f0f0;
    color: #005a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Specific button colors for Register/Login */
.page-casino__btn-register,
.page-casino__btn-login {
    background: #C30808; /* Custom red for register/login */
    color: #000000; /* Black text for AA contrast on red */
    border: none;
}

.page-casino__btn-register:hover,
.page-casino__btn-login:hover {
    background: #a30606; /* Darker red on hover */
    color: #ffffff; /* White text for better visual on hover */
}

/* 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;
    overflow: hidden;
}

.page-casino__dark-section {
    background-color: #017439; /* Primary color background */
    color: #ffffff; /* White text for contrast */
}

.page-casino__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-casino__hero-image-main {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
}

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

.page-casino__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff; /* White text on dark hero */
}

.page-casino__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: #f0f0f0; /* Slightly off-white for description */
}

.page-casino__hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Introduction Section */
.page-casino__introduction-section {
    padding: 80px 20px;
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 20px;
}

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

.page-casino__game-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    color: #333333;
}

.page-casino__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-casino__game-card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #017439;
    padding: 0 15px;
}

.page-casino__game-card-title a {
    color: #017439;
    text-decoration: none;
}

.page-casino__game-card-title a:hover {
    text-decoration: underline;
}

.page-casino__game-card-description {
    font-size: 15px;
    padding: 0 15px 15px;
    color: #555555;
}

/* Thomo Section */
.page-casino__thomo-section {
    padding: 80px 20px;
}

.page-casino__thomo-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

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

.page-casino__thomo-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-casino__thomo-links {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 80px 20px;
}

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

.page-casino__promo-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    color: #333333;
}

.page-casino__promo-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-casino__promo-card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #017439;
    padding: 0 15px;
}

.page-casino__promo-card-description {
    font-size: 15px;
    padding: 0 15px 15px;
    color: #555555;
}

/* Security & Support Section */
.page-casino__security-support-section {
    padding: 80px 20px;
}

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

.page-casino__security-item {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__security-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-casino__security-title {
    font-size: 20px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
}

.page-casino__security-description {
    font-size: 15px;
    color: #555555;
}

.page-casino__support-cta {
    text-align: center;
    margin-top: 30px;
}

.page-casino__support-cta .page-casino__text-block {
    margin-bottom: 25px;
    font-size: 18px;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 20px;
}

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

.page-casino__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #333333;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-casino__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-casino__faq-question:active {
    background: #eeeeee;
}

.page-casino__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #017439;
}

.page-casino__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    color: #333;
    transform: rotate(45deg);
}

/* News Section */
.page-casino__news-section {
    padding: 80px 20px;
}

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

.page-casino__news-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    padding-bottom: 20px;
    color: #333333;
}

.page-casino__news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-casino__news-card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #017439;
    padding: 0 15px;
}

.page-casino__news-card-title a {
    color: #017439;
    text-decoration: none;
}

.page-casino__news-card-title a:hover {
    text-decoration: underline;
}

.page-casino__news-card-description {
    font-size: 15px;
    padding: 0 15px 15px;
    color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 40px;
    }
    .page-casino__section-title {
        font-size: 32px;
    }
    .page-casino__thomo-content-wrapper {
        flex-direction: column;
    }
    .page-casino__thomo-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-casino__container {
        padding: 15px;
    }

    .page-casino__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

    .page-casino__hero-title {
        font-size: 32px;
    }

    .page-casino__hero-description {
        font-size: 18px;
    }

    .page-casino__hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__cta-button,
    .page-casino a[class*="button"],
    .page-casino a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-casino__hero-cta-group,
    .page-casino__thomo-links,
    .page-casino__support-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-casino__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-casino__introduction-section,
    .page-casino__games-section,
    .page-casino__thomo-section,
    .page-casino__promotions-section,
    .page-casino__security-support-section,
    .page-casino__faq-section,
    .page-casino__news-section {
        padding: 50px 15px;
    }

    .page-casino__thomo-image {
        max-width: 100%;
        height: auto;
    }

    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-casino__game-card-image,
    .page-casino__promo-card-image,
    .page-casino__security-image,
    .page-casino__news-card-image {
        height: auto;
        min-height: 200px;
    }

    .page-casino__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-casino__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-casino__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-casino__faq-answer {
        padding: 0 15px;
    }
    
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 28px;
    }
    .page-casino__section-title {
        font-size: 24px;
    }
    .page-casino__hero-description {
        font-size: 16px;
    }
}