.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

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

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: #0A0A0A; /* Ensure consistent dark background */
}

.page-blog__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #F2C14E; /* Main color for title */
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.page-blog__hero-description {
  font-size: 1.1rem;
  color: #FFF6D6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.8;
}

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

.page-blog__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-blog__btn--primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-blog__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-blog__btn--secondary {
  background-color: transparent;
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E; /* Border color */
}

.page-blog__btn--secondary:hover {
  background-color: #F2C14E;
  color: #111111; /* Dark text for bright background */
  transform: translateY(-2px);
}

.page-blog__articles-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-blog__section-title {
  font-size: 2.5rem;
  color: #F2C14E;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-blog__article-card {
  background-color: #111111; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3A2A12; /* Border */
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(242, 193, 78, 0.2);
}

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

.page-blog__article-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

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

.page-blog__article-title {
  font-size: 1.4rem;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
}

.page-blog__article-title:hover {
  color: #FFD36B; /* Glow color on hover */
}

.page-blog__article-meta {
  font-size: 0.9rem;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit excerpt to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-blog__read-more {
  color: #FFD36B; /* Glow color */
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-blog__read-more i {
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover .page-blog__read-more i {
  transform: translateX(5px);
}

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

.page-blog__btn--outline {
  background-color: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E;
  padding: 12px 25px;
}

.page-blog__btn--outline:hover {
  background-color: #F2C14E;
  color: #111111;
}

.page-blog__about-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-blog__text-block {
  font-size: 1.1rem;
  color: #FFF6D6;
  margin-bottom: 25px;
  line-height: 1.8;
  text-align: justify;
}

.page-blog__cta-box {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-top: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__cta-box-title {
  font-size: 2rem;
  color: #F2C14E;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-blog__cta-box-text {
  font-size: 1.1rem;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%; /* Ensure full width on mobile */
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 1. Top section (H1 + CTAs) */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }

  .page-blog__hero-title {
    font-size: 1.8rem; /* Adjusted for mobile */
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-blog__hero-cta {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  /* Buttons mobile adaptation */
  .page-blog__btn,
  .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: 12px 15px !important; /* Adjust padding for smaller screens */
    font-size: 0.95rem !important;
  }

  .page-blog__hero-cta,
  .page-blog__view-all,
  .page-blog__cta-box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* For multiple buttons, allow wrap */
    gap: 10px;
  }

  /* 2. Single column long article containers (for general text blocks) */
  .page-blog__articles-section,
  .page-blog__about-section {
    padding: 40px 0;
  }

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

  .page-blog__articles-grid {
    grid-template-columns: 1fr; /* Single column layout for cards */
    gap: 25px;
  }

  .page-blog__article-card {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .page-blog__article-image {
    height: 200px; /* Adjust height for mobile */
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-blog__article-title {
    font-size: 1.2rem;
  }

  .page-blog__article-meta,
  .page-blog__article-excerpt {
    font-size: 0.95rem;
  }

  /* 3. General images and figure */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Ensure content blocks don't cause overflow */
  .page-blog__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-blog__cta-box {
    padding: 30px;
    margin-top: 40px;
  }

  .page-blog__cta-box-title {
    font-size: 1.6rem;
  }

  .page-blog__cta-box-text {
    font-size: 1rem;
  }
}

/* --- Tablet Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-blog__container {
    padding: 0 15px;
  }

  .page-blog__hero-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
  }

  .page-blog__section-title {
    font-size: 2.2rem;
  }

  .page-blog__cta-box-title {
    font-size: 1.8rem;
  }
}