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

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

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: #08162B; /* Deep Navy background for hero */
  color: #F3F8FF; /* Main text color for dark background */
  text-align: center;
}

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

.page-blog__hero-text-content {
  margin-bottom: 30px;
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold color for main title */
}

.page-blog__hero-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #AFC4E8; /* Secondary text color */
}

.page-blog__hero-cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  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, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: #ffffff;
  color: #113B7A; /* Primary color for text */
  border: 2px solid #113B7A;
}

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

.page-blog__hero-image-wrapper {
  margin-top: 30px;
}

.page-blog__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-blog__content-area {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #113B7A; /* Primary color for section titles */
  margin-bottom: 30px;
  text-align: center;
}

.page-blog__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #1D5FD1; /* Secondary color for sub-titles */
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
}

.page-blog__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__category-card {
  background-color: #10233F; /* Card BG */
  color: #F3F8FF; /* Text Main */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-blog__category-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
  object-fit: cover;
}

.page-blog__category-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
}

.page-blog__category-title a {
  color: #F2C14E; /* Gold color for category titles */
  text-decoration: none;
}

.page-blog__category-title a:hover {
  text-decoration: underline;
}

.page-blog__category-description {
  font-size: 0.95em;
  color: #AFC4E8; /* Secondary text color */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-btn {
  display: inline-block;
  padding: 8px 18px;
  background: #1D5FD1; /* Secondary color for button */
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__read-more-btn:hover {
  background-color: #2B73F6;
}

.page-blog__latest-posts {
  padding: 60px 0;
  background-color: #f8f8f8; /* Slightly off-white background */
  color: #333333;
}

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

.page-blog__blog-card {
  background-color: #ffffff; /* Card BG */
  color: #333333; /* Dark text for card content */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-blog__blog-thumbnail {
  width: 100%;
  height: 220px; /* Fixed height for thumbnails */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-blog__blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__blog-card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__blog-card-title a {
  color: #113B7A; /* Primary color for blog titles */
  text-decoration: none;
}

.page-blog__blog-card-title a:hover {
  text-decoration: underline;
}

.page-blog__blog-card-meta {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

.page-blog__blog-card-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-link {
  color: #1D5FD1; /* Secondary color for links */
  text-decoration: none;
  font-weight: bold;
}

.page-blog__read-more-link:hover {
  text-decoration: underline;
}

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

.page-blog__cta-section {
  padding: 80px 0;
  background-color: #113B7A; /* Primary color for dark section */
  color: #ffffff; /* White text for dark section */
  text-align: center;
}

.page-blog__cta-section .page-blog__section-title {
  color: #F2C14E; /* Gold color for title in dark section */
}

.page-blog__cta-section .page-blog__paragraph {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #AFC4E8; /* Secondary text color */
  margin-bottom: 40px;
}

.page-blog__cta-section .page-blog__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-blog__why-choose-us {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-blog__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.page-blog__feature-item {
  background-color: #f0f0f0;
  border-left: 5px solid #1D5FD1; /* Secondary color for accent */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-blog__feature-title {
  font-size: 1.5em;
  color: #113B7A;
  margin-bottom: 15px;
}

.page-blog__feature-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

/* --- Responsive Styles --- */
/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-blog__container {
    padding: 15px;
  }

  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-blog__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Adjust H1 for mobile */
  }

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

  .page-blog__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    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;
  }

  .page-blog__hero-image-wrapper {
    margin-top: 20px;
  }

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

  .page-blog__content-area,
  .page-blog__latest-posts,
  .page-blog__cta-section,
  .page-blog__why-choose-us {
    padding: 30px 0;
  }

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

  .page-blog__sub-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-blog__paragraph {
    font-size: 1em;
    margin-bottom: 15px;
  }

  .page-blog__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__category-card {
    padding: 20px;
  }

  .page-blog__category-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-blog__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__blog-thumbnail {
    height: 180px; /* Adjust thumbnail height for mobile */
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-blog__blog-card-content {
    padding: 15px;
  }

  .page-blog__blog-card-title {
    font-size: 1.1em;
  }

  .page-blog__blog-card-meta,
  .page-blog__blog-card-excerpt {
    font-size: 0.85em;
  }

  .page-blog__view-all-button-container {
    margin-top: 30px;
  }

  .page-blog__cta-section .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .page-blog__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* General image and button responsive rules */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__cta-buttons {
    flex-wrap: wrap !important;
  }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 15px;
  }

  .page-blog__hero-section {
    padding-bottom: 30px;
  }

  .page-blog__hero-content-wrapper {
    flex-direction: column;
  }

  .page-blog__hero-image-wrapper {
    margin-top: 30px;
  }

  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-blog__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-blog__feature-list {
    grid-template-columns: 1fr;
  }
}