/* style/blog.css */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  padding-top: 0; /* Handled by body in shared.css */
}

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

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

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

.page-blog__hero-section {
  background: linear-gradient(135deg, #F2C14E, #FFD36B);
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-blog__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Using clamp for responsive font size */
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  max-width: 900px;
}

.page-blog__hero-description {
  font-size: 1.2em;
  color: #FFF6D6;
  max-width: 800px;
  margin-bottom: 30px;
}

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

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

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

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main Color */
  border: 2px solid #F2C14E; /* Main Color */
}

.page-blog__btn-secondary:hover {
  background: #F2C14E; /* Main Color */
  color: #111111; /* Dark text for bright button */
  transform: translateY(-2px);
}

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

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

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

.page-blog__post-thumbnail {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-blog__card-content {
  padding: 20px;
}

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

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

.page-blog__card-title a:hover {
  color: #FFD36B; /* Glow */
}

.page-blog__card-meta {
  font-size: 0.9em;
  color: rgba(255, 246, 214, 0.7); /* Text Main with opacity */
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1em;
  color: rgba(255, 246, 214, 0.8);
  margin-bottom: 20px;
}

.page-blog__read-more {
  color: #F2C14E; /* Main Color */
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  position: relative;
}

.page-blog__read-more::after {
  content: '→';
  position: absolute;
  right: -15px;
  transition: right 0.3s ease;
}

.page-blog__read-more:hover::after {
  right: -20px;
}

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

.page-blog__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}

.page-blog__category-item {
  background: #111111; /* Card BG */
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #FFF6D6; /* Text Main */
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid #3A2A12; /* Border */
}

.page-blog__category-item:hover {
  transform: translateY(-5px);
  background: #1a1a1a;
}

.page-blog__category-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 10px;
}

.page-blog__category-name {
  font-weight: bold;
  font-size: 1.1em;
}

.page-blog__featured-article h3 {
  font-size: 1.8em;
  color: #F2C14E; /* Main Color */
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__featured-article p {
  margin-bottom: 1em;
  color: #FFF6D6;
  font-size: 1.05em;
}

.page-blog__featured-article ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 1em;
  color: #FFF6D6;
}

.page-blog__featured-article li {
  margin-bottom: 0.5em;
  color: #FFF6D6;
}

.page-blog__article-meta {
  font-size: 0.9em;
  color: rgba(255, 246, 214, 0.7);
  margin-bottom: 30px;
}

.page-blog__cta-buttons--article {
  margin-top: 40px;
  border-top: 1px solid #3A2A12;
  padding-top: 30px;
}

.page-blog__why-choose {
  background-color: #111111; /* Card BG */
  border-top: 1px solid #3A2A12; /* Border */
  border-bottom: 1px solid #3A2A12; /* Border */
}

.page-blog__dark-section {
  background-color: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
}

.page-blog__dark-section .page-blog__section-title {
  color: #F2C14E;
}

.page-blog__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-blog__feature-item {
  background: #0A0A0A; /* Background */
  border-radius: 10px;
  padding: 30px 20px;
  border: 1px solid #3A2A12; /* Border */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog__feature-icon {
  width: 200px; /* Minimum size */
  height: 150px; /* Minimum size */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-blog__feature-title {
  font-size: 1.3em;
  color: #F2C14E; /* Main Color */
  margin-bottom: 10px;
}

.page-blog__feature-description {
  font-size: 1em;
  color: rgba(255, 246, 214, 0.8);
}

.page-blog__faq-section {
  padding-bottom: 80px;
}

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

.page-blog__faq-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background: #1a1a1a;
  color: #FFF6D6; /* Text Main */
  font-weight: bold;
  font-size: 1.1em;
}

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

.page-blog__faq-question h3 {
  margin: 0;
  color: inherit;
}

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

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

.page-blog__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: rgba(255, 246, 214, 0.8);
}

.page-blog__faq-item.active .page-blog__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it overrides */
  padding: 20px;
}

.page-blog__faq-answer p {
  margin-top: 0;
  margin-bottom: 1em;
  color: inherit;
}

.page-blog__cta-final {
  text-align: center;
  background: #0A0A0A; /* Background */
  border-top: 1px solid #3A2A12; /* Border */
}

.page-blog__cta-final .page-blog__section-title {
  color: #FFF6D6;
}

.page-blog__cta-description {
  font-size: 1.2em;
  color: #FFF6D6;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 60px 20px;
  }
  .page-blog__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-blog__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog__hero-content {
    padding: 40px 15px;
    min-height: 300px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
  }
  .page-blog__section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-blog__post-grid,
  .page-blog__category-grid,
  .page-blog__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__post-thumbnail {
    height: 180px;
  }
  .page-blog__card-title {
    font-size: 1.2em;
  }
  .page-blog__category-item {
    flex-direction: row;
    justify-content: flex-start;
    padding: 15px;
  }
  .page-blog__category-icon {
    margin-right: 15px;
    margin-bottom: 0;
  }
  .page-blog__feature-icon {
    width: 150px;
    height: 100px;
  }
  .page-blog__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-blog__faq-answer {
    padding: 0 15px;
  }
  .page-blog__faq-item.active .page-blog__faq-answer {
    padding: 15px;
  }
  /* Mobile image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-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: var(--header-offset, 100px) !important; /* Mobile header offset */
  }
  .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__cta-buttons {
    flex-direction: column;
  }
}