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

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFB04D; /* Glow */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog a[class*="button"],
.page-blog a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  border: none;
}

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

.page-blog__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #A84F0C; /* Border */
}

.page-blog__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
  border-color: #FFA53A;
  transform: translateY(-2px);
}

.page-blog__inline-link {
  color: #FFA53A;
  text-decoration: underline;
}

.page-blog__inline-link:hover {
  color: #FFB04D;
}

/* Hero Carousel Section */
.page-blog__hero-carousel-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 60px;
}

.page-blog__hero-slider {
  position: relative;
  width: 100%;
  height: 675px; /* Fixed height for desktop */
  overflow: hidden;
}

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

.page-blog__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.page-blog__hero-slide.is-active {
  opacity: 1;
}

.page-blog__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 15%; /* Adjust padding for text block */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: #ffffff;
  text-align: center;
  box-sizing: border-box;
}

.page-blog__hero-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFB04D; /* Glow */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-cta {
  margin-top: 20px;
}

.page-blog__hero-slider-prev,
.page-blog__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
  border-radius: 5px;
}

.page-blog__hero-slider-prev {
  left: 10px;
}

.page-blog__hero-slider-next {
  right: 10px;
}

/* Blog Posts Section */
.page-blog__content-area {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
}

.page-blog__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Changed to 3 columns for better content density */
  gap: 30px;
  margin-bottom: 40px;
}

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

.page-blog__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-blog__blog-card-content {
  padding: 20px;
}

.page-blog__blog-card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFA53A; /* Auxiliary color */
  line-height: 1.3;
}

.page-blog__blog-card-title a {
  color: #FFA53A;
  text-decoration: none;
}

.page-blog__blog-card-title a:hover {
  color: #FFB04D;
}

.page-blog__blog-card-excerpt {
  font-size: 0.95em;
  color: #FFF3E6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-blog__blog-card-meta {
  font-size: 0.85em;
  color: #A84F0C;
}

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

/* In-depth Article Section */
.page-blog__article-section {
  padding: 60px 0;
  background-color: #17191F; /* Card BG, but used as section background for contrast */
  color: #FFF3E6;
}

.page-blog__article-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-blog__article-content h3 {
  font-size: 2em;
  color: #FFB04D; /* Glow */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__article-content h4 {
  font-size: 1.6em;
  color: #FFA53A; /* Auxiliary color */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__article-content p {
  margin-bottom: 20px;
}

.page-blog__article-content ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-blog__article-content li {
  margin-bottom: 10px;
}

.page-blog__article-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #0D0E12; /* Background */
  border-top: 1px solid #A84F0C;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* General Image styles for responsiveness */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-slider {
    height: 500px;
  }

  .page-blog__hero-content {
    padding: 30px 10%;
  }

  .page-blog__hero-title {
    font-size: 2.2em;
  }

  .page-blog__hero-description {
    font-size: 1em;
  }

  .page-blog__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-blog__blog-card-image {
    height: 180px;
  }

  .page-blog__blog-card-title {
    font-size: 1.2em;
  }

  .page-blog__article-content {
    font-size: 1em;
  }

  .page-blog__article-content h3 {
    font-size: 1.8em;
  }

  .page-blog__article-content h4 {
    font-size: 1.4em;
  }

  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__section-description {
    font-size: 1em;
  }
}

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

  .page-blog__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-top: 15px;
  }

  .page-blog__section-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  /* Hero Carousel Section */
  .page-blog__hero-carousel-section {
    padding-top: 10px !important; /* Retain small top padding */
    margin-bottom: 40px;
  }

  .page-blog__hero-slider {
    height: 300px; /* Smaller height for mobile */
  }

  .page-blog__hero-content {
    padding: 20px 5%;
  }

  .page-blog__hero-title {
    font-size: 1.5em;
    margin-bottom: 10px;
  }

  .page-blog__hero-description {
    font-size: 0.9em;
    margin-bottom: 20px;
  }

  .page-blog__hero-slider-prev,
  .page-blog__hero-slider-next {
    padding: 10px 5px;
    font-size: 1.2em;
  }

  /* Blog Posts Section */
  .page-blog__blog-grid {
    grid-template-columns: repeat(1, 1fr); /* Single column for mobile */
    gap: 20px;
  }

  .page-blog__blog-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-blog__blog-card-image {
    height: 160px;
  }

  .page-blog__blog-card-title {
    font-size: 1.1em;
  }

  .page-blog__blog-card-excerpt {
    font-size: 0.9em;
  }

  /* In-depth Article Section */
  .page-blog__article-section {
    padding: 40px 0;
  }

  .page-blog__article-content {
    font-size: 0.95em;
    line-height: 1.5;
  }

  .page-blog__article-content h3 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-blog__article-content h4 {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-blog__article-cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }

  /* CTA Section */
  .page-blog__cta-section {
    padding: 40px 0;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }

  /* General Images and Buttons */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .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-wrap: wrap !important;
    gap: 10px;
  }

  .page-blog__article-content ul {
    margin-left: 15px;
  }
}