/* style/blog.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

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

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body đã có padding-top, đây chỉ là khoảng cách nhỏ */
  text-align: center;
  overflow: hidden;
  background-color: #08160F; /* Fallback */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  opacity: 0.7;
  filter: brightness(0.8); /* Adjust brightness for text readability */
}

.page-blog__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.6); /* Glow */
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #2E7A4E; /* Border */
}

.page-blog__btn-secondary:hover {
  background-color: rgba(87, 227, 141, 0.1);
  color: #F2FFF6; /* Text Main */
  border-color: #57E38D; /* Glow */
}

.page-blog__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #F2C14E; /* Gold */
  border-radius: 2px;
}

.page-blog__recent-posts {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-blog__post-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(87, 227, 141, 0.4); /* Glow */
}

.page-blog__post-thumbnail {
  height: 200px;
  overflow: hidden;
}

.page-blog__post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-blog__post-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #57E38D; /* Glow */
}

.page-blog__post-meta {
  font-size: 0.9em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-blog__read-more-btn {
  display: inline-block;
  color: #F2C14E; /* Gold */
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #F2C14E; /* Gold */
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-blog__read-more-btn:hover {
  color: #57E38D; /* Glow */
  border-color: #57E38D; /* Glow */
}

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

.page-blog__about-123b-code {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

.page-blog__about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-blog__about-text {
  flex: 1;
  min-width: 300px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__about-text h3 {
  font-size: 1.6em;
  color: #F2FFF6; /* Text Main */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog__about-text p {
  margin-bottom: 15px;
}

.page-blog__about-text ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-blog__about-text ul li {
  margin-bottom: 8px;
}

.page-blog__about-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog__about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__cta-buttons--inline {
  justify-content: flex-start;
  margin-top: 30px;
}

.page-blog__faq-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-blog__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-blog__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 20px 30px;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-blog__faq-item:hover {
  background-color: #1a3026;
}

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  list-style: none; /* Remove default marker */
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none; /* Hide Chrome/Safari marker */
}

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  padding-top: 15px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

.page-blog__cta-banner {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #11A84E 0%, #22C768 100%);
  box-shadow: inset 0 5px 20px rgba(0,0,0,0.3);
}

.page-blog__cta-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-blog__cta-description {
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
  .page-blog__hero-content {
    padding: 15px;
    max-width: 90%;
  }

  .page-blog__about-content {
    flex-direction: column;
  }

  .page-blog__about-image {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }

  .page-blog__cta-buttons--inline {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__hero-section {
    padding-bottom: 40px;
  }

  .page-blog__hero-content {
    position: static;
    transform: none;
    background-color: transparent; /* No overlay background on mobile */
    padding: 20px 15px;
    margin-top: -80px; /* Pull content up over the image a bit */
  }

  .page-blog__hero-image-wrapper {
    max-height: 300px;
  }

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

  .page-blog__description {
    font-size: 1em;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

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

  .page-blog__recent-posts,
  .page-blog__about-123b-code,
  .page-blog__faq-section,
  .page-blog__cta-banner {
    padding: 50px 0;
  }

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

  .page-blog__post-card {
    margin: 0 auto;
    max-width: 450px;
  }

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

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

  .page-blog__faq-item summary {
    font-size: 1.1em;
  }

  .page-blog__faq-answer {
    font-size: 0.95em;
  }

  /* Responsive images, videos, and containers */
  .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-image-wrapper,
  .page-blog__post-thumbnail,
  .page-blog__about-image,
  .page-blog__view-all-button-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog__hero-section {
    padding-top: 10px !important;
  }
}