/* style/blog.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần lặp lại */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Assuming body handles the actual background */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* 上图下文 */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #26A9E0; /* Using brand primary color for hero background */
  color: #ffffff;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-blog__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for responsive H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-blog__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 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: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-blog__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b7;
  border-color: #1e87b7;
}

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

.page-blog__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand primary color for titles */
}

.page-blog__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for this section */
  color: #333333;
}

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

.page-blog__post-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 400px; /* Ensure cards have a minimum height */
  display: flex;
  flex-direction: column;
}

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

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

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card images */
  object-fit: cover;
  display: block;
}

.page-blog__post-content {
  padding: 20px;
  flex-grow: 1; /* Allows content to expand and push date to bottom */
  display: flex;
  flex-direction: column;
}

.page-blog__post-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
  flex-grow: 1; /* Allows title to take up available space */
}

.page-blog__post-excerpt {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 15px;
}

.page-blog__post-date {
  font-size: 0.85rem;
  color: #777777;
  display: block;
  text-align: right;
}

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

/* About Keovip Section */
.page-blog__about-keovip {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand primary color for this section */
  color: #ffffff;
}

.page-blog__about-keovip .page-blog__section-title {
  color: #ffffff;
  margin-bottom: 40px;
}

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

.page-blog__text-content {
  flex: 1;
  min-width: 300px;
}

.page-blog__text-content p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-blog__text-content p strong {
  color: #ffffff;
}

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

.page-blog__about-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: block;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: #f0f8ff; /* Light background for FAQ */
  color: #333333;
}

.page-blog__faq-section .page-blog__section-title {
  color: #26A9E0;
  margin-bottom: 40px;
}

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

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

.page-blog__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: #333333;
  background-color: #fdfdfd;
  transition: background-color 0.3s ease;
}

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

.page-blog__faq-item summary:hover {
  background-color: #f0f0f0;
}

.page-blog__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

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

.page-blog__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #555555;
}

.page-blog__faq-answer p {
  margin-bottom: 10px;
}

/* Call to Action Bottom Section */
.page-blog__cta-bottom {
  padding: 80px 0;
  text-align: center;
  background-color: #000000; /* Dark background as specified for #000000 */
  color: #ffffff;
}

.page-blog__cta-bottom .page-blog__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-blog__cta-bottom .page-blog__description {
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 768px) {
  /* Global image, video, button responsive rules */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog video,
  .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__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper,
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container,
  .page-blog__post-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding for hero on mobile */
  }

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

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

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

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

  .page-blog__latest-posts,
  .page-blog__about-keovip,
  .page-blog__faq-section,
  .page-blog__cta-bottom {
    padding: 60px 0;
  }

  .page-blog__section-title {
    font-size: 1.8rem;
  }

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

  .page-blog__post-card {
    min-height: auto;
  }

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

  .page-blog__content-wrapper {
    flex-direction: column;
  }

  .page-blog__text-content,
  .page-blog__image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-blog__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }

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

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: clamp(1.5rem, 9vw, 2rem);
  }
  .page-blog__section-title {
    font-size: 1.6rem;
  }
  .page-blog__description,
  .page-blog__text-content p,
  .page-blog__post-excerpt,
  .page-blog__faq-answer p {
    font-size: 0.9rem;
  }
  .page-blog__post-title {
    font-size: 1.1rem;
  }
}