/* style/blog.css */

/* General styles */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF3E6); /* Use Text Main color */
  background: var(--background-color, #0D0E12); /* Use Background color */
}

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFF3E6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FFA53A, #FF8C1A);
  border-radius: 2px;
}

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

.page-blog__cta-button {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-blog__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-blog__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FF8C1A; /* Primary color */
  border: 2px solid #A84F0C; /* Border color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary:hover {
  transform: translateY(-2px);
  background: #FF8C1A;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

/* Image styles */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  text-align: center;
  overflow: hidden;
  background: var(--background-color, #0D0E12); /* Background color */
}

.page-blog__hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 0;
}

.page-blog__hero-content {
  max-width: 900px;
  margin: 40px auto 60px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: 48px;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 20px;
  color: #E0E0E0;
  margin-bottom: 30px;
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
  padding: 80px 0;
  background: var(--background-color, #0D0E12); /* Background color */
}

.page-blog__articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.page-blog__article-card {
  background: #17191F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 0;
}

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

.page-blog__article-title {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

.page-blog__article-title a {
  color: #FFF3E6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #FFA53A; /* Auxiliary color */
}

.page-blog__article-meta {
  font-size: 14px;
  color: #A0A0A0;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 16px;
  color: #D0D0D0;
  margin-bottom: 20px;
}

.page-blog__read-more-button {
  display: inline-block;
  color: #FFA53A; /* Auxiliary color */
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-blog__read-more-button:hover {
  color: #FFB04D; /* Glow color */
}

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

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
  background: #17191F; /* Card BG */
}

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

.page-blog__category-card {
  background: #0D0E12; /* Background color */
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: #FFF3E6; /* Text Main */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 140, 26, 0.3);
  background: #FF8C1A; /* Primary color */
}

.page-blog__category-card:hover .page-blog__category-title,
.page-blog__category-card:hover .page-blog__category-description {
  color: #ffffff;
}

.page-blog__category-title {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
  color: #FFF3E6; /* Text Main */
}

.page-blog__category-description {
  font-size: 14px;
  color: #D0D0D0;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 80px 0;
  background: var(--background-color, #0D0E12); /* Background color */
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF3E6; /* Text Main */
  font-weight: 600;
}
details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
  display: none;
}
details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: #252830; /* Slightly lighter Card BG for hover */
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6; /* Text Main */
}
.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: #0D0E12; /* Background color */
  border-radius: 0 0 10px 10px;
  color: #D0D0D0;
  font-size: 16px;
}
details.page-blog__faq-item .page-blog__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  background: #17191F; /* Card BG */
  text-align: center;
}

.page-blog__cta-section.page-blog__dark-section {
  background: #0D0E12; /* Background color */
  color: #FFF3E6; /* Text Main */
}

.page-blog__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__cta-title {
  font-size: 40px;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__cta-description {
  font-size: 20px;
  color: #E0E0E0;
  margin-bottom: 40px;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-blog__cta-image {
  display: none; /* Hide on desktop for this layout */
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 40px;
  }
  .page-blog__hero-description {
    font-size: 18px;
  }
  .page-blog__articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .page-blog__category-card {
    padding: 25px 15px;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-blog__section-title {
    font-size: 32px;
  }
  .page-blog__cta-title {
    font-size: 36px;
  }
  .page-blog__cta-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px;
  }

  /* Hero Section */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }
  .page-blog__hero-image {
    max-height: 300px;
  }
  .page-blog__hero-content {
    margin: 30px auto 40px;
    padding: 0 15px;
  }
  .page-blog__main-title {
    font-size: 32px;
  }
  .page-blog__hero-description {
    font-size: 16px;
  }
  .page-blog__cta-button {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Latest Articles Section */
  .page-blog__latest-articles-section {
    padding: 60px 0;
  }
  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .page-blog__article-card {
    border-radius: 10px;
  }
  .page-blog__article-image {
    height: 180px;
  }
  .page-blog__article-content {
    padding: 20px;
  }
  .page-blog__article-title {
    font-size: 18px;
  }
  .page-blog__article-excerpt {
    font-size: 14px;
  }
  .page-blog__read-more-button {
    font-size: 14px;
  }
  .page-blog__view-all-button-container .page-blog__cta-button {
    max-width: 100% !important;
    width: 100% !important;
  }

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

  /* FAQ Section */
  .page-blog__faq-section {
    padding: 60px 0;
  }
  details.page-blog__faq-item {
    margin-bottom: 10px;
    border-radius: 8px;
  }
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
  }
  .page-blog__faq-qtext {
    font-size: 16px;
  }
  .page-blog__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 20px;
    font-size: 14px;
  }

  /* CTA Section */
  .page-blog__cta-section {
    padding: 60px 0;
  }
  .page-blog__cta-title {
    font-size: 28px;
  }
  .page-blog__cta-description {
    font-size: 16px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Added padding to container */
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
  }

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