.page-slot-games-popular-slots {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color, #FFFFFF);
}

.page-slot-games-popular-slots__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-slot-games-popular-slots__section {
  padding: 60px 0;
  text-align: center;
}

.page-slot-games-popular-slots__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
  line-height: 1.3;
}

.page-slot-games-popular-slots__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-slot-games-popular-slots__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-slot-games-popular-slots__dark-bg .page-slot-games-popular-slots__section-title,
.page-slot-games-popular-slots__dark-bg .page-slot-games-popular-slots__text-block {
  color: #ffffff;
}

.page-slot-games-popular-slots__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-slot-games-popular-slots__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
}

.page-slot-games-popular-slots__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-slot-games-popular-slots__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-slot-games-popular-slots__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-slot-games-popular-slots__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-slot-games-popular-slots__hero-title {
  font-size: 48px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.page-slot-games-popular-slots__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-slot-games-popular-slots__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-slot-games-popular-slots__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 45px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 19px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games-popular-slots__btn-primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-slot-games-popular-slots__btn-primary:hover {
  background: #cc6a00;
  border-color: #cc6a00;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-slot-games-popular-slots__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-slot-games-popular-slots__btn-secondary:hover {
  background: #e0f2f7;
  color: #1a8bbd;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Game Types Section */
.page-slot-games-popular-slots__game-types-section {
  background-color: #f8fcfd;
}

.page-slot-games-popular-slots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games-popular-slots__card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 480px; /* Ensure cards have similar height */
}

.page-slot-games-popular-slots__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-slot-games-popular-slots__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games-popular-slots__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-slot-games-popular-slots__card-description {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Strategy Section */
.page-slot-games-popular-slots__strategy-section {
  background-color: #ffffff;
}

.page-slot-games-popular-slots__list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 30px auto;
  text-align: left;
}

.page-slot-games-popular-slots__list-item {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: #333333;
}

.page-slot-games-popular-slots__list-item::before {
  content: '✓';
  color: #26A9E0;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 20px;
}

.page-slot-games-popular-slots__button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Security Section */
.page-slot-games-popular-slots__security-section {
  background-color: #26A9E0;
}

/* FAQ Section */
.page-slot-games-popular-slots__faq-section {
  background-color: #f8fcfd;
}

.page-slot-games-popular-slots__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-slot-games-popular-slots__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games-popular-slots__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-slot-games-popular-slots__faq-item.active .page-slot-games-popular-slots__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #26A9E0;
}

.page-slot-games-popular-slots__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-slot-games-popular-slots__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none;
}

.page-slot-games-popular-slots__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-slot-games-popular-slots__faq-item.active .page-slot-games-popular-slots__faq-toggle {
  transform: rotate(180deg);
  color: #EA7C07;
}

.page-slot-games-popular-slots__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
}

.page-slot-games-popular-slots__faq-item.active .page-slot-games-popular-slots__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #e9f6fb;
  border-radius: 0 0 8px 8px;
  border: 1px solid #26A9E0;
  border-top: none;
}

.page-slot-games-popular-slots__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
}

/* Call to Action Footer Section */
.page-slot-games-popular-slots__cta-footer-section {
  padding: 80px 0;
}

.page-slot-games-popular-slots__cta-footer-content {
  max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games-popular-slots__hero-title {
    font-size: 42px;
  }

  .page-slot-games-popular-slots__hero-description {
    font-size: 18px;
  }

  .page-slot-games-popular-slots__section-title {
    font-size: 32px;
  }

  .page-slot-games-popular-slots__text-block {
    font-size: 16px;
  }

  .page-slot-games-popular-slots__card-title {
    font-size: 22px;
  }

  .page-slot-games-popular-slots__card-description {
    font-size: 15px;
  }

  .page-slot-games-popular-slots__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-slot-games-popular-slots__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games-popular-slots__hero-image img {
    border-radius: 8px;
  }

  .page-slot-games-popular-slots__hero-title {
    font-size: 36px;
  }

  .page-slot-games-popular-slots__hero-description {
    font-size: 16px;
  }

  .page-slot-games-popular-slots__cta-button {
    padding: 15px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-slot-games-popular-slots__hero-cta-group, 
  .page-slot-games-popular-slots__button-group {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-slot-games-popular-slots__section {
    padding: 40px 0;
  }

  .page-slot-games-popular-slots__section-title {
    font-size: 28px;
  }

  .page-slot-games-popular-slots__text-block {
    font-size: 15px;
    padding: 0 15px;
  }

  .page-slot-games-popular-slots__grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }

  .page-slot-games-popular-slots__card {
    padding: 25px;
    min-height: auto;
  }

  .page-slot-games-popular-slots__list {
    padding: 0 15px;
  }

  .page-slot-games-popular-slots__list-item {
    font-size: 15px;
    padding-left: 25px;
  }

  .page-slot-games-popular-slots__faq-question {
    padding: 15px 20px;
  }

  .page-slot-games-popular-slots__faq-question h3 {
    font-size: 16px;
  }

  .page-slot-games-popular-slots__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-slot-games-popular-slots__faq-answer {
    padding: 0 20px;
  }

  .page-slot-games-popular-slots__faq-item.active .page-slot-games-popular-slots__faq-answer {
    padding: 15px 20px !important;
  }

  .page-slot-games-popular-slots__faq-answer p {
    font-size: 15px;
  }

  .page-slot-games-popular-slots__cta-footer-section {
    padding: 50px 0;
  }

  /* Image responsive adaptations */
  .page-slot-games-popular-slots img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-slot-games-popular-slots__section,
  .page-slot-games-popular-slots__card,
  .page-slot-games-popular-slots__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-slot-games-popular-slots__faq-list {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-slot-games-popular-slots__hero-title {
    font-size: 32px;
  }

  .page-slot-games-popular-slots__hero-description {
    font-size: 15px;
  }

  .page-slot-games-popular-slots__cta-button {
    padding: 12px 25px;
    font-size: 15px;
  }

  .page-slot-games-popular-slots__section-title {
    font-size: 24px;
  }

  .page-slot-games-popular-slots__card-title {
    font-size: 20px;
  }

  .page-slot-games-popular-slots__faq-question h3 {
    font-size: 15px;
  }
}