:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy-color: #08162B;
}

.page-blog {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--deep-navy-color);
}

.page-blog__section {
  padding: 40px 0;
  background-color: var(--deep-navy-color);
}

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

.page-blog__card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.page-blog__section-title,
.page-blog__main-title,
.page-blog__cta-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-blog__section-description,
.page-blog__hero-description,
.page-blog__cta-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

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

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

.page-blog__main-title {
  font-size: clamp(32px, 4vw, 56px); /* Using clamp for responsive H1 */
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-blog__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

/* CTA Buttons */
.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-blog__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  margin-left: 20px;
}

.page-blog__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--deep-navy-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Explore Blog Section */
.page-blog__explore-blog {
  padding: 60px 0;
}

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

.page-blog__feature-title {
  font-size: 24px;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__feature-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Featured Posts Section */
.page-blog__featured-posts {
  padding: 60px 0;
}

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

.page-blog__post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.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: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--divider-color);
}

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

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

.page-blog__post-title a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: var(--glow-color);
}

.page-blog__post-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: var(--gold-color);
}

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

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
}

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

.page-blog__category-card {
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 150px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  background-color: rgba(var(--primary-color), 0.8);
}

.page-blog__category-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-blog__category-count {
  font-size: 14px;
  color: var(--text-secondary);
}

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

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

.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: var(--gold-color);
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--divider-color);
  list-style: none; /* For details/summary */
}

.page-blog__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-blog__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  background-color: var(--card-bg);
}

/* Bottom CTA Section */
.page-blog__cta-bottom {
  padding: 80px 0;
  text-align: center;
  background-color: var(--primary-color);
  background-image: url('[GALLERY:bg:1920x400:ac888,cta,background,abstract_blue_gold]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-blog__cta-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 22, 43, 0.8); /* Dark overlay */
  z-index: -1;
}

.page-blog__cta-bottom-content {
  position: relative;
  z-index: 2;
}

.page-blog__cta-title {
  color: var(--gold-color);
  font-size: 42px;
  margin-bottom: 20px;
}

.page-blog__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: var(--text-main);
}

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

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

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(30px, 5vw, 48px);
  }

  .page-blog__section-title,
  .page-blog__cta-title {
    font-size: 32px;
  }

  .page-blog__hero-image-wrapper {
    max-width: 90%;
  }

  .page-blog__cta-bottom {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__section {
    padding: 30px 0;
  }

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

  .page-blog__hero-image-wrapper {
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .page-blog__hero-image {
    object-fit: contain !important; /* Mobile hero image must contain, not cover */
    max-height: none !important;
    aspect-ratio: unset !important;
  }

  .page-blog__main-title {
    font-size: clamp(28px, 8vw, 40px) !important;
  }

  .page-blog__hero-description {
    font-size: 16px !important;
    margin-bottom: 20px;
  }

  /* CTA Buttons */
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-blog__cta-button,
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  /* Explore Blog Section */
  .page-blog__section-title {
    font-size: 28px !important;
  }
  .page-blog__section-description {
    font-size: 16px !important;
  }
  .page-blog__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Featured Posts Section */
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__post-image {
    height: 180px;
  }

  .page-blog__post-title {
    font-size: 20px;
  }

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

  /* Categories Section */
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }

  .page-blog__category-card {
    min-height: 120px;
    padding: 15px;
  }

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

  /* FAQ Section */
  .page-blog__faq-section .page-blog__section-title {
    font-size: 28px !important;
  }
  .page-blog__faq-section .page-blog__section-description {
    font-size: 16px !important;
  }
  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 15px;
  }

  /* Bottom CTA Section */
  .page-blog__cta-bottom .page-blog__cta-title {
    font-size: 28px !important;
  }
  .page-blog__cta-bottom .page-blog__cta-description {
    font-size: 16px !important;
  }

  /* General image and container responsiveness */
  .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-content,
  .page-blog__cta-bottom-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}