/* style/casino.css */
/* 
 * Body padding-top is handled by shared.css for --header-offset.
 * This page's first section should only have a small top padding.
 */

.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: transparent; /* Body background handled by shared.css var(--bg-color) */
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  padding-bottom: 60px;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  height: auto;
  position: relative;
  margin-bottom: 40px; /* Space between image and content */
}

.page-casino__hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

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

.page-casino__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__subtitle {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-casino__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: nowrap; /* Prevent text wrapping for desktop */
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
}

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

.page-casino__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #2E7A4E; /* Border */
}

.page-casino__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1); /* Glow with transparency */
  transform: translateY(-2px);
}

.page-casino__btn-text {
  background: transparent;
  color: #57E38D; /* Glow */
  border: none;
  padding: 8px 0;
  font-weight: 600;
}

.page-casino__btn-text:hover {
  text-decoration: underline;
}

/* Section General Styles */
.page-casino__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-casino__text-block {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  text-align: justify;
}

.page-casino__text-block a {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

.page-casino__text-block a:hover {
  text-decoration: underline;
}

.page-casino__dark-section {
  background-color: #0A4B2C; /* Deep Green - slightly darker than Card BG for contrast */
  padding: 60px 0;
}

.page-casino__about-section,
.page-casino__games-section,
.page-casino__registration-guide-section,
.page-casino__faq-section,
.page-casino__contact-cta {
  padding: 60px 0;
}

.page-casino__image-full {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 30px;
}

/* Game Grid */
.page-casino__game-grid,
.page-casino__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-casino__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-casino__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-casino__card-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-casino__card-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
}

.page-casino__card-title a:hover {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

.page-casino__card-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

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

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

.page-casino__guide-step {
  padding: 30px;
}

.page-casino__step-title {
  font-size: 1.3em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-casino__step-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 40px;
}

.page-casino__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-casino__faq-item summary {
  list-style: none; /* Hide default marker */
}

.page-casino__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-casino__faq-question:hover {
  background-color: #1E3A2A; /* Divider - slightly darker */
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #57E38D; /* Glow */
}

.page-casino__faq-answer {
  padding: 0 25px 20px 25px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
  line-height: 1.5;
}

.page-casino__faq-answer p {
  margin-bottom: 10px;
}

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

.page-casino__faq-answer a {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

.page-casino__faq-answer a:hover {
  text-decoration: underline;
}

/* Contact CTA */
.page-casino__contact-cta {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-casino__section-title {
    font-size: 2em;
  }
}

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

  .page-casino__container {
    padding: 0 15px !important; /* Ensure padding on mobile */
  }

  .page-casino__hero-section {
    padding-bottom: 40px;
  }

  .page-casino__hero-content {
    padding: 0 15px;
  }

  .page-casino__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-casino__subtitle {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    white-space: normal !important; /* Allow text wrap */
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

  .page-casino__text-block {
    font-size: 1em;
  }

  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__registration-guide-section,
  .page-casino__faq-section,
  .page-casino__contact-cta {
    padding: 40px 0;
  }

  .page-casino__game-grid,
  .page-casino__promo-grid,
  .page-casino__guide-steps {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-casino__card-image {
    height: auto; /* Allow height to adjust */
  }

  .page-casino__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-casino__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }

  /* All images must be responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images/videos/buttons must be responsive */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-image-wrapper,
  .page-casino__cta-buttons,
  .page-casino__game-grid,
  .page-casino__promo-grid,
  .page-casino__guide-steps,
  .page-casino__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
}