/* style/blog.css */
.page-blog {
  color: #F3F8FF; /* Text Main */
  background-color: #08162B; /* Deep Navy - Body background from shared.css is dark */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 40px;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit hero image height */
  overflow: hidden;
}

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

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

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-blog__hero-description {
  font-size: 1.1rem;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-blog__hero-cta {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button */
  color: #F3F8FF; /* Text Main */
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-blog__hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__content-area {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  background-color: #10233F; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #244D84; /* Border */
}

.page-blog__blog-post {
  padding: 30px 25px;
}

.page-blog__section-title {
  font-size: 2rem;
  color: #F2C14E; /* Gold */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
  border-bottom: 2px solid #1B3357; /* Divider */
  padding-bottom: 10px;
}

.page-blog__sub-title {
  font-size: 1.5rem;
  color: #4FA8FF; /* Glow */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 500;
}

.page-blog p {
  font-size: 1rem;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 15px;
}

.page-blog ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: #F3F8FF; /* Text Main */
}

.page-blog li {
  margin-bottom: 8px;
  color: #F3F8FF; /* Text Main */
}

.page-blog strong {
  color: #F2C14E; /* Gold */
}

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

.page-blog__post-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84; /* Border */
}

.page-blog__image-caption {
  font-size: 0.9rem;
  color: #AFC4E8; /* Text Secondary */
  margin-top: 10px;
}

.page-blog__button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 30px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-blog__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button */
  color: #F3F8FF; /* Text Main */
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  background: #10233F; /* Card BG */
  color: #4FA8FF; /* Glow */
  border: 2px solid #244D84; /* Border */
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-secondary:hover {
  background-color: #113B7A; /* Main Color */
  color: #F3F8FF; /* Text Main */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__related-posts-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.page-blog__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.page-blog__blog-card {
  background-color: #10233F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84; /* Border */
  transition: transform 0.3s ease;
}

.page-blog__blog-card:hover {
  transform: translateY(-5px);
}

.page-blog__blog-card a {
  text-decoration: none;
  display: block;
  color: inherit;
}

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

.page-blog__card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2C14E; /* Gold */
  padding: 15px;
  text-align: left;
  line-height: 1.4;
}

.page-blog__card-meta {
  font-size: 0.85rem;
  color: #AFC4E8; /* Text Secondary */
  padding: 0 15px 15px;
  text-align: left;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-blog__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__hero-section {
    padding-top: 10px !important; /* Ensure small padding, body handles header offset */
    padding-bottom: 20px;
  }
  .page-blog__hero-content {
    padding: 0 15px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__hero-cta {
    font-size: 1rem;
    padding: 12px 25px;
  }
  .page-blog__content-area {
    margin: 20px auto;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__blog-post {
    padding: 20px 15px;
  }
  .page-blog__section-title {
    font-size: 1.7rem;
  }
  .page-blog__sub-title {
    font-size: 1.3rem;
  }
  .page-blog p,
  .page-blog li {
    font-size: 0.95rem;
  }
  .page-blog__post-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__image-figure {
    margin: 20px 0;
  }
  .page-blog__button-group {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    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__related-posts-section {
    margin: 40px auto;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__blog-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }
  .page-blog__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__card-image {
    height: 200px; /* Slightly smaller fixed height for mobile cards */
  }
  .page-blog__card-title {
    font-size: 1.1rem;
  }
  .page-blog__card-meta {
    font-size: 0.8rem;
  }

  /* General image and container rules for mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}