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

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFF3E6; /* Text Main */
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.5); /* Glow */
}

.page-blog__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #FFA53A; /* Auxiliary color */
}

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

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

.page-blog__hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 800px;
  background: linear-gradient(180deg, rgba(255, 165, 58, 0.2) 0%, rgba(217, 104, 0, 0.2) 100%);
  border-radius: 10px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid #A84F0C; /* Border */
}

.page-blog__hero-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #FFF3E6; /* Text Main */
  margin-bottom: 15px;
  text-shadow: 0 0 15px rgba(255, 176, 77, 0.7);
  line-height: 1.2;
}

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

.page-blog__hero-cta {
  display: inline-block;
  padding: 14px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-blog__hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
}

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

.page-blog__post-card {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 140, 26, 0.3);
}

.page-blog__post-link {
  text-decoration: none;
  display: block;
  color: #FFF3E6;
}

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

.page-blog__post-content {
  padding: 20px;
}

.page-blog__post-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFA53A;
  line-height: 1.3;
}

.page-blog__post-excerpt {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 15px;
  line-height: 1.5;
}

.page-blog__post-date {
  font-size: 14px;
  color: #A84F0C;
  display: block;
}

.page-blog__view-all-button-wrapper {
  text-align: center;
}

.page-blog__view-all-btn {
  display: inline-block;
  padding: 12px 25px;
  font-size: 17px;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-blog__view-all-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

/* About gaking79 Section */
.page-blog__about-gaking79 {
  padding: 80px 0;
  background-color: #0D0E12; /* Background */
}

.page-blog__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-blog__text-content {
  flex: 1;
}

.page-blog__text-content p {
  font-size: 17px;
  margin-bottom: 20px;
  color: #FFF3E6;
  line-height: 1.7;
}

.page-blog__image-content {
  flex: 1;
  text-align: center;
}

.page-blog__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 2px solid #A84F0C;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF3E6; /* Text Main */
  font-weight: 600;
  font-size: 18px;
}

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: rgba(255, 140, 26, 0.1);
}

.page-blog__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
  color: #FFA53A;
}

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFF3E6; /* Text Main */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: #0D0E12; /* Background */
  border-radius: 0 0 10px 10px;
  color: #FFF3E6;
}

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

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, #FF8C1A 0%, #D96800 100%);
  color: #ffffff;
}

.page-blog__cta-section .page-blog__section-title {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-section .page-blog__section-subtitle {
  color: #ffffff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  font-size: 19px;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: #17191F; /* Card BG as background for contrast */
  color: #FFA53A;
  border: 2px solid #FFA53A;
}

.page-blog__btn-primary:hover {
  background: #0D0E12;
  color: #FFB04D;
  border-color: #FFB04D;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary {
  background: #FFA53A;
  color: #17191F; /* Card BG for text */
  border: 2px solid #FFA53A;
}

.page-blog__btn-secondary:hover {
  background: #FFB04D;
  color: #0D0E12;
  border-color: #FFB04D;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 15px;
  }
  .page-blog__hero-title {
    font-size: clamp(24px, 5vw, 40px);
  }
  .page-blog__hero-description {
    font-size: 16px;
  }
  .page-blog__section-title {
    font-size: 30px;
  }
  .page-blog__posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__post-image {
    height: 200px;
  }
  .page-blog__post-title {
    font-size: 20px;
  }
  .page-blog__about-gaking79 .page-blog__content-wrapper {
    flex-direction: column;
  }
  .page-blog__image-content {
    order: -1;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px !important;
    min-height: auto;
  }
  .page-blog__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    height: auto !important;
    filter: brightness(0.8) !important; /* Slightly brighter for mobile */
  }
  .page-blog__hero-content {
    padding: 25px 15px;
    margin-top: -50px; /* Adjust overlap for mobile */
  }
  .page-blog__hero-title {
    font-size: clamp(24px, 8vw, 36px) !important;
    margin-bottom: 10px;
  }
  .page-blog__hero-description {
    font-size: 15px !important;
    margin-bottom: 20px;
  }
  .page-blog__hero-cta {
    padding: 12px 25px !important;
    font-size: 16px !important;
  }

  .page-blog__section-title {
    font-size: 26px !important;
    margin-bottom: 15px;
  }
  .page-blog__section-subtitle {
    font-size: 15px !important;
    margin-bottom: 25px;
  }
  .page-blog__latest-posts, .page-blog__about-gaking79, .page-blog__faq-section, .page-blog__cta-section {
    padding: 40px 0 !important;
  }

  .page-blog__posts-grid {
    grid-template-columns: 1fr !important; /* Single column for mobile */
    gap: 20px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-blog__post-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__post-image {
    height: 180px !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-blog__post-title {
    font-size: 18px !important;
  }
  .page-blog__post-excerpt {
    font-size: 14px !important;
  }

  .page-blog__text-content p {
    font-size: 15px !important;
  }
  .page-blog__about-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px !important;
    font-size: 16px !important;
  }
  .page-blog__faq-qtext {
    font-size: 16px !important;
  }
  .page-blog__faq-toggle {
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px !important;
  }
  .page-blog__faq-answer p {
    font-size: 15px !important;
  }

  .page-blog__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 17px !important;
    box-sizing: border-box !important;
  }

  /* General image and container rules for mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__container,
  .page-blog__content-wrapper,
  .page-blog__text-content,
  .page-blog__image-content,
  .page-blog__post-card,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
   .page-blog__container {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-content {
    margin-top: -30px;
  }
  .page-blog__section-title {
    font-size: 22px !important;
  }
  .page-blog__section-subtitle {
    font-size: 14px !important;
  }
  .page-blog__post-title {
    font-size: 16px !important;
  }
  .page-blog__post-excerpt {
    font-size: 13px !important;
  }
  .page-blog__post-image {
    height: 150px !important;
  }
  details.page-blog__faq-item summary.page-blog__faq-question {
    font-size: 15px !important;
  }
  .page-blog__faq-qtext {
    font-size: 15px !important;
  }
  .page-blog__faq-answer p {
    font-size: 14px !important;
  }
}