/* style/casino.css */
.page-casino {
    font-family: 'Arial', sans-serif;
    color: #FFF5E1; /* Main text color for dark body background */
    line-height: 1.6;
}

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

.page-casino__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #FFD86A; /* Gold color for titles */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-casino__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF5E1;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #B71C1C; /* Body background color */
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for desktop */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; /* Space between image and content */
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum size */
}

.page-casino__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any background effects */
}

.page-casino__main-title {
    font-size: clamp(30px, 4vw, 54px); /* Responsive font size */
    font-weight: 900;
    color: #FFD86A; /* Gold for main title */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.page-casino__description {
    font-size: 20px;
    color: #FFF5E1;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-casino__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    color: #7A0E0E; /* Deep Red text on gold button */
    border: 2px solid #F2B544; /* Gold border */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.page-casino__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
}

.page-casino__btn-secondary {
    background: #D32F2F; /* Card BG color */
    color: #FFF5E1; /* Main text color */
    border: 2px solid #F2B544; /* Gold border */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.page-casino__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    background: #7A0E0E; /* Deep Red on hover */
}

.page-casino__btn-link {
    background: transparent;
    color: #FFD86A;
    border: 1px solid #FFD86A;
    padding: 10px 20px;
    font-size: 16px;
}

.page-casino__btn-link:hover {
    background: #FFD86A;
    color: #7A0E0E;
}

/* Sections */
.page-casino__about-section,
.page-casino__promotions-section,
.page-casino__faq-section,
.page-casino__cta-bottom-section {
    padding: 60px 0;
}

.page-casino__games-section,
.page-casino__why-choose-section {
    padding: 60px 0;
    background-color: #7A0E0E; /* Deep Red background */
}

.page-casino__dark-section {
    background-color: #B71C1C; /* Body background color */
}

/* Game List */
.page-casino__game-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-casino__game-card {
    background: #D32F2F; /* Card BG color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFF5E1;
}

.page-casino__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
    min-height: 200px; /* Minimum size */
}

.page-casino__game-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFD86A;
    padding: 0 15px;
}

.page-casino__game-description {
    font-size: 16px;
    color: #FFF5E1;
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1;
}

/* Promotions */
.page-casino__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__promo-item {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for contrast */
    border-left: 5px solid #FFD86A;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 17px;
    color: #FFF5E1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Why Choose Section */
.page-casino__features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-casino__feature-item {
    background: #D32F2F; /* Card BG color */
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: #FFF5E1;
}

.page-casino__feature-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
}

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

.page-casino__feature-description {
    font-size: 16px;
    color: #FFF5E1;
}

/* FAQ Section */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Gold border */
  overflow: hidden;
  background: #D32F2F; /* Card BG color */
  color: #FFF5E1;
}
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: #FFF5E1;
}
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: #7A0E0E; /* Deep Red on hover */
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD86A; /* Gold for FAQ question */
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD86A; /* Gold for toggle icon */
  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(0,0,0,0.2); /* Slightly darker background for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1;
}
.page-casino__faq-answer p {
    margin: 0;
    font-size: 16px;
}


/* --- Responsive Styles (Mobile First) --- */

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

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

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

    .page-casino__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important;
    }

    .page-casino__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-casino__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px;
    }

    .page-casino__main-title {
        font-size: 32px; /* Adjusted to fit clamp's max for mobile */
    }

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

    /* Buttons and Button Containers */
    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Sections */
    .page-casino__about-section,
    .page-casino__promotions-section,
    .page-casino__faq-section,
    .page-casino__cta-bottom-section,
    .page-casino__games-section,
    .page-casino__why-choose-section {
        padding: 40px 0;
    }

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

    .page-casino__game-card {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino__game-image {
        height: 180px;
        min-height: 200px;
    }

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

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

    /* Promotions */
    .page-casino__promo-item {
        font-size: 16px;
        padding: 12px 15px;
    }

    /* Why Choose Section */
    .page-casino__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-casino__feature-item {
        padding: 25px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino__feature-icon {
        width: 100px;
        height: 100px;
        min-width: 200px;
        min-height: 200px;
    }

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

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

    /* FAQ Section */
    details.page-casino__faq-item summary.page-casino__faq-question {
      padding: 15px;
    }
    .page-casino__faq-qtext {
      font-size: 16px;
    }
    .page-casino__faq-toggle {
      font-size: 20px;
      width: 24px;
      margin-left: 10px;
    }
    details.page-casino__faq-item .page-casino__faq-answer {
      padding: 0 15px 15px;
    }
    .page-casino__faq-answer p {
        font-size: 15px;
    }

    /* Generic image container and image rules for mobile */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-casino__section,
    .page-casino__card,
    .page-casino__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}