/* style/casino.css */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Body background from shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

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

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

.page-casino__sub-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-casino__text-link {
  color: #FFFF00; /* Yellow for links */
  text-decoration: underline;
}

.page-casino__text-link:hover {
  color: #C30808;
}

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #017439; /* Primary brand color for hero background */
  position: relative;
  overflow: hidden;
}

.page-casino__hero-content {
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-casino__main-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-casino__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

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

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

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

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

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

.page-casino__btn-register:hover {
  background-color: #9a0606;
  border-color: #9a0606;
  color: #FFFF00; 
}

.page-casino__btn-login {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00; 
}

.page-casino__btn-login:hover {
  background-color: #9a0606;
  border-color: #9a0606;
  color: #FFFF00; 
}

.page-casino__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

/* Advantages Section */
.page-casino__advantages-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

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

.page-casino__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

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

.page-casino__advantage-icon {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-casino__advantage-title {
  font-size: 1.5em;
  color: #FFFF00; /* Yellow for emphasis */
  margin-bottom: 15px;
}

.page-casino__advantage-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

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

.page-casino__game-card {
  text-align: left;
}

.page-casino__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-casino__game-title {
  font-size: 1.6em;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-casino__game-text {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Live Casino Section */
.page-casino__live-casino-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-casino__live-casino-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-casino__live-casino-text {
  flex: 1;
}

.page-casino__live-casino-video-wrapper {
  flex: 1;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: #017439; /* Primary brand color for promotions */
  color: #ffffff;
}

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

.page-casino__promotion-card {
  text-align: left;
  background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__promotion-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-casino__promotion-title {
  font-size: 1.4em;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-casino__promotion-text {
  font-size: 0.9em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-casino__full-width-cta {
  text-align: center;
}

/* How To Play Section */
.page-casino__how-to-play-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-casino__step-item {
  text-align: left;
}

.page-casino__step-number {
  background-color: #C30808;
  color: #FFFF00;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__step-title {
  font-size: 1.5em;
  color: #FFFF00;
  margin-bottom: 10px;
}

/* Responsible Gambling Section */
.page-casino__responsible-gambling-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-casino__responsible-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-casino__responsible-text {
  flex: 1;
}

.page-casino__responsible-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-casino__responsible-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-casino__faq-item {
  margin-bottom: 15px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  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;
  color: #FFFF00;
}

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

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

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

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 3em;
  }
  .page-casino__section-title {
    font-size: 2.2em;
  }
  .page-casino__hero-image-wrapper {
    display: none;
  }
  .page-casino__hero-section {
    background-image: url('[GALLERY:hero:1920x1080:casino,win55,live_dealer,games,excitement]');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    background-color: rgba(1, 116, 57, 0.7);
  }
  .page-casino__live-casino-content,
  .page-casino__responsible-content {
    flex-direction: column;
    text-align: center;
  }
  .page-casino__live-casino-video-wrapper,
  .page-casino__responsible-image-wrapper {
    width: 100%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-casino__hero-section {
    padding: 60px 15px;
  }
  .page-casino__main-title {
    font-size: 2.5em;
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-casino__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-casino__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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;
  }
  .page-casino__cta-buttons {
    display: flex;
    flex-direction: column;
  }
  .page-casino__advantage-grid,
  .page-casino__game-grid,
  .page-casino__promotion-grid,
  .page-casino__step-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__card {
    padding: 20px;
  }
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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__live-casino-video-wrapper {
    padding-bottom: 75%; /* Adjust for mobile 4:3 or similar if needed, or keep 16:9 */
  }
  .page-casino__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-casino__faq-answer {
    padding: 10px 15px;
  }
  .page-casino__step-number {
    margin-left: initial;
    margin-right: initial;
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: 2em;
  }
  .page-casino__hero-description {
    font-size: 0.9em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__sub-title {
    font-size: 1.4em;
  }
}