.page-blog {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Main text color for dark sections */
  background-color: #08160F; /* Default body background from custom colors */
}

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

.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, header offset handled by body */
  overflow: hidden;
  color: #F2FFF6;
  min-height: 500px; /* Ensure hero section has a minimum height */
}

.page-blog__hero-image {
  width: 100%;
  height: 100%; /* Make image fill the section height */
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay for text */
  border-radius: 8px;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-blog__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #A7D9B8;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
}

.page-blog__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__glow-icon {
  margin-left: 8px;
  color: #F2C14E; /* Gold */
}

.page-blog__introduction,
.page-blog__latest-posts,
.page-blog__why-banca05,
.page-blog__cta-section {
  padding: 60px 0;
  background-color: #08160F; /* Default background */
  color: #F2FFF6;
}

.page-blog__dark-section {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6;
}

.page-blog__light-bg {
  background-color: #08160F; /* Using main background for light sections too as per custom colors */
  color: #F2FFF6;
}

.page-blog__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-blog__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #A7D9B8;
}

.page-blog__intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
  color: #F2FFF6;
}

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

.page-blog__post-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.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: 250px;
  object-fit: cover;
  display: block;
}

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

.page-blog__post-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__post-title a {
  color: #F2FFF6;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-blog__post-meta {
  font-size: 0.9rem;
  color: #A7D9B8;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-blog__read-more-link {
  color: #57E38D; /* Glow color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

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

.page-blog__cta-button--secondary {
  background: none;
  border: 2px solid #2AD16F;
  color: #2AD16F;
}

.page-blog__cta-button--secondary:hover {
  background: #2AD16F;
  color: #ffffff;
}

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

.page-blog__category-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
  color: #F2FFF6;
}

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

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

.page-blog__category-title {
  font-size: 1.3rem;
  font-weight: 600;
  padding: 15px;
  color: #F2FFF6;
}

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

.page-blog__feature-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-blog__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2FFF6;
}

.page-blog__feature-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #A7D9B8;
}

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

.page-blog__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  color: #F2FFF6;
  background-color: #11A84E; /* Main color */
  border-bottom: 1px solid #2E7A4E;
  transition: background-color 0.3s ease;
}

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

.page-blog__faq-item summary:hover {
  background-color: #22C768; /* Auxiliary color */
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #F2FFF6;
}

.page-blog__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #A7D9B8;
  background-color: #11271B; /* Card BG */
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-blog__section-title {
    font-size: 2rem;
  }
  .page-blog__post-image {
    height: 200px;
  }
  .page-blog__category-image {
    height: 150px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__hero-section,
  .page-blog__introduction,
  .page-blog__latest-posts,
  .page-blog__categories,
  .page-blog__why-banca05,
  .page-blog__faq,
  .page-blog__cta-section {
    padding: 40px 0;
  }
  .page-blog__hero-content {
    padding: 15px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__section-title {
    font-size: 1.8rem;
  }
  .page-blog__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-blog__intro-text,
  .page-blog__post-excerpt,
  .page-blog__feature-text,
  .page-blog__faq-answer p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .page-blog__post-grid,
  .page-blog__category-grid,
  .page-blog__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__post-image,
  .page-blog__category-image {
    height: auto;
  }
  .page-blog__post-title {
    font-size: 1.3rem;
  }
  .page-blog__category-title {
    font-size: 1.1rem;
  }
  .page-blog__feature-title {
    font-size: 1.2rem;
  }
  .page-blog__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
  .page-blog__faq-answer {
    padding: 15px 20px;
  }
  .page-blog__cta-button {
    width: 100%;
    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__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section, .page-blog__card, .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .page-blog__section-title {
    font-size: 1.5rem;
  }
  .page-blog__hero-description {
    font-size: 0.9rem;
  }
  .page-blog__cta-button {
    padding: 12px 20px;
    font-size: 1rem;
  }
}

/* Ensure content images are at least 200px */
.page-blog__post-image,
.page-blog__category-image,
.page-blog__feature-icon {
  min-width: 200px;
  min-height: 200px;
}

/* Filter for hero image to ensure contrast */
.page-blog__hero-image {
  filter: brightness(0.6);
}