/* style/casino.css */

/* Base Styles */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default body background */
}

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

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

.page-casino__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

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

.page-casino__mt-40 {
  margin-top: 40px;
}

/* Color Contrast Specifics */
.page-casino__dark-bg {
  background-color: #26A9E0;
  color: #ffffff; /* White text on brand primary color */
}

.page-casino__dark-bg .page-casino__section-title,
.page-casino__dark-bg .page-casino__section-intro,
.page-casino__dark-bg .page-casino__card-title,
.page-casino__dark-bg .page-casino__card-description,
.page-casino__dark-bg p,
.page-casino__dark-bg h3 {
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #FFFFFF;
  color: #333333; /* Dark text on white background */
}

.page-casino__light-bg .page-casino__section-title {
  color: #26A9E0;
}

.page-casino__light-bg .page-casino__section-intro {
  color: #555555;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

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

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

.page-casino__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a8cc4;
  border-color: #1a8cc4;
}

.page-casino__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  padding: 150px 0 100px; /* Adjusted padding-top for fixed header */
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: var(--header-offset, 120px);
}

.page-casino__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-casino__hero-section .page-casino__container {
  position: relative;
  z-index: 2;
}

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

.page-casino__hero-description {
  font-size: 1.5em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

/* Advantages Section */
.page-casino__advantages-section,
.page-casino__games-section,
.page-casino__live-casino-section,
.page-casino__app-section,
.page-casino__responsible-gaming-section,
.page-casino__promotions-section,
.page-casino__how-to-start-section,
.page-casino__faq-section,
.page-casino__cta-section {
  padding: 80px 0;
}

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

.page-casino__advantage-card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-casino__advantage-card:hover {
  transform: translateY(-10px);
}

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

.page-casino__advantage-card .page-casino__card-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-casino__advantage-card .page-casino__card-description {
  font-size: 1em;
  color: #555555;
}

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

.page-casino__game-card {
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background-color: #ffffff; /* White background for cards on dark section */
  color: #333333;
}

.page-casino__game-card:hover {
  transform: translateY(-10px);
}

.page-casino__game-card .page-casino__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__game-card .page-casino__card-title {
  font-size: 1.8em;
  margin: 15px 0 10px;
  color: #26A9E0;
}

.page-casino__game-card .page-casino__card-description {
  font-size: 0.95em;
  padding: 0 15px 15px;
  color: #555555;
}

.page-casino__game-card .page-casino__btn-primary {
  margin-bottom: 20px;
}

/* Live Casino Section */
.page-casino__live-casino-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

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

.page-casino__live-casino-video-wrapper {
  flex: 1;
  position: relative;
  padding-bottom: 45%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-casino__live-casino-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__live-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-casino__live-features li {
  margin-bottom: 10px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  color: #333333;
}

.page-casino__live-features li .icon-check {
  color: #26A9E0;
  margin-right: 10px;
  font-weight: bold;
}

/* App Section */
.page-casino__app-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-direction: row-reverse;
}

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

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

.page-casino__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

.page-casino__app-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-casino__app-features li {
  margin-bottom: 10px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.page-casino__app-features li .icon-mobile,
.page-casino__app-features li .icon-security,
.page-casino__app-features li .icon-bonus,
.page-casino__app-features li .icon-games {
  color: #ffffff;
  margin-right: 10px;
  font-weight: bold;
}

/* Responsible Gaming Section */
.page-casino__responsible-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-casino__responsible-item {
  padding: 20px;
  border-radius: 10px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__responsible-item .page-casino__icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  filter: invert(15%) sepia(90%) saturate(2000%) hue-rotate(180deg) brightness(90%) contrast(90%); /* Example filter for icon color, removed if not needed */
  min-width: 80px;
  min-height: 80px;
}

.page-casino__responsible-item h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-casino__responsible-item p {
  font-size: 0.95em;
  color: #555555;
}

.page-casino__responsible-note a {
  color: #26A9E0;
  text-decoration: underline;
}

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

.page-casino__promotion-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #ffffff; /* White background for cards on dark section */
  color: #333333;
}

.page-casino__promotion-card .page-casino__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__promotion-card .page-casino__card-title {
  font-size: 1.6em;
  padding: 15px 20px 10px;
  color: #26A9E0;
}

.page-casino__promotion-card .page-casino__card-description {
  font-size: 0.95em;
  padding: 0 20px 20px;
  color: #555555;
}

.page-casino__promotion-card .page-casino__btn-secondary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* How to Start Section */
.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-casino__step-item {
  position: relative;
  padding-top: 20px;
}

.page-casino__step-item .page-casino__step-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-casino__step-item h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-casino__step-item p {
  font-size: 1em;
  color: #555555;
}

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

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.page-casino__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #26A9E0;
}

.page-casino__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-casino__faq-answer p {
  margin: 0;
  color: #555555;
}

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 0;
}

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

/* Icon styles (for checkmark, mobile, security, bonus, games) */
.icon-check::before {
  content: '✓'; /* Unicode checkmark */
}
.icon-mobile::before {
  content: '📱'; /* Unicode mobile phone */
}
.icon-security::before {
  content: '🔒'; /* Unicode lock */
}
.icon-bonus::before {
  content: '🎁'; /* Unicode gift box */
}
.icon-games::before {
  content: '🎮'; /* Unicode game controller */
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }
  .page-casino__hero-description {
    font-size: 1.3em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__live-casino-content,
  .page-casino__app-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-casino__live-casino-video-wrapper {
    padding-bottom: 56.25%; /* 16:9 for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-casino__hero-section {
    padding: 100px 0 60px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }
  .page-casino__hero-title {
    font-size: 2.2em;
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
  .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;
    flex-direction: column;
  }
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__section-intro {
    font-size: 1em;
  }
  .page-casino__advantages-grid,
  .page-casino__games-grid,
  .page-casino__responsible-features,
  .page-casino__promotions-grid,
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__advantage-card,
  .page-casino__game-card,
  .page-casino__promotion-card,
  .page-casino__faq-item {
    padding: 20px;
  }
  .page-casino__advantage-card .page-casino__card-image,
  .page-casino__game-card .page-casino__card-image,
  .page-casino__promotion-card .page-casino__card-image,
  .page-casino__step-item .page-casino__step-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-casino__live-casino-video,
  .page-casino__app-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-casino__live-casino-video-wrapper,
  .page-casino__app-image-wrapper,
  .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;
    overflow: hidden !important;
  }
  .page-casino__responsible-item .page-casino__icon {
    min-width: 80px !important;
    min-height: 80px !important;
  }
  .page-casino__faq-question h3 {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }
  .page-casino__hero-description {
    font-size: 0.95em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    padding: 10px 15px;
  }
}