/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

.page-blog__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog__section {
  padding: 40px 0;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-blog__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding as per rule */
  background-color: #F4F7FB; /* Background */
  text-align: center;
}

.page-blog__hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-blog__hero-text-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__hero-description {
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

.page-blog__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-blog__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

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

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

.page-blog__btn-secondary:hover {
  background: #f0f8ff;
  color: #2F6BFF;
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.2);
}

/* Introduction Section */
.page-blog__introduction-section p {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
  color: #1F2D3D; /* Text Main */
}

/* Article Grid */
.page-blog__latest-articles-section p {
  text-align: center;
  margin-bottom: 30px;
  color: #1F2D3D; /* Text Main */
}

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

.page-blog__article-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-blog__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__card-content {
  padding: 20px;
}

.page-blog__card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1F2D3D; /* Text Main */
  line-height: 1.4;
}

.page-blog__card-meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1em;
  color: #333333;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-blog__read-more {
  color: #2F6BFF;
  font-weight: bold;
  display: inline-block;
}

.page-blog__view-all-wrapper {
  text-align: center;
  margin-top: 20px;
}

/* Why Choose Section */
.page-blog__dark-section {
  background: #2F6BFF;
  color: #ffffff;
}

.page-blog__dark-section .page-blog__section-title,
.page-blog__dark-section .page-blog__cta-title {
  color: #ffffff;
}

.page-blog__dark-section p,
.page-blog__dark-section li {
  color: #f0f0f0;
}

.page-blog__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__feature-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.05em;
  display: flex;
  align-items: center;
}

.page-blog__feature-list li strong {
  color: #ffffff;
  margin-right: 8px;
}

.page-blog__cta-box {
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__cta-image {
  width: 40%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-blog__cta-content {
  flex: 1;
}

.page-blog__cta-title {
  font-size: 2em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__cta-content p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Latest News Updates (List) */
.page-blog__news-list {
  list-style: disc;
  padding-left: 25px;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-blog__news-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #1F2D3D; /* Text Main */
}

.page-blog__news-list li a {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: bold;
}

.page-blog__news-list li a:hover {
  text-decoration: underline;
}

.page-blog__final-note {
  text-align: center;
  font-size: 1.1em;
  font-style: italic;
  color: #1F2D3D; /* Text Main */
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
  /* 1. Top section title + CTA */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding as per rule */
  }
  
  .page-blog__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    padding: 0 15px;
  }

  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .page-blog__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-blog__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  /* 2. Single column long text container */
  .page-blog__article-wrap {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-blog__introduction-section p {
    font-size: 0.95em;
  }

  /* 3. General images and figure */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-blog__article-card {
    margin-bottom: 20px;
  }

  .page-blog__card-image {
    height: 200px; /* Adjust height for mobile */
  }

  /* 4. Buttons and button containers */
  .page-blog__hero-cta-buttons,
  .page-blog__view-all-wrapper,
  .page-blog__cta-box .page-blog__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__cta-box {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .page-blog__cta-image {
    width: 100%;
  }

  .page-blog__cta-title {
    font-size: 1.5em;
    text-align: center;
  }

  .page-blog__cta-content p {
    font-size: 1em;
    text-align: center;
  }

  /* 5. Registration tutorial and FAQ blocks (if present, adapting for article list) */
  /* No specific tutorial/FAQ blocks as per blog page outline, but general list styles */
  .page-blog__feature-list {
    padding: 0 15px;
  }

  .page-blog__feature-list li {
    font-size: 0.95em;
    padding: 12px 15px;
  }

  .page-blog__news-list {
    padding-left: 20px;
    padding-right: 15px;
  }

  .page-blog__news-list li {
    font-size: 0.95em;
  }

  .page-blog__final-note {
    font-size: 1em;
    padding: 0 15px;
  }
}