/* style/blog.css */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #f8f9fa;
}

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  border-radius: 2px;
}

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

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

.page-blog__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

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

.page-blog__main-title {
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.3;
  /* clamp for responsive font size without fixed large values */
  font-size: clamp(28px, 4vw, 48px);
}

.page-blog__intro-text {
  font-size: 18px;
  color: #555;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-blog__cta-button:hover {
  background: #d46e06;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

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

.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: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__post-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog__post-thumbnail {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__post-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__post-title {
  font-size: 22px;
  font-weight: 600;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__post-title:hover {
  text-decoration: underline;
}

.page-blog__post-excerpt {
  font-size: 15px;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__post-date {
  font-size: 14px;
  color: #999;
  text-align: right;
  margin-top: auto;
}

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__view-all-button:hover {
  background: #1e87c2;
}

/* Featured Categories Section */
.page-blog__featured-categories {
  padding: 60px 0;
  background: #26A9E0;
  color: #ffffff;
}

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

.page-blog__featured-categories .page-blog__section-title::after {
  background-color: #ffffff;
}

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

.page-blog__category-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
}

.page-blog__category-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-blog__category-description {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 25px;
}

.page-blog__category-link {
  display: inline-block;
  padding: 10px 20px;
  background: #ffffff;
  color: #26A9E0;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__category-link:hover {
  background: #f0f0f0;
  color: #1e87c2;
}

/* Why Trust Us Section */
.page-blog__why-trust-us {
  padding: 60px 0;
  background: #ffffff;
}

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

.page-blog__trust-item {
  padding: 30px;
  border-radius: 12px;
  background: #f0f2f5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__trust-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px;
}

.page-blog__trust-title {
  font-size: 24px;
  font-weight: 600;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-blog__trust-description {
  font-size: 15px;
  color: #555;
}

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

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

.page-blog__faq-section .page-blog__section-title::after {
  background-color: #ffffff;
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

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: rgba(255, 255, 255, 0.2);
}

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

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

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 10px 10px;
}

details.page-blog__faq-item .page-blog__faq-answer p {
  font-size: 16px;
  color: #f0f0f0;
  margin-top: 10px;
  margin-bottom: 0;
}

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

.page-blog__cta-description {
  font-size: 18px;
  color: #555;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(26px, 4.5vw, 40px);
  }
  .page-blog__intro-text {
    font-size: 17px;
  }
  .page-blog__post-thumbnail {
    height: 180px;
  }
  .page-blog__post-title {
    font-size: 20px;
  }
  .page-blog__trust-title {
    font-size: 22px;
  }
  .page-blog__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__section-title {
    font-size: 30px;
    margin-bottom: 30px;
  }
  .page-blog__main-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-blog__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-blog__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-blog__hero-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }
  .page-blog__hero-image img,
  .page-blog__latest-posts img,
  .page-blog__why-trust-us img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__post-card {
    border-radius: 8px;
  }
  .page-blog__post-thumbnail {
    height: 180px;
  }
  .page-blog__post-title {
    font-size: 18px;
  }
  .page-blog__post-excerpt {
    font-size: 14px;
  }
  .page-blog__view-all-button {
    padding: 10px 25px;
    font-size: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__category-card {
    border-radius: 8px;
    padding: 25px;
  }
  .page-blog__category-title {
    font-size: 20px;
  }
  .page-blog__category-description {
    font-size: 14px;
  }
  .page-blog__trust-points {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__trust-item {
    padding: 25px;
    border-radius: 8px;
  }
  .page-blog__trust-title {
    font-size: 20px;
  }
  .page-blog__trust-description {
    font-size: 14px;
  }
  details.page-blog__faq-item {
    border-radius: 8px;
  }
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
  }
  .page-blog__faq-qtext {
    font-size: 16px;
  }
  .page-blog__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 25px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 15px;
  }
  details.page-blog__faq-item .page-blog__faq-answer p {
    font-size: 14px;
  }
  .page-blog__cta-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .page-blog__section-title {
    font-size: 26px;
  }
  .page-blog__main-title {
    font-size: clamp(20px, 7vw, 30px);
  }
  .page-blog__cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }
  .page-blog__post-thumbnail {
    height: 150px;
  }
  .page-blog__post-title {
    font-size: 17px;
  }
  .page-blog__category-title {
    font-size: 18px;
  }
  .page-blog__trust-title {
    font-size: 18px;
  }
  .page-blog__faq-qtext {
    font-size: 15px;
  }
}

/* Color Contrast Fixes (if needed, applied automatically) */
.page-blog__dark-bg {
  color: #ffffff;
  background: #26A9E0;
}

.page-blog__light-bg {
  color: #333333;
  background: #ffffff;
}

.page-blog__medium-bg {
  color: #000000;
  background: #FFFFFF;
}

.page-blog__content-area, .page-blog p, .page-blog li {
  color: #333333;
}

.page-blog__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-blog__dark-section {
  background: #26A9E0;
  color: #ffffff;
}

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

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