/* style/casino.css */

/* --- General Page Styles --- */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for default light body background */
    background-color: #ffffff; /* Explicitly white background */
}

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

.page-casino__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
}

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

.page-casino__section p {
    font-size: 17px;
    max-width: 900px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
}

/* --- 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;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background: linear-gradient(135deg, #017439, #0a8a47); /* Gradient with brand primary color */
    color: #ffffff;
    overflow: hidden; /* Prevent content overflow */
}

.page-casino__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-casino__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-casino__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    color: #FFFF00; /* Register/Login font color for prominence */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-casino__intro-text {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

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

/* --- Buttons --- */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
}

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

.page-casino__btn-primary:hover {
    background: #a30606;
    border-color: #a30606;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-casino__btn-secondary:hover {
    background: #f0f0f0;
    color: #005a2d;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-large {
    padding: 18px 50px;
    font-size: 20px;
}

.page-casino__center-cta {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* For multiple buttons */
}

/* --- About Section --- */
.page-casino__section--about {
    background-color: #f9f9f9;
}

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

.page-casino__image-text-block img {
    flex-shrink: 0;
    width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure responsiveness */
    display: block; /* Remove extra space below image */
}

.page-casino__image-text-block p {
    margin-bottom: 0;
    text-align: left;
    max-width: none;
}

/* --- Games Section --- */
.page-casino__section--games {
    background-color: #ffffff;
}

.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: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.page-casino__card-title {
    font-size: 22px;
    color: #017439;
    margin: 0 20px 10px 20px;
    font-weight: 700;
    line-height: 1.3;
}

.page-casino__card-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__card-title a:hover {
    color: #005a2d;
    text-decoration: underline;
}

.page-casino__game-card p {
    font-size: 15px;
    color: #555555;
    margin: 0 20px 20px 20px;
    text-align: left;
    max-width: none;
    flex-grow: 1; /* Ensure paragraphs take available space */
}

.page-casino__card-button {
    display: inline-block;
    background: #017439;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    margin: 0 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start; /* Align button to start */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: calc(100% - 40px); /* Adjust for padding */
    box-sizing: border-box;
}

.page-casino__card-button:hover {
    background: #005a2d;
    transform: translateY(-2px);
}

/* --- Promotions Section --- */
.page-casino__section--promotions {
    background-color: #017439; /* Primary brand color background */
    color: #ffffff;
}

.page-casino__section--promotions .page-casino__section-title {
    color: #FFFF00; /* Yellow for titles on dark background */
}

.page-casino__section--promotions p {
    color: #f0f0f0;
}

.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: rgba(255, 255, 255, 0.15); /* Slightly transparent white on primary background */
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-casino__promo-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.page-casino__promo-card .page-casino__card-title {
    color: #FFFF00; /* Yellow for card titles on dark background */
    margin-top: 0;
    margin-bottom: 15px;
}

.page-casino__promo-card .page-casino__card-title a {
    color: #FFFF00;
}

.page-casino__promo-card .page-casino__card-title a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.page-casino__promo-card p {
    color: #f0f0f0;
    font-size: 16px;
    margin-bottom: 25px;
    max-width: none;
    flex-grow: 1;
}

.page-casino__promo-card .page-casino__card-button {
    background: #C30808; /* Register/Login color for CTA */
    color: #FFFF00;
    align-self: flex-start;
    padding: 12px 25px;
}

.page-casino__promo-card .page-casino__card-button:hover {
    background: #a30606;
}

/* --- Security Section --- */
.page-casino__section--security {
    background-color: #f0f0f0;
}

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

.page-casino__feature-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__feature-item img {
    
    
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: #e0f2e8; /* Light green background for icons */
    padding: 15px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    max-width: 100%; /* Ensure responsiveness */
    display: block;
}

.page-casino__feature-item .page-casino__card-title {
    font-size: 20px;
    color: #017439;
    margin-bottom: 10px;
}

.page-casino__feature-item p {
    font-size: 15px;
    color: #555555;
    margin-bottom: 0;
    max-width: none;
}

/* --- FAQ Section --- */
.page-casino__section--faq {
    background-color: #ffffff;
}

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

/* FAQ容器样式 */
.page-casino__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.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 20px;
    opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo mở rộng */
.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 2000px !important; /* 🚨 Sử dụng !important, giá trị đủ lớn cho mọi nội dung */
    padding: 20px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #e0e0e0;
}

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

.page-casino__faq-item.active .page-casino__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

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

/* Question Title Style */
.page-casino__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle Icon */
.page-casino__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #017439; /* Primary color for toggle */
    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;
    border-radius: 50%;
    background-color: #e0f2e8; /* Light background for toggle */
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    color: #C30808; /* Accent color when active */
    transform: rotate(180deg); /* Rotate for minus sign effect */
    background-color: #ffe0e0; /* Lighter red background */
}

/* --- Final CTA Section --- */
.page-casino__section--cta {
    background-color: #0a8a47; /* Slightly darker green */
    color: #ffffff;
    padding: 80px 0;
}

.page-casino__section--cta .page-casino__section-title {
    color: #FFFF00;
    margin-bottom: 25px;
}

.page-casino__section--cta p {
    color: #f0f0f0;
    font-size: 18px;
    margin-bottom: 40px;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    .page-casino__container {
        padding: 0 15px;
    }

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

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

    .page-casino__section p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* Hero Section Mobile */
    .page-casino__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Override desktop padding */
        padding-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-casino__intro-text {
        font-size: 17px;
        margin-bottom: 25px;
    }

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    /* Buttons Mobile */
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .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: 12px 20px;
        font-size: 16px;
    }

    .page-casino__center-cta {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* Image-Text Block Mobile */
    .page-casino__image-text-block {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .page-casino__image-text-block img {
        width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

    .page-casino__image-text-block p {
        text-align: center;
    }

    /* Game Grid Mobile */
    .page-casino__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino__game-card img {
        
    }

    .page-casino__card-title {
        font-size: 20px;
        margin: 0 15px 10px 15px;
    }

    .page-casino__game-card p {
        font-size: 14px;
        margin: 0 15px 15px 15px;
    }

    .page-casino__card-button {
        margin: 0 15px;
        max-width: calc(100% - 30px);
    }

    /* Promo Grid Mobile */
    .page-casino__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino__promo-card {
        padding: 25px;
    }

    .page-casino__promo-card .page-casino__card-title {
        font-size: 20px;
    }

    .page-casino__promo-card p {
        font-size: 15px;
    }

    .page-casino__promo-card .page-casino__card-button {
        max-width: calc(100% - 0px); /* Adjust for full width within card padding */
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    /* Security Features Mobile */
    .page-casino__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino__feature-item {
        padding: 25px;
    }

    .page-casino__feature-item img {
        
        
        padding: 10px;
    }

    .page-casino__feature-item .page-casino__card-title {
        font-size: 18px;
    }

    /* FAQ Mobile */
    .page-casino__faq-list {
        margin-top: 30px;
    }

    .page-casino__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-casino__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }

    .page-casino__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }

    .page-casino__faq-answer {
        padding: 0 15px;
    }

    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px !important;
    }

    /* Global image responsiveness for content area */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box;
    }
    
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__image-text-block,
    .page-casino__game-grid,
    .page-casino__promo-grid,
    .page-casino__security-features,
    .page-casino__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Dark background sections for contrast */
.page-casino__dark-section {
    background: #017439;
    color: #ffffff;
}
.page-casino__dark-section .page-casino__section-title {
    color: #FFFF00;
}
.page-casino__dark-section p {
    color: #f0f0f0;
}
.page-casino__dark-section .page-casino__card-title {
    color: #FFFF00;
}
.page-casino__dark-section .page-casino__card-title a {
    color: #FFFF00;
}
.page-casino__dark-section .page-casino__card-title a:hover {
    color: #ffffff;
}

/* Ensure contrast for links within content */
.page-casino p a, .page-casino li a {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
}
.page-casino p a:hover, .page-casino li a:hover {
    color: #005a2d;
}