.page-resources-download-tutorial {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Body background from shared.css */
}

.page-resources-download-tutorial__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-download-tutorial__hero-section {
  position: relative;
  padding: 80px 20px 60px;
  background-color: #1A237E; /* Main brand color for hero */
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  overflow: hidden;
}

.page-resources-download-tutorial__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700; /* Accent color for title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-download-tutorial__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-resources-download-tutorial__hero-image-wrapper {
  margin-top: 40px;
}

.page-resources-download-tutorial__hero-image {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.page-resources-download-tutorial__section {
  padding: 60px 20px;
  background-color: #0a0a0a; /* Ensure sections also have dark background */
  color: #ffffff;
}

.page-resources-download-tutorial__dark-section {
  background-color: #1A237E; /* Main brand color */
  color: #ffffff;
}

.page-resources-download-tutorial__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Accent color for section titles */
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-resources-download-tutorial__subsection-title {
  font-size: 2em;
  color: #FFD700;
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
}

.page-resources-download-tutorial__text-block {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
}

.page-resources-download-tutorial__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-resources-download-tutorial__btn-primary,
.page-resources-download-tutorial__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-download-tutorial__btn-primary {
  background-color: #FFD700; /* Accent color */
  color: #1A237E; /* Main brand color for text */
  border: 2px solid #FFD700;
}

.page-resources-download-tutorial__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
}

.page-resources-download-tutorial__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Accent color */
  border: 2px solid #FFD700;
}

.page-resources-download-tutorial__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A237E;
  transform: translateY(-3px);
}

.page-resources-download-tutorial__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-download-tutorial__feature-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for cards */
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-download-tutorial__feature-icon {
  width: 100%; /* Ensure large images for features */
  height: auto;
  max-height: 300px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 10px;
}

.page-resources-download-tutorial__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources-download-tutorial__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-resources-download-tutorial__step-by-step {
  margin-top: 40px;
}

.page-resources-download-tutorial__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-download-tutorial__step-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 20px;
  text-align: center;
}

.page-resources-download-tutorial__step-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-resources-download-tutorial__step-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-resources-download-tutorial__step-list strong {
  color: #FFD700;
}

.page-resources-download-tutorial__step-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-download-tutorial__bullet-list {
  list-style: disc;
  padding-left: 25px;
  max-width: 900px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

.page-resources-download-tutorial__bullet-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-resources-download-tutorial__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.page-resources-download-tutorial__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.page-resources-download-tutorial__video-cta {
  text-align: center;
  margin-top: 30px;
}

.page-resources-download-tutorial__info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-download-tutorial__card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
}

.page-resources-download-tutorial__card-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 20px;
  text-align: center;
}

.page-resources-download-tutorial__card-text {
  font-size: 1em;
  margin-bottom: 15px;
}

.page-resources-download-tutorial__card-list {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-resources-download-tutorial__card-list li {
  margin-bottom: 8px;
}

.page-resources-download-tutorial__game-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-download-tutorial__game-type-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-download-tutorial__game-type-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.page-resources-download-tutorial__game-type-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-resources-download-tutorial__game-type-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-resources-download-tutorial__game-type-title a:hover {
  text-decoration: underline;
}

.page-resources-download-tutorial__game-type-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-resources-download-tutorial__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-download-tutorial__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-download-tutorial__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #1A237E; /* Main brand color for question header */
  color: #FFD700;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-download-tutorial__faq-question:hover {
  background-color: #2c388e;
}

.page-resources-download-tutorial__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em;
}

.page-resources-download-tutorial__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-download-tutorial__faq-item.active .page-resources-download-tutorial__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-download-tutorial__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}

.page-resources-download-tutorial__faq-item.active .page-resources-download-tutorial__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 20px;
}

.page-resources-download-tutorial__faq-answer p {
  margin: 0;
  font-size: 1em;
}

.page-resources-download-tutorial__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #1A237E; /* Main brand color */
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources-download-tutorial__hero-title {
    font-size: 2.8em;
  }
  .page-resources-download-tutorial__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-resources-download-tutorial {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources-download-tutorial__hero-section {
    padding: 60px 15px 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-resources-download-tutorial__hero-title {
    font-size: 2.2em;
  }

  .page-resources-download-tutorial__hero-description {
    font-size: 1em;
  }

  .page-resources-download-tutorial__section {
    padding: 40px 15px;
  }

  .page-resources-download-tutorial__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-download-tutorial__subsection-title {
    font-size: 1.5em;
  }

  .page-resources-download-tutorial__text-block {
    font-size: 1em;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  .page-resources-download-tutorial__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-download-tutorial__btn-primary,
  .page-resources-download-tutorial__btn-secondary,
  .page-resources-download-tutorial a[class*="button"],
  .page-resources-download-tutorial 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: 12px 20px;
    font-size: 1em;
  }

  .page-resources-download-tutorial__features-grid,
  .page-resources-download-tutorial__info-cards,
  .page-resources-download-tutorial__game-types-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-download-tutorial__step-item {
    padding: 20px;
  }

  .page-resources-download-tutorial__step-title {
    font-size: 1.5em;
  }

  .page-resources-download-tutorial__step-list,
  .page-resources-download-tutorial__bullet-list {
    padding-left: 20px;
    font-size: 1em;
  }

  .page-resources-download-tutorial__card {
    padding: 20px;
  }

  .page-resources-download-tutorial__card-title {
    font-size: 1.4em;
  }

  .page-resources-download-tutorial__game-type-item {
    padding: 15px;
  }

  .page-resources-download-tutorial__game-type-title {
    font-size: 1.2em;
  }

  .page-resources-download-tutorial__game-type-image {
    max-height: 180px;
  }

  .page-resources-download-tutorial__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }

  .page-resources-download-tutorial__faq-answer {
    padding: 15px;
  }

  /* Responsive images */
  .page-resources-download-tutorial img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Responsive videos */
  .page-resources-download-tutorial video,
  .page-resources-download-tutorial__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video wrapper for aspect ratio */
  .page-resources-download-tutorial__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important; /* Remove section padding */
    padding-right: 0 !important; /* Remove section padding */
    overflow: hidden !important;
  }
  
  /* General container padding for mobile */
  .page-resources-download-tutorial__section .page-resources-download-tutorial__container,
  .page-resources-download-tutorial__hero-section .page-resources-download-tutorial__container,
  .page-resources-download-tutorial__cta-section .page-resources-download-tutorial__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Specific content elements to ensure no overflow */
  .page-resources-download-tutorial__step-item,
  .page-resources-download-tutorial__feature-item,
  .page-resources-download-tutorial__card,
  .page-resources-download-tutorial__game-type-item,
  .page-resources-download-tutorial__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}