/* ============================================
   Blog Page Styles - W88 Guide
   Color Scheme: Blue White (#2F6BFF, #6FA3FF)
   ============================================ */

.page-blog {
  color: #1F2D3D;
  background: #F4F7FB;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
  box-sizing: border-box;
}

/* ============================================
   HERO SECTION
   ============================================ */
.page-blog__hero-section {
  padding: 10px 15px 40px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.page-blog__hero-image {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.15);
  box-sizing: border-box;
  margin-bottom: 28px;
}

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

.page-blog__hero-content {
  width: 100%;
  max-width: 900px;
  text-align: center;
}

.page-blog__main-title {
  color: #1F2D3D;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__intro {
  color: #4A5568;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
} 

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

.page-blog__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.3);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #1a4fd0 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(47, 107, 255, 0.4);
}

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

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

.page-blog__btn-outline {
  background: transparent;
  color: #2F6BFF;
  border: 2px solid #D6E2FF;
}

.page-blog__btn-outline:hover {
  border-color: #2F6BFF;
  background: #F4F7FB;
}

/* ============================================
   CATEGORY NAVIGATION
   ============================================ */
.page-blog__category-nav {
  padding: 30px 0 20px;
}

.page-blog__section-title {
  color: #1F2D3D;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 24px;
  position: relative;
  padding-bottom: 12px;
}

.page-blog__section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #2F6BFF, #6FA3FF);
  border-radius: 2px;
}

.page-blog__category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-blog__category-link {
  display: inline-block;
  padding: 10px 20px;
  background: #FFFFFF;
  color: #2F6BFF;
  border: 1px solid #D6E2FF;
  border-radius: 24px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
}

.page-blog__category-link:hover {
  background: #2F6BFF;
  color: #FFFFFF;
  border-color: #2F6BFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.3);
}

/* ============================================
   BLOG GRID SECTION
   ============================================ */
.page-blog__blog-section {
  padding: 30px 0 50px;
}

.page-blog__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.page-blog__blog-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(47, 107, 255, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #D6E2FF;
  display: flex;
  flex-direction: column;
}

.page-blog__blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(47, 107, 255, 0.18);
  border-color: #6FA3FF;
}

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

.page-blog__blog-card-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #F4F7FB;
}

.page-blog__blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.page-blog__blog-card:hover .page-blog__blog-card-image img {
  transform: scale(1.05);
}

.page-blog__blog-date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #FFFFFF;
  color: #2F6BFF;
  border: 1px solid #2F6BFF;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.page-blog__blog-card-body {
  padding: 20px 18px 24px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__blog-card-title {
  color: #1F2D3D;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
  transition: color 0.3s ease;
}

.page-blog__blog-card:hover .page-blog__blog-card-title {
  color: #2F6BFF;
}

.page-blog__blog-divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #2F6BFF, #6FA3FF);
  margin: 0 auto 12px;
  border-radius: 1px;
}

.page-blog__blog-excerpt {
  color: #6B7280;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   LONG FORM CONTENT
   ============================================ */
.page-blog__home-content {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 15px;
  width: 100%;
  box-sizing: border-box;
}

.page-blog__long-form {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 40px 45px;
  border: 1px solid #D6E2FF;
  box-shadow: 0 2px 12px rgba(47, 107, 255, 0.06);
  width: 100%;
  box-sizing: border-box;
}

.page-blog__content-title {
  color: #1F2D3D;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #D6E2FF;
}

.page-blog__sub-title {
  color: #1F2D3D;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin: 32px 0 14px;
}

.page-blog__long-form p {
  color: #374151;
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 16px;
}

.page-blog__long-form strong {
  color: #1F2D3D;
  font-weight: 700;
}

/* ============================================
   CTA BOX
   ============================================ */
.page-blog__cta-box {
  background: linear-gradient(135deg, #F4F7FB 0%, #E8F0FF 100%);
  border: 2px solid #D6E2FF;
  border-radius: 12px;
  padding: 32px 28px;
  margin: 40px 0 0;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.page-blog__cta-title {
  color: #1F2D3D;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}

.page-blog__cta-text {
  color: #4A5568;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.page-blog__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* ============================================
   GLOBAL IMAGE RULES
   ============================================ */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   BUTTON RESPONSIVE BASE
   ============================================ */
.page-blog a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* ============================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .page-blog__blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .page-blog__long-form {
    padding: 32px 28px;
  }

  .page-blog__content-title {
    font-size: 24px;
  }

  .page-blog__sub-title {
    font-size: 18px;
  }
}

/* ============================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  /* HERO section */
  .page-blog__hero-section {
    padding: 10px 12px 28px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

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

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

  .page-blog__main-title {
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 14px;
    padding: 0 4px;
  }

  .page-blog__intro {
    font-size: 15px;
    line-height: 1.65;
    padding: 0 4px;
    margin-bottom: 20px;
  }

  .page-blog__hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    gap: 10px;
  }

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

  .page-blog__cta-buttons {
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0;
    gap: 10px;
    overflow: hidden;
  }

  /* Category nav */
  .page-blog__section-title {
    font-size: 20px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .page-blog__category-list {
    gap: 8px;
    padding: 0 4px;
  }

  .page-blog__category-link {
    font-size: 13px;
    padding: 8px 15px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }

  /* Blog grid: 1 column on mobile */
  .page-blog__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 4px;
  }

  .page-blog__blog-card {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-blog__blog-card-image {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    aspect-ratio: 16 / 9;
  }

  .page-blog__blog-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  .page-blog__blog-date {
    top: 10px;
    left: 10px;
    font-size: 11px;
    padding: 5px 8px;
    display: inline-block;
  }

  .page-blog__blog-card-body {
    padding: 16px 14px 20px;
  }

  .page-blog__blog-card-title {
    font-size: 15px;
    line-height: 1.4;
  }

  .page-blog__blog-excerpt {
    font-size: 13px;
    line-height: 1.55;
  }

  /* Long form content */
  .page-blog__home-content {
    padding: 0 12px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 32px;
  }

  .page-blog__long-form {
    padding: 22px 16px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
  }

  .page-blog__content-title {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  .page-blog__sub-title {
    font-size: 17px;
    line-height: 1.4;
    margin: 24px 0 12px;
  }

  .page-blog__long-form p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 14px;
  }

  /* CTA box */
  .page-blog__cta-box {
    padding: 22px 16px;
    margin-top: 28px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-blog__cta-title {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .page-blog__cta-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  /* Container */
  .page-blog__container {
    padding: 0 12px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  /* Global image rules for mobile */
  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-blog__blog-section {
    padding: 24px 0 32px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .page-blog__category-nav {
    padding: 22px 0 14px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .page-blog {
    overflow-x: hidden;
    max-width: 100%;
  }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 19px;
  }

  .page-blog__intro {
    font-size: 14px;
  }

  .page-blog__content-title {
    font-size: 18px;
  }

  .page-blog__sub-title {
    font-size: 16px;
  }

  .page-blog__blog-card-title {
    font-size: 14px;
  }

  .page-blog__long-form {
    padding: 18px 12px;
  }

  .page-blog__blog-card-body {
    padding: 14px 12px 18px;
  }
}