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

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

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  background-color: #140C0C;
  color: #FFF1E8;
}

.page-blog__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
}

.page-blog__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F3C54D; /* Gold color */
}

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

.page-blog__hero-cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-blog__hero-image {
  flex: 1 1 45%;
  text-align: center;
}

.page-blog__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #F3C54D; /* Gold color */
  border: 2px solid #F3C54D;
}

.page-blog__btn-secondary:hover {
  background: #F3C54D;
  color: #140C0C; /* Background color */
}

/* Blog List Section */
.page-blog__blog-list-section {
  padding: 60px 0;
  background-color: #140C0C;
}

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #F3C54D; /* Gold color */
}

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

.page-blog__blog-card {
  background-color: #2A1212; /* Card BG color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  color: #FFF1E8;
}

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

.page-blog__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-blog__blog-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

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

.page-blog__blog-card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #F3C54D; /* Gold color */
}

.page-blog__blog-card-excerpt {
  font-size: 0.95em;
  margin-bottom: 15px;
  line-height: 1.5;
}

.page-blog__blog-card-date {
  font-size: 0.85em;
  color: rgba(255, 241, 232, 0.7);
}

/* Pagination */
.page-blog__pagination-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  gap: 10px;
}

.page-blog__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #2A1212; /* Card BG color */
  color: #FFF1E8;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #6A1E1E; /* Border color */
}

.page-blog__pagination-link:hover,
.page-blog__pagination-link.is-active {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #ffffff;
  border-color: transparent;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  background-color: #140C0C;
}

.page-blog__cta-section .page-blog__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #2A1212; /* Card BG color */
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.page-blog__cta-image {
  width: 100%;
  height: auto;
  max-height: 300px; /* Limit height for aesthetic */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  display: block;
}

.page-blog__cta-content {
  position: relative;
  z-index: 1;
}

.page-blog__cta-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #F3C54D; /* Gold color */
}

.page-blog__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-blog__cta-title {
    font-size: clamp(2em, 4vw, 2.5em);
  }
  .page-blog__hero-container {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__hero-content, .page-blog__hero-image {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  .page-blog__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Retain small top padding */
    padding-bottom: 40px !important;
  }
  .page-blog__hero-container {
    padding: 30px 0 !important;
    gap: 30px !important;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
    text-align: center;
  }
  .page-blog__hero-description {
    font-size: 1em !important;
    text-align: center;
  }
  .page-blog__hero-cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-blog__btn-primary, .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-blog__hero-side-image {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Blog List Section */
  .page-blog__blog-list-section {
    padding: 40px 0 !important;
  }
  .page-blog__section-title {
    font-size: 2em !important;
    margin-bottom: 30px !important;
  }
  .page-blog__blog-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-blog__blog-card-image {
    height: 200px !important;
  }
  .page-blog__blog-card-title {
    font-size: 1.3em !important;
  }
  .page-blog__blog-card-excerpt {
    font-size: 0.9em !important;
  }

  /* Pagination */
  .page-blog__pagination-section {
    margin-top: 30px !important;
  }
  .page-blog__pagination-link {
    width: 35px !important;
    height: 35px !important;
    font-size: 0.9em !important;
  }

  /* CTA Section */
  .page-blog__cta-section {
    padding: 50px 0 !important;
  }
  .page-blog__cta-section .page-blog__container {
    padding: 30px !important;
  }
  .page-blog__cta-image {
    max-height: 200px !important;
    margin-bottom: 20px !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .page-blog__cta-title {
    font-size: 1.8em !important;
    margin-bottom: 15px !important;
  }
  .page-blog__cta-description {
    font-size: 1em !important;
    margin-bottom: 30px !important;
  }

  /* General image rules for mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-blog__section, .page-blog__card, .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}