/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Default text color for dark background */
  background-color: #08160F; /* Background color from custom palette */
}

.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: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2FFF6; /* Main text color */
}

.page-blog__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
  color: #F2FFF6;
}

.page-blog__text-main {
  color: #F2FFF6;
}

.page-blog__text-secondary {
  color: #A7D9B8;
}

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

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

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #F2FFF6;
}

.page-blog__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #A7D9B8;
}

/* Call to Action Button */
.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  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%);
  color: #ffffff;
  border: none;
}

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

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

.page-blog__btn-secondary:hover {
  background: #2AD16F;
  color: #11271B;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

/* Featured Categories Section */
.page-blog__featured-categories {
  padding: 60px 0;
  background-color: #08160F; /* Background color */
  color: #F2FFF6;
}

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

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

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

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

.page-blog__category-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 15px 15px 10px 15px;
  color: #F2FFF6;
}

.page-blog__category-link {
  color: #F2FFF6;
  text-decoration: none;
}

.page-blog__category-link:hover {
  color: #2AD16F;
}

.page-blog__category-description {
  font-size: 0.95em;
  padding: 0 15px 15px 15px;
  color: #A7D9B8;
}

/* Latest Articles Section */
.page-blog__latest-articles {
  padding: 60px 0;
  background-color: #11271B; /* Card BG color */
  color: #F2FFF6;
}

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

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

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-blog__article-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__article-title a {
  color: #F2FFF6;
  text-decoration: none;
}

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

.page-blog__article-meta {
  font-size: 0.9em;
  color: #A7D9B8;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1em;
  color: #A7D9B8;
}

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

/* Why Read Section */
.page-blog__why-read-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green color */
  color: #F2FFF6;
}

.page-blog__why-read-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-blog__why-read-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-blog__why-read-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 3px solid #2AD16F;
  padding: 10px;
}

.page-blog__why-read-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F2FFF6;
}

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

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

.page-blog__faq-item {
  background-color: #08160F; /* Background color */
  border-radius: 8px;
  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 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  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(42, 209, 111, 0.1);
}

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

.page-blog__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  color: #A7D9B8;
  line-height: 1.7;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 60px 0;
  background-color: #08160F; /* Background color */
  text-align: center;
  color: #F2FFF6;
}

/* General card styles */
.page-blog__card {
  background-color: #11271B;
  color: #F2FFF6;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-blog__light-bg {
  background-color: #11271B;
  color: #F2FFF6;
}

.page-blog__dark-section {
  background-color: #0A4B2C;
  color: #F2FFF6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 0 40px;
  }

  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__text-block {
    font-size: 1em;
  }

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

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-blog__hero-content {
    padding: 0 15px;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-blog__description {
    font-size: 1.1em;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-blog__text-block {
    font-size: 0.95em;
  }

  .page-blog__cta-button,
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    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;
  }

  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-blog__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-blog__category-grid,
  .page-blog__article-grid,
  .page-blog__why-read-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__category-card,
  .page-blog__article-card,
  .page-blog__why-read-item {
    margin: 0 15px;
  }

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

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

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

  .page-blog__hero-image-wrapper {
    max-height: 300px;
  }

  .page-blog__why-read-icon {
    width: 100px;
    height: 100px;
  }

  .page-blog__faq-list {
    margin: 30px 15px 0 15px;
  }

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

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

  .page-blog__hero-section,
  .page-blog__introduction-section,
  .page-blog__featured-categories,
  .page-blog__latest-articles,
  .page-blog__why-read-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding-left: 0;
    padding-right: 0;
  }
}