/* style/blog.css */
/* body already has padding-top: var(--header-offset); page should not re-apply this variable to __video-section or similar */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  box-sizing: border-box;
  background-color: #0A0A0A;
}

.page-blog__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFD36B; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-blog__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #FFF6D6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for light button gradient */
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
  border: none;
  cursor: pointer;
}

.page-blog__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-blog__latest-posts-section,
.page-blog__featured-article-section,
.page-blog__tips-tricks-section,
.page-blog__faq-section,
.page-blog__cta-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-blog__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #FFD36B; /* Glow */
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

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

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

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__post-content {
  padding: 25px;
}

.page-blog__post-date {
  font-size: 0.9rem;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-blog__post-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.page-blog__post-title a {
  color: #FFF6D6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #FFD36B;
}

.page-blog__post-excerpt {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-blog__read-more-link {
  color: #F2C14E;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__read-more-link:hover {
  color: #FFD36B;
}

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

.page-blog__view-all-btn {
  padding: 12px 25px;
  font-size: 1rem;
}

.page-blog__featured-article-section {
  background-color: #111111; /* Card B G */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
}

.page-blog__content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.page-blog__featured-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-blog__featured-image {
  flex-shrink: 0;
  width: 600px;
  height: 450px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__featured-text {
  flex-grow: 1;
}

.page-blog__sub-title {
  font-size: 1.6rem;
  color: #F2C14E;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog__featured-text p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-blog__tips-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-direction: row-reverse; /* Image on right */
}

.page-blog__tips-image {
  flex-shrink: 0;
  width: 600px;
  height: 450px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__tips-list {
  flex-grow: 1;
}

.page-blog__tips-list p {
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-blog__faq-section {
  background-color: #111111; /* Card B G */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
}

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

.page-blog__faq-item {
  border-bottom: 1px solid #3A2A12; /* Border */
}

.page-blog__faq-item:last-child {
  border-bottom: none;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  color: #FFF6D6;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__faq-question:hover {
  color: #FFD36B;
}

.page-blog__faq-title {
  font-size: 1.2rem;
  margin: 0;
}

.page-blog__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #F2C14E;
  transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-blog__faq-item.active .page-blog__faq-answer {
  max-height: 1000px !important; /* Sufficiently large for content */
  padding: 15px;
}

.page-blog__cta-section {
  text-align: center;
  background-color: #0A0A0A; /* Background */
}

.page-blog__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-text-block {
  text-align: center;
}

.page-blog__cta-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF6D6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__featured-content,
  .page-blog__tips-content {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__featured-image,
  .page-blog__tips-image {
    width: 100%;
    max-width: 700px;
    height: auto;
  }

  .page-blog__featured-text,
  .page-blog__tips-list {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }

  .page-blog__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

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

  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 10px; /* For stacked buttons */
  }

  .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 {
    display: flex;
    flex-direction: column;
  }

  .page-blog__latest-posts-section,
  .page-blog__featured-article-section,
  .page-blog__tips-tricks-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 40px 15px;
  }

  .page-blog__post-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-blog__sub-title {
    font-size: 1.4rem;
  }

  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__faq-answer {
    padding: 0 10px;
  }

  .page-blog__faq-item.active .page-blog__faq-answer {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .page-blog__main-title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .page-blog__section-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
}