/* style/blog.css */
/* Body background is assumed to be light from shared.css var(--bg-light), but for content within .page-blog, we are using the custom dark background and light text for brand consistency. */
.page-blog {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding as per instruction */
  padding-bottom: 60px;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  max-width: 900px;
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2C14E; /* Custom Gold for highlight */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-blog__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button */
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-blog__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #F2C14E; /* Custom Gold */
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-blog__section-intro {
  font-size: 1rem;
  color: #A7D9B8; /* Custom Text Secondary */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-blog__section-text {
  font-size: 1rem;
  color: #A7D9B8; /* Custom Text Secondary */
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: justify;
}

.page-blog__latest-articles,
.page-blog__categories-section,
.page-blog__featured-guide,
.page-blog__why-choose,
.page-blog__faq-section,
.page-blog__cta-final {
  padding: 60px 0;
}

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

.page-blog__article-card {
  background-color: #11271B; /* Custom Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Custom Border */
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

.page-blog__article-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

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

.page-blog__article-title {
  font-size: 1.4rem;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__article-excerpt {
  font-size: 0.95rem;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 15px;
  height: 90px; /* Fixed height for excerpt */
  overflow: hidden;
}

.page-blog__article-date {
  font-size: 0.85rem;
  color: #57E38D; /* Custom Glow */
  display: block;
  margin-bottom: 15px;
}

.page-blog__read-more {
  color: #22C768; /* Auxiliary color */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-blog__categories-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.page-blog__category-item {
  display: inline-block;
  padding: 10px 20px;
  background-color: #11271B; /* Custom Card BG */
  color: #F2FFF6; /* Custom Text Main */
  text-decoration: none;
  border-radius: 25px;
  border: 1px solid #2E7A4E; /* Custom Border */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.page-blog__category-item:hover {
  background-color: #0A4B2C; /* Custom Deep Green */
  color: #F2C14E; /* Custom Gold */
  border-color: #F2C14E;
}

.page-blog__guide-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.page-blog__guide-image {
  flex: 1 1 400px;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E;
}

.page-blog__guide-text {
  flex: 1 1 450px;
  max-width: 50%;
}

.page-blog__guide-title {
  font-size: 2rem;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-blog__guide-description {
  font-size: 1rem;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__why-choose {
  background-color: #0A4B2C; /* Custom Deep Green */
  padding: 80px 0;
}

.page-blog__why-choose .page-blog__section-title {
  color: #F2C14E;
}

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

.page-blog__feature-item {
  background-color: #11271B; /* Custom Card BG */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E;
}

.page-blog__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-blog__feature-title {
  font-size: 1.5rem;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 10px;
}

.page-blog__feature-description {
  font-size: 0.95rem;
  color: #A7D9B8; /* Custom Text Secondary */
}

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

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

.page-blog__faq-item {
  background-color: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #F2FFF6; /* Custom Text Main */
  cursor: pointer;
  list-style: none;
  outline: none;
}

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

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

.page-blog__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Custom Glow */
  transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Custom Text Secondary */
  line-height: 1.7;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__guide-image,
  .page-blog__guide-text {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .page-blog__guide-image {
    order: -1;
  }
}

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

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

  .page-blog__main-title {
    font-size: 2rem;
  }

  .page-blog__description {
    font-size: 1rem;
  }

  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-blog__section-title {
    font-size: 1.8rem;
  }

  .page-blog__section-intro,
  .page-blog__section-text {
    font-size: 0.95rem;
  }

  .page-blog__latest-articles,
  .page-blog__categories-section,
  .page-blog__featured-guide,
  .page-blog__why-choose,
  .page-blog__faq-section,
  .page-blog__cta-final {
    padding: 40px 0;
  }

  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__article-title {
    font-size: 1.2rem;
  }

  .page-blog__guide-title {
    font-size: 1.6rem;
  }

  .page-blog__guide-description {
    font-size: 0.95rem;
  }

  .page-blog__features-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__feature-title {
    font-size: 1.3rem;
  }

  .page-blog__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  /* Mobile specific overrides */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__cta-wrapper,
  .page-blog__guide-content,
  .page-blog__articles-grid,
  .page-blog__features-grid,
  .page-blog__categories-list,
  .page-blog__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-blog__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-blog__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__categories-list {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__category-item {
    width: 100%;
    text-align: center;
  }
}