/* style/blog.css */

/* Base styles for page-blog */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #0a0a0a (dark), so use light text */
  background-color: transparent; /* inherited from body, so set transparent */
}

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

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-blog__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-blog__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  background-color: #1e87b7;
}

.page-blog__btn-secondary {
  background-color: #EA7C07; /* Custom color for Login/Secondary CTA */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-blog__btn-secondary:hover {
  background-color: #bb6205;
}

.page-blog__section {
  padding: 60px 0;
  text-align: center;
}

.page-blog__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-blog__dark-bg .page-blog__section-title {
  color: #ffffff;
}

.page-blog__text-block {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

.page-blog__dark-bg .page-blog__text-block {
  color: #f0f0f0;
}

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

.page-blog__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-blog__feature-icon {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.page-blog__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-blog__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-blog__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter than body for contrast */
  color: #ffffff;
}

.page-blog__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-blog__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  text-align: left;
  color: #ffffff;
}

.page-blog__step-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-blog__step-description {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-blog__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-blog__game-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-blog__game-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-blog__game-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-blog__game-title a:hover {
  text-decoration: underline;
}

.page-blog__game-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-blog__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  color: #26A9E0;
  list-style: none;
}

.page-blog__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-blog__faq-answer p {
  margin-bottom: 10px;
}

.page-blog__advice-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-blog__advice-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  text-align: left;
  color: #ffffff;
}

.page-blog__advice-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-blog__advice-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-blog__final-cta {
  padding-bottom: 60px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.5em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
}

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

  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-blog__hero-image-wrapper {
    max-height: 400px;
  }

  .page-blog__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__main-title {
    font-size: 2em;
  }

  .page-blog__description {
    font-size: 1em;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__section {
    padding: 40px 0;
  }

  .page-blog__section-title {
    font-size: 1.8em;
  }

  .page-blog__text-block {
    font-size: 1em;
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-blog__feature-grid,
  .page-blog__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__feature-card,
  .page-blog__game-card,
  .page-blog__step-item,
  .page-blog__faq-item,
  .page-blog__advice-item {
    padding: 20px;
    margin-left: 15px;
    margin-right: 15px;
    box-sizing: border-box !important;
    max-width: calc(100% - 30px) !important;
    width: calc(100% - 30px) !important;
  }

  .page-blog__feature-icon,
  .page-blog__game-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-blog__faq-answer {
    padding: 0 15px 15px;
  }

  /* Ensure all content containers are constrained */
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__why-important,
  .page-blog__how-to-access,
  .page-blog__features,
  .page-blog__faq-section,
  .page-blog__expert-advice,
  .page-blog__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.6em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__feature-title,
  .page-blog__step-title,
  .page-blog__game-title,
  .page-blog__advice-title {
    font-size: 1.2em;
  }
}