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

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

.page-blog__hero-header {
  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 as body handles header offset */
  background-color: #ffffff;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-blog__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
}

.page-blog__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: #555555;
  margin-bottom: 15px;
  max-width: 800px;
}

.page-blog__intro-text {
  font-size: clamp(15px, 1.8vw, 18px);
  color: #666666;
  margin-bottom: 30px;
  max-width: 800px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-blog__cta-button:hover {
  background: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-blog__hero-image-display {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 10px;
  margin-top: 40px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-blog__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
}

.page-blog__section-description {
  font-size: 17px;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-blog__latest-posts, .page-blog__popular-posts, .page-blog__categories, .page-blog__faq-section, .page-blog__cta-section {
  padding: 40px 0;
  margin-bottom: 20px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 10px;
}

.page-blog__latest-posts {
  padding-top: 60px;
}

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

.page-blog__post-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  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.15);
}

.page-blog__post-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

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

.page-blog__post-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #1e87c0;
}

.page-blog__post-meta {
  font-size: 14px;
  color: #888888;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 16px;
  color: #666666;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #1e87c0;
  text-decoration: underline;
}

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 15px 35px;
  background: #EA7C07; /* Login color for visibility */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-blog__view-all-button:hover {
  background: #d46a00;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-blog__category-item {
  display: inline-block;
  padding: 12px 25px;
  background: #f0f0f0;
  color: #333333;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-blog__category-item:hover {
  background: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-blog__popular-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__popular-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.page-blog__popular-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

.page-blog__popular-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.page-blog__popular-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__popular-title a:hover {
  color: #1e87c0;
}

.page-blog__popular-meta {
  font-size: 13px;
  color: #999999;
  margin-bottom: 10px;
}

.page-blog__popular-excerpt {
  font-size: 15px;
  color: #666666;
}

/* FAQ Section */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
}

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: #f5f5f5;
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #26A9E0;
}

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: #555555;
}

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

.page-blog__cta-section {
  text-align: center;
  background: linear-gradient(135deg, #26A9E0 0%, #1e87c0 100%);
  color: #ffffff;
  padding: 60px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-section .page-blog__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-blog__cta-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.5;
}

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

.page-blog__btn-primary, .page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.page-blog__btn-primary:hover {
  background: #d46a00;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-blog__btn-secondary:hover {
  background: #f0f0f0;
  color: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__posts-grid, .page-blog__popular-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__post-card img { height: 220px; }
  .page-blog__popular-card img {  }
}

@media (max-width: 768px) {
  .page-blog__hero-header {
    padding: 40px 15px;
    padding-top: 10px !important;
    margin-bottom: 30px;
  }

  .page-blog__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-blog__subtitle, .page-blog__intro-text {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .page-blog__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 15px;
  }

  .page-blog__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-blog__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-blog__latest-posts, .page-blog__popular-posts, .page-blog__categories, .page-blog__faq-section, .page-blog__cta-section {
    padding: 30px 0;
    margin-bottom: 15px;
    border-radius: 8px;
  }

  .page-blog__posts-grid, .page-blog__popular-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__post-card img { height: 200px; }
  .page-blog__post-content { padding: 20px; }
  .page-blog__post-title { font-size: 20px; }
  .page-blog__post-excerpt { font-size: 15px; }

  .page-blog__view-all-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-blog__category-item {
    padding: 10px 20px;
    font-size: 15px;
  }

  .page-blog__popular-card img {  }
  .page-blog__popular-content { padding: 15px; }
  .page-blog__popular-title { font-size: 17px; }
  .page-blog__popular-excerpt { font-size: 14px; }

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-blog__faq-qtext { font-size: 16px; }
  .page-blog__faq-toggle { font-size: 24px; width: 25px; }
  details.page-blog__faq-item .page-blog__faq-answer { padding: 0 20px 20px; font-size: 15px; }

  .page-blog__cta-section {
    padding: 40px 15px;
  }
  .page-blog__cta-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-blog__btn-primary, .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile image specific rules */
  .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;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-header {
    padding: 30px 10px;
    padding-top: 10px !important;
  }
  .page-blog__main-title {
    font-size: 24px;
  }
  .page-blog__subtitle, .page-blog__intro-text {
    font-size: 14px;
  }
  .page-blog__section-title {
    font-size: 22px;
  }
  .page-blog__post-card img {  }
  .page-blog__popular-card img {  }
  .page-blog__category-list {
    gap: 10px;
  }
  .page-blog__category-item {
    padding: 8px 15px;
    font-size: 14px;
  }
}