:root {
    --fbc8-primary-color: #F2C14E;
    --fbc8-secondary-color: #FFD36B;
    --fbc8-card-bg: #111111;
    --fbc8-background: #0A0A0A;
    --fbc8-text-main: #FFF6D6;
    --fbc8-border-color: #3A2A12;
    --fbc8-glow-color: #FFD36B;
    --fbc8-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --fbc8-dark-text-color: #333333; /* For light backgrounds */
    --fbc8-light-text-color: #ffffff; /* For dark backgrounds */
}

.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--fbc8-text-main); /* Default text color for dark body background */
    background-color: var(--fbc8-background); /* Ensure consistent background for main content */
}

/* General Section Styling */
.page-casino__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
}

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

.page-casino__section-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--fbc8-secondary-color);
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-casino__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--fbc8-text-main);
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    margin-bottom: 40px;
    overflow: hidden;
}

.page-casino__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for desktop hero */
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and content */
}

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

.page-casino__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

.page-casino__main-title {
    font-size: 48px; 
    font-weight: 800;
    line-height: 1.2;
    color: var(--fbc8-secondary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 211, 107, 0.7);
}

.page-casino__description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--fbc8-text-main);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    max-width: 100%; /* Important for responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-casino__btn-primary {
    background: var(--fbc8-button-gradient);
    color: var(--fbc8-light-text-color); /* White text for gradient button */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-casino__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-casino__btn-secondary {
    background: transparent;
    color: var(--fbc8-secondary-color);
    border: 2px solid var(--fbc8-secondary-color);
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.3);
}

.page-casino__btn-secondary:hover {
    background: var(--fbc8-secondary-color);
    color: var(--fbc8-dark-text-color); /* Dark text on hover */
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.5);
}

.page-casino__btn-tertiary {
    background: var(--fbc8-primary-color);
    color: var(--fbc8-light-text-color);
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
}

.page-casino__btn-tertiary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Dark background sections */
.page-casino__dark-section {
    background-color: var(--fbc8-card-bg); /* Use card background for these sections */
}

/* Introduction Section - Text color already set by .page-casino */

/* Game Categories */
.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-color: var(--fbc8-card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--fbc8-border-color);
    color: var(--fbc8-text-main); /* Ensure light text on dark card background */
}

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

.page-casino__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

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

.page-casino__game-description {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--fbc8-text-main);
}

/* Promotions Section */
.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-color: var(--fbc8-light-text-color); /* White background for promo cards */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    color: var(--fbc8-dark-text-color); /* Dark text on light card background */
}

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

.page-casino__promo-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-casino__promo-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--fbc8-primary-color);
    margin-bottom: 15px;
}

.page-casino__promo-description {
    font-size: 16px;
    color: var(--fbc8-dark-text-color);
}

/* Safety Section */
.page-casino__safety-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__feature-item {
    background-color: var(--fbc8-card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--fbc8-border-color);
    color: var(--fbc8-text-main);
}

.page-casino__feature-icon {
    width: 200px; /* Minimum size requirement */
    height: 200px;
    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: var(--fbc8-secondary-color);
    margin-bottom: 15px;
}

.page-casino__feature-description {
    font-size: 16px;
    color: var(--fbc8-text-main);
}

/* Guide Section */
.page-casino__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__step-item {
    background-color: var(--fbc8-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--fbc8-border-color);
    color: var(--fbc8-text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__step-number {
    width: 60px;
    height: 60px;
    background: var(--fbc8-primary-color);
    color: var(--fbc8-light-text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

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

.page-casino__step-description {
    font-size: 16px;
    margin-bottom: 20px;
    flex-grow: 1; /* Make description take up available space */
    color: var(--fbc8-text-main);
}

/* FAQ Section */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--fbc8-border-color);
  overflow: hidden;
  background: var(--fbc8-card-bg);
  color: var(--fbc8-text-main);
}
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;
  color: var(--fbc8-text-main);
}
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: rgba(255, 255, 255, 0.05); /* Lighter hover for dark background */
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--fbc8-secondary-color);
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--fbc8-primary-color);
  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: rgba(17, 17, 17, 0.8); /* Slightly lighter dark background for answer */
  border-radius: 0 0 5px 5px;
  text-align: left;
}
.page-casino__faq-answer p {
    color: var(--fbc8-text-main);
    font-size: 16px;
}

/* Conclusion Section */
.page-casino__cta-final {
    padding-bottom: 60px;
}

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

.page-casino__cta-button,
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary,
.page-casino a[class*="button"],
.page-casino a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-casino__cta-buttons,
.page-casino__button-group,
.page-casino__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

    .page-casino__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    .page-casino__text-block {
        font-size: 16px;
    }

    /* Hero Section */
    .page-casino__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        margin-bottom: 20px;
    }

    .page-casino__hero-image-wrapper {
        height: 300px; /* Smaller height for mobile hero */
        margin-bottom: 20px;
    }
    
    .page-casino__hero-image {
        object-fit: contain !important; /* For mobile hero banner */
        height: auto !important; /* Allow height to adjust */
    }

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

    .page-casino__description {
        font-size: 17px;
        margin-bottom: 20px;
    }

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        padding: 0 15px; /* Add padding to button container */
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-tertiary,
    .page-casino a[class*="button"],
    .page-casino a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General image responsiveness */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Game Categories */
    .page-casino__game-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }

    .page-casino__game-card {
        padding: 20px;
    }

    .page-casino__game-image {
        height: 160px; /* Smaller image height for mobile cards */
        margin-bottom: 15px;
    }

    .page-casino__game-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .page-casino__game-description {
        font-size: 15px;
    }

    /* Promotions Section */
    .page-casino__promo-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }

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

    .page-casino__promo-image {
        height: 140px;
        margin-bottom: 15px;
    }

    .page-casino__promo-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    /* Safety Section */
    .page-casino__safety-features {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }

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

    .page-casino__feature-icon {
        width: 150px; /* Ensure min 200px is respected for content images, but small icons are forbidden */
        height: 150px;
        margin-bottom: 15px;
    }

    .page-casino__feature-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    /* Guide Section */
    .page-casino__guide-steps {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }

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

    .page-casino__step-number {
        width: 50px;
        height: 50px;
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-casino__step-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    /* FAQ Section */
    details.page-casino__faq-item summary.page-casino__faq-question { padding: 15px; }
    .page-casino__faq-qtext { font-size: 16px; }
    details.page-casino__faq-item .page-casino__faq-answer { padding: 0 15px 15px; }
}

/* Small adjustments for larger mobile devices / tablets if needed, e.g., max-width: 1024px */
@media (max-width: 1024px) {
    .page-casino__container {
        padding: 0 30px;
    }

    .page-casino__hero-image-wrapper {
        height: 450px;
    }

    .page-casino__main-title {
        font-size: 40px;
    }

    .page-casino__description {
        font-size: 18px;
    }

    .page-casino__game-grid,
    .page-casino__promo-grid,
    .page-casino__safety-features,
    .page-casino__guide-steps {
        grid-template-columns: repeat(2, 1fr); /* Two columns for tablets */
    }
}