/* style/casino.css */
/* 
  Body padding-top is handled by shared.css: body { padding-top: var(--header-offset); }.
  This page's first content section should NOT re-apply var(--header-offset).
  Instead, use a small fixed padding-top for visual spacing.
*/

/* Base styles for the casino page content */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main color on dark background */
  background: #0A0A0A; /* Background color */
}

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

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

.page-casino__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #FFD36B; /* Glow color for titles */
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: 10px; /* Small fixed padding-top for visual spacing, NOT --header-offset */
  overflow: hidden;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 211, 107, 0.3); /* Glow */
}

.page-casino__hero-content {
  text-align: center;
  max-width: 900px;
}

.page-casino__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Using clamp for H1 font-size */
  font-weight: 900;
  color: #FFD36B; /* Glow color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* For mobile responsiveness */
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-text {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to wrap */
  text-align: center;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for contrast */
  border: 2px solid transparent;
}

.page-casino__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-casino__btn-secondary {
  background: #111111; /* Card BG */
  color: #FFD36B; /* Glow color for text */
  border: 2px solid #3A2A12; /* Border color */
}

.page-casino__btn-secondary:hover {
  background: #FFD36B; /* Glow color */
  color: #111111; /* Dark text for contrast */
  border-color: #FFD36B;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-casino__btn-text {
  background: transparent;
  color: #F2C14E; /* Main color */
  border: none;
  padding: 10px 0;
  font-size: 1em;
  text-decoration: underline;
}

.page-casino__btn-text:hover {
  color: #FFD36B; /* Glow color */
}

/* Sections */
.page-casino__dark-section {
  background: #111111; /* Card BG for dark sections */
}

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

/* Games Overview Section */
.page-casino__games-overview {
  background: #0A0A0A; /* Background color */
}

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

.page-casino__category-card {
  background: #111111; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #3A2A12; /* Border color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 211, 107, 0.2);
}

.page-casino__category-icon {
  width: 30px; /* Allowed small size */
  height: 30px; /* Allowed small size */
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px #FFD36B); /* Add a glow effect without changing image color */
}

.page-casino__category-title {
  font-size: 1.5em;
  color: #F2C14E; /* Main color */
  margin-bottom: 10px;
}

.page-casino__category-description {
  font-size: 0.95em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
}

/* Promotions Section */
.page-casino__promotions-section {
  background: #111111; /* Card BG */
}

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

.page-casino__promo-card {
  background: #0A0A0A; /* Background color for inner cards */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 211, 107, 0.2);
}

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

.page-casino__promo-title {
  font-size: 1.4em;
  color: #F2C14E; /* Main color */
  padding: 20px;
  margin-bottom: 0;
}

.page-casino__promo-description {
  font-size: 0.95em;
  color: #FFF6D6; /* Text Main */
  padding: 0 20px 20px;
}

.page-casino__promo-card .page-casino__btn-primary,
.page-casino__promo-card .page-casino__btn-secondary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

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

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

.page-casino__feature-card {
  background: #111111; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #3A2A12; /* Border color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 211, 107, 0.2);
}

.page-casino__feature-icon {
  max-width: 100%; /* Ensure it's responsive */
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px #FFD36B); /* Add a glow effect without changing image color */
}

.page-casino__feature-title {
  font-size: 1.4em;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
}

.page-casino__feature-description {
  font-size: 0.95em;
  color: #FFF6D6; /* Text Main */
}

/* Latest News Section */
.page-casino__latest-news {
  background: #111111; /* Card BG */
}

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

.page-casino__news-card {
  background: #0A0A0A; /* Background color for inner cards */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 211, 107, 0.2);
}

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

.page-casino__news-content {
  padding: 20px;
}

.page-casino__news-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-casino__news-title a {
  color: #F2C14E; /* Main color */
  text-decoration: none;
}

.page-casino__news-title a:hover {
  color: #FFD36B; /* Glow color */
}

.page-casino__news-date {
  font-size: 0.85em;
  color: #FFD36B; /* Glow color for dates */
  margin-bottom: 15px;
}

.page-casino__news-excerpt {
  font-size: 0.95em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
}

.page-casino__view-all-link {
  text-align: center;
  margin-top: 40px;
}

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

.page-casino__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__faq-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main color */
  font-size: 1.1em;
  font-weight: bold;
  transition: background 0.3s ease;
}

.page-casino__faq-question:hover {
  background: #1a1a1a; /* Slightly lighter dark background on hover */
}

.page-casino__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD36B; /* Glow color */
  transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes a cross */
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  color: #FFF6D6; /* Text Main */
  background: #0A0A0A; /* Background color for answer */
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-casino__faq-answer p {
  margin: 0;
}

/* Contact CTA Section */
.page-casino__contact-cta {
  background: #111111; /* Card BG */
  text-align: center;
}

.page-casino__contact-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-casino__hero-section {
    padding: 60px 20px;
    padding-top: 10px; /* Small fixed padding-top */
  }
}

@media (max-width: 768px) {
  .page-casino__section-padding {
    padding: 60px 0;
  }

  .page-casino__section-title {
    font-size: 1.8em;
  }

  .page-casino__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

  .page-casino__hero-description {
    font-size: 1em;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-text {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* All images */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All image containers (sections, cards, etc.) */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__category-card,
  .page-casino__promo-card,
  .page-casino__feature-card,
  .page-casino__news-card,
  .page-casino__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small fixed padding-top */
  }
  
  /* FAQ specifics for mobile */
  .page-casino__faq-question {
    padding: 15px 20px;
  }
  .page-casino__faq-answer {
    padding: 0 20px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px;
  }

  /* Specific override for game category icons - they are allowed small */
  .page-casino__category-icon {
    width: 30px !important;
    height: 30px !important;
  }

  /* Feature icons should still be responsive, respecting their intended larger size */
  .page-casino__feature-icon {
    width: 100% !important; /* Responsive down from their original large size */
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Ensure no CSS filter on images */
.page-casino img {
  filter: none !important;
}