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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
}

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

.page-blog__hero-content {
  padding: 20px;
  max-width: 900px;
  margin-top: 20px;
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 */
  font-weight: bold;
  color: #F2C14E; /* Main color */
  margin-bottom: 15px;
  line-height: 1.2;
}

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

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

/* Section Titles */
.page-blog__section-title {
  font-size: 2.5em;
  color: #F2C14E;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-blog__section-description {
  font-size: 1.1em;
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Text Blocks */
.page-blog__text-block {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.3); /* Glow */
}

/* Blog Articles Section */
.page-blog__articles-section,
.page-blog__intro-section,
.page-blog__why-read-section,
.page-blog__categories-section,
.page-blog__faq-section,
.page-blog__cta-section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-blog__blog-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusted for masonry-like feel, min 300px */
  gap: 30px;
  align-items: stretch; /* Ensure cards in the same row have equal height */
}

.page-blog__blog-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.4); /* Glow on hover */
}

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

.page-blog__blog-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__blog-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Allow content to grow */
}

.page-blog__blog-card-category {
  font-size: 0.9em;
  color: #F2C14E; /* Main color */
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: bold;
}

.page-blog__blog-card-title {
  font-size: 1.4em;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1; /* Title can take more space */
}

.page-blog__blog-card-excerpt {
  font-size: 0.95em;
  color: #FFF6D6;
  margin-bottom: 15px;
}

.page-blog__blog-card-date {
  font-size: 0.85em;
  color: #aaa;
  margin-top: auto; /* Push date to bottom */
  margin-bottom: 15px;
}

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

/* Why Read Section (Features Grid) */
.page-blog__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog__feature-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__feature-icon {
    width: 100%; /* Ensure images are not small icons */
    max-width: 250px; /* Recommended size for feature icons */
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-blog__feature-title {
    font-size: 1.5em;
    color: #FFD36B; /* Auxiliary color */
    margin-bottom: 15px;
}

.page-blog__feature-description {
    font-size: 1em;
    color: #FFF6D6;
    line-height: 1.6;
}

/* Categories Section */
.page-blog__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog__category-card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(242, 193, 78, 0.4); /* Glow on hover */
}

.page-blog__category-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-blog__category-title {
    font-size: 1.5em;
    color: #FFD36B; /* Auxiliary color */
    margin-bottom: 10px;
    padding: 15px 20px 0;
}

.page-blog__category-description {
    font-size: 0.95em;
    color: #FFF6D6;
    padding: 0 20px 15px;
    flex-grow: 1;
}

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

.page-blog__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  cursor: pointer;
  background-color: #1a1a1a;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: #2a2a2a;
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

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

.page-blog__faq-item[open] .page-blog__faq-question {
  border-bottom-color: #3A2A12;
}

.page-blog__faq-item[open] .page-blog__faq-toggle::after {
  content: '-';
}
.page-blog__faq-item:not([open]) .page-blog__faq-toggle::after {
  content: '+';
}
/* Hide default marker */
.page-blog__faq-item summary::-webkit-details-marker,
.page-blog__faq-item summary::marker {
  display: none;
  content: "";
}

.page-blog__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #FFF6D6;
  line-height: 1.6;
  background-color: #111111;
}

.page-blog__faq-answer p {
  margin-bottom: 10px;
}
.page-blog__faq-answer p:last-child {
  margin-bottom: 0;
}
.page-blog__faq-answer a {
  color: #F2C14E;
  text-decoration: underline;
}

/* CTA Section */
.page-blog__cta-section {
  text-align: center;
  background: linear-gradient(135deg, #1A1A1A, #0A0A0A);
  padding: 80px 0;
  border-radius: 10px;
  margin-top: 40px;
}

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

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

.page-blog__cta-content .page-blog__text-block {
  font-size: 1.1em;
  margin-bottom: 40px;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__btn-outline {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box; /* For responsiveness */
  white-space: normal; /* For responsiveness */
  word-wrap: break-word; /* For responsiveness */
}

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

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #FFE082 0%, #E6B02A 100%);
  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; /* Main color border */
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-blog__btn-secondary:hover {
  background-color: #F2C14E;
  color: #111111;
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.page-blog__btn-outline {
    background-color: transparent;
    color: #FFD36B;
    border: 1px solid #FFD36B;
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* General image rules */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__blog-masonry {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__features-grid,
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* General container for mobile padding */
  .page-blog__container,
  .page-blog__cta-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* Sections */
  .page-blog__articles-section,
  .page-blog__intro-section,
  .page-blog__why-read-section,
  .page-blog__categories-section,
.page-blog__faq-section,
  .page-blog__cta-section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-blog__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-blog__text-block {
    font-size: 0.95em;
  }

  /* Blog Cards */
  .page-blog__blog-masonry {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }
  .page-blog__blog-card-image {
    height: 180px; /* Slightly smaller height for mobile */
  }
  .page-blog__blog-card-title {
    font-size: 1.2em;
  }
  .page-blog__blog-card-excerpt {
    font-size: 0.9em;
  }

  /* Feature & Category Grids */
  .page-blog__features-grid,
  .page-blog__categories-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }
}