.page-blog {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D;
  background: #F4F7FB;
  line-height: 1.6;
}

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

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-blog__section-description {
  font-size: 18px;
  color: #667eea;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__section-description--light {
  color: #D6E2FF;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-blog__btn-secondary {
  background: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 2px 10px rgba(47, 107, 255, 0.1);
}

.page-blog__btn-secondary:hover {
  background: #F4F7FB;
  color: #2F6BFF;
  border-color: #4A8BFF;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

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

.page-blog__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-blog__hero-content-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-blog__main-title {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.2;
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
}

.page-blog__hero-description {
  font-size: 18px;
  color: #D6E2FF;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

/* Introduction Section */
.page-blog__introduction-section {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  margin-top: -80px;
  position: relative;
  z-index: 1;
}

/* Articles Grid */
.page-blog__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog__article-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-blog__article-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
}

.page-blog__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-title {
  font-size: 20px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__article-meta {
  font-size: 14px;
  color: #6FA3FF;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 15px;
  color: #1F2D3D;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-btn {
  display: inline-block;
  color: #2F6BFF;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__read-more-btn:hover {
  color: #4A8BFF;
}

.page-blog__view-all-wrapper {
  text-align: center;
  margin-top: 20px;
}

/* Dark Section Specific Styles */
.page-blog__dark-section {
  background: #2F6BFF;
  color: #ffffff;
}

.page-blog__article-card--dark {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__article-card--dark .page-blog__article-title,
.page-blog__article-card--dark .page-blog__article-excerpt {
  color: #ffffff;
}

.page-blog__article-card--dark .page-blog__article-meta {
  color: #A5C4FF;
}

.page-blog__article-card--dark .page-blog__read-more-btn {
  color: #A5C4FF;
}

.page-blog__article-card--dark .page-blog__read-more-btn:hover {
  color: #ffffff;
}

/* Featured Games Section */
.page-blog__feature-highlight {
  display: flex;
  gap: 40px;
  align-items: center;
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 40px;
}

.page-blog__feature-image {
  flex-shrink: 0;
  width: 600px;
  height: 450px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.page-blog__feature-content {
  flex-grow: 1;
}

.page-blog__feature-title {
  font-size: 30px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-blog__feature-content p {
  font-size: 16px;
  color: #1F2D3D;
  margin-bottom: 25px;
  line-height: 1.7;
}

/* Why Choose Section */
.page-blog__why-choose-section {
  background: #F4F7FB;
}

.page-blog__why-choose-content {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-blog__why-choose-image {
  flex-shrink: 0;
  width: 600px;
  height: 450px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-blog__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.page-blog__feature-list li {
  font-size: 18px;
  color: #1F2D3D;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
}

.page-blog__list-icon {
  color: #2F6BFF;
  font-weight: 700;
  font-size: 20px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* FAQ Section */
.page-blog__faq-section {
  background: #FFFFFF;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #fff;
}

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: #F4F7FB;
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #F4F7FB;
  border-radius: 0 0 5px 5px;
  color: #1F2D3D;
}

.page-blog__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* Final CTA Section */
.page-blog__cta-final-section {
  background: #2F6BFF;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-content-wrapper {
    max-width: 700px;
  }
  .page-blog__feature-highlight,
  .page-blog__why-choose-content {
    flex-direction: column;
    padding: 30px;
  }
  .page-blog__feature-image,
  .page-blog__why-choose-image {
    width: 100%;
    height: auto;
    max-width: 500px;
  }
  .page-blog__feature-list {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-blog__section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 15px;
  }
  .page-blog__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-blog__text-block {
    font-size: 15px;
  }

  /* Hero Section */
  .page-blog__hero-image-wrapper {
    height: 300px;
  }
  .page-blog__hero-image {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important;
  }
  .page-blog__hero-content-wrapper {
    position: static;
    transform: none;
    padding: 20px;
    background: none;
    box-shadow: none;
    margin-top: -80px; /* Adjust to pull content up */
  }
  .page-blog__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 10px;
    color: #1F2D3D; /* Darker text on lighter background */
    text-shadow: none;
  }
  .page-blog__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
    color: #1F2D3D; /* Darker text on lighter background */
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-blog__btn-primary, .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  /* Introduction Section */
  .page-blog__introduction-section {
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* Articles Grid */
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__article-card {
    margin: 0 15px;
  }
  .page-blog__article-image {
    height: 180px;
  }
  .page-blog__article-title {
    font-size: 18px;
  }
  .page-blog__article-excerpt {
    font-size: 14px;
  }

  /* Featured Games Section */
  .page-blog__feature-highlight {
    flex-direction: column;
    padding: 20px;
    margin: 0 15px;
  }
  .page-blog__feature-image {
    width: 100%;
    max-width: 100% !important;
    height: auto !important;
  }
  .page-blog__feature-title {
    font-size: 24px;
  }
  .page-blog__feature-content p {
    font-size: 15px;
  }

  /* Why Choose Section */
  .page-blog__why-choose-content {
    flex-direction: column;
  }
  .page-blog__why-choose-image {
    width: 100%;
    max-width: 100% !important;
    height: auto !important;
  }
  .page-blog__feature-list {
    width: 100%;
    padding: 0 15px;
  }
  .page-blog__feature-list li {
    font-size: 15px;
    margin-bottom: 10px;
  }

  /* FAQ Section */
  details.page-blog__faq-item {
    margin: 0 15px 15px;
  }
  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 16px; }
  .page-blog__faq-toggle { font-size: 20px; width: 24px; }
  details.page-blog__faq-item .page-blog__faq-answer { padding: 0 15px 15px; }
  .page-blog__faq-answer p {
    font-size: 15px;
  }

  /* General image and container rules for mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__container,
  .page-blog__articles-grid,
  .page-blog__feature-highlight,
  .page-blog__why-choose-content,
  .page-blog__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__container {
    padding: 0 15px;
  }
}