/* ===== Page Blog - vs368 ===== */
.page-blog {
  background: #F5F7FA;
  color: #333333;
  line-height: 1.7;
  overflow-x: hidden;
}

/* HERO */
.page-blog__hero-section {
  padding: 10px 15px 0;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}
.page-blog__hero-image {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-sizing: border-box;
  background: #E53935;
}
.page-blog__hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.page-blog__hero-content {
  margin-top: 22px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.page-blog__page-title {
  color: #333333;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.3px;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  margin: 0 0 14px;
}
.page-blog__intro {
  color: #333333;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  max-width: 900px;
  margin: 0 0 18px;
}
.page-blog__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.page-blog__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #FFFFFF;
  border: 2px solid transparent;
  box-shadow: 0 6px 16px rgba(229, 57, 53, 0.25);
}
.page-blog__btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(229, 57, 53, 0.32);
}
.page-blog__btn-secondary {
  background: #FFFFFF;
  color: #E53935;
  border: 2px solid #E53935;
}
.page-blog__btn-secondary:hover {
  background: #FFF0EF;
}
.page-blog__btn-ghost {
  background: #FFFFFF;
  color: #333333;
  border: 2px solid #E0E0E0;
}
.page-blog__btn-ghost:hover {
  border-color: #E53935;
  color: #E53935;
}

/* Archive section */
.page-blog__archive-section {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 0 15px;
  box-sizing: border-box;
}
.page-blog__section-title {
  color: #333333;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  position: relative;
  padding-left: 16px;
}
.page-blog__section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}
.page-blog__section-desc {
  color: #333333;
  margin: 0 0 24px;
  max-width: 900px;
}

/* Blog grid 4 cols */
.page-blog__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.page-blog__blog-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.page-blog__blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(229, 57, 53, 0.14);
}
.page-blog__blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
  box-sizing: border-box;
}
.page-blog__blog-card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #F5F7FA;
  box-sizing: border-box;
}
.page-blog__blog-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-blog__blog-date {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #FFFFFF;
  border: 2px solid #E53935;
  border-radius: 8px;
  text-align: center;
  padding: 5px 9px;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  color: #333333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.page-blog__blog-date strong {
  font-size: 1rem;
  color: #E53935;
  font-weight: 800;
}
.page-blog__blog-date small {
  font-size: 0.68rem;
  color: #333333;
  font-weight: 600;
  text-transform: uppercase;
}
.page-blog__blog-card-body {
  padding: 16px 16px 20px;
  text-align: left;
  box-sizing: border-box;
}
.page-blog__blog-divider {
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #FF5A4F 0%, #E53935 100%);
  margin: 0 0 12px;
}
.page-blog__blog-card-title {
  color: #333333;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 0 0 8px;
}
.page-blog__blog-card-desc {
  color: #333333;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
  opacity: 0.85;
}

/* Home content (long-form) */
.page-blog__home-content {
  max-width: 1000px;
  margin: 56px auto 0;
  padding: 0 15px;
  box-sizing: border-box;
  color: #333333;
}
.page-blog__home-content h2 {
  color: #333333;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.35;
  margin: 36px 0 14px;
  padding-left: 14px;
  position: relative;
}
.page-blog__home-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}
.page-blog__home-content h2:first-child {
  margin-top: 0;
}
.page-blog__home-content h3 {
  color: #E53935;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.4;
  margin: 22px 0 8px;
}
.page-blog__home-content p {
  color: #333333;
  margin: 0 0 14px;
  line-height: 1.75;
}
.page-blog__home-content a {
  color: #E53935;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-blog__home-content a:hover {
  color: #B71C1C;
}

/* CTA section */
.page-blog__cta-section {
  max-width: 1000px;
  margin: 56px auto 60px;
  padding: 32px 24px;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(229, 57, 53, 0.08);
}
.page-blog__cta-title {
  color: #333333;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.3;
  margin: 0 0 10px;
}
.page-blog__cta-desc {
  color: #333333;
  margin: 0 auto 22px;
  max-width: 720px;
}
.page-blog__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Generic image safeguards */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Mobile (<=768px) ===== */
@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.65;
    max-width: 100%;
    overflow-x: hidden;
  }

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

  .page-blog__hero-content {
    margin-top: 16px !important;
  }

  .page-blog__page-title {
    font-size: clamp(1.35rem, 6vw, 1.75rem) !important;
    line-height: 1.3 !important;
  }

  .page-blog__hero-actions {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog__btn-ghost {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    text-align: center !important;
  }

  .page-blog__archive-section {
    margin-top: 34px !important;
    padding: 0 12px !important;
  }

  .page-blog__section-desc {
    margin-bottom: 18px !important;
  }

  .page-blog__blog-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-blog__blog-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-blog__blog-date {
    top: 8px !important;
    left: 8px !important;
    padding: 4px 8px !important;
  }

  .page-blog__home-content {
    margin-top: 38px !important;
    padding: 0 12px !important;
  }

  .page-blog__home-content h2 {
    margin-top: 28px !important;
    font-size: clamp(1.15rem, 5vw, 1.4rem) !important;
  }

  .page-blog__home-content h3 {
    font-size: 1.02rem !important;
  }

  .page-blog__home-content p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }

  .page-blog__cta-section {
    margin: 38px 12px 42px !important;
    padding: 24px 16px !important;
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__cta-buttons {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__hero-image,
  .page-blog__blog-card-image,
  .page-blog__blog-card,
  .page-blog__cta-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* ===== Tablet (<=1024px, above mobile) ===== */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-blog__blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}