/* style/blog.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không cần thêm ở đây */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Mặc định màu chữ tối cho nền sáng */
  line-height: 1.6;
}

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  overflow: hidden;
  color: #ffffff;
  background-color: #26A9E0;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-blog__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 10px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-blog__btn-primary:hover {
  background-color: #d46a00;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

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

.page-blog__latest-posts,
.page-blog__guides-section,
.page-blog__cta-section {
  background-color: #ffffff;
  color: #333333;
}

.page-blog__categories-section,
.page-blog__faq-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-blog__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: inherit;
}

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

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

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

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

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

.page-blog__post-image,
.page-blog__category-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-blog__post-title,
.page-blog__category-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-blog__post-meta {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-blog__post-excerpt,
.page-blog__category-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__read-more {
  color: #26A9E0;
  font-weight: bold;
  text-decoration: none;
  align-self: flex-start;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

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

.page-blog__guides-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-blog__guide-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-blog__guide-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-blog__guide-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

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

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-blog__faq-question::marker {
  display: none;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-blog__cta-section {
  text-align: center;
  padding: 60px 20px;
}

.page-blog__cta-section .page-blog__description {
  margin-top: 20px;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-blog__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }
}

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

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

  .page-blog__hero-content {
    padding: 0 15px;
  }

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

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

  .page-blog__cta-button {
    width: 100% !important;
    margin: 10px 0 !important;
    padding: 12px 15px;
  }

  .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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-blog__posts-grid,
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__container {
    padding: 30px 15px;
  }

  .page-blog__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
  }

  .page-blog__post-card,
  .page-blog__category-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-blog__post-image,
  .page-blog__category-image {
    height: 180px;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

@media (max-width: 480px) {
  .page-blog__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }

  .page-blog__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }

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

  .page-blog__cta-button {
    padding: 10px 15px;
  }

  .page-blog__container {
    padding: 20px 10px;
  }

  .page-blog__section-title {
    font-size: clamp(1.3em, 6vw, 1.8em);
  }

  .page-blog__faq-question {
    padding: 15px 18px;
    font-size: 1em;
  }

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