/* style/blog.css */

.page-blog {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f5f5f5;
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__hero-image-container {
  max-width: 100%;
  overflow: hidden;
}

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

.page-blog__hero-content-wrapper {
  padding: 40px 15px;
  max-width: 800px;
  margin: 0 auto;
}

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

.page-blog__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__btn-cta {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-blog__btn-primary:hover {
  background-color: #1a7fb0;
  border-color: #1a7fb0;
}

.page-blog__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-blog__btn-secondary:hover {
  background-color: #e0f4ff;
  color: #1a7fb0;
  border-color: #1a7fb0;
}

.page-blog__btn-cta {
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  border: 2px solid #EA7C07;
  font-size: 1.1em;
  padding: 15px 30px;
}

.page-blog__btn-cta:hover {
  background-color: #c46405;
  border-color: #c46405;
}

/* Section Titles */
.page-blog__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-blog__section-title--light {
  color: #ffffff;
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-blog__post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-blog__post-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

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

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

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

.page-blog__post-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: bold;
}

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

.page-blog__post-excerpt {
  font-size: 1em;
  color: #555555;
  line-height: 1.5;
}

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

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
  background-color: #26A9E0;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.page-blog__category-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #333333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.page-blog__category-icon {
  font-size: 3em;
  display: block;
  margin-bottom: 15px;
}

.page-blog__category-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #26A9E0;
}

/* Why Follow Section */
.page-blog__why-follow-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-blog__why-follow-content {
  display: flex;
  gap: 30px;
  align-items: center;
}

.page-blog__text-block {
  flex: 1;
  font-size: 1.05em;
  color: #444444;
}

.page-blog__text-block p {
  margin-bottom: 15px;
}

.page-blog__image-block {
  flex: 0 0 45%;
  max-width: 45%;
}

.page-blog__image-full {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: block;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand primary color */
  text-align: center;
  color: #ffffff;
}

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

.page-blog__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-blog__cta-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 1024px) {
  .page-blog__post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-blog {
    font-size: 15px;
    line-height: 1.5;
  }
  .page-blog__container {
    padding: 0 15px !important;
  }

  /* Hero Section */
  .page-blog__hero-section {
    padding-top: 10px !important;
    margin-bottom: 30px;
  }
  .page-blog__hero-content-wrapper {
    padding: 30px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  /* Buttons */
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog__btn-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important; /* Adjust padding for smaller screens */
  }
  .page-blog__view-all-button-wrapper {
    margin-top: 40px;
  }

  /* Latest Posts Section */
  .page-blog__latest-posts-section {
    padding: 40px 0;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-blog__post-image {
    height: 180px; /* Adjust image height for mobile */
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__post-excerpt {
    font-size: 0.95em;
  }

  /* Categories Section */
  .page-blog__categories-section {
    padding: 40px 0;
  }
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-blog__category-icon {
    font-size: 2.5em;
  }
  .page-blog__category-title {
    font-size: 1.1em;
  }

  /* Why Follow Section */
  .page-blog__why-follow-section {
    padding: 40px 0;
  }
  .page-blog__why-follow-content {
    flex-direction: column;
    gap: 25px;
  }
  .page-blog__image-block {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* CTA Section */
  .page-blog__cta-section {
    padding: 40px 0;
  }
  .page-blog__cta-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-blog__cta-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* Ensure all images are responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .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;
  }
}