.page-blog {
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-family: Arial, sans-serif;
}

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

.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Adjusted as per rule */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-blog__hero-content {
  text-align: center;
  padding: 40px 20px;
  background: #111111; /* Card B G */
  border-bottom: 2px solid #3A2A12; /* Border */
}

.page-blog__hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: #F2C14E; /* Main color */
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-blog__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for contrast */
  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: #111111; /* Card B G */
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E;
}

.page-blog__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-2px);
}

.page-blog__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  text-align: center;
  color: #F2C14E; /* Main color */
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-blog__latest-articles-section {
  padding: 60px 0;
}

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

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

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

.page-blog__card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.page-blog__article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-blog__article-excerpt {
  font-size: 16px;
  line-height: 1.5;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
}

.page-blog__read-more {
  color: #F2C14E; /* Main color */
  font-weight: bold;
  display: inline-block;
  position: relative;
}

.page-blog__read-more::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #F2C14E;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.page-blog__article-card:hover .page-blog__read-more::after {
  transform: scaleX(1);
}

.page-blog__view-all-button {
  text-align: center;
}

.page-blog__featured-article-section {
  background: #111111; /* Card B G */
  padding: 80px 0;
  border-top: 1px solid #3A2A12;
  border-bottom: 1px solid #3A2A12;
}

.page-blog__featured-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-blog__featured-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-blog__featured-text {
  flex: 1;
  max-width: 50%;
}

.page-blog__featured-title {
  font-size: clamp(24px, 3vw, 36px);
  color: #F2C14E; /* Main color */
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-blog__featured-description {
  font-size: 17px;
  line-height: 1.7;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
}

.page-blog__categories-section {
  padding: 60px 0;
}

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

.page-blog__category-card {
  background: #111111; /* Card B G */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 12px rgba(255, 211, 107, 0.5);
}

.page-blog__category-title {
  font-size: 20px;
  font-weight: 600;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 10px;
}

.page-blog__category-description {
  font-size: 15px;
  color: #FFF6D6; /* Text Main */
  line-height: 1.5;
}

.page-blog__cta-banner-section {
  background: linear-gradient(90deg, #111111 0%, #0A0A0A 100%); /* Custom gradient */
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid #3A2A12;
  border-bottom: 1px solid #3A2A12;
}

.page-blog__cta-content {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-blog__cta-title {
  font-size: clamp(26px, 3.5vw, 42px);
  color: #F2C14E; /* Main color */
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-blog__cta-description {
  font-size: 18px;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 35px;
}

.page-blog__cta-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  margin-top: 40px;
}

.page-blog__faq-section {
  padding: 60px 0 80px 0;
}

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

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

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, border-color 0.3s ease;
  color: #FFD36B; /* Auxiliary color */
  font-weight: 600;
}

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(242, 193, 78, 0.1);
}

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

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: #0A0A0A; /* Background color */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6; /* Text Main */
  font-size: 16px;
  line-height: 1.7;
}

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

.highlight {
  color: #FFD36B;
  font-weight: bold;
}

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

/* --- Media Queries --- */

@media (max-width: 1024px) {
  .page-blog__hero-image {
    height: 500px;
  }

  .page-blog__hero-title {
    font-size: 40px;
  }

  .page-blog__section-title {
    font-size: 36px;
  }

  .page-blog__featured-content {
    flex-direction: column;
    text-align: center;
  }

  .page-blog__featured-image {
    max-width: 80%;
    margin-bottom: 30px;
  }

  .page-blog__featured-text {
    max-width: 90%;
  }

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

  .page-blog__cta-image {
    max-width: 500px;
  }
}

@media (max-width: 849px) {
  .page-blog__hero-image img {
    object-fit: contain !important; /* HERO mobile: object-fit:contain */
    aspect-ratio: unset !important;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    margin-bottom: 30px;
  }

  .page-blog__hero-image {
    height: 300px;
  }

  .page-blog__hero-title {
    font-size: 28px; /* Clamp ensures it's not too big */
    margin-bottom: 15px;
  }

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

  .page-blog__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__section-title {
    font-size: 26px;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-blog__latest-articles-section {
    padding: 40px 0;
  }

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

  .page-blog__article-image {
    height: 180px;
  }

  .page-blog__article-title {
    font-size: 18px;
  }

  .page-blog__article-excerpt {
    font-size: 15px;
  }

  .page-blog__featured-article-section {
    padding: 50px 0;
  }

  .page-blog__featured-image {
    max-width: 100%;
    height: auto;
  }

  .page-blog__featured-text {
    max-width: 100%;
  }

  .page-blog__featured-title {
    font-size: 24px;
    margin-top: 20px;
  }

  .page-blog__featured-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

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

  .page-blog__categories-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-blog__category-card {
    padding: 20px;
  }

  .page-blog__category-title {
    font-size: 18px;
  }

  .page-blog__category-description {
    font-size: 14px;
  }

  .page-blog__cta-banner-section {
    padding: 50px 0;
  }

  .page-blog__cta-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-blog__cta-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-blog__cta-image {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
  }

  .page-blog__faq-section {
    padding: 40px 0 50px 0;
  }

  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;
    width: 25px;
  }

  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }

  /* General image responsiveness for mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__latest-articles-section,
  .page-blog__featured-article-section,
  .page-blog__categories-section,
  .page-blog__cta-banner-section,
  .page-blog__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}