/* Base Styles */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #F3F8FF; /* Text Main */
  background-color: var(--deep-navy-color); /* Body background from shared.css */
}

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

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 38px);
  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, #F2C14E, #1D5FD1);
  border-radius: 2px;
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--deep-navy-color);
  position: relative;
  overflow: hidden;
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
}

.page-blog__hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
}

.page-blog__hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-blog__hero-button {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button */
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-blog__hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Posts Section */
.page-blog__posts-section {
  padding: 60px 0;
  background-color: var(--deep-navy-color);
}

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

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

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

.page-blog__post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

.page-blog__post-date {
  font-size: 14px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 10px;
  display: block;
}

.page-blog__post-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 15px;
  flex-grow: 1;
}

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

.page-blog__post-title a:hover {
  color: #F2C14E; /* Gold */
}

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

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

.page-blog__read-more:hover {
  color: #2B73F6; /* Button primary color */
}

.page-blog__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 10px;
}

.page-blog__pagination-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 5px;
    text-decoration: none;
    color: #F3F8FF; /* Text Main */
    background-color: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border */
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-blog__pagination-link:hover,
.page-blog__pagination-link--active {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button */
    color: #ffffff;
    border-color: transparent;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-blog__dark-section {
  background-color: #113B7A; /* Main Color */
  color: #ffffff;
}

.page-blog__cta-title {
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 25px;
}

.page-blog__cta-description {
  font-size: 18px;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #AFC4E8; /* Text Secondary */
}

.page-blog__cta-button.page-blog__btn-primary {
  display: inline-block;
  padding: 16px 35px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button */
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-blog__cta-button.page-blog__btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: var(--deep-navy-color);
}

.page-blog__faq-list {
  margin-top: 40px;
}

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.1);
}

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 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: #1B3357; /* Divider - slightly lighter for hover */
  color: #F2C14E; /* Gold */
}

.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: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: #08162B; /* Deep Navy */
  border-radius: 0 0 10px 10px;
  color: #AFC4E8; /* Text Secondary */
  font-size: 16px;
  line-height: 1.7;
}

.page-blog__faq-answer p {
    margin: 0;
    padding-top: 15px;
}

/* About Momo Section */
.page-blog__about-momo-section {
    padding: 60px 0;
    background-color: var(--deep-navy-color);
}

.page-blog__about-content {
    font-size: 17px;
    line-height: 1.8;
    color: #AFC4E8; /* Text Secondary */
    text-align: justify;
}

.page-blog__about-content h3 {
    font-size: 28px;
    color: #F2C14E; /* Gold */
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.page-blog__about-content p {
    margin-bottom: 20px;
}

.page-blog__content-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: block;
}

.page-blog__about-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-blog__about-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #F3F8FF; /* Text Main */
}

.page-blog__about-content ul li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
}

/* Final CTA Section */
.page-blog__final-cta-section {
    padding: 80px 0;
    background-color: #113B7A; /* Main Color */
    text-align: center;
}

.page-blog__final-cta-title {
    font-size: clamp(30px, 4.5vw, 42px);
    font-weight: 700;
    color: #F2C14E; /* Gold */
    margin-bottom: 25px;
}

.page-blog__final-cta-description {
    font-size: 18px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #AFC4E8; /* Text Secondary */
}

.page-blog__final-cta-button.page-blog__btn-primary {
    display: inline-block;
    padding: 16px 35px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button */
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-blog__final-cta-button.page-blog__btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* General Image Responsiveness */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General Button Responsiveness */
.page-blog__hero-button,
.page-blog__cta-button,
.page-blog__final-cta-button,
.page-blog__read-more,
.page-blog__pagination-link {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 42px;
  }
  .page-blog__hero-description {
    font-size: 17px;
  }
  .page-blog__post-title {
    font-size: 20px;
  }
  .page-blog__section-title {
    font-size: 34px;
  }
  .page-blog__cta-title,
  .page-blog__final-cta-title {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  /* Top Section - small top padding */
  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-blog__hero-image {
    margin-bottom: 20px;
  }
  .page-blog__hero-title {
    font-size: 32px !important;
  }
  .page-blog__hero-description {
    font-size: 16px !important;
    margin-bottom: 25px;
  }
  .page-blog__hero-button {
    padding: 12px 25px !important;
    font-size: 16px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Blog Posts Grid - single column */
  .page-blog__posts-section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 28px !important;
    margin-bottom: 30px;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-blog__post-image {
    height: 180px;
  }
  .page-blog__post-content {
    padding: 15px;
  }
  .page-blog__post-title {
    font-size: 18px !important;
  }
  .page-blog__post-excerpt {
    font-size: 15px !important;
    margin-bottom: 15px;
  }
  .page-blog__read-more {
    font-size: 15px !important;
  }
  .page-blog__pagination {
    margin-top: 30px;
  }
  .page-blog__pagination-link {
    min-width: 35px;
    height: 35px;
    font-size: 14px;
  }

  /* CTA Section */
  .page-blog__cta-section {
    padding: 50px 0;
  }
  .page-blog__cta-title,
  .page-blog__final-cta-title {
    font-size: 30px !important;
    margin-bottom: 20px;
  }
  .page-blog__cta-description,
  .page-blog__final-cta-description {
    font-size: 16px !important;
    margin-bottom: 30px;
  }
  .page-blog__cta-button.page-blog__btn-primary,
  .page-blog__final-cta-button.page-blog__btn-primary {
    padding: 14px 25px !important;
    font-size: 18px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* FAQ Section */
  .page-blog__faq-section {
    padding: 40px 0;
  }
  .page-blog__faq-list {
    margin-top: 30px;
  }
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
  }
  .page-blog__faq-qtext {
    font-size: 16px !important;
  }
  .page-blog__faq-toggle {
    font-size: 24px !important;
    width: 25px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px !important;
  }

  /* About Momo Section */
  .page-blog__about-momo-section {
      padding: 40px 0;
  }
  .page-blog__about-content {
      font-size: 16px;
  }
  .page-blog__about-content h3 {
      font-size: 24px;
      margin-top: 30px;
      margin-bottom: 15px;
  }
  .page-blog__about-content ul li {
      padding-left: 25px;
      font-size: 16px;
  }
  .page-blog__about-content ul li::before {
      font-size: 18px;
  }
  .page-blog__content-image {
      margin: 20px 0;
  }

  /* General Image Responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__hero-container,
  .page-blog__posts-section .page-blog__container,
  .page-blog__cta-section .page-blog__container,
  .page-blog__faq-section .page-blog__container,
  .page-blog__about-momo-section .page-blog__container,
  .page-blog__final-cta-section .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General Button Responsiveness */
  .page-blog__hero-button,
  .page-blog__cta-button.page-blog__btn-primary,
  .page-blog__final-cta-button.page-blog__btn-primary,
  .page-blog__read-more,
  .page-blog__pagination-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .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-wrap: wrap !important;
    gap: 10px;
  }
}