/* style/blog.css */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #F2FFF6; /* 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, #2AD16F 0%, #13994A 100%); /* Button gradient */
  border-radius: 2px;
}

/* HERO Section */
.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, body handles header offset */
  background-color: #08160F; /* Background */
  overflow: hidden;
}

.page-blog__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

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

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #F2FFF6; /* Text Main */
}

.page-blog__hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 font size with clamp */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold */
}

.page-blog__hero-content p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  color: #A7D9B8; /* Text Secondary */
}

/* Blog Posts Section */
.page-blog__posts-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-blog__post-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #F2FFF6; /* Text Main */
}

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

.page-blog__post-link {
  display: block;
  width: 100%;
  height: 225px; /* Fixed height for image container */
  overflow: hidden;
}

.page-blog__post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-blog__post-card:hover img {
  transform: scale(1.05);
}

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

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

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

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

.page-blog__post-meta {
  font-size: 14px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 16px;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 15px;
  transition: all 0.3s ease;
  text-align: center;
}

.page-blog__read-more-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  text-align: center;
}

.page-blog__cta-banner {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-blog__cta-banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

.page-blog__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #F2FFF6; /* Text Main */
}

.page-blog__cta-content h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold */
}

.page-blog__cta-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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: #F2C14E; /* Gold */
  font-weight: bold;
}

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: rgba(46, 122, 78, 0.3); /* Lighter green tint from Border */
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6; /* Text Main */
}

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #57E38D; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: #08160F; /* Background */
  border-radius: 0 0 10px 10px;
  color: #A7D9B8; /* Text Secondary */
}

.page-blog__faq-answer p {
  margin: 0;
  padding-top: 10px;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-content h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
  .page-blog__hero-content p {
    font-size: 16px;
  }
  .page-blog__section-title {
    font-size: 32px;
  }
  .page-blog__cta-content h2 {
    font-size: 28px;
  }
  .page-blog__cta-content p {
    font-size: 16px;
  }
  .page-blog__cta-button {
    padding: 15px 35px;
    font-size: 18px;
  }
  .page-blog__post-title {
    font-size: 20px;
  }
  .page-blog__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__hero-image {
    border-radius: 8px;
    margin-bottom: 20px;
  }
  .page-blog__hero-image img,
  .page-blog__post-card img,
  .page-blog__cta-banner img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__container,
  .page-blog__posts-section .page-blog__container,
  .page-blog__cta-section .page-blog__container,
  .page-blog__faq-section .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-blog__post-card {
    border-radius: 8px;
  }
  .page-blog__post-link {
    height: 180px;
  }
  .page-blog__post-content {
    padding: 20px;
  }
  .page-blog__post-title {
    font-size: 18px;
  }
  .page-blog__post-excerpt {
    font-size: 15px;
  }
  .page-blog__read-more-button {
    padding: 8px 15px;
    font-size: 14px;
  }
  .page-blog__view-all-container {
    margin-top: 40px;
  }
  .page-blog__view-all-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-blog__cta-banner {
    padding: 30px 20px;
  }
  .page-blog__cta-content h2 {
    font-size: 24px;
  }
  .page-blog__cta-content p {
    font-size: 15px;
  }
  .page-blog__cta-button {
    padding: 15px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  details.page-blog__faq-item {
    border-radius: 8px;
  }
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
  }
  .page-blog__faq-qtext {
    font-size: 16px;
  }
  .page-blog__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 15px;
  }
  .page-blog__faq-answer p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }
  .page-blog__hero-content p {
    font-size: 14px;
  }
  .page-blog__section-title {
    font-size: 24px;
  }
  .page-blog__cta-content h2 {
    font-size: 20px;
  }
  .page-blog__cta-content p {
    font-size: 14px;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 15px;
  }
  .page-blog__post-title {
    font-size: 16px;
  }
  .page-blog__post-excerpt {
    font-size: 14px;
  }
  .page-blog__faq-qtext {
    font-size: 15px;
  }
  .page-blog__faq-toggle {
    font-size: 20px;
  }
}