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

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding, shared.css handles header offset */
  background: linear-gradient(180deg, rgba(13, 14, 18, 0.8) 0%, rgba(13, 14, 18, 1) 100%); /* Subtle gradient overlay */
}

.page-blog__hero-image {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 20px;
}

.page-blog__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop */
  object-position: center;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: 3.2em;
  font-weight: 700;
  color: #FFF3E6;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-blog__btn-primary {
  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__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #FFA53A;
  border: 2px solid #FFA53A;
  box-shadow: 0 2px 8px rgba(255, 165, 58, 0.2);
}

.page-blog__btn-secondary:hover {
  background: #FFA53A;
  color: #ffffff;
  border-color: #FFA53A;
  box-shadow: 0 4px 12px rgba(255, 165, 58, 0.4);
  transform: translateY(-2px);
}

/* General Section Styling */
.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #FF8C1A; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-blog__section-subtitle {
  font-size: 1.1em;
  color: #E0E0E0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 60px 0;
  background: #0D0E12; /* Dark background for blog list */
}

.page-blog__latest-posts .page-blog__section-title {
  color: #FF8C1A;
}
.page-blog__latest-posts .page-blog__section-subtitle {
  color: #E0E0E0;
}


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

.page-blog__post-card {
  background: #17191F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #FFF3E6;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.page-blog__post-card a {
  text-decoration: none;
  color: inherit;
}

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

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

.page-blog__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFB04D; /* Glow color for titles */
  line-height: 1.3;
}

.page-blog__card-title a {
  color: #FFB04D;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #FFA53A;
}

.page-blog__post-meta {
  font-size: 0.9em;
  color: #A84F0C; /* Border color for meta info */
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1em;
  color: #E0E0E0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-btn {
  display: inline-block;
  color: #FFA53A;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #FFA53A;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more-btn:hover {
  background: #FFA53A;
  color: #17191F;
}

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

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

.page-blog__about-kk88 .page-blog__section-title {
  color: #FF8C1A;
}

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

.page-blog__text-block {
  flex: 1;
  color: #FFF3E6;
}

.page-blog__text-block p {
  margin-bottom: 20px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-blog__image-block {
  flex: 0 0 450px; /* Fixed width for image block */
  max-width: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-blog__image-block img {
  width: 100%;
  height: auto;
  display: block;
}

/* Featured Categories Section */
.page-blog__featured-categories {
  padding: 80px 0;
  background: #0D0E12;
}

.page-blog__featured-categories .page-blog__section-title {
  color: #FF8C1A;
}
.page-blog__featured-categories .page-blog__section-subtitle {
  color: #E0E0E0;
}

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

.page-blog__category-card {
  background: #17191F;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 25px;
  color: #FFF3E6;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.page-blog__category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-blog__category-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #FFB04D;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-blog__category-card p {
  font-size: 1em;
  color: #E0E0E0;
  margin-bottom: 20px;
  padding: 0 20px;
}

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

.page-blog__faq-section .page-blog__section-title {
  color: #FF8C1A;
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF3E6;
}
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;
}
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); /* Subtle hover effect */
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFB04D; /* Glow color for FAQ questions */
}
.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: rgba(23, 25, 31, 0.8); /* Slightly lighter than card BG */
  border-radius: 0 0 8px 8px;
  color: #E0E0E0;
}
.page-blog__faq-answer p {
    margin-bottom: 10px;
    font-size: 1em;
    line-height: 1.6;
}
.page-blog__faq-answer p:last-child {
    margin-bottom: 0;
}


/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #D96800 0%, #FF8C1A 100%); /* Deep Orange to Primary */
  box-shadow: inset 0 5px 20px rgba(0,0,0,0.3);
}

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

.page-blog__cta-section .page-blog__section-subtitle {
  color: #fff3e6;
  margin-bottom: 40px;
}

.page-blog__cta-content {
    max-width: 900px;
}


/* Universal Image Styling for responsiveness */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2.2em;
  }
  .page-blog__image-block {
    flex: 0 0 350px;
    max-width: 350px;
  }
}

@media (max-width: 849px) {
  /* HERO 主图区域: object-fit:contain */
  .page-blog__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important; /* Remove fixed aspect ratio if any */
  }
}

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

  .page-blog__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }
  .page-blog__hero-image {
    max-height: 400px; /* Adjust height for mobile */
    margin-bottom: 15px;
  }
  .page-blog__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Ensure image is contained */
    aspect-ratio: unset !important;
  }
  .page-blog__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
    margin-bottom: 10px;
  }
  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to buttons container */
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Section Titles & Subtitles */
  .page-blog__section-title {
    font-size: clamp(1.8em, 7vw, 2em);
    margin-bottom: 15px;
    padding-top: 30px;
  }
  .page-blog__section-subtitle {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  /* Latest Posts Grid */
  .page-blog__latest-posts {
    padding: 40px 0;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .page-blog__post-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  .page-blog__post-card img {
     /* Adjust card image height */
  }
  .page-blog__card-content {
    padding: 20px;
  }
  .page-blog__card-title {
    font-size: 1.2em;
  }
  .page-blog__post-meta {
    font-size: 0.85em;
  }
  .page-blog__card-excerpt {
    font-size: 0.95em;
  }
  .page-blog__read-more-btn {
    padding: 7px 12px;
    font-size: 0.9em;
  }
  .page-blog__view-all-button-wrapper {
    margin-top: 40px;
  }

  /* About kk88 Section */
  .page-blog__about-kk88 {
    padding: 50px 0;
  }
  .page-blog__content-wrapper {
    flex-direction: column; /* Stack content on mobile */
    gap: 30px;
    margin-top: 30px;
  }
  .page-blog__text-block {
    text-align: center;
  }
  .page-blog__text-block p {
    font-size: 1em;
  }
  .page-blog__image-block {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }
  .page-blog__image-block img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Featured Categories Section */
  .page-blog__featured-categories {
    padding: 50px 0;
  }
  .page-blog__categories-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .page-blog__category-card img {
    
  }
  .page-blog__category-title {
    font-size: 1.4em;
  }
  .page-blog__category-card p {
    font-size: 0.95em;
  }

  /* FAQ Section */
  .page-blog__faq-section {
    padding: 50px 0;
  }
  .page-blog__faq-list {
    margin-top: 30px;
  }
  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 1em; }
  .page-blog__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 24px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }
  .page-blog__faq-answer p {
    font-size: 0.95em;
  }

  /* CTA Section */
  .page-blog__cta-section {
    padding: 50px 0;
  }

  /* Universal Image Styling for responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all containers containing images or buttons are responsive */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__content-wrapper,
  .page-blog__posts-grid,
  .page-blog__categories-grid,
  .page-blog__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}