/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

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

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

.page-blog__section-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 20px;
}

.page-blog__section-subtitle {
  font-size: 1.2em;
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
  margin-bottom: 40px;
}

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

.page-blog__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 700;
  color: #F2C14E; /* Main color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.1em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-outline,
.page-blog__btn-lg {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #0A0A0A;
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-outline {
  background: transparent;
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E;
  padding: 10px 20px;
}

.page-blog__btn-outline:hover {
  background: #F2C14E;
  color: #0A0A0A;
}

.page-blog__btn-lg {
  padding: 15px 35px;
  font-size: 1.1em;
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
  background-color: #0A0A0A; /* Background */
}

.page-blog__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.page-blog__blog-card {
  background-color: #111111; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.page-blog__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(242, 193, 78, 0.2);
}

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

.page-blog__blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-blog__blog-card-title {
  font-size: 1.4em;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__blog-card-excerpt {
  font-size: 0.95em;
  color: #FFF6D6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__blog-card-date {
  font-size: 0.85em;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
}

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

/* Categories Section */
.page-blog__categories-section {
  background-color: #111111; /* Card BG */
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.page-blog__category-card {
  background-color: #0A0A0A;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #FFF6D6;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  background-color: rgba(242, 193, 78, 0.1);
}

.page-blog__category-image {
  width: 100%;
  max-width: 150px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 15px auto;
  display: block;
}

.page-blog__category-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #F2C14E;
}

/* CTA Banner */
.page-blog__cta-banner {
  background: linear-gradient(90deg, #F2C14E, #FFD36B);
  padding: 80px 0;
  text-align: center;
}

.page-blog__cta-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-blog__cta-text {
  max-width: 800px;
  color: #0A0A0A;
}

.page-blog__cta-title {
  font-size: 2.5em;
  color: #0A0A0A;
  margin-bottom: 20px;
}

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

.page-blog__cta-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* FAQ Section */
.page-blog__faq-section {
  background-color: #0A0A0A; /* Background */
}

.page-blog__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-item[open] {
  background-color: #1a1a1a;
}

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

.page-blog__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  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 20px;
  font-size: 1em;
  color: #FFF6D6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-blog__faq-item[open] .page-blog__faq-answer {
  max-height: 500px; /* Arbitrary large value for smooth expansion */
  padding-top: 10px;
}

/* More Articles Section (Slider) */
.page-blog__more-articles-section {
  background-color: #0A0A0A; /* Background */
}

.page-blog__blog-slider {
  position: relative;
  margin-top: 40px;
}

.page-blog__slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none; /* Allow clicks on cards */
}

.page-blog__slider-prev,
.page-blog__slider-next {
  background-color: rgba(242, 193, 78, 0.8);
  color: #0A0A0A;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  pointer-events: auto; /* Enable clicks on buttons */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-blog__slider-prev:hover,
.page-blog__slider-next:hover {
  background-color: #FFD36B;
}

.page-blog__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 25px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
}

.page-blog__blog-slide {
  flex: 0 0 calc(33.333% - 16.666px); /* 3 cards per row, accounting for gap */
  max-width: calc(33.333% - 16.666px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 20px 30px;
  }

  .page-blog__hero-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

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

  .page-blog__blog-masonry {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-blog__blog-slide {
    flex: 0 0 calc(50% - 12.5px); /* 2 cards per row */
    max-width: calc(50% - 12.5px);
  }

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

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

  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
  }

  .page-blog__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }

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

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

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

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-blog__section-subtitle {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* Buttons - Mobile */
  .page-blog__btn-primary,
  .page-blog__btn-outline,
  .page-blog__btn-lg,
  .page-blog a[class*="button"],
  .page-blog 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 !important;
    padding-right: 15px !important;
  }

  /* Button containers - Mobile */
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-blog__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* Images - Mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Content containers - Mobile */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__cta-content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Latest Articles Section - Mobile */
  .page-blog__blog-masonry {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__blog-card-title {
    font-size: 1.2em;
  }

  /* Categories Section - Mobile */
  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-blog__category-title {
    font-size: 1em;
  }

  /* CTA Banner - Mobile */
  .page-blog__cta-banner {
    padding: 40px 0;
  }

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

  .page-blog__cta-image {
    max-width: 300px;
  }

  /* FAQ Section - Mobile */
  .page-blog__faq-question {
    font-size: 1em;
    padding: 15px;
  }

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

  /* More Articles Slider - Mobile */
  .page-blog__blog-slider-track {
    gap: 15px;
  }

  .page-blog__blog-slide {
    flex: 0 0 100%; /* 1 card per row */
    max-width: 100%;
  }

  .page-blog__slider-prev,
  .page-blog__slider-next {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .page-blog__section-title {
    font-size: 1.5em;
  }

  .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }
}

/* Default styles for specific elements mentioned in shared.css for completeness, though not strictly required for this page */
.page-blog__row-games, .page-blog__row-sport, .page-blog__row-coop { /* Not used on blog page, but included for completeness as per template */
  background-color: #1A202C;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
}
.page-blog__games-title, .page-blog__sport-title, .page-blog__coop-title { /* Not used on blog page, but included for completeness as per template */
  color: #fff;
  text-align: center;
}
.page-blog__slider-wrapper { /* General slider wrapper, used by blog-slider-track */
  overflow: hidden;
}
.page-blog__slider-track { /* General slider track, adapted for blog-slider-track */
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
}
.page-blog__game-slide { /* Not used on blog page, but included for completeness as per template */
  flex: 0 0 200px;
  max-width: 200px;
}
.page-blog__banners-top-wrapper { /* Not used on blog page, but included for completeness as per template */
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.page-blog__banner-item img { /* Not used on blog page, but included for completeness as per template */
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}