.page-resources-strategies-for-free-card-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default to white */
}

/* Fixed header offset for the first content section */
.page-resources-strategies-for-free-card-games__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Desktop and mobile offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #017439; /* Brand primary color for hero */
  color: #ffffff;
  padding-bottom: 60px;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-resources-strategies-for-free-card-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
  z-index: 0;
}

.page-resources-strategies-for-free-card-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-resources-strategies-for-free-card-games__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-resources-strategies-for-free-card-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-strategies-for-free-card-games__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: 2px solid #C30808;
  box-sizing: border-box; /* For responsiveness */
}

.page-resources-strategies-for-free-card-games__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

.page-resources-strategies-for-free-card-games__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #017439;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid #017439;
  box-sizing: border-box; /* For responsiveness */
}

.page-resources-strategies-for-free-card-games__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  border-color: #ffffff;
}

.page-resources-strategies-for-free-card-games__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-resources-strategies-for-free-card-games__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources-strategies-for-free-card-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-resources-strategies-for-free-card-games__dark-bg .page-resources-strategies-for-free-card-games__section-title {
  color: #ffffff;
}

.page-resources-strategies-for-free-card-games__dark-bg .page-resources-strategies-for-free-card-games__section-title::after {
  background-color: #ffffff;
}

.page-resources-strategies-for-free-card-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources-strategies-for-free-card-games__highlight {
  font-weight: bold;
  color: #017439; /* Use primary color for highlights on light background */
}

.page-resources-strategies-for-free-card-games__dark-bg .page-resources-strategies-for-free-card-games__highlight {
  color: #FFFF00; /* Yellow for highlights on dark background */
}

.page-resources-strategies-for-free-card-games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-resources-strategies-for-free-card-games__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #333333;
}

.page-resources-strategies-for-free-card-games__dark-bg .page-resources-strategies-for-free-card-games__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-strategies-for-free-card-games__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-strategies-for-free-card-games__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min image size requirement */
  min-height: 200px; /* Min image size requirement */
}

.page-resources-strategies-for-free-card-games__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  flex-grow: 0; /* Don't grow */
}

.page-resources-strategies-for-free-card-games__dark-bg .page-resources-strategies-for-free-card-games__card-title {
  color: #ffffff;
}

.page-resources-strategies-for-free-card-games__list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 15px;
  flex-grow: 1; /* Allow list to grow */
}

.page-resources-strategies-for-free-card-games__list li {
  margin-bottom: 8px;
}

/* Section specific styles */
.page-resources-strategies-for-free-card-games__introduction-section,
.page-resources-strategies-for-free-card-games__tips-section,
.page-resources-strategies-for-free-card-games__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background */
}

.page-resources-strategies-for-free-card-games__strategies-section,
.page-resources-strategies-for-free-card-games__mistakes-section,
.page-resources-strategies-for-free-card-games__cta-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff;
}

.page-resources-strategies-for-free-card-games__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-resources-strategies-for-free-card-games__strategy-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-strategies-for-free-card-games__strategy-title {
  font-size: 1.6em;
  color: #FFFF00; /* Yellow for titles on dark background */
  margin-bottom: 15px;
}

.page-resources-strategies-for-free-card-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-strategies-for-free-card-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  cursor: pointer;
}

.page-resources-strategies-for-free-card-games__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* Make sure it's above the video */
  cursor: pointer;
}

/* FAQ styles */
.page-resources-strategies-for-free-card-games__faq-list {
  margin-top: 30px;
}

.page-resources-strategies-for-free-card-games__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  color: #333333;
}

.page-resources-strategies-for-free-card-games__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
  color: #017439;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.page-resources-strategies-for-free-card-games__faq-item summary:hover {
  background-color: #f0f0f0;
}

.page-resources-strategies-for-free-card-games__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-resources-strategies-for-free-card-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  color: #017439;
}

.page-resources-strategies-for-free-card-games__faq-answer {
  padding: 20px 25px;
  font-size: 1.1em;
  color: #555555;
  background-color: #ffffff;
}

/* CTA Section */
.page-resources-strategies-for-free-card-games__cta-section {
  text-align: center;
  padding: 80px 0;
}

.page-resources-strategies-for-free-card-games__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box; /* Include padding in width */
  padding: 0 20px; /* Add some padding for smaller screens */
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-strategies-for-free-card-games__hero-title {
    font-size: 2.8em;
  }
  .page-resources-strategies-for-free-card-games__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources-strategies-for-free-card-games__hero-section {
    padding-bottom: 40px;
  }
  .page-resources-strategies-for-free-card-games__hero-title {
    font-size: 2em;
  }
  .page-resources-strategies-for-free-card-games__hero-description {
    font-size: 1em;
  }
  .page-resources-strategies-for-free-card-games__btn-primary,
  .page-resources-strategies-for-free-card-games__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-resources-strategies-for-free-card-games__section-title {
    font-size: 1.8em;
  }
  .page-resources-strategies-for-free-card-games__text-block {
    font-size: 1em;
  }
  .page-resources-strategies-for-free-card-games__grid,
  .page-resources-strategies-for-free-card-games__strategy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources-strategies-for-free-card-games__card,
  .page-resources-strategies-for-free-card-games__strategy-item {
    padding: 20px;
  }
  .page-resources-strategies-for-free-card-games__card-title {
    font-size: 1.3em;
  }
  .page-resources-strategies-for-free-card-games__strategy-title {
    font-size: 1.4em;
  }
  .page-resources-strategies-for-free-card-games__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-resources-strategies-for-free-card-games__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
  }

  /* Mobile responsiveness for images, videos, buttons */
  .page-resources-strategies-for-free-card-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-strategies-for-free-card-games__section,
  .page-resources-strategies-for-free-card-games__card,
  .page-resources-strategies-for-free-card-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video responsiveness */
  .page-resources-strategies-for-free-card-games video,
  .page-resources-strategies-for-free-card-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-strategies-for-free-card-games__video-section,
  .page-resources-strategies-for-free-card-games__video-container,
  .page-resources-strategies-for-free-card-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-resources-strategies-for-free-card-games__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Button responsiveness */
  .page-resources-strategies-for-free-card-games__cta-button,
  .page-resources-strategies-for-free-card-games__btn-primary,
  .page-resources-strategies-for-free-card-games__btn-secondary,
  .page-resources-strategies-for-free-card-games a[class*="button"],
  .page-resources-strategies-for-free-card-games 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; /* Adjust padding for full width buttons */
    padding-right: 15px; /* Adjust padding for full width buttons */
  }
  
  .page-resources-strategies-for-free-card-games__cta-buttons,
  .page-resources-strategies-for-free-card-games__button-group,
  .page-resources-strategies-for-free-card-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }
}