/* style/casino.css */

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

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

.page-casino__section-title {
  font-size: 3em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-casino__section-subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
}

.page-casino__text-block {
  margin-bottom: 1em;
  color: #f0f0f0;
}

/* Color Schemes */
.page-casino__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.page-casino__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-casino__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-casino__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 20px;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  overflow: hidden;
  gap: 40px;
}

.page-casino__hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
  text-align: left;
}

.page-casino__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #ffffff;
}

.page-casino__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-casino__hero-buttons {
  display: flex;
  gap: 20px;
}

.page-casino__hero-btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-casino__hero-btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-casino__hero-btn-play {
  background-color: #ffffff;
  color: #017439;
  border-color: #ffffff;
}

.page-casino__hero-btn-play:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

.page-casino__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

.page-casino__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-casino__about-section .page-casino__section-title,
.page-casino__about-section .page-casino__section-subtitle {
  color: #333333;
}

.page-casino__about-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-casino__about-text-content {
  flex: 1;
}

.page-casino__about-text-content .page-casino__text-block {
  color: #333333;
}

.page-casino__about-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-casino__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__about-btn {
  margin-top: 20px;
  color: #017439;
  border-color: #017439;
}

.page-casino__about-btn:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

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

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-casino__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino__game-card-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__game-card-title a:hover {
  color: #FFFF00; /* Custom font color for emphasis */
}

.page-casino__game-card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-casino__game-card-btn {
  margin-top: auto;
  align-self: center;
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-casino__game-card-btn:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

.page-casino__promotions-section .page-casino__section-title,
.page-casino__promotions-section .page-casino__section-subtitle {
  color: #333333;
}

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

.page-casino__promotion-card {
  background-color: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-casino__promotion-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino__promotion-card-title {
  font-size: 1.4em;
  color: #333333;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__promotion-card-title a {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__promotion-card-title a:hover {
  color: #017439;
}

.page-casino__promotion-card-description {
  font-size: 0.9em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-casino__promotion-card-btn {
  margin-top: auto;
  align-self: center;
  background-color: #017439;
  color: #ffffff;
  border-color: #017439;
}

.page-casino__promotion-card-btn:hover {
  background-color: #00562d;
  border-color: #00562d;
}

.page-casino__all-promotions-cta {
  text-align: center;
  margin-top: 50px;
}

.page-casino__all-promotions-cta .page-casino__btn-secondary {
  color: #017439;
  border-color: #017439;
}

.page-casino__all-promotions-cta .page-casino__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Security Section */
.page-casino__security-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

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

.page-casino__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__security-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-casino__security-item-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-casino__security-item-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-casino__security-cta {
  text-align: center;
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-casino__security-cta .page-casino__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.page-casino__security-cta .page-casino__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-casino__security-cta .page-casino__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-casino__security-cta .page-casino__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* Guide Section */
.page-casino__guide-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-casino__guide-section .page-casino__section-title,
.page-casino__guide-section .page-casino__section-subtitle {
  color: #333333;
}

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

.page-casino__guide-step-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.page-casino__guide-step-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__guide-step-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
}

.page-casino__guide-step-description {
  font-size: 0.9em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-casino__guide-step-item .page-casino__btn-primary {
  margin-top: auto;
  align-self: center;
  background-color: #017439;
  color: #ffffff;
  border-color: #017439;
}

.page-casino__guide-step-item .page-casino__btn-primary:hover {
  background-color: #00562d;
  border-color: #00562d;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

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

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

.page-casino__faq-answer p {
  margin-bottom: 1em;
  color: #f0f0f0;
}

.page-casino__faq-answer a {
  color: #FFFF00; /* Custom font color for links in dark section */
  text-decoration: underline;
}

.page-casino__faq-answer a:hover {
  color: #f0f0f0;
}

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

.page-casino__cta-section .page-casino__section-title,
.page-casino__cta-section .page-casino__section-subtitle {
  color: #333333;
}

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

.page-casino__cta-btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-casino__cta-btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-casino__cta-btn-login {
  background-color: transparent;
  color: #017439;
  border-color: #017439;
}

.page-casino__cta-btn-login:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .page-casino__hero-content {
    max-width: 100%;
    text-align: center;
  }

  .page-casino__hero-title {
    font-size: 3em;
  }

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

  .page-casino__hero-buttons {
    justify-content: center;
  }

  .page-casino__about-grid {
    flex-direction: column;
  }

  .page-casino__about-image-wrapper {
    order: -1; /* Image first on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-casino__section-title {
    font-size: 2.2em;
  }

  .page-casino__section-subtitle {
    font-size: 1em;
  }

  .page-casino__hero-title {
    font-size: 2.5em;
  }

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

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

  /* General mobile container padding */
  .page-casino__container {
    padding: 0 15px;
  }

  /* Mobile image responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile video responsiveness */
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-casino__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Mobile button responsiveness */
  .page-casino__cta-button,
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .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__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  .page-casino__hero-section,
  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__guide-section,
  .page-casino__faq-section,
  .page-casino__cta-section {
    padding: 40px 0;
  }

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

  .page-casino__promotion-card-image {
    height: 180px;
  }

  .page-casino__security-content,
  .page-casino__guide-steps {
    grid-template-columns: 1fr;
  }

  .page-casino__security-cta {
    flex-direction: column;
    gap: 15px;
  }

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

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

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

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

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 2em;
  }

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

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

  .page-casino__section-subtitle {
    font-size: 0.9em;
  }
}