.page-game-rules-tutorials {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f9f9f9;
}

.page-game-rules-tutorials__dark-bg {
  background-color: #000080;
  color: #ffffff; /* White text for dark background */
}

.page-game-rules-tutorials__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-game-rules-tutorials__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);
  background-color: #000080; /* Dark blue background */
  color: #ffffff;
  overflow: hidden;
}

.page-game-rules-tutorials__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-game-rules-tutorials__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-game-rules-tutorials__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-game-rules-tutorials__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-game-rules-tutorials__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold color for main title */
  line-height: 1.2;
}

.page-game-rules-tutorials__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-rules-tutorials__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-game-rules-tutorials__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-rules-tutorials__btn-primary {
  background: #FFD700;
  color: #ffffff;
  border: 2px solid transparent;
}

.page-game-rules-tutorials__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-game-rules-tutorials__btn-secondary {
  background: #ffffff;
  color: #000080;
  border: 2px solid #000080;
}

.page-game-rules-tutorials__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-game-rules-tutorials__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  margin-top: -60px;
  position: relative;
  z-index: 1;
}

.page-game-rules-tutorials__section-title {
  font-size: 2.2em;
  color: #000080; /* Dark blue for section titles */
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 15px;
  margin-top: 40px;
}

.page-game-rules-tutorials__game-subtitle {
  font-size: 1.8em;
  color: #FFD700; /* Gold for sub-titles */
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-game-rules-tutorials__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-game-rules-tutorials ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-game-rules-tutorials li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #333333;
}

.page-game-rules-tutorials strong {
  color: #000080;
}

.page-game-rules-tutorials__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-game-rules-tutorials__card {
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  color: #333333;
}

.page-game-rules-tutorials__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-game-rules-tutorials__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
  max-width: 100%;
}

.page-game-rules-tutorials__card-title {
  font-size: 1.5em;
  color: #000080;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-game-rules-tutorials__card-text {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1;
}

.page-game-rules-tutorials__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 40px;
  margin-bottom: 40px;
  object-fit: cover;
  max-width: 100%;
}

.page-game-rules-tutorials__game-section {
  margin-bottom: 50px;
  padding-top: 20px;
  border-top: 1px dashed #e0e0e0;
}

.page-game-rules-tutorials__strategy-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-game-rules-tutorials__strategy-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  max-width: 100%;
}

.page-game-rules-tutorials__strategy-text {
  flex: 1;
  max-width: 50%;
}

.page-game-rules-tutorials__responsible-gaming {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-game-rules-tutorials__responsible-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  max-width: 100%;
}

.page-game-rules-tutorials__responsible-text {
  flex: 1;
  max-width: 50%;
}

.page-game-rules-tutorials__faq-list {
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-game-rules-tutorials__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-game-rules-tutorials__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-game-rules-tutorials__faq-item.active .page-game-rules-tutorials__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-game-rules-tutorials__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-game-rules-tutorials__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-game-rules-tutorials__faq-question:active {
  background: #eeeeee;
}

.page-game-rules-tutorials__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #000080;
}

.page-game-rules-tutorials__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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: 28px;
  height: 28px;
}

.page-game-rules-tutorials__faq-item.active .page-game-rules-tutorials__faq-toggle {
  color: #000080;
  transform: rotate(180deg);
}

.page-game-rules-tutorials__conclusion-cta {
  text-align: center;
  padding: 60px 20px;
  margin-top: 60px;
  border-radius: 8px;
}

/* All images basic responsive styles */
.page-game-rules-tutorials img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsive design */
@media (max-width: 768px) {
  .page-game-rules-tutorials__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-game-rules-tutorials__hero-image img {
    border-radius: 4px;
  }
  
  .page-game-rules-tutorials__main-title {
    font-size: 2em;
  }

  .page-game-rules-tutorials__description {
    font-size: 1em;
  }

  .page-game-rules-tutorials__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-rules-tutorials__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-game-rules-tutorials__content-area {
    padding: 30px 15px;
    margin-top: -30px;
  }

  .page-game-rules-tutorials__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-game-rules-tutorials__game-subtitle {
    font-size: 1.4em;
    margin-top: 30px;
  }

  .page-game-rules-tutorials__paragraph,
  .page-game-rules-tutorials li,
  .page-game-rules-tutorials__card-text {
    font-size: 0.95em;
  }

  .page-game-rules-tutorials__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-game-rules-tutorials__card {
    padding: 20px;
  }

  .page-game-rules-tutorials__card-title {
    font-size: 1.3em;
  }

  .page-game-rules-tutorials__image-full-width {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .page-game-rules-tutorials__strategy-content,
  .page-game-rules-tutorials__responsible-gaming {
    flex-direction: column;
    gap: 30px;
  }

  .page-game-rules-tutorials__strategy-image,
  .page-game-rules-tutorials__responsible-image {
    max-width: 100%;
    width: 100%;
  }

  .page-game-rules-tutorials__strategy-text,
  .page-game-rules-tutorials__responsible-text {
    max-width: 100%;
  }

  .page-game-rules-tutorials__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-game-rules-tutorials__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-game-rules-tutorials__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-game-rules-tutorials__faq-answer {
    padding: 0 15px;
  }
  
  .page-game-rules-tutorials__faq-item.active .page-game-rules-tutorials__faq-answer {
    padding: 15px !important;
  }

  .page-game-rules-tutorials__conclusion-cta {
    padding: 40px 15px;
    margin-top: 40px;
  }

  /* Force responsive for all images and containers */
  .page-game-rules-tutorials img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-game-rules-tutorials__section,
  .page-game-rules-tutorials__card,
  .page-game-rules-tutorials__container,
  .page-game-rules-tutorials__hero-container,
  .page-game-rules-tutorials__cta-group,
  .page-game-rules-tutorials__strategy-content,
  .page-game-rules-tutorials__responsible-gaming,
  .page-game-rules-tutorials__conclusion-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Ensure content area images are not too small */
  .page-game-rules-tutorials__content-area img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}