/* Base styles for the casino page */
.page-casino {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly set for clarity if not from shared */
}

/* Section padding for consistency */
.page-casino__section-padding {
    padding: 60px 0;
}

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

/* Titles */
.page-casino__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-casino__section-title--white {
    color: #FFFFFF;
}

.page-casino__section-description {
    font-size: 18px;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__section-description--white {
    color: #f0f0f0;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-casino__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

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

.page-casino__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

.page-casino__btn-small {
    padding: 10px 20px;
    font-size: 16px;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles shared header offset */
    background-color: #0d0d0d; /* Dark background for hero */
    overflow: hidden;
}

.page-casino__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
}

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

.page-casino__hero-content {
    max-width: 900px;
    margin: 40px auto 60px;
    text-align: center;
    color: #FFFFFF;
    padding: 0 20px;
}

.page-casino__main-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-casino__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 1.5;
    color: #f0f0f0;
}

.page-casino__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 100%;
    box-sizing: border-box;
}

/* About Section */
.page-casino__about-section {
    background-color: #FFFFFF;
}

.page-casino__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-casino__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-casino__text-block {
    flex: 1;
}

.page-casino__text-block p {
    margin-bottom: 15px;
    font-size: 17px;
    color: #333333;
}

.page-casino__image-block {
    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; /* Ensure it respects max-width correctly */
}

/* Why Choose Us Section */
.page-casino__why-choose-us {
    background-color: #FFFFFF;
}

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

.page-casino__feature-card {
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__feature-card-icon {
    width: 120px; /* Larger icons for this section */
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__feature-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #017439;
    margin-bottom: 15px;
}

.page-casino__feature-card-text {
    font-size: 16px;
    color: #555555;
}

/* Games Section */
.page-casino__games-section {
    background-color: #017439; /* Brand dark green background */
}

.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-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    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 20px rgba(0, 0, 0, 0.15);
}

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

.page-casino__game-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 15px 10px;
    color: #017439; /* Brand color for game titles */
    flex-grow: 1; /* Allow title to take available space */
}

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

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

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

.page-casino__game-card-btn {
    display: inline-block;
    background-color: #C30808;
    color: #FFFF00;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 15px 20px;
    transition: background-color 0.3s ease;
    max-width: calc(100% - 30px); /* Adjust for padding */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-casino__game-card-btn:hover {
    background-color: #a30606;
}

/* Promotions Section */
.page-casino__promotions-section {
    background-color: #f9f9f9;
}

.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-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__promo-card-image {
    width: 100%;
    height: 220px; /* Consistent image height */
    object-fit: cover;
    display: block;
}

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

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

.page-casino__view-all-promos {
    text-align: center;
    margin-top: 50px;
}

/* Mobile Section */
.page-casino__mobile-section {
    background-color: #FFFFFF;
}

.page-casino__features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-casino__features-list li {
    font-size: 17px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: #333333;
}

.page-casino__features-list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: #017439;
}

.page-casino__mobile-cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Security Section */
.page-casino__security-section {
    background-color: #f0f0f0;
}

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

.page-casino__feature-item {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
}

.page-casino__feature-icon {
    width: 100px; /* Specific size for icons */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__feature-title {
    font-size: 22px;
    font-weight: 700;
    color: #017439;
    margin-bottom: 10px;
}

.page-casino__feature-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 15px;
}

.page-casino__feature-link {
    color: #017439;
    text-decoration: none;
    font-weight: 600;
}

.page-casino__feature-link:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: #f9f9f9;
}

.page-casino__faq-list {
    margin-top: 40px;
}

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-casino__faq-item summary.page-casino__faq-question::-webkit-details-marker {
  display: none;
}
details.page-casino__faq-item summary.page-casino__faq-question:hover {
  background: #f5f5f5;
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px; /* Slightly larger for better readability */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}
.page-casino__faq-answer p {
    margin-bottom: 10px;
    font-size: 16px;
}

/* CTA Section */
.page-casino__cta-section {
    background-color: #017439; /* Brand dark green background */
    text-align: center;
}

.page-casino__cta-content {
    padding: 60px 20px;
}

.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Global image styles */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Dark background styling */
.page-casino__dark-bg {
    background: #017439;
    color: #ffffff;
}
.page-casino__dark-bg .page-casino__section-title {
    color: #ffffff;
}
.page-casino__dark-bg .page-casino__section-description {
    color: #f0f0f0;
}

/* Light background styling */
.page-casino__light-bg {
    background: #ffffff;
    color: #333333;
}
.page-casino__light-bg .page-casino__section-title {
    color: #017439;
}
.page-casino__light-bg .page-casino__section-description {
    color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-casino__section-title {
        font-size: 32px;
    }
    .page-casino__main-title {
        font-size: 44px;
    }
    .page-casino__hero-description {
        font-size: 18px;
    }
    .page-casino__hero-image-wrapper {
        height: 500px;
    }
    .page-casino__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-casino__content-wrapper--reverse {
        flex-direction: column-reverse;
    }
    .page-casino__text-block,
    .page-casino__image-block {
        flex: none;
        width: 100%;
    }
    .page-casino__game-card-image,
    .page-casino__promo-card-image {
        height: 180px;
    }
    .page-casino__feature-card-title {
        font-size: 22px;
    }
    .page-casino__feature-title {
        font-size: 20px;
    }
    .page-casino__faq-qtext {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-casino__hero-section {
        padding-top: 10px; /* Small top padding, body handles shared header offset */
    }
    .page-casino__hero-image-wrapper {
        height: auto; /* Allow height to adjust */
    }
}