/* style/blog.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Matches body background */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  background-color: #FFFFFF;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
}

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

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: #26A9E0;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-blog__subtitle {
  font-size: 1.1rem;
  color: #555555;
  margin-bottom: 30px;
}

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

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

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

.page-blog__btn-primary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
}

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

.page-blog__btn-secondary:hover {
  background-color: #e0f2f7;
}

.page-blog__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #FFFFFF;
  color: #333333;
}

.page-blog__dark-section {
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
}

.page-blog__dark-section .page-blog__section-title,
.page-blog__dark-section h3 {
  color: #FFFFFF;
}

.page-blog__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 40px;
  text-align: center;
}

.page-blog__sub-section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog p {
  margin-bottom: 15px;
  font-size: 1rem;
}

.page-blog ul,
.page-blog ol {
  margin-bottom: 15px;
  padding-left: 25px;
}

.page-blog li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.page-blog__image-with-text {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.page-blog__content-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-blog__product-card,
.page-blog__promo-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  text-align: left;
  color: #333333;
}

.page-blog__product-card .page-blog__card-image,
.page-blog__promo-card .page-blog__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-blog__product-card .page-blog__card-title,
.page-blog__promo-card .page-blog__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #26A9E0;
  padding: 15px 20px 10px;
}

.page-blog__product-card p,
.page-blog__promo-card p {
  font-size: 0.95rem;
  color: #555555;
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-blog__btn-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background-color: #26A9E0;
  color: #FFFFFF;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-blog__btn-link:hover {
  background-color: #1a8cc4;
}

.page-blog__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-blog__faq-list {
  margin-top: 30px;
}

.page-blog__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #FFFFFF;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

.page-blog__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-blog__faq-item[open] .page-blog__faq-question {
  border-bottom: 1px solid #e0e0e0; /* Consistent border for open state */
}

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

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-blog__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #555555;
  background-color: #f9f9f9;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__image-with-text {
    flex-direction: column;
  }
  .page-blog__content-image {
    max-width: 100%;
    margin-bottom: 20px;
  }
  .page-blog__hero-content {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-blog__subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  .page-blog__content-area,
  .page-blog__dark-section {
    padding: 40px 15px;
  }
  .page-blog__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }
  .page-blog__sub-section-title {
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
  }
  .page-blog p,
  .page-blog li {
    font-size: 0.95rem;
  }
  .page-blog__product-grid,
  .page-blog__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-blog__faq-answer {
    padding: 12px 20px 15px;
  }
  
  /* Mobile image and video responsive adaptation */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog video {
    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-section,
  .page-blog__intro-section,
  .page-blog__access-guide,
  .page-blog__products-section,
  .page-blog__promotions-section,
  .page-blog__security-section,
  .page-blog__faq-section,
  .page-blog__conclusion-section,
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no overflow */
  }
  /* Adjust specific padding for full-width sections that don't need inner padding */
  .page-blog__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-blog__dark-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-blog__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-blog__product-card p,
  .page-blog__promo-card p {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__btn-link {
    margin-left: 15px;
    margin-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-blog__section-title {
    font-size: clamp(1.3rem, 6vw, 2rem);
  }
  .page-blog__faq-question {
    font-size: 0.95rem;
  }
}