/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Light text for dark body background */
    background-color: #140C0C; /* Body background from shared.css */
}

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

/* Section titles */
.page-casino__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFF1E8; /* Light text */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}
.page-casino__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFB04A, #D86A14); /* Gold gradient */
    border-radius: 2px;
}

/* Text blocks for informational content */
.page-casino__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.page-casino__text-block strong {
    color: #F3C54D; /* Gold color for emphasis */
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-play,
.page-casino__btn-view-promo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    text-align: center;
}

.page-casino__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom button color */
    color: #FFF1E8; /* Light text */
    border: 2px solid transparent;
}

.page-casino__btn-primary:hover {
    background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 176, 74, 0.4);
}

.page-casino__btn-secondary {
    background: transparent;
    color: #FFB04A; /* Gold text */
    border: 2px solid #FFB04A; /* Gold border */
}

.page-casino__btn-secondary:hover {
    background: #FFB04A;
    color: #140C0C; /* Dark text on gold hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 176, 74, 0.4);
}

.page-casino__btn-play {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom button color */
    color: #FFF1E8;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 15px;
}
.page-casino__btn-play:hover {
    background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
}

.page-casino__btn-view-promo {
    background: #C61F1F; /* Deep Red */
    color: #FFF1E8;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 15px;
}
.page-casino__btn-view-promo:hover {
    background: #E53030; /* Lighter Red */
}


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

.page-casino__hero-image {
    width: 100%;
    overflow: hidden;
}
.page-casino__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */
}

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

.page-casino__main-title {
    font-size: clamp(36px, 4.5vw, 60px); /* Responsive font size */
    color: #F3C54D; /* Gold color */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.page-casino__description {
    font-size: clamp(18px, 2vw, 22px);
    color: #FFF1E8;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
}

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

/* Introduction Section */
.page-casino__introduction-section {
    padding: 60px 0;
    background-color: #2A1212; /* Card BG color */
    margin-bottom: 40px;
}

/* Games Section */
.page-casino__games-section {
    padding: 60px 0;
    background-color: #140C0C; /* Dark background */
    margin-bottom: 40px;
}

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

.page-casino__game-card {
    background-color: #2A1212; /* Card BG color */
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #6A1E1E; /* Border color */
}
.page-casino__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure images are responsive */
    display: block;
}

.page-casino__game-title {
    font-size: 24px;
    color: #F3C54D; /* Gold color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__game-description {
    font-size: 16px;
    color: #FFF1E8;
    flex-grow: 1; /* Allow description to take available space */
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 60px 0;
    background-color: #2A1212; /* Card BG color */
    margin-bottom: 40px;
}

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

.page-casino__promo-card {
    background-color: #140C0C; /* Dark background */
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #6A1E1E; /* Border color */
    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.3);
}

.page-casino__promo-card img {
    width: 100%;
     /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
}

.page-casino__promo-title {
    font-size: 22px;
    color: #F3C54D; /* Gold color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-casino__promo-description {
    font-size: 16px;
    color: #FFF1E8;
    flex-grow: 1;
}

/* Why Choose Section */
.page-casino__why-choose-section {
    padding: 60px 0;
    background-color: #140C0C; /* Dark background */
    margin-bottom: 40px;
}

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

.page-casino__feature-item {
    background-color: #2A1212; /* Card BG color */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    border: 1px solid #6A1E1E; /* Border color */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.page-casino__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__feature-item img {
    width: 100%;
     /* Fixed height for consistency */
    object-fit: contain; /* Ensure full image is visible */
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
}

.page-casino__feature-title {
    font-size: 20px;
    color: #F3C54D; /* Gold color */
    margin-bottom: 10px;
    font-weight: bold;
}

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

/* Guide Section */
.page-casino__guide-section {
    padding: 60px 0;
    background-color: #2A1212; /* Card BG color */
    margin-bottom: 40px;
}

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

.page-casino__guide-step {
    background-color: #140C0C; /* Dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px solid #6A1E1E; /* Border color */
    position: relative;
}

.page-casino__step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Gold gradient */
    color: #140C0C; /* Dark text on gold */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-casino__step-title {
    font-size: 22px;
    color: #F3C54D; /* Gold color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino__step-description {
    font-size: 16px;
    color: #FFF1E8;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 60px 0;
    background-color: #140C0C; /* Dark background */
    margin-bottom: 40px;
}

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #6A1E1E; /* Border color */
  overflow: hidden;
  background: #2A1212; /* Card BG color */
  color: #FFF1E8; /* Light text */
}
details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F3C54D; /* Gold for question text */
  font-weight: bold;
}
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); /* Slightly lighter on hover */
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D; /* Gold color for question text */
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFF1E8; /* Light color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 25px 25px;
  background: #140C0C; /* Dark background for answer */
  border-radius: 0 0 10px 10px;
  color: #FFF1E8; /* Light text for answer */
  font-size: 16px;
}
.page-casino__faq-answer p {
    margin: 0;
    padding: 0;
}

/* Conclusion Section */
.page-casino__conclusion-section {
    padding: 60px 0;
    background-color: #2A1212; /* Card BG color */
    text-align: center;
}
.page-casino__conclusion-section .page-casino__section-title {
    color: #F3C54D; /* Gold title */
}
.page-casino__conclusion-section .page-casino__text-block {
    color: #FFF1E8;
}


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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-casino__section-title {
        font-size: 32px;
    }
    .page-casino__hero-content {
        padding: 30px 20px;
    }
    .page-casino__main-title {
        font-size: clamp(32px, 4vw, 50px);
    }
    .page-casino__description {
        font-size: clamp(16px, 1.8vw, 20px);
    }
    .page-casino__games-grid,
    .page-casino__promo-cards,
    .page-casino__features-grid,
    .page-casino__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}


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

    /* HERO Section */
    .page-casino__hero-section {
        padding-top: 10px; /* Small padding, body handles header offset */
        margin-bottom: 30px;
    }
    .page-casino__hero-image img {
        object-fit: contain !important; /* Mobile hero image must contain, not cover */
        aspect-ratio: unset !important; /* Allow natural aspect ratio or be defined by content */
        height: auto !important; /* Ensure height adjusts */
        width: 100% !important;
    }
    .page-casino__hero-content {
        padding: 25px 15px;
    }
    .page-casino__main-title {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 15px;
    }
    .page-casino__description {
        font-size: clamp(15px, 4vw, 18px);
        margin-bottom: 25px;
    }
    .page-casino__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__cta-buttons .page-casino__btn-primary,
    .page-casino__cta-buttons .page-casino__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Section Titles */
    .page-casino__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding-bottom: 10px;
    }
    .page-casino__section-title::after {
        width: 60px;
        height: 3px;
    }
    .page-casino__text-block {
        font-size: 16px;
        text-align: left; /* Adjust text alignment for mobile readability */
        padding: 0 5px;
    }

    /* Products/Games Section */
    .page-casino__games-grid,
    .page-casino__promo-cards,
    .page-casino__features-grid,
    .page-casino__guide-steps {
        grid-template-columns: 1fr; /* Single column layout for most grids */
        gap: 20px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-casino__games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 2 columns for games */
    }
    .page-casino__game-card,
    .page-casino__promo-card,
    .page-casino__feature-item,
    .page-casino__guide-step {
        padding: 20px;
    }
    .page-casino__game-card img,
    .page-casino__promo-card img,
    .page-casino__feature-item img {
        height: auto; /* Allow height to adjust */
        max-width: 100% !important;
        width: 100% !important;
    }
    .page-casino__game-title {
        font-size: 20px;
    }
    .page-casino__promo-title {
        font-size: 18px;
    }
    .page-casino__feature-title {
        font-size: 18px;
    }
    .page-casino__step-title {
        font-size: 20px;
    }
    .page-casino__step-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
        margin-bottom: 20px;
    }
}