/* General styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #AFC4E8; /* Text Secondary */
  background-color: var(--deep-navy); /* #08162B */
}

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F3F8FF; /* Text Main */
  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: linear-gradient(90deg, transparent, #F2C14E, transparent); /* Gold */
  border-radius: 2px;
}

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

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
  color: #F3F8FF; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #F3F8FF; /* Text Main */
  border: 2px solid #244D84; /* Border */
}

.page-blog__btn-secondary:hover {
  background: rgba(36, 77, 132, 0.2); /* #244D84 with opacity */
  border-color: #4FA8FF; /* Glow */
}

.page-blog__read-more {
  background: transparent;
  color: #4FA8FF; /* Glow */
  border: 1px solid #4FA8FF;
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 5px;
}

.page-blog__read-more:hover {
  background: rgba(79, 168, 255, 0.1);
}

/* Hero Section */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 50px;
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-blog__hero-content-area {
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__subtitle {
  font-size: 18px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Articles Section */
.page-blog__articles-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-blog__article-card {
  background-color: #10233F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-blog__article-thumbnail {
  width: 100%;
  height: 225px;
  overflow: hidden;
  flex-shrink: 0;
}

.page-blog__article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover .page-blog__article-thumbnail img {
  transform: scale(1.05);
}

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

.page-blog__article-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

.page-blog__article-title a {
  color: #F3F8FF; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #4FA8FF; /* Glow */
}

.page-blog__article-meta {
  font-size: 14px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 20px;
}

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

/* In-depth Article Section */
.page-blog__in-depth-article {
  padding-top: 60px;
  padding-bottom: 80px;
}

.page-blog__article-body {
  background-color: #10233F; /* Card BG */
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-blog__article-body p {
  font-size: 17px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-blog__article-sub-title {
  font-size: 28px;
  font-weight: 700;
  color: #F3F8FF; /* Text Main */
  margin-top: 40px;
  margin-bottom: 25px;
  position: relative;
  padding-left: 15px;
}

.page-blog__article-sub-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 80%;
  background-color: #F2C14E; /* Gold */
  border-radius: 2px;
}

.page-blog__article-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-blog__article-body ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #AFC4E8; /* Text Secondary */
  font-size: 16px;
}

.page-blog__article-body ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #4FA8FF; /* Glow */
  font-weight: bold;
}

.page-blog__article-figure {
  margin: 30px auto;
  text-align: center;
  max-width: 800px;
}

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

.page-blog__article-figure figcaption {
  font-style: italic;
  font-size: 15px;
  color: #AFC4E8; /* Text Secondary */
  margin-top: 10px;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-blog__conclusion-text {
  font-style: italic;
  text-align: center;
  margin-top: 40px;
  padding: 0 20px;
}

/* FAQ Section */
.page-blog__faq-section {
  padding-top: 60px;
  padding-bottom: 80px;
}

.page-blog__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F3F8FF; /* 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: rgba(36, 77, 132, 0.2); /* #244D84 with opacity */
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
}

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #4FA8FF; /* Glow */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: #08162B; /* Deep Navy */
  border-radius: 0 0 10px 10px;
}

.page-blog__faq-answer p {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  margin: 0;
}

/* Responsive styles for mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-blog__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
  }

  .page-blog__main-title {
    font-size: clamp(32px, 8vw, 40px);
    padding: 0 10px;
  }

  .page-blog__subtitle {
    font-size: 16px;
    padding: 0 15px;
  }

  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 30px;
  }

  .page-blog__hero-image-wrapper {
    border-radius: 0;
  }

  .page-blog__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    border-radius: 0;
  }

  .page-blog__hero-content-area {
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog__read-more {
    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__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

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

  .page-blog__article-thumbnail {
    height: 180px;
  }

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

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

  .page-blog__article-excerpt {
    font-size: 15px;
  }

  .page-blog__view-all-button-wrapper {
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-blog__in-depth-article {
    padding-top: 40px;
    padding-bottom: 50px;
  }

  .page-blog__article-body {
    padding: 25px;
    margin: 20px auto 0 auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__article-body p,
  .page-blog__article-body ul li {
    font-size: 15px;
  }

  .page-blog__article-sub-title {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-left: 10px;
  }

  .page-blog__article-sub-title::before {
    width: 4px;
  }

  .page-blog__article-figure {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__faq-section {
    padding-top: 40px;
    padding-bottom: 50px;
  }

  .page-blog__faq-list {
    margin: 30px auto 0 auto;
    padding: 0 15px;
  }

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
  }

  .page-blog__faq-qtext {
    font-size: 16px;
  }

  .page-blog__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 25px;
  }

  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 20px;
  }

  .page-blog__faq-answer p {
    font-size: 15px;
  }
}

/* Ensure all images and their containers are responsive on mobile */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-blog__section,
.page-blog__card,
.page-blog__container,
.page-blog__hero-image-wrapper,
.page-blog__article-figure {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-image-wrapper,
  .page-blog__article-figure {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}