/* style/blog.css */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff; /* Default light background */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

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

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

.page-blog__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #26A9E0;
  margin-bottom: 15px;
  max-width: 100%;
  font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for responsive H1 */
}

.page-blog__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-blog__section {
  padding: 60px 0;
  box-sizing: border-box;
  width: 100%;
}

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

.page-blog__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-blog__sub-title {
  font-size: clamp(1.4em, 2.5vw, 1.8em);
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-blog__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-blog__list-item {
  margin-bottom: 10px;
}

.page-blog__image-with-text {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-blog__image-with-text--reversed {
  flex-direction: row-reverse;
}

.page-blog__image-content {
  flex: 1;
  max-width: 50%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-blog__image-with-text .page-blog__text-block {
  flex: 1;
  max-width: 50%;
}

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

.page-blog__game-card,
.page-blog__blog-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__game-card:hover,
.page-blog__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.page-blog__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__game-card .page-blog__card-title,
.page-blog__blog-card .page-blog__card-title {
  font-size: 1.25em;
  color: #26A9E0;
  margin: 15px;
  font-weight: bold;
}

.page-blog__game-card .page-blog__card-description,
.page-blog__blog-card .page-blog__card-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin: 0 15px 15px;
  flex-grow: 1;
}

.page-blog__card-meta {
  font-size: 0.85em;
  color: #888888;
  margin: 0 15px 10px;
}

.page-blog__btn-small {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  margin: 0 15px 15px;
  transition: background-color 0.3s ease;
}

.page-blog__btn-small:hover {
  background-color: #1e87b6;
}

.page-blog__view-all-button {
  text-align: center;
  margin-top: 50px;
}

.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-blog__btn-primary:hover,
.page-blog__cta-button:hover {
  background-color: #1e87b6;
  border-color: #1e87b6;
}

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

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b6;
  border-color: #1e87b6;
}

/* Dark background sections */
.page-blog__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

.page-blog__dark-bg .page-blog__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-blog__dark-bg .page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b6;
  border-color: #f0f0f0;
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 30px;
}

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

.page-blog__dark-bg .page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  position: relative;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

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

.page-blog__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−';
}

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

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 10px 0 30px 0;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-blog__hero-description {
    font-size: 1em;
  }

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

  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__section-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
    margin-bottom: 30px;
  }

  .page-blog__sub-title {
    font-size: clamp(1.2em, 4.5vw, 1.5em);
  }

  .page-blog__image-with-text {
    flex-direction: column;
    gap: 20px;
  }

  .page-blog__image-with-text--reversed {
    flex-direction: column;
  }

  .page-blog__image-content {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .page-blog__image-with-text .page-blog__text-block {
    max-width: 100%;
  }

  .page-blog__games-grid,
  .page-blog__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__card-image {
    height: 180px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__game-card .page-blog__btn-small {
    width: calc(100% - 30px);
    margin-left: 15px;
    margin-right: 15px;
    text-align: center;
  }

  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__image-with-text,
  .page-blog__games-grid,
  .page-blog__blog-grid,
  .page-blog__game-card,
  .page-blog__blog-card,
  .page-blog__faq-section,
  .page-blog__faq-list,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

  .page-blog__faq-toggle {
    font-size: 1.2em;
  }
}