:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: var(--dark-bg, #0d0d0d); /* Assuming shared.css defines --dark-bg */
}

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

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

.page-casino__section-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__section-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-casino__cta-center {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

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

.page-casino__btn-primary {
    background: var(--primary-color);
    color: var(--text-dark); /* Ensure contrast with gold background */
}

.page-casino__btn-primary:hover {
    background: darken(var(--primary-color), 10%); /* This won't work in plain CSS, using a darker gold value */
    background: #e6c000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-secondary {
    background: var(--secondary-color);
    color: var(--text-light);
}

.page-casino__btn-secondary:hover {
    background: darken(var(--secondary-color), 10%); /* This won't work in plain CSS, using a darker red value */
    background: #7a0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
    box-sizing: border-box;
}

.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: linear-gradient(to top, rgba(13, 13, 13, 0.8) 0%, rgba(13, 13, 13, 0.2) 50%, rgba(13, 13, 13, 0.8) 100%);
    z-index: 2;
}

.page-casino__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-casino__main-title {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-casino__hero-description {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

.page-casino__game-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-casino__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--primary-color);
}

.page-casino__game-title {
    font-size: 24px;
    color: var(--primary-color);
    margin: 20px 15px 10px;
    font-weight: bold;
}

.page-casino__game-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__game-title a:hover {
    color: var(--text-light);
}

.page-casino__game-excerpt {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    padding: 0 15px 20px;
    flex-grow: 1;
}

/* Promotions Section */
.page-casino__promotions-section {
    background-color: #1a1a1a;
    padding: 80px 0;
}

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

.page-casino__promo-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-casino__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-casino__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 2px solid var(--secondary-color);
}

.page-casino__promo-title {
    font-size: 22px;
    color: var(--primary-color);
    margin: 20px 15px 10px;
    font-weight: bold;
}

.page-casino__promo-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__promo-title a:hover {
    color: var(--text-light);
}

.page-casino__promo-excerpt {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    padding: 0 15px 20px;
    flex-grow: 1;
}

/* Why Choose Section */
.page-casino__why-choose-section {
    background-color: var(--bg-dark);
    padding: 80px 0;
}

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

.page-casino__feature-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-casino__feature-item:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-casino__feature-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-casino__feature-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: #1a1a1a;
    padding: 80px 0;
}

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

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-casino__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
}

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.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;
  background: rgba(255, 255, 255, 0.05);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.page-casino__faq-answer p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* For '-' symbol */
}

/* Final CTA Section */
.page-casino__final-cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 80px 0;
    text-align: center;
}

.page-casino__final-cta-section .page-casino__section-title {
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.page-casino__final-cta-section .page-casino__section-description {
    color: rgba(255, 255, 255, 0.95);
}

.page-casino__final-cta-section .page-casino__cta-button {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-casino__final-cta-section .page-casino__btn-primary {
    background: var(--text-light);
    color: var(--secondary-color);
}

.page-casino__final-cta-section .page-casino__btn-primary:hover {
    background: #f0f0f0;
}

.page-casino__final-cta-section .page-casino__btn-secondary {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.page-casino__final-cta-section .page-casino__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Image and general responsive adjustments */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-casino__hero-section {
        height: 70vh;
        padding-top: var(--header-offset, 120px) !important;
    }

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

    .page-casino__hero-description {
        font-size: 18px;
    }

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

    .page-casino__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px;
        font-size: 16px;
    }

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

    .page-casino__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-casino__container {
        padding: 20px 15px;
    }

    .page-casino__games-section, .page-casino__promotions-section, .page-casino__why-choose-section, .page-casino__faq-section, .page-casino__final-cta-section {
        padding: 50px 0;
    }

    .page-casino__game-grid, .page-casino__promo-grid, .page-casino__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino__game-title, .page-casino__promo-title, .page-casino__feature-title {
        font-size: 20px;
    }

    .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;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-casino__hero-section, .page-casino__games-section, .page-casino__promotions-section, .page-casino__why-choose-section, .page-casino__faq-section, .page-casino__final-cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-casino__game-card, .page-casino__promo-card, .page-casino__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino__cta-buttons, .page-casino__cta-center {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__cta-buttons {
        flex-wrap: wrap;
    }
}