/* style/blog.css */

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

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

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  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 for accent */
  border-radius: 2px;
}

.page-blog__section-title--cta {
  font-size: 2.2em;
  margin-bottom: 20px;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 300px; /* Ensure minimum size */
}

.page-blog__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

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

.page-blog__hero-description {
  font-size: 1.15em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-blog__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-blog__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  color: #2AD16F;
  transform: translateY(-3px);
}

/* Intro Section */
.page-blog__intro-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-blog__intro-section p {
  font-size: 1.05em;
  color: #A7D9B8;
  margin-bottom: 15px;
  text-align: justify;
}

/* Featured Articles */
.page-blog__featured-articles {
  padding: 80px 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; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

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

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

.page-blog__article-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__article-date {
  font-size: 0.85em;
  color: #2AD16F;
  margin-top: auto;
  display: block;
  margin-bottom: 15px;
}

.page-blog__read-more-btn {
  display: inline-block;
  color: #2AD16F;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #2AD16F;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-blog__read-more-btn:hover {
  color: #57E38D; /* Glow */
  border-color: #57E38D;
}

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

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

.page-blog__categories-intro {
  text-align: center;
  font-size: 1.05em;
  color: #A7D9B8;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__category-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 180px; /* Ensure minimum height for categories */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

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

.page-blog__category-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
}

/* Latest Updates Section */
.page-blog__latest-updates {
  padding: 80px 0;
}

.page-blog__updates-intro {
  text-align: center;
  font-size: 1.05em;
  color: #A7D9B8;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__updates-list {
  display: grid;
  gap: 25px;
}

.page-blog__update-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__update-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__update-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-blog__update-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__update-title a:hover {
  color: #2AD16F;
}

.page-blog__update-description {
  font-size: 0.95em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 10px;
}

.page-blog__update-date {
  font-size: 0.85em;
  color: #2AD16F;
  display: block;
}

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

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

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

.page-blog__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15em;
  font-weight: 600;
  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: rgba(34, 199, 104, 0.1);
}

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 20px;
  color: #2AD16F;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  color: #F2C14E; /* Gold */
}

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

/* Pagination */
.page-blog__pagination {
    padding: 60px 0;
    text-align: center;
}

.page-blog__pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.page-blog__pagination-item {
    margin: 0 5px;
}

.page-blog__pagination-item a {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: #F2FFF6; /* Text Main */
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    transition: all 0.3s ease;
}

.page-blog__pagination-item a:hover {
    background-color: #2AD16F;
    color: #ffffff;
    border-color: #2AD16F;
}

.page-blog__pagination-item--active a {
    background-color: #2AD16F;
    color: #ffffff;
    border-color: #2AD16F;
    font-weight: 700;
    pointer-events: none;
}

.page-blog__pagination-item--disabled a {
    background-color: #0A4B2C; /* Deep Green */
    color: #A7D9B8; /* Text Secondary */
    border-color: #1E3A2A; /* Divider */
    cursor: not-allowed;
    pointer-events: none;
}

/* CTA Bottom Section */
.page-blog__cta-bottom {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

.page-blog__cta-content-wrapper {
  max-width: 800px;
}

.page-blog__cta-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-blog__article-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-blog__hero-section {
    padding-bottom: 40px;
  }
  .page-blog__hero-image-wrapper {
    max-height: 400px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-blog__section-title--cta {
    font-size: 1.6em;
  }
  .page-blog__articles-grid,
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-card {
    margin-bottom: 20px;
  }
  .page-blog__category-card {
    padding: 25px;
  }
  .page-blog__faq-item summary {
    font-size: 1em;
    padding: 18px 20px;
  }
  .page-blog__faq-answer {
    padding: 0 20px 18px;
  }
  .page-blog__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-blog__view-all-button-wrapper, .page-blog__cta-bottom .page-blog__cta-content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .page-blog__hero-image, .page-blog__article-image, .page-blog video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__hero-image-wrapper, .page-blog__article-card, .page-blog__update-item,
  .page-blog__category-card, .page-blog__faq-item, .page-blog__cta-buttons,
  .page-blog__button-group, .page-blog__btn-container, .page-blog__video-section,
  .page-blog__video-container, .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-blog__cta-buttons, .page-blog__button-group, .page-blog__btn-container {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }
  .page-blog__video-section { /* Small top padding, body handles header offset */
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__main-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .page-blog__hero-image-wrapper {
    max-height: 250px;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__update-title {
    font-size: 1.1em;
  }
}