/* style/blog.css */
/* Base styles for the blog page, adhering to BEM and color contrast */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main for dark background #0A0A0A */
  background-color: #0A0A0A; /* Page background color */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px; /* Adjusted padding to prevent header overlap, but rely on body padding for main offset */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
  background-color: #0A0A0A; /* Ensure consistent dark background */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.6); /* Slightly darken image for text readability, not changing color */
  min-height: 300px;
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem); /* Use clamp for responsive H1 */
  font-weight: 700;
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-blog__hero-cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #0A0A0A; /* Dark text for bright button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
}

.page-blog__hero-cta-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
}

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

.page-blog__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #FFD36B;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
}

.page-blog__section-description {
  font-size: 1rem;
  color: #FFF6D6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-blog__article-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6; /* Text Main for card background */
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-blog__card-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
  color: #FFD36B; /* Highlight titles */
}

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

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

.page-blog__card-meta {
  font-size: 0.9rem;
  color: #FFD36B; /* Date/meta color */
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__card-readmore-link {
  display: inline-block;
  color: #F2C14E;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__card-readmore-link:hover {
  color: #FFD36B;
  text-decoration: underline;
}

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
}

.page-blog__view-all-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
}


/* CTA Section */
.page-blog__cta-section {
  padding: 80px 20px;
  background-color: #F2C14E; /* Main brand color as background */
  text-align: center;
  color: #0A0A0A; /* Dark text for bright background */
}

.page-blog__cta-section .page-blog__section-title {
  color: #0A0A0A; /* Dark title for bright background */
}

.page-blog__cta-section .page-blog__section-description {
  color: #111111; /* Darker text for description */
  margin-bottom: 50px;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease, border-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A;
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #0A0A0A; /* Dark text for secondary button on bright background */
  border: 2px solid #0A0A0A; /* Dark border */
}

.page-blog__btn-secondary:hover {
  transform: translateY(-2px);
  background: #0A0A0A;
  color: #FFD36B; /* Light text on dark hover background */
  border-color: #0A0A0A;
}

/* Explore Categories Section */
.page-blog__explore-categories-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-blog__category-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 12px;
  padding: 20px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #FFF6D6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-blog__category-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 10px;
  display: block; /* Ensure it behaves as a block element */
}

.page-blog__category-name {
  font-size: 1rem;
  font-weight: bold;
  color: #FFF6D6;
}

/* About Nustar Section */
.page-blog__about-nustar-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-blog__about-nustar-section p {
  color: #FFF6D6;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__about-nustar-section .page-blog__btn-primary {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__faq-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111;
  transition: background-color 0.3s ease;
}

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

.page-blog__faq-question h3 {
  font-size: 1.15rem;
  color: #FFD36B;
  margin: 0;
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #F2C14E;
  transition: transform 0.3s ease;
}

.page-blog__faq-item.active .page-blog__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes an X or minus */
}

.page-blog__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-blog__faq-item.active .page-blog__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 25px;
}

.page-blog__faq-answer p {
  color: #FFF6D6;
  font-size: 1rem;
  margin: 0;
  text-align: left;
}

/* Contact Section */
.page-blog__contact-section {
  padding: 80px 20px;
  background-color: #F2C14E; /* Main brand color as background */
  text-align: center;
  color: #0A0A0A; /* Dark text for bright background */
}

.page-blog__contact-section .page-blog__section-title {
  color: #0A0A0A;
}

.page-blog__contact-section .page-blog__section-description {
  color: #111111;
  margin-bottom: 50px;
}

.page-blog__contact-section .page-blog__btn-primary,
.page-blog__contact-section .page-blog__btn-secondary {
  margin: 0 10px;
}

/* Copyright Section */
.page-blog__copyright-section {
  padding: 30px 20px;
  background-color: #111111; /* Card BG as footer background */
  text-align: center;
  border-top: 1px solid #3A2A12; /* Border color */
}

.page-blog__copyright-text {
  font-size: 0.9rem;
  color: #FFF6D6;
  margin: 0;
}

/* Keyword highlighting (optional, for visual emphasis) */
.page-blog__keyword {
  color: #FFD36B;
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-blog__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  .page-blog__hero-description {
    font-size: 1.05rem;
  }
  .page-blog__article-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__hero-section {
    padding: 40px 15px 20px;
  }
  .page-blog__hero-content {
    padding: 20px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-blog__hero-description {
    font-size: 1rem;
  }
  .page-blog__hero-cta-button,
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog__view-all-button,
  .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-left: 15px;
    padding-right: 15px;
  }
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container,
  .page-blog__contact-section .page-blog__cta-buttons { /* Target contact section buttons too */
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-top: 40px;
  }
  .page-blog__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-blog__article-image {
    height: 160px;
  }
  .page-blog__article-card {
    padding-bottom: 10px;
  }
  .page-blog__card-title {
    font-size: 1.2rem;
  }
  .page-blog__card-excerpt {
    font-size: 0.95rem;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
  }
  .page-blog__category-item {
    padding: 15px 5px;
  }
  .page-blog__category-name {
    font-size: 0.9rem;
  }
  .page-blog__faq-question h3 {
    font-size: 1.05rem;
  }

  /* Images responsive styles */
  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Hero section acts as the first content module */
  .page-blog__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .page-blog__hero-description {
    font-size: 0.9rem;
  }
  .page-blog__hero-cta-button {
    font-size: 1rem;
    padding: 12px 25px;
  }
  .page-blog__section-title {
    font-size: clamp(1.4rem, 7vw, 1.8rem);
  }
  .page-blog__category-item {
    padding: 10px 5px;
  }
  .page-blog__category-name {
    font-size: 0.9rem;
  }
  .page-blog__faq-question h3 {
    font-size: 1rem;
  }
}

/* Ensure no filter is used on images to change their color */
.page-blog img {
  filter: none !important;
}