/* style/casino.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-dark: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for page content */
  background-color: var(--background-dark); /* Page background color */
}

.page-casino__section {
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}

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

.page-casino__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-main);
}

.page-casino__light-bg {
  background-color: var(--text-main);
  color: var(--background-dark);
}

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for visual spacing */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Subtle darkening for text readability, not color change */
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 15px;
  margin-top: -150px; /* Pull content up over image */
  background: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-casino__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px var(--glow-color);
}

.page-casino__hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

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

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

.page-casino__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-casino__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-casino__btn-secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
}

/* General Content Styles */
.page-casino__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 5px rgba(242, 255, 246, 0.2);
}

.page-casino__section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__text-block {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-casino__text-block a {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: 600;
}

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

.page-casino__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

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

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

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

.page-casino__game-image,
.page-casino__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-casino__game-title,
.page-casino__promo-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-casino__game-title a,
.page-casino__promo-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__game-title a:hover,
.page-casino__promo-title a:hover {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-casino__game-description,
.page-casino__promo-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Live Casino Section */
.page-casino__live-dealer-content,
.page-casino__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.page-casino__live-dealer-image,
.page-casino__security-image {
  width: 60%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: block;
}

.page-casino__live-features,
.page-casino__security-features {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 40%;
}

.page-casino__live-features li,
.page-casino__security-features li {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.page-casino__icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.page-casino__icon--check {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232AD16F"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
}

.page-casino__icon--shield {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232AD16F"><path d="M12 2L4 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-8-3z"/></svg>');
}

.page-casino__icon--lock {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232AD16F"><path d="M18 10h-1V7c0-2.76-2.24-5-5-5S7 4.24 7 7h1c0-2.21 1.79-4 4-4s4 1.79 4 4v3H6c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm0 10H6V12h12v8zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"/></svg>');
}

.page-casino__icon--license {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232AD16F"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99l-5.25-2.25L12 5.5l5.25 2.25L12 11.99z"/></svg>');
}

.page-casino__icon--fairplay {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232AD16F"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"/></svg>');
}

.page-casino__icon--support {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232AD16F"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 14h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/></svg>');
}

.page-casino__icon--chat {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232AD16F"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"/></svg>');
}

.page-casino__icon--email {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232AD16F"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}

.page-casino__icon--phone {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232AD16F"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.32.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>');
}

/* Steps Grid */
.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-casino__step-card {
  text-align: center;
  padding: 30px 20px;
}

.page-casino__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-casino__step-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

.page-casino__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--deep-green-color);
  color: var(--text-main);
  border-bottom: 1px solid var(--divider-color);
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: var(--primary-color);
}

.page-casino__faq-item[open] > .page-casino__faq-question {
  background-color: var(--primary-color);
}

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

.page-casino__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-casino__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider-color);
}

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

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

/* Contact Methods */
.page-casino__contact-methods {
  margin-top: 30px;
  text-align: center;
}

.page-casino__contact-methods p {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 20px;
}

.page-casino__contact-methods ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block; /* Center the list */
  text-align: left;
}

.page-casino__contact-methods li {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.page-casino__contact-methods li a {
  color: var(--gold-color);
  text-decoration: none;
}

.page-casino__contact-methods li a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-casino__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
  }

  .page-casino__main-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }

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

  .page-casino__live-dealer-content,
  .page-casino__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-casino__live-dealer-image,
  .page-casino__security-image {
    width: 100%;
    max-width: 600px;
  }

  .page-casino__live-features,
  .page-casino__security-features {
    width: 100%;
    margin-top: 30px;
    padding-left: 0;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-bottom: 30px;
  }

  .page-casino__hero-content {
    margin-top: -50px;
    padding: 20px 10px;
    width: calc(100% - 30px);
  }

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

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

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
  }

  .page-casino__section {
    padding: 40px 10px;
  }

  .page-casino__section-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }

  .page-casino__section-description,
  .page-casino__text-block {
    font-size: 0.95rem;
  }

  .page-casino__games-grid,
  .page-casino__promo-cards,
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-casino__game-title,
  .page-casino__promo-title {
    font-size: 1.2rem;
  }

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

  .page-casino__faq-answer {
    padding: 15px 20px;
    font-size: 0.9rem;
  }

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

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

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper,
  .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;
    overflow: hidden !important;
  }

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

  .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 {
    flex-direction: column;
    gap: 10px;
  }
}