/* style/blog.css */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-blog__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 0; /* Header offset handled by body */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

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

.page-blog__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over the image a bit */
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 800;
  color: #FFFF00; /* Custom color for H1 */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-blog__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-blog__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-blog__btn-secondary:hover {
  background-color: rgba(195, 8, 8, 0.2);
  transform: translateY(-2px);
}

.page-blog__introduction-section,
.page-blog__categories-section,
.page-blog__faq-section {
  background-color: #0d0d0d; /* Dark body background */
  color: #ffffff;
}

.page-blog__introduction-section .page-blog__section-title,
.page-blog__categories-section .page-blog__section-title,
.page-blog__faq-section .page-blog__section-title {
  color: #ffffff;
}

.page-blog__introduction-section .page-blog__text-block,
.page-blog__categories-section .page-blog__text-block,
.page-blog__faq-section .page-blog__text-block {
  color: #f0f0f0;
}

.page-blog__featured-posts-section,
.page-blog__why-follow-section,
.page-blog__cta-section {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
}

.page-blog__featured-posts-section .page-blog__section-title,
.page-blog__why-follow-section .page-blog__section-title,
.page-blog__cta-section .page-blog__section-title {
  color: #ffffff;
}

.page-blog__featured-posts-section .page-blog__text-block,
.page-blog__why-follow-section .page-blog__text-block,
.page-blog__cta-section .page-blog__text-block {
  color: #f0f0f0;
}

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

.page-blog__post-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-blog__post-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-blog__post-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-title:hover {
  color: #FFFF00; /* Highlight on hover */
}

.page-blog__post-excerpt {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__post-date {
  font-size: 0.85em;
  color: #cccccc;
  margin-top: auto;
}

.page-blog__cta-center {
  text-align: center;
}

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

.page-blog__category-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__category-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.page-blog__category-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-blog__category-description {
  font-size: 0.9em;
  color: #f0f0f0;
}

.page-blog__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-blog__benefits-item {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  color: #f0f0f0;
}

.page-blog__benefits-item::before {
  content: '✓';
  color: #FFFF00; /* Accent color */
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 1.2em;
  top: 0;
}

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

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: #FFFF00;
}

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-blog__cta-container {
  text-align: center;
}

.page-blog__cta-container .page-blog__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.page-blog__copyright-info {
  background-color: #0d0d0d; /* Dark body background */
  color: #cccccc;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

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

  .page-blog__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-blog__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }

  .page-blog__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-blog__hero-description {
    font-size: 1.1em;
    margin-bottom: 25px;
  }

  .page-blog__cta-buttons {
    gap: 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-blog__posts-grid {
    gap: 20px;
  }

  .page-blog__post-title {
    font-size: 1.25em;
  }

  .page-blog__category-title {
    font-size: 1.2em;
  }

  .page-blog__faq-item summary {
    font-size: 1.05em;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 20px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-blog__text-block {
    font-size: 1em !important;
    line-height: 1.6 !important;
  }

  .page-blog__hero-section {
    padding-top: 0 !important;
    padding-bottom: 40px !important;
  }

  .page-blog__hero-content {
    margin-top: -60px !important;
    padding: 25px 15px !important;
    width: calc(100% - 30px) !important;
    box-sizing: border-box !important;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
  }

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

  .page-blog__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .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;
    padding: 12px 15px !important;
    font-size: 1em !important;
  }

  /* General image responsiveness for content area */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Exclude logo items from general image rules */
  .page-blog__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box;
  }

  .page-blog__posts-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-blog__post-image {
    height: 180px !important; /* Adjust height for smaller screens */
  }

  .page-blog__post-title {
    font-size: 1.15em !important;
  }

  .page-blog__post-excerpt {
    font-size: 0.9em !important;
  }

  .page-blog__categories-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

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

  .page-blog__category-title {
    font-size: 1.1em !important;
  }

  .page-blog__benefits-item {
    font-size: 1em !important;
    padding-left: 25px !important;
  }

  .page-blog__faq-item summary {
    font-size: 1em !important;
    padding: 15px !important;
  }

  .page-blog__faq-answer {
    font-size: 0.95em !important;
    padding: 0 15px 15px !important;
  }

  .page-blog__copyright-info {
    padding: 15px !important;
    font-size: 0.8em !important;
  }

  /* LOGO carousel section (if present, small top padding) */
  .page-blog__logo-carousel-section {
    padding: 10px 15px 20px !important; /* Small top padding */
  }
}