/* style/blog.css */

/* Base styles */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #F4F7FB; /* Custom background color */
}

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

.page-blog__article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.page-blog__heading-2 {
  font-size: 2em;
  color: #1F2D3D;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.3;
}

.page-blog__heading-3 {
  font-size: 1.5em;
  color: #000000; /* Custom Color_1776249996415 */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.4;
}

.page-blog__paragraph {
  margin-bottom: 15px;
  color: #333333;
}

.page-blog__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #333333;
}

.page-blog__list li {
  margin-bottom: 8px;
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding */
  padding-bottom: 40px;
  text-align: center;
  background: linear-gradient(180deg, #F4F7FB 0%, #E0E7F5 100%); /* Light gradient */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px; /* Limit height for hero image */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
  display: block;
}

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

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  color: #1F2D3D;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  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%); /* Button gradient */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.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-color: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-blog__btn-secondary:hover {
  background-color: #F4F7FB;
  color: #2F6BFF;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__btn-inline {
  margin-top: 15px;
  margin-right: 10px;
  margin-bottom: 15px;
}

/* Image Figure */
.page-blog__image-figure {
  margin: 30px 0;
  text-align: center;
}

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

.page-blog__image-caption {
  font-size: 0.9em;
  color: #555555;
  margin-top: 10px;
}

.page-blog__cta-group--bottom {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #D6E2FF; /* Border color */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.8em;
  }

  .page-blog__section-title {
    font-size: 2.2em;
  }

  .page-blog__heading-2 {
    font-size: 1.8em;
  }

  .page-blog__heading-3 {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  /* 1. Top section title + dual CTA */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding, override any default */
    padding-bottom: 30px;
  }

  .page-blog__main-title {
    font-size: 2em !important;
    margin-bottom: 15px;
  }

  .page-blog__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-blog__cta-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important; /* Ensure buttons take full width */
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. Single column long text container */
  .page-blog__article-wrap {
    padding: 20px 15px;
    border-radius: 0;
    box-shadow: none;
  }

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

  .page-blog__heading-2 {
    font-size: 1.5em !important;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-blog__heading-3 {
    font-size: 1.2em !important;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-blog__paragraph,
  .page-blog__list {
    font-size: 0.95em;
  }

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

  .page-blog__image-figure {
    margin: 20px 0;
  }

  .page-blog__image-caption {
    font-size: 0.85em;
  }

  /* Ensure all containers with images also adapt */
  .page-blog__container,
  .page-blog__article-list-section,
  .page-blog__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Buttons within content, ensure they are also responsive */
  .page-blog__btn-inline {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  /* 4. Buttons and button containers */
  .page-blog__cta-group--bottom {
    flex-direction: column;
    gap: 10px;
    padding: 20px 15px 0;
  }

  /* 5. Registration tutorial and FAQ blocks - N/A for this page as it's a long article, but general text blocks are covered */
  /* General text blocks within article wrap already handled by .page-blog__article-wrap padding */

  .page-blog__dark-section {
    background: #2F6BFF;
    color: #ffffff; /* Forced white text */
  }

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

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