/* style/blog.css */

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

.page-blog__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-blog__section-title--light {
  color: #F2FFF6; /* Text Main for dark backgrounds */
}

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

.page-blog__dark-section {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body handles padding-top, small top padding for aesthetics */
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.2; /* Subtle background */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
  border-radius: 10px;
}

.page-blog__main-title {
  font-size: 2.8em;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-blog__intro-text {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

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

.page-blog__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Latest Posts Section */
.page-blog__latest-posts {
  background-color: #08160F;
}

.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: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-blog__post-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-blog__post-title a:hover {
  color: #2AD16F; /* Main color hover */
}

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

.page-blog__post-excerpt {
  font-size: 1em;
  color: #F2FFF6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-blog__view-all-posts-wrapper {
  margin-top: 50px;
}

.page-blog__view-all-posts-button {
  display: inline-block;
  padding: 12px 25px;
  background: #2E7A4E; /* Border */
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease;
}

.page-blog__view-all-posts-button:hover {
  background: #13994A; /* Darker green */
  color: #F2C14E; /* Gold */
}

/* Categories Section */
.page-blog__categories-section p {
  color: #A7D9B8;
}

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

.page-blog__category-item {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 25px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: bold;
  border: 1px solid #2E7A4E; /* Border */
}

.page-blog__category-item:hover {
  background-color: #13994A;
  color: #F2C14E; /* Gold */
}

/* Strategy Section */
.page-blog__strategy-section p {
  color: #F2FFF6;
  margin-bottom: 20px;
}

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

.page-blog__strategy-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.page-blog__strategy-card-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  min-height: 3em; /* Ensure consistent height for titles */
}

.page-blog__strategy-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.page-blog__strategy-card p {
  color: #F2FFF6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* News & Updates Section */
.page-blog__news-updates p {
  color: #A7D9B8;
  margin-bottom: 30px;
}

/* Promotions Section */
.page-blog__promotions-section p {
  color: #F2FFF6;
  margin-bottom: 30px;
}

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

.page-blog__promo-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.page-blog__promo-card-title {
  font-size: 1.4em;
  color: #2AD16F; /* Main color */
  margin-bottom: 15px;
  min-height: 2.5em; /* Consistent title height */
}

.page-blog__promo-card p {
  color: #F2FFF6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__view-all-promos-wrapper {
  margin-top: 50px;
}

/* Why Choose Us Section */
.page-blog__why-choose-us p {
  color: #A7D9B8;
  margin-bottom: 30px;
}

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

.page-blog__reason-card {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.page-blog__reason-card-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  min-height: 2.5em;
}

.page-blog__reason-card p {
  color: #A7D9B8;
  flex-grow: 1;
}

/* Final CTA Section */
.page-blog__cta-final p {
  color: #F2FFF6;
  margin-bottom: 40px;
}

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

.page-blog__cta-button--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

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

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

.page-blog__cta-button--tertiary {
  background-color: transparent;
  color: #F2C14E; /* Gold */
  border: 2px solid #F2C14E;
}

.page-blog__cta-button--tertiary:hover {
  background-color: #F2C14E;
  color: #08160F;
}

/* FAQ Section */
.page-blog__faq-section p {
  color: #A7D9B8;
}

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

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

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  font-size: 1.1em;
  position: relative;
  list-style: none; /* Remove default marker */
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-blog__faq-item summary:focus {
  outline: none;
  box-shadow: 0 0 0 2px #2AD16F;
}

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

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

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

.page-blog__faq-answer p {
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.5em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__post-grid,
  .page-blog__strategy-grid,
  .page-blog__promo-grid,
  .page-blog__why-choose-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-blog__hero-content {
    padding: 30px 15px;
  }
  .page-blog__main-title {
    font-size: 2em;
  }
  .page-blog__intro-text {
    font-size: 1em;
  }
  .page-blog__section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-blog__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* Cards and content containers */
  .page-blog__post-card,
  .page-blog__strategy-card,
  .page-blog__promo-card,
  .page-blog__reason-card,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons responsive */
  .page-blog__cta-button,
  .page-blog__view-all-posts-button,
  .page-blog__category-item,
  .page-blog__read-more,
  .page-blog__cta-button--primary,
  .page-blog__cta-button--secondary,
  .page-blog__cta-button--tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-blog__category-list {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-blog__post-title,
  .page-blog__strategy-card-title,
  .page-blog__promo-card-title,
  .page-blog__reason-card-title {
    font-size: 1.2em;
  }
  .page-blog__faq-item summary {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.5em;
  }
  .page-blog__cta-button {
    padding: 12px 20px;
  }
  .page-blog__post-card,
  .page-blog__strategy-card,
  .page-blog__promo-card,
  .page-blog__reason-card {
    margin-left: auto;
    margin-right: auto;
  }
}