/* style/casino.css */

:root {
    --page-casino-primary-color: #017439;
    --page-casino-secondary-color: #FFFFFF;
    --page-casino-dark-bg: #1a1a1a;
    --page-casino-light-text: #ffffff;
    --page-casino-dark-text: #333333;
    --page-casino-red-btn: #C30808;
    --page-casino-yellow-text: #FFFF00;
}

.page-casino {
    font-family: 'Arial', sans-serif;
    color: var(--page-casino-light-text); /* Default text color for dark body background */
    background-color: var(--page-casino-dark-bg); /* Matches body background */
}

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

.page-casino__section-title {
    font-size: 2.8em;
    color: var(--page-casino-secondary-color);
    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: var(--page-casino-primary-color);
    border-radius: 2px;
}

.page-casino__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 60px auto;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.page-casino__dark-bg {
    background-color: var(--page-casino-dark-bg);
    color: var(--page-casino-light-text);
}

.page-casino__light-bg {
    background-color: var(--page-casino-secondary-color);
    color: var(--page-casino-dark-text);
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-casino__hero-section .page-casino__container {
    z-index: 2;
    position: relative;
}

.page-casino__hero-title {
    font-size: 4.5em;
    color: var(--page-casino-secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
    font-size: 1.4em;
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.page-casino__btn-primary {
    background-color: var(--page-casino-red-btn);
    color: var(--page-casino-yellow-text);
    border: 2px solid var(--page-casino-red-btn);
}

.page-casino__btn-primary:hover {
    background-color: darken(var(--page-casino-red-btn), 10%);
    border-color: darken(var(--page-casino-red-btn), 10%);
}

.page-casino__btn-secondary {
    background-color: transparent;
    color: var(--page-casino-secondary-color);
    border: 2px solid var(--page-casino-secondary-color);
}

.page-casino__btn-secondary:hover {
    background-color: var(--page-casino-secondary-color);
    color: var(--page-casino-dark-text);
}

/* About Section */
.page-casino__about-section {
    padding: 80px 0;
}

.page-casino__about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-casino__about-text {
    flex: 1;
    line-height: 1.8;
    font-size: 1.1em;
    color: var(--page-casino-dark-text);
}

.page-casino__about-text p {
    margin-bottom: 20px;
}

.page-casino__about-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-casino__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

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

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

.page-casino__game-category {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-casino__category-title {
    font-size: 1.8em;
    color: var(--page-casino-primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.page-casino__game-category p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.page-casino__game-list {
    list-style: none;
    padding: 0;
}

.page-casino__game-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--page-casino-secondary-color);
}

.page-casino__game-list li::before {
    content: '✓';
    color: var(--page-casino-primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.page-casino__game-image-wrapper {
    text-align: center;
    margin-top: 40px;
}

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

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

.page-casino__card {
    background: var(--page-casino-secondary-color);
    color: var(--page-casino-dark-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-casino__card-title {
    font-size: 1.6em;
    color: var(--page-casino-primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.page-casino__card p {
    line-height: 1.7;
    margin-bottom: 15px;
}

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

.page-casino__promotion-image-wrapper {
    text-align: center;
    margin-top: 60px;
}

/* Security Section */
.page-casino__security-section {
    padding: 80px 0;
}

.page-casino__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-casino__security-text {
    flex: 1;
    line-height: 1.8;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
}

.page-casino__security-text p {
    margin-bottom: 20px;
}

.page-casino__security-image-wrapper {
    flex: 1;
    text-align: center;
}

/* Guide Section */
.page-casino__guide-section {
    padding: 80px 0;
}

.page-casino__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.page-casino__step-card {
    background: var(--page-casino-secondary-color);
    color: var(--page-casino-dark-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.page-casino__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--page-casino-primary-color);
    color: var(--page-casino-secondary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    border: 3px solid var(--page-casino-secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__step-title {
    font-size: 1.5em;
    color: var(--page-casino-primary-color);
    margin-bottom: 15px;
}

.page-casino__step-card p {
    line-height: 1.7;
}

.page-casino__registration-image-wrapper {
    text-align: center;
    margin-top: 60px;
}

/* Support Section */
.page-casino__support-section {
    padding: 80px 0;
}

.page-casino__support-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-casino__support-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-casino__support-text {
    flex: 1;
    line-height: 1.8;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
}

.page-casino__support-text p {
    margin-bottom: 20px;
}

.page-casino__support-channels {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-casino__support-channels li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    color: var(--page-casino-secondary-color);
}

.page-casino__support-channels li strong {
    color: var(--page-casino-primary-color);
}

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

/* Adjust icon for email/chat if needed */
.page-casino__support-channels li:nth-child(1)::before { content: '💬'; }
.page-casino__support-channels li:nth-child(2)::before { content: '✉️'; }

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

.page-casino__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-casino__faq-item {
    background: var(--page-casino-secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-casino-dark-text);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-casino-dark-text);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.page-casino__faq-item[open] .page-casino__faq-question {
    border-bottom: 1px solid #e0e0e0;
}

.page-casino__faq-question::-webkit-details-marker {
    display: none;
}

.page-casino__faq-question::marker {
    display: none;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: var(--page-casino-primary-color);
    transition: transform 0.3s ease;
}

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

.page-casino__faq-answer {
    padding: 20px 25px;
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--page-casino-dark-text);
    background-color: #ffffff;
}

/* Conclusion Section */
.page-casino__conclusion-section {
    padding: 80px 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3.5em;
    }
    .page-casino__hero-description {
        font-size: 1.2em;
    }
    .page-casino__section-title {
        font-size: 2.2em;
    }
    .page-casino__about-content,
    .page-casino__security-content,
    .page-casino__support-content {
        flex-direction: column;
        text-align: center;
    }
    .page-casino__about-image-wrapper,
    .page-casino__security-image-wrapper,
    .page-casino__support-image-wrapper {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        height: auto;
        min-height: 500px;
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-casino__hero-title {
        font-size: 2.8em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-casino__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-casino__section-intro {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-casino__about-section,
    .page-casino__games-section,
    .page-casino__promotions-section,
    .page-casino__security-section,
    .page-casino__guide-section,
    .page-casino__support-section,
    .page-casino__faq-section,
    .page-casino__conclusion-section {
        padding: 40px 0;
    }
    .page-casino__container {
        padding: 0 15px;
    }
    .page-casino__about-content,
    .page-casino__security-content,
    .page-casino__support-content {
        gap: 20px;
    }
    .page-casino__image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__game-category,
    .page-casino__card,
    .page-casino__step-card {
        padding: 25px;
    }
    .page-casino__category-title,
    .page-casino__card-title,
    .page-casino__step-title {
        font-size: 1.4em;
    }
    .page-casino p, .page-casino li {
        font-size: 15px;
        line-height: 1.6;
    }
    .page-casino__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-casino__faq-answer {
        padding: 15px 20px;
        font-size: 1em;
    }

    /* Ensure all image containers are responsive */
    .page-casino__about-image-wrapper,
    .page-casino__game-image-wrapper,
    .page-casino__promotion-image-wrapper,
    .page-casino__security-image-wrapper,
    .page-casino__registration-image-wrapper,
    .page-casino__support-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Ensure button containers are responsive */
    .page-casino__hero-cta-buttons,
    .page-casino__cta-center {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}