/* style/blog.css */

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

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

.page-blog__section-heading {
  font-size: 2.5em;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__sub-heading {
  font-size: 1.8em;
  color: #FFD36B; /* Glow color */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__section-description,
.page-blog p,
.page-blog li {
  font-size: 1.1em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 1em;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__read-more-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding doesn't affect overall width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for bright button */
  border: none;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-blog__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-2px);
}

.page-blog__read-more-btn {
  background: #111111; /* Card BG */
  color: #FFD36B; /* Glow color */
  border: 1px solid #3A2A12; /* Border color */
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-blog__read-more-btn:hover {
  background: #3A2A12; /* Border color on hover */
}


/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding-top: 10px; /* Minimal top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  max-width: 1920px; /* Max width of the image itself */
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
}

.page-blog__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog__main-title {
  color: #F2C14E;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  font-size: clamp(2.5em, 5vw, 3.5em); /* Example: min 2.5em, preferred 5vw, max 3.5em */
}

.page-blog__tagline {
  font-size: 1.2em;
  color: #FFF6D6;
  margin-bottom: 30px;
}

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


/* Introduction Section */
.page-blog__introduction-section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background */
}

.page-blog__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-blog__feature-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  padding: 20px;
  border-radius: 10px;
  color: #FFF6D6;
  font-size: 1.05em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__feature-item strong {
  color: #FFD36B; /* Glow color */
}


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

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

.page-blog__category-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
}

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

.page-blog__category-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-blog__category-title a {
  color: #F2C14E; /* Main color */
  text-decoration: none;
  font-weight: bold;
}

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

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


/* Featured Articles Section */
.page-blog__featured-articles {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background */
}

.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-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
}

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

.page-blog__article-content {
  padding: 20px;
  flex-grow: 1; /* Allows content to expand */
  display: flex;
  flex-direction: column;
}

.page-blog__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-title a {
  color: #F2C14E; /* Main color */
  text-decoration: none;
  font-weight: bold;
}

.page-blog__article-title a:hover {
  text-decoration: underline;
}

.page-blog__article-meta {
  font-size: 0.85em;
  color: #FFD36B; /* Glow color */
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1; /* Push the button to the bottom */
}

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


/* Newsletter Section */
.page-blog__newsletter-section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background */
}

.page-blog__newsletter-section .page-blog__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__newsletter-image {
  flex: 1 1 40%;
  max-width: 40%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  min-width: 280px; /* Ensure image is not too small */
}

.page-blog__newsletter-content {
  flex: 1 1 50%;
  max-width: 50%;
  min-width: 280px;
}

.page-blog__newsletter-content .page-blog__section-heading {
  text-align: left;
  margin-bottom: 20px;
  font-size: 2em;
}

.page-blog__newsletter-content .page-blog__section-description {
  margin-bottom: 30px;
}

.page-blog__newsletter-form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-blog__email-input {
  flex-grow: 1;
  padding: 12px 15px;
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6; /* Text Main */
  font-size: 1em;
  min-width: 180px;
}

.page-blog__email-input::placeholder {
  color: #888;
}

.page-blog__newsletter-form .page-blog__btn-primary {
  flex-shrink: 0;
  min-width: 150px;
}


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

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

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

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

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

.page-blog__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD36B; /* Glow color */
}

.page-blog__faq-item.active .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
  font-size: 1em;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog__hero-image {
    max-width: 100%;
  }
  .page-blog__newsletter-image {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .page-blog__newsletter-content {
    max-width: 100%;
    flex: 1 1 100%;
    text-align: center;
  }
  .page-blog__newsletter-content .page-blog__section-heading {
    text-align: center;
  }
  .page-blog__newsletter-form {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-blog__section-heading {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-blog__sub-heading {
    font-size: 1.5em;
  }
  .page-blog__tagline {
    font-size: 1em;
  }

  /* Images responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Containers responsive */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__introduction-section,
  .page-blog__categories-section,
  .page-blog__featured-articles,
  .page-blog__newsletter-section,
  .page-blog__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__hero-section {
    padding-top: 10px !important; /* Minimal top padding */
    padding-bottom: 40px;
  }
  .page-blog__hero-content {
    padding: 0 15px;
  }
  .page-blog__main-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Adjust clamp for mobile */
  }

  /* Buttons responsive */
  .page-blog__cta-button,
  .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-left: 15px;
    padding-right: 15px;
  }
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-blog__newsletter-form {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__email-input {
    width: 100%;
  }
  .page-blog__newsletter-form .page-blog__btn-primary {
    width: 100%;
  }

  /* Card image height adjustment */
  .page-blog__category-image,
  .page-blog__article-image {
    height: 180px; /* Adjust height for smaller screens */
  }

  .page-blog__newsletter-section .page-blog__container {
    padding: 25px;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-blog__section-heading {
    font-size: 1.8em;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 9vw, 2.2em);
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 0 20px;
  }
  .page-blog__faq-item.active .page-blog__faq-answer {
    padding: 10px 20px 20px;
  }
}