/* style/blog.css */

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

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

.page-blog__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__section-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  background-color: #08160F; /* Background */
}

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  margin-top: -200px; /* Adjust to overlap image slightly for visual effect */
  padding: 0 20px;
}

.page-blog__main-title {
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-blog__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
  margin-right: 15px;
}

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

.page-blog__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
}

.page-blog__btn-secondary:hover {
  background: #57E38D;
  color: #08160F; /* Background */
  transform: translateY(-2px);
}

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
  background: #11271B; /* Card BG */
  color: #F2FFF6;
}

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

.page-blog__category-card {
  background: #08160F; /* Background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

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

.page-blog__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  padding: 15px 20px 5px;
}

.page-blog__card-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-blog__card-text {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 20px 20px;
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 60px 0;
  background: #08160F; /* Background */
  color: #F2FFF6;
}

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

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

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

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

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

.page-blog__post-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-blog__post-title a {
  color: inherit;
  text-decoration: none;
}

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

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

.page-blog__post-excerpt {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

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

.page-blog__read-more:hover {
  color: #F2FFF6; /* Text Main */
}

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

/* CTA Section */
.page-blog__cta-section {
  padding: 60px 0;
  background: #11271B; /* Card BG */
  text-align: center;
}

.page-blog__cta-section .page-blog__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-blog__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-blog__cta-title {
  font-size: 2rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-blog__cta-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background: #08160F; /* Background */
  color: #F2FFF6;
}

.page-blog__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-blog__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: #F2FFF6; /* Text Main */
  transition: background-color 0.3s ease;
}

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

.page-blog__faq-item summary:hover {
  background-color: #1E3A2A; /* Divider */
}

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

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−';
}

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

/* Conclusion Section */
.page-blog__conclusion-section {
  padding: 60px 0;
  background: #11271B; /* Card BG */
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -150px;
  }
  .page-blog__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-blog__categories-grid,
  .page-blog__posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__section-title {
    font-size: 2rem;
  }
  .page-blog__section-description {
    font-size: 1rem;
  }
  .page-blog__hero-content {
    margin-top: -100px;
    padding: 0 15px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-blog__description {
    font-size: 1rem;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    display: block !important;
    width: 100% !important;
    margin: 0 auto 15px auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-blog__hero-content .page-blog__btn-primary {
    margin-right: 0 !important;
  }
  .page-blog__cta-section .page-blog__btn-primary,
  .page-blog__cta-section .page-blog__btn-secondary {
    margin-bottom: 15px !important;
    width: calc(100% - 30px) !important; /* Account for padding on container */
  }
  .page-blog__categories-section,
  .page-blog__latest-posts,
  .page-blog__cta-section,
  .page-blog__faq-section,
  .page-blog__conclusion-section {
    padding: 40px 0;
  }
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__hero-image-wrapper,
  .page-blog__category-card,
  .page-blog__post-card,
  .page-blog__cta-section .page-blog__container,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-blog__category-image, .page-blog__post-image {
    height: auto !important; /* Allow images to scale proportionally */
  }
  .page-blog__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }
  .page-blog__faq-answer {
    padding: 0 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-content {
    margin-top: -80px;
  }
  .page-blog__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .page-blog__section-title {
    font-size: 1.8rem;
  }
  .page-blog__categories-grid,
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
  }
}