/* style/blog.css */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #000000, so text is light */
  background-color: #000000; /* Explicitly set for main content area if needed, but body handles it */
}

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

/* 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, larger bottom padding */
  background-color: #000000; /* Matches body background */
  color: #ffffff;
}

.page-blog__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 40px; /* Space between image and text */
  object-fit: cover;
  width: 1200px; /* HTML width attribute */
  height: 675px; /* HTML height attribute */
}

.page-blog__hero-content {
  max-width: 800px;
  padding: 0 20px;
  margin-bottom: 40px;
}

.page-blog__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

/* General Sections */
.page-blog__introduction-section,
.page-blog__categories-section,
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for these sections */
  color: #333333; /* Dark text for light background */
}

.page-blog__latest-articles,
.page-blog__why-choose-us,
.page-blog__cta-section {
  padding: 60px 0;
  background-color: #000000; /* Dark background for these sections */
  color: #ffffff; /* Light text for dark background */
}

.page-blog__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-blog__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__highlight {
  color: #26A9E0;
  font-weight: bold;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  max-width: 100%;
}

.page-blog__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border-color: #26A9E0;
  margin: 0 10px 10px 0;
}

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

.page-blog__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border-color: #26A9E0;
  margin: 0 0 10px 10px;
}

.page-blog__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-blog__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap */
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Article Grid */
.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: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #ffffff; /* Light text for card */
}

.page-blog__article-thumbnail {
  width: 100%;
  height: 225px; /* Fixed height for consistent look */
  object-fit: cover;
  display: block;
  width: 400px; /* HTML width attribute */
  height: 225px; /* HTML height attribute */
}

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

.page-blog__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1; /* Make title take available space */
}

.page-blog__card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #26A9E0;
}

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

.page-blog__card-excerpt {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

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

/* Categories Section */
.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-blog__category-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.page-blog__category-item::before {
  content: '👉'; /* Unicode arrow */
  position: absolute;
  left: 0;
  color: #26A9E0;
}

.page-blog__category-item a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-blog__category-item a:hover {
  text-decoration: underline;
}

/* Why Choose Us Section */
.page-blog__why-choose-us ul {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-blog__why-choose-us li {
  font-size: 1.1em;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: #f0f0f0;
}

.page-blog__why-choose-us li::before {
  content: '✅'; /* Unicode checkmark */
  position: absolute;
  left: 0;
  color: #26A9E0;
}

.page-blog__why-choose-us a {
  color: #26A9E0;
  text-decoration: underline;
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 40px;
}

.page-blog__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333333;
  user-select: none;
}

.page-blog__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog__faq-question::marker {
  display: none;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-blog__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1em;
  color: #555555;
}

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

.page-blog__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* CTA Section */
.page-blog__cta-section {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  /* Images responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers responsive */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__article-card,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Buttons responsive */
  .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;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 15px !important;
  }
  
  .page-blog__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .page-blog__hero-section {
    padding: 10px 0 40px 0;
  }

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

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

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

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

  .page-blog__article-card {
    margin-bottom: 20px;
  }
  
  /* Videos responsive (if any, though not in this blog page) */
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__video-section,
  .page-blog__video-container,
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-blog__video-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 1.8em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    padding: 12px 20px;
    font-size: 0.9em;
  }
}