:root {
    --primary-color: #1a1a1a;
    --secondary-color: #e44d26;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0a0a0a;
    --card-bg-dark: rgba(255, 255, 255, 0.08);
    --border-color-dark: rgba(255, 255, 255, 0.15);
}

.page-casino {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Inherited from shared, but explicit for clarity */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.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;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-casino__text-block {
    font-size: 17px;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-light);
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
}

.page-casino__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6);
}

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.page-casino__hero-content {
    max-width: 900px;
    padding: 20px;
    color: var(--text-light);
}

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

.page-casino__hero-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--text-light);
}

.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-casino__cta-button {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

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

.page-casino__cta-button--primary:hover {
    background: #c73e1c;
    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: #2a2a2a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* About Section */
.page-casino__about-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}

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

.page-casino__feature-item {
    background: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__feature-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-casino__feature-item p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

.page-casino__game-card {
    background: var(--card-bg-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-casino__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color-dark);
}

.page-casino__game-card h3 {
    padding: 20px 20px 0;
    font-size: 22px;
    color: var(--secondary-color);
}

.page-casino__game-card h3 a {
    color: inherit;
    text-decoration: none;
}

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

.page-casino__game-description {
    padding: 0 20px 20px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    flex-grow: 1;
}

.page-casino__game-button {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px 20px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.page-casino__game-button:hover {
    background: #c73e1c;
}

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

.page-casino__promotions-banner {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-casino__promotion-item {
    background: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__promotion-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-casino__promotion-item p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 25px;
}

.page-casino__promotion-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-casino__promotion-button:hover {
    background: #c73e1c;
}

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

/* Brand Section */
.page-casino__brand-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

.page-casino__brand-item {
    background: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__brand-item-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-casino__brand-item p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}

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

.page-casino__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color-dark);
    background-color: var(--card-bg-dark);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.page-casino__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-light);
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-casino__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Change + to X or - */
}

.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, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: var(--text-light);
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain any content */
    padding: 20px 25px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--border-color-dark);
}

.page-casino__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Final CTA Section */
.page-casino__cta-final-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-dark);
}

.page-casino__cta-final-section .page-casino__cta-button {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-section {
        height: 500px;
    }
    .page-casino__main-title {
        font-size: 44px;
    }
    .page-casino__hero-description {
        font-size: 18px;
    }
    .page-casino__cta-button {
        padding: 15px 30px;
        font-size: 18px;
    }
    .page-casino__section-title {
        font-size: 32px;
    }
    .page-casino__text-block {
        font-size: 16px;
    }
    .page-casino__game-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .page-casino {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-casino__hero-section {
        height: 400px;
        margin-bottom: 40px;
    }
    .page-casino__main-title {
        font-size: 34px;
    }
    .page-casino__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 15px 20px !important;
        font-size: 17px !important;
    }
    .page-casino__container {
        padding: 0 15px;
    }
    .page-casino__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-casino__text-block {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-casino__about-section, .page-casino__games-section, .page-casino__promotions-section, .page-casino__brand-section, .page-casino__faq-section, .page-casino__cta-final-section {
        padding: 50px 0;
    }
    .page-casino__features-grid, .page-casino__game-categories, .page-casino__promotions-list, .page-casino__brand-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-casino__feature-item, .page-casino__game-card, .page-casino__promotion-item, .page-casino__brand-item {
        padding: 25px;
    }
    .page-casino__feature-title, .page-casino__game-card h3, .page-casino__promotion-title, .page-casino__brand-item-title {
        font-size: 20px;
    }
    .page-casino__game-image {
        height: 200px;
    }
    .page-casino__game-button {
        width: calc(100% - 30px);
        margin: 0 15px 15px;
    }
    .page-casino__faq-question {
        padding: 15px 20px;
    }
    .page-casino__faq-question h3 {
        font-size: 16px;
    }
    .page-casino__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-casino__faq-answer {
        padding: 0 20px;
    }
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px 20px !important;
    }
    .page-casino__faq-answer p {
        font-size: 15px;
    }
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__hero-section, .page-casino__about-section, .page-casino__games-section, .page-casino__promotions-section, .page-casino__brand-section, .page-casino__faq-section, .page-casino__cta-final-section,
    .page-casino__container, .page-casino__cta-buttons, .page-casino__game-card, .page-casino__promotions-list, .page-casino__brand-content, .page-casino__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-casino__hero-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-casino__main-title {
        font-size: 28px;
    }
    .page-casino__hero-description {
        font-size: 15px;
    }
    .page-casino__section-title {
        font-size: 24px;
    }
    .page-casino__text-block {
        font-size: 14px;
    }
    .page-casino__cta-button {
        font-size: 16px !important;
        padding: 12px 15px !important;
    }
    .page-casino__game-image {
        height: 180px;
    }
    .page-casino__game-card h3 {
        font-size: 18px;
    }
    .page-casino__game-description {
        font-size: 14px;
    }
    .page-casino__promotion-title, .page-casino__brand-item-title {
        font-size: 18px;
    }
    .page-casino__promotion-item p, .page-casino__brand-item p {
        font-size: 14px;
    }
    .page-casino__faq-question h3 {
        font-size: 15px;
    }
    .page-casino__faq-toggle {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }
    .page-casino__faq-answer p {
        font-size: 14px;
    }
}