/* style/blog.css */

/* Custom Colors */
:root {
  --page-blog-primary: #11A84E;
  --page-blog-secondary: #22C768;
  --page-blog-bg-main: #08160F;
  --page-blog-bg-card: #11271B;
  --page-blog-text-main: #F2FFF6;
  --page-blog-text-secondary: #A7D9B8;
  --page-blog-border: #2E7A4E;
  --page-blog-glow: #57E38D;
  --page-blog-gold: #F2C14E;
  --page-blog-divider: #1E3A2A;
  --page-blog-deep-green: #0A4B2C;
  --page-blog-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-blog {
  background-color: var(--page-blog-bg-main);
  color: var(--page-blog-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* 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;
  box-sizing: border-box;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: var(--page-blog-text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2em;
  color: var(--page-blog-text-secondary);
  margin-bottom: 30px;
}

.page-blog__cta-button {
  display: inline-block;
  background: var(--page-blog-button-gradient);
  color: var(--page-blog-text-main);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-blog__cta-button--secondary {
  background: transparent;
  border: 2px solid var(--page-blog-primary);
  color: var(--page-blog-primary);
  box-shadow: none;
}

.page-blog__cta-button--secondary:hover {
  background: var(--page-blog-primary);
  color: var(--page-blog-text-main);
}

/* Section Titles */
.page-blog__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--page-blog-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__section-description {
  font-size: 1.1em;
  color: var(--page-blog-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Latest Articles Section */
.page-blog__latest-articles {
  padding: 60px 0;
  background-color: var(--page-blog-bg-main);
}

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

.page-blog__article-card {
  background-color: var(--page-blog-bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-blog-border);
}

.page-blog__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-blog__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

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

.page-blog__article-title {
  font-size: 1.3em;
  color: var(--page-blog-text-main);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__article-snippet {
  font-size: 0.95em;
  color: var(--page-blog-text-secondary);
  margin-bottom: 15px;
}

.page-blog__article-date {
  font-size: 0.85em;
  color: var(--page-blog-text-secondary);
  display: block;
}

.page-blog__view-all-button-wrapper {
  text-align: center;
}

/* Categories Section */
.page-blog__categories {
  padding: 60px 0;
  background-color: var(--page-blog-bg-main);
}

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

.page-blog__category-item {
  background-color: var(--page-blog-bg-card);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: var(--page-blog-text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-blog-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-blog__category-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-blog__category-title {
  font-size: 1.15em;
  font-weight: bold;
  color: var(--page-blog-text-main);
}

/* In-depth Guide Section */
.page-blog__in-depth-guide {
  padding: 60px 0;
  background-color: var(--page-blog-bg-main);
}

.page-blog__content-block {
  margin-bottom: 50px;
  background-color: var(--page-blog-bg-card);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--page-blog-border);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__content-subtitle {
  font-size: 1.8em;
  color: var(--page-blog-primary);
  margin-bottom: 20px;
  text-align: center;
}

.page-blog__content-block p {
  color: var(--page-blog-text-secondary);
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-blog__content-block ul {
  list-style: disc;
  margin-left: 25px;
  color: var(--page-blog-text-secondary);
  margin-bottom: 15px;
}

.page-blog__content-block li {
  margin-bottom: 8px;
  font-size: 1.05em;
}

.page-blog__content-block strong {
  color: var(--page-blog-text-main);
}

.page-blog__content-image {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: var(--page-blog-bg-main);
}

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

.page-blog__faq-item {
  background-color: var(--page-blog-bg-card);
  border: 1px solid var(--page-blog-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--page-blog-text-main);
  list-style: none; /* Remove default marker */
}

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

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--page-blog-primary);
  margin-left: 15px;
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  color: var(--page-blog-text-secondary);
  font-size: 1em;
  line-height: 1.6;
}

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

/* Bottom CTA Section */
.page-blog__cta-bottom {
  padding: 60px 0;
  text-align: center;
  background-color: var(--page-blog-deep-green);
  border-top: 1px solid var(--page-blog-border);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-blog__hero-description {
    font-size: 1.1em;
  }

  .page-blog__article-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px !important;
  }

  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-blog__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
  }

  .page-blog__hero-description {
    font-size: 1em !important;
  }

  .page-blog__cta-button {
    padding: 12px 25px !important;
    font-size: 0.9em !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__cta-button--secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__section-title {
    font-size: clamp(1.5em, 5vw, 2em) !important;
  }

  .page-blog__section-description {
    font-size: 0.95em !important;
  }

  .page-blog__articles-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__article-image {
    height: 200px !important; /* Ensure min 200px height for content images */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__article-card {
    box-sizing: border-box !important;
  }

  .page-blog__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .page-blog__category-icon {
    width: 80px;
    height: 80px;
  }

  .page-blog__content-subtitle {
    font-size: 1.5em !important;
  }

  .page-blog__content-block p,
  .page-blog__content-block li {
    font-size: 0.95em !important;
  }

  .page-blog__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
  }

  .page-blog__faq-item summary {
    font-size: 1em !important;
    padding: 15px 20px !important;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px !important;
    font-size: 0.9em !important;
  }

  /* General image and container responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__latest-articles,
  .page-blog__categories,
  .page-blog__in-depth-guide,
  .page-blog__faq-section,
  .page-blog__cta-bottom,
  .page-blog__articles-grid,
  .page-blog__category-grid,
  .page-blog__content-block,
  .page-blog__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: clamp(1.5em, 7vw, 2em) !important;
  }

  .page-blog__cta-button {
    font-size: 0.85em !important;
    padding: 10px 20px !important;
  }

  .page-blog__article-image {
    height: 150px !important;
  }

  .page-blog__category-icon {
    width: 60px;
    height: 60px;
  }
}