/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f4f4f4; /* From shared.css body background */
}

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

.page-casino__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #0A4B2C; /* Deep Green for titles */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-casino__section-description {
  font-size: 1.1em;
  color: #333333;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-card {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-casino__btn-secondary {
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-casino__btn-secondary:hover {
  background: #0A4B2C; /* Deep Green */
  border-color: #57E38D; /* Glow */
  transform: translateY(-2px);
}

.page-casino__btn-card {
  background: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
  border: none;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-casino__btn-card:hover {
  background: #13994A;
  transform: translateY(-1px);
}

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

.page-casino__center-text {
  text-align: center;
}

.page-casino__image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  background-color: #08160F; /* Background color from custom palette */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.page-casino__hero-content {
  max-width: 900px;
  color: #F2FFF6; /* Text Main */
  z-index: 1;
}

.page-casino__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Using clamp for responsive H1 */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-casino__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
  background-color: #f4f4f4; /* Light background */
  color: #333333;
}

.page-casino__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-casino__text-content p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #333333;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-casino__games-section .page-casino__section-title {
  color: #F2C14E; /* Gold for titles in dark sections */
}

.page-casino__games-section .page-casino__section-description {
  color: #A7D9B8; /* Text Secondary */
}

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

.page-casino__game-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-casino__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #2E7A4E; /* Border */
}

.page-casino__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  color: #F2FFF6; /* Text Main */
}

.page-casino__card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold */
}

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

.page-casino__card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto; /* Push buttons to bottom */
}

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

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

.page-casino__promotion-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-casino__promotion-card .page-casino__card-image {
  border-bottom: 1px solid #e0e0e0;
}

.page-casino__promotion-card .page-casino__card-title {
  color: #0A4B2C; /* Deep Green */
}

.page-casino__promotion-card .page-casino__card-text {
  color: #333333;
}

/* Security & Support Section */
.page-casino__security-support-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-casino__security-support-section .page-casino__section-title {
  color: #F2C14E; /* Gold */
}

.page-casino__security-support-section .page-casino__text-content p {
  color: #A7D9B8; /* Text Secondary */
}

/* Download Section */
.page-casino__download-section {
  padding: 80px 0;
  background-color: #f4f4f4; /* Light background */
  color: #333333;
}

.page-casino__download-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
}

.page-casino__download-text {
  max-width: 500px;
}

.page-casino__download-text h3 {
  font-size: 1.8em;
  color: #0A4B2C; /* Deep Green */
  margin-bottom: 20px;
}

.page-casino__download-text ul {
  list-style: disc inside;
  margin-bottom: 25px;
  padding-left: 20px;
}

.page-casino__download-text ul li {
  margin-bottom: 10px;
  color: #333333;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-casino__faq-section .page-casino__section-title {
  color: #F2C14E; /* Gold */
}

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

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

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

.page-casino__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-casino__faq-item summary:hover {
  background-color: #0A4B2C; /* Deep Green */
}

.page-casino__faq-qtext {
  flex-grow: 1;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
}

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

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

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 0;
  background-color: #f4f4f4; /* Light background */
  color: #333333;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .page-casino__grid-two-columns {
    grid-template-columns: 1fr;
  }
  .page-casino__image-content {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
  .page-casino__hero-title {
    font-size: clamp(2em, 8vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section,
  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__security-support-section,
  .page-casino__download-section,
  .page-casino__faq-section,
  .page-casino__cta-section {
    padding: 40px 0;
  }

  .page-casino__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-casino__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

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

  .page-casino__hero-image,
  .page-casino__image,
  .page-casino__card-image,
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__hero-image-wrapper,
  .page-casino__image-content,
  .page-casino__game-card,
  .page-casino__promotion-card,
  .page-casino__download-content,
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-card,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__card-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-casino__download-content {
    flex-direction: column;
  }

  .page-casino__download-text {
    text-align: center;
  }

  .page-casino__download-text ul {
    text-align: left;
    padding-left: 0;
    list-style-position: inside;
  }

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

  .page-casino__faq-answer {
    padding: 0 20px 15px;
  }

  .page-casino__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Ensure no image filters are applied */
  .page-casino img {
    filter: none !important;
  }

}

/* Desktop specific video container width for flex layout */
.page-casino__video-container {
  width: 100%; /* Ensure width 100% for desktop flex layout */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}