/* style/casino.css */

:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --card-bg: #FFFFFF;
  --background-light: #F5F7FA;
  --text-main: #333333;
  --border-color: #E0E0E0;
}

.page-casino {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--background-light);
}

.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px;
  text-align: center;
  overflow: hidden;
  background-color: var(--card-bg);
}

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

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  min-height: 250px; /* Ensure minimum size */
}

.page-casino__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-casino__main-title {
  font-size: 44px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-main);
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
  transform: translateY(-2px);
}

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

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

.page-casino__btn-tertiary {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
}

.page-casino__btn-tertiary:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
}

.page-casino__section {
  padding: 60px 20px;
  background-color: var(--background-light);
}

.page-casino__section:nth-of-type(even) {
  background-color: var(--card-bg);
}

.page-casino__dark-bg {
  background-color: var(--primary-color);
  color: #ffffff;
}

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

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-casino__section-title--light {
  color: #ffffff;
}

.page-casino__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: justify;
}

.page-casino__text-block--light {
  color: #f0f0f0;
}

.page-casino__link-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.page-casino__link-more:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-casino__game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-casino__game-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  min-height: 200px;
}

.page-casino__game-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-card-description {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-casino__advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-casino__advantage-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-casino__advantage-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-casino__advantage-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
}

.page-casino__steps-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  display: flex;
  justify-content: space-around;
  gap: 30px;
  max-width: 900px;
}

.page-casino__step-item {
  text-align: center;
  position: relative;
  flex: 1;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
}

.page-casino__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #ffffff;
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-casino__step-description {
  font-size: 15px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-casino__faq-section {
  padding: 60px 20px;
  background-color: var(--card-bg);
}

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

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

details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-casino__faq-item summary.page-casino__faq-question:hover {
  background: var(--background-light);
}

.page-casino__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}

.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: var(--background-light);
  border-radius: 0 0 5px 5px;
  color: var(--text-main);
}

.page-casino__faq-answer p {
  margin: 0;
  line-height: 1.7;
}

/* Responsive Styles */

@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 38px;
  }
  .page-casino__description {
    font-size: 17px;
  }
  .page-casino__section-title {
    font-size: 32px;
  }
  .page-casino__game-grid,
  .page-casino__advantage-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .page-casino__steps-list {
    flex-wrap: wrap;
    justify-content: center;
  }
  .page-casino__step-item {
    flex-basis: calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding: 10px 0 40px !important;
  }
  .page-casino__hero-image-wrapper {
    max-height: 300px;
  }
  .page-casino__hero-image {
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__hero-content {
    margin-top: 30px;
    padding: 0 15px;
  }
  .page-casino__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-casino__description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-casino__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden !important;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-tertiary,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    padding: 12px 20px !important;
    font-size: 16px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-casino__section {
    padding: 40px 15px !important;
  }
  .page-casino__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-casino__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-casino__text-block {
    font-size: 15px;
    margin-bottom: 15px;
  }
  .page-casino__game-grid,
  .page-casino__advantage-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__game-card-image {
    height: 200px !important;
    min-height: 150px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__game-card-title {
    font-size: 20px;
  }
  .page-casino__game-card-description {
    font-size: 14px;
  }
  .page-casino__advantage-item {
    padding: 25px;
  }
  .page-casino__advantage-title {
    font-size: 18px;
  }
  .page-casino__advantage-description {
    font-size: 14px;
  }
  .page-casino__steps-list {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }
  .page-casino__step-item {
    padding: 15px;
    flex-basis: 100%;
  }
  .page-casino__step-number {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .page-casino__step-title {
    font-size: 18px;
  }
  .page-casino__step-description {
    font-size: 14px;
  }
  details.page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px !important;
  }
  .page-casino__faq-qtext {
    font-size: 15px !important;
  }
  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 15px 15px !important;
  }
  .page-casino__faq-answer p {
    font-size: 14px;
  }
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}