.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main */
  background-color: #08162B; /* Deep Navy - body background color type is dark */
}

.page-blog__section {
  padding: 60px 20px;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-blog__section-title {
  font-size: 36px;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 20px;
  font-weight: 700;
}

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

/* HERO Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08162B; /* Deep Navy */
  overflow: hidden;
}

.page-blog__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-blog__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-blog__main-title {
  font-size: clamp(28px, 4vw, 50px); /* Use clamp for H1 font size */
  color: #F3F8FF; /* Text Main */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(79, 168, 255, 0.5);
}

.page-blog__description {
  font-size: 19px;
  color: #AFC4E8; /* Text Secondary */
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-button:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Latest Posts Section */
.page-blog__latest-posts {
  background-color: #08162B; /* Deep Navy */
}

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

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

.page-blog__post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-blog__post-thumbnail img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-blog__post-content {
  padding: 25px;
}

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

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

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

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

.page-blog__post-excerpt {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-blog__read-more {
  display: inline-block;
  color: #4FA8FF; /* Glow */
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  text-decoration: underline;
  color: #F2C14E; /* Gold */
}

.page-blog__view-all-posts {
  margin-top: 60px;
}

/* Categories Section */
.page-blog__categories-section {
  background-color: #08162B; /* Deep Navy */
}

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

.page-blog__category-card {
  background-color: #10233F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #244D84; /* Border */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
}

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

.page-blog__category-card img {
  width: 100%;
  
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-blog__category-title {
  font-size: 20px;
  color: #F3F8FF; /* Text Main */
  font-weight: 600;
  padding: 0 15px;
}

/* FAQ Section */
.page-blog__faq-section {
  background-color: #08162B; /* Deep Navy */
}

.page-blog__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: 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 4px 15px 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;
}

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(43, 115, 246, 0.1); /* Lighter hover for dark background */
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF; /* Text Main */
}

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

details.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: rgba(16, 35, 63, 0.8); /* Slightly transparent Card BG */
  border-radius: 0 0 10px 10px;
  color: #AFC4E8; /* Text Secondary */
  font-size: 16px;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 32px;
  }
  .page-blog__description {
    font-size: 17px;
  }
  .page-blog__post-title {
    font-size: 20px;
  }
  .page-blog__post-thumbnail img {
    height: 220px;
  }
  .page-blog__category-card img {
    
  }
  .page-blog__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__hero-image img {
    border-radius: 4px;
  }
  .page-blog__main-title {
    font-size: clamp(24px, 6vw, 40px);
  }
  .page-blog__description {
    font-size: 16px;
  }
  .page-blog__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    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__section {
    padding: 40px 15px;
  }
  .page-blog__section-title {
    font-size: 28px;
  }
  .page-blog__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__post-thumbnail img {
    height: 200px;
  }
  .page-blog__post-title {
    font-size: 19px;
  }
  .page-blog__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  .page-blog__category-card img {
    
  }
  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;
    width: 24px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 20px;
  }
  /* Mobile image responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__post-card,
  .page-blog__category-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-blog__hero-container {
    padding-left: 0;
    padding-right: 0;
  }
  .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;
    flex-direction: column !important;
    gap: 10px;
  }
}

.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-blog__dark-bg {
  color: #ffffff; /* Deep background with light text */
  background: #113B7A;
}

.page-blog__light-bg {
  color: #333333; /* Light background with dark text */
  background: #ffffff;
}

.page-blog__medium-bg {
  color: #000000;
  background: #1D5FD1;
}

.page-blog p,
.page-blog li {
  color: #AFC4E8; /* Text Secondary - ensure good contrast on dark background */
}

.page-blog__card {
  background: #10233F; /* Card BG */
  color: #F3F8FF; /* Text Main */
  border: 1px solid #244D84; /* Border */
}

.page-blog__dark-section {
  background: #08162B;
  color: #ffffff;
}

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

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

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
}

.page-blog__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-blog__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}