/* Màu sắc tùy chỉnh */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-page: #F4F7FB;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

/* General Page Styling */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background-page); /* Page background from custom colors */
}

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-black);
  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: var(--primary-color);
  border-radius: 2px;
}

.page-blog__sub-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-blog__mini-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
}

.page-blog a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

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

.page-blog__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-blog__btn-secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 80px;
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.1;
  overflow: hidden;
}

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

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

.page-blog__main-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-blog__hero-description {
  font-size: 19px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

/* Latest Articles Section */
.page-blog__latest-articles {
  padding: 80px 0;
  background-color: var(--background-page);
}

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

.page-blog__article-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-blog__card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.4;
  flex-grow: 1;
}

.page-blog__card-title a {
  color: var(--text-main);
}

.page-blog__card-title a:hover {
  color: var(--primary-color);
}

.page-blog__card-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}

.page-blog__card-summary {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.page-blog__read-more {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
}

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

.page-blog__view-all-button-container {
  text-align: center;
}

/* Featured Topics Section */
.page-blog__featured-topics {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: #ffffff;
}

.page-blog__featured-topics .page-blog__section-title {
  color: #ffffff;
}

.page-blog__featured-topics .page-blog__section-title::after {
  background: #ffffff;
}

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

.page-blog__topic-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-blog__topic-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

.page-blog__topic-card img {
  
  
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
}

.page-blog__topic-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-blog__topic-description {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-blog__topic-card .page-blog__read-more {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 2px;
}

.page-blog__topic-card .page-blog__read-more:hover {
  color: #e0e0e0;
  border-color: #e0e0e0;
}

/* Deep Dive Article / SEO Content Section */
.page-blog__content-area {
  padding: 80px 0;
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-blog__article-body {
  max-width: 900px;
}

.page-blog__article-figure {
  margin: 40px auto;
  text-align: center;
  max-width: 100%;
}

.page-blog__article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.page-blog__article-figure figcaption {
  font-size: 15px;
  color: #777;
  margin-top: 10px;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
}

.page-blog__cta-section .page-blog__section-title {
  color: #ffffff;
  font-size: 32px;
}

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

.page-blog__cta-section p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: var(--background-page);
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main);
  font-weight: 600;
}
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: #f5f5f5;
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__hero-content {
    padding: 60px 15px 0;
  }
  .page-blog__main-title {
    font-size: clamp(30px, 4.5vw, 42px);
  }
  .page-blog__hero-description {
    font-size: 18px;
  }
  .page-blog__section-title {
    font-size: 32px;
  }
  .page-blog__sub-title {
    font-size: 26px;
  }
  .page-blog__mini-title {
    font-size: 20px;
  }
  .page-blog__articles-grid,
  .page-blog__topics-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 50px;
  }
  .page-blog__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__hero-content {
    padding: 40px 15px 0;
  }
  .page-blog__main-title {
    font-size: clamp(28px, 8vw, 36px);
  }
  .page-blog__hero-description {
    font-size: 16px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 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__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-blog__sub-title {
    font-size: 24px;
  }
  .page-blog__mini-title {
    font-size: 18px;
  }
  .page-blog__articles-grid,
  .page-blog__topics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__article-card img,
  .page-blog__topic-card img {
    height: auto;
  }
  .page-blog__latest-articles,
  .page-blog__featured-topics,
  .page-blog__content-area,
  .page-blog__cta-section,
  .page-blog__faq-section {
    padding: 50px 0;
  }
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__article-body {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 15px; }
  details.page-blog__faq-item .page-blog__faq-answer { padding: 0 15px 15px; }
  .page-blog__article-figure {
    margin: 30px auto;
  }
  .page-blog__article-figure img {
    width: 100%;
  }
  .page-blog__article-figure figcaption {
    font-size: 14px;
  }
}