/* style/blog.css */

/* --- General Styles --- */
.page-blog {
  background-color: var(--background-color, #0D0E12); /* Default dark background */
  color: var(--text-main-color, #FFF3E6); /* Light text for dark background */
  font-family: Arial, sans-serif; /* Placeholder, usually from shared */
  line-height: 1.6;
  font-size: 16px;
}

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

.page-blog__section {
  padding: 60px 0;
  background-color: var(--background-color, #0D0E12);
}

.page-blog__section-title {
  font-size: 36px;
  color: var(--text-main-color, #FFF3E6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-blog p {
  margin-bottom: 1em;
  color: var(--text-main-color, #FFF3E6);
}

.page-blog strong {
  color: var(--primary-color, #FF8C1A); /* Use primary color for strong emphasis */
}

/* --- Hero Section --- */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: var(--background-color, #0D0E12);
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-blog__hero-image {
  width: 100%;
  max-width: 1920px; /* Max width for the image */
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-blog__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main-color, #FFF3E6);
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Example clamp for responsive H1 */
}

.page-blog__intro-text {
  font-size: 18px;
  color: var(--text-main-color, #FFF3E6);
  margin-bottom: 30px;
}

/* --- Buttons --- */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.page-blog__btn-primary {
  background: var(--button-gradient, linear-gradient(180deg, #FFA53A 0%, #D96800 100%));
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%); /* Slightly reverse gradient on hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 132, 0, 0.4);
}

.page-blog__btn-secondary {
  background: transparent;
  color: var(--primary-color, #FF8C1A);
  border: 2px solid var(--border-color, #A84F0C);
}

.page-blog__btn-secondary:hover {
  background: var(--primary-color, #FF8C1A);
  color: #ffffff;
  border-color: var(--primary-color, #FF8C1A);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 132, 0, 0.4);
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-blog__cta-buttons .page-blog__btn-primary,
.page-blog__cta-buttons .page-blog__btn-secondary {
    flex-grow: 1; /* Allow buttons to grow */
    max-width: 300px; /* Limit individual button width */
}

/* --- Content Images --- */
.page-blog__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  object-fit: cover;
  /* No filter property */
}

/* --- FAQ Section --- */
.page-blog__faq-list {
  margin-top: 50px;
  border-top: 1px solid var(--border-color, #A84F0C);
}

.page-blog__faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color, #A84F0C);
  padding-bottom: 15px;
}

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-size: 20px;
  font-weight: bold;
  color: var(--text-main-color, #FFF3E6);
  cursor: pointer;
  list-style: none; /* Hide default marker for details summary */
}

.page-blog__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: normal;
  color: var(--primary-color, #FF8C1A);
  margin-left: 15px;
}

.page-blog__faq-answer {
  padding-top: 10px;
  padding-bottom: 10px;
  color: var(--text-main-color, #FFF3E6);
  font-size: 16px;
  line-height: 1.6;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    max-width: 700px;
  }
  .page-blog__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 15px;
  }
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-blog__intro-text {
    font-size: 16px;
  }
  .page-blog__section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-blog__container {
    padding: 0 15px !important; /* Ensure containers have padding on mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsive */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 20px auto !important;
  }

  /* Buttons responsive */
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-blog__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding: 0 15px !important; /* Add padding to button group container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog__faq-question {
    font-size: 18px;
  }
  .page-blog__faq-answer {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__section-title {
    font-size: 24px;
  }
  .page-blog__hero-content {
    padding: 0 10px;
  }
}