/* style/blog.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --card-bg: #11271B;
  --background-color: #08160F;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color for dark body background */
  background-color: var(--background-color); /* Default background color */
}

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

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--text-main-color);
  margin-bottom: 40px;
  font-weight: 700;
}

/* 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: var(--deep-green-color);
  overflow: hidden;
}

.page-blog__hero-container {
  position: relative;
  max-width: 1200px;
  width: 100%; /* Ensure it's 100% wide for desktop */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-blog__hero-content h1 {
  font-size: clamp(32px, 5vw, 48px); /* Using clamp for responsive H1 */
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.page-blog__hero-content p {
  font-size: 18px;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Intro Section */
.page-blog__intro-section {
  background-color: var(--background-color);
  color: var(--text-main-color);
}

.page-blog__intro-section p {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: left;
  color: var(--text-secondary-color);
}

/* Categories Section */
.page-blog__categories-section {
  background-color: var(--card-bg);
  color: var(--text-main-color);
}

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

.page-blog__category-card {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__category-card h3 {
  font-size: 24px;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-blog__category-card p {
  font-size: 16px;
  color: var(--text-secondary-color);
  margin-bottom: 25px;
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-blog__btn-secondary:hover {
  background: var(--secondary-color);
}

/* Latest Posts Section */
.page-blog__latest-posts {
  background-color: var(--background-color);
  color: var(--text-main-color);
}

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

.page-blog__post-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  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-card img {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

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

.page-blog__post-title a {
  color: var(--text-main-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: var(--gold-color);
}

.page-blog__post-meta {
  font-size: 14px;
  color: var(--text-secondary-color);
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 16px;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

.page-blog__read-more {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: var(--glow-color);
}

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

/* Benefits Section */
.page-blog__benefits-section {
  background-color: var(--card-bg);
  color: var(--text-main-color);
}

.page-blog__benefits-section p {
  font-size: 17px;
  margin-bottom: 25px;
  text-align: left;
  color: var(--text-secondary-color);
}

.page-blog__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-blog__benefits-list li {
  background-color: var(--background-color);
  border-left: 4px solid var(--gold-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 17px;
  color: var(--text-main-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__benefits-list li strong {
  color: var(--gold-color);
}

/* FAQ Section */
.page-blog__faq-section {
  background-color: var(--background-color);
  color: var(--text-main-color);
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
}

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;
}

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: var(--deep-green-color);
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: var(--deep-green-color);
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary-color);
}

.page-blog__faq-answer p {
  font-size: 16px;
  margin: 0;
  text-align: left;
}

/* CTA Bottom Section */
.page-blog__cta-bottom {
  background-color: var(--card-bg);
  padding: 80px 20px;
}

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

.page-blog__cta-content h2 {
  color: var(--gold-color);
}

.page-blog__cta-content p {
  font-size: 18px;
  color: var(--text-secondary-color);
  margin-bottom: 40px;
}

.page-blog__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-blog__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
}

.page-blog__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--background-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: clamp(26px, 3.5vw, 34px);
  }
  .page-blog__hero-content h1 {
    font-size: clamp(28px, 4.5vw, 42px);
  }
  .page-blog__hero-content p {
    font-size: 17px;
  }
  .page-blog__posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__category-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__section {
    padding: 40px 15px;
  }
  .page-blog__section-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 30px;
  }
  
  /* HERO Section Mobile */
  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__hero-image img {
    border-radius: 4px;
  }
  .page-blog__hero-content h1 {
    font-size: clamp(26px, 7vw, 36px);
  }
  .page-blog__hero-content p {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-blog__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important; /* Ensure buttons are full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Image Responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Post Cards Mobile */
  .page-blog__post-card img {
     /* Adjust height for mobile */
  }
  .page-blog__post-content {
    padding: 20px;
  }
  .page-blog__post-title {
    font-size: 18px;
  }
  .page-blog__post-excerpt {
    font-size: 15px;
  }

  /* FAQ Mobile */
  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .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 15px 15px; }
  .page-blog__faq-answer p { font-size: 15px; }

  /* CTA Bottom Buttons Mobile */
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-content h1 {
    font-size: clamp(24px, 8vw, 32px);
  }
  .page-blog__hero-content p {
    font-size: 15px;
  }
  .page-blog__cta-button {
    font-size: 15px;
  }
  .page-blog__category-card h3 {
    font-size: 20px;
  }
  .page-blog__category-card p {
    font-size: 15px;
  }
  .page-blog__post-title {
    font-size: 17px;
  }
  .page-blog__post-excerpt {
    font-size: 14px;
  }
  .page-blog__benefits-list li {
    font-size: 15px;
  }
  .page-blog__faq-qtext {
    font-size: 15px;
  }
}