/* style/blog.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-color-light: #ffffff;
  --background-color-dark: #252b38; /* A darker shade for contrast sections */
  --button-login-color: #EA7C07;
}

.page-blog {
  font-family: Arial, sans-serif;
  color: var(--text-color-dark);
  background-color: var(--background-color-light);
  line-height: 1.6;
}

.page-blog__section-spacing {
  padding: 60px 0;
}

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

.page-blog__center-content {
  text-align: center;
}

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 36px);
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

.page-blog__section-title--light {
  color: var(--secondary-color);
}

.page-blog__section-description {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-color-dark);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__section-description--light {
  color: var(--secondary-color);
}

.page-blog__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-blog__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-blog__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-blog__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* HERO Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  padding-bottom: 60px;
  overflow: hidden;
  color: var(--secondary-color);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 0;
}

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  margin-top: 100px; /* Push content down from top */
}

.page-blog__main-title {
  font-size: clamp(36px, 5vw, 50px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-blog__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 30px;
  color: var(--secondary-color);
}

/* Latest News Section */
.page-blog__latest-news-section {
  background-color: var(--background-color-light);
}

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

.page-blog__blog-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-blog__blog-card-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  display: block;
}

.page-blog__blog-card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-blog__blog-card-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__blog-card-link:hover {
  color: darken(var(--primary-color), 10%);
}

.page-blog__blog-card-excerpt {
  font-size: 15px;
  color: var(--text-color-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

.page-blog__read-more-link:hover {
  text-decoration: underline;
}

.page-blog__button-container {
  margin-top: 40px;
}

/* Categories Section */
.page-blog__categories-section {
  background-color: var(--background-color-dark);
}

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

.page-blog__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-blog__category-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-blog__category-link {
  color: var(--secondary-color);
  text-decoration: none;
}

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

.page-blog__category-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

/* Deep Dive Article Section */
.page-blog__deep-dive-section {
  background-color: var(--background-color-light);
}

.page-blog__article-content {
  text-align: left;
  font-size: 17px;
  line-height: 1.7;
}

.page-blog__article-content p {
  margin-bottom: 20px;
  color: var(--text-color-dark);
}

.page-blog__article-subtitle {
  font-size: 24px;
  color: var(--primary-color);
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__article-sub-subtitle {
  font-size: 20px;
  color: var(--text-color-dark);
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog__article-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  display: block;
}

/* Promotions Section */
.page-blog__promotions-section {
  background-color: #f5f5f5;
}

.page-blog__promo-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-blog__promo-item {
  background-color: var(--secondary-color);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 17px;
  color: var(--text-color-dark);
}

.page-blog__promo-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-blog__faq-section {
  background-color: var(--background-color-light);
}

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

.page-blog__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

.page-blog__faq-item[open] .page-blog__faq-question {
  border-bottom: none;
}

.page-blog__faq-question::-webkit-details-marker, /* Hide default marker for Webkit */
.page-blog__faq-question::marker { /* Hide default marker for Firefox/Edge */
  display: none;
  content: "";
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

.page-blog__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-blog__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  color: var(--text-color-dark);
  line-height: 1.7;
}

.page-blog__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-blog__faq-answer a:hover {
  color: darken(var(--primary-color), 10%);
}

/* Why Choose Section */
.page-blog__why-choose-section {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-blog__reason-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-blog__reason-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 17px;
}

.page-blog__why-choose-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Final CTA Section */
.page-blog__final-cta-section {
  background-color: var(--background-color-light);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }
  .page-blog__hero-content {
    margin-top: 60px; /* Adjust content margin for mobile */
    padding: 0 15px;
  }
  .page-blog__main-title {
    font-size: clamp(30px, 8vw, 40px);
  }
  .page-blog__hero-description {
    font-size: clamp(16px, 3vw, 18px);
  }

  /* Latest News Section (Blog Grid) */
  .page-blog__latest-news-section .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__blog-card-image {
    height: 180px;
  }
  .page-blog__blog-card-title {
    font-size: 18px;
  }
  .page-blog__blog-card-excerpt {
    font-size: 14px;
  }

  /* Categories Section */
  .page-blog__categories-section .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-blog__category-card {
    padding: 20px;
  }
  .page-blog__category-title {
    font-size: 20px;
  }

  /* Deep Dive Article Section */
  .page-blog__deep-dive-section .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__article-content {
    font-size: 15px;
  }
  .page-blog__article-subtitle {
    font-size: 22px;
  }
  .page-blog__article-sub-subtitle {
    font-size: 18px;
  }

  /* Promotions Section */
  .page-blog__promotions-section .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__promo-item {
    font-size: 15px;
  }

  /* FAQ Section */
  .page-blog__faq-section .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-blog__faq-answer {
    padding: 10px 20px 15px;
    font-size: 15px;
  }

  /* Why Choose Section */
  .page-blog__why-choose-section .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__reason-item {
    font-size: 15px;
  }

  /* Final CTA Section */
  .page-blog__final-cta-section .page-blog__container {
    padding: 0 15px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Image & Container Responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }
  .page-blog__section, .page-blog__card, .page-blog__container, .page-blog__blog-grid, .page-blog__categories-grid, .page-blog__faq-list, .page-blog__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}

@media (max-width: 549px) {
  .page-blog__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
  }
}