/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main - light text for dark background */
  background-color: #000000; /* Body background is black */
}

.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  background-color: #B71C1C; /* Background color for hero section */
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px; /* Space between image and content */
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

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

.page-blog__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: #FFD86A; /* Gold-like color for main title */
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #FFF5E1; /* Light text */
}

.page-blog__section {
  padding: 60px 20px;
  background-color: #000000; /* Ensure sections have a background */
  color: #FFF5E1; /* Light text for dark sections */
}

.page-blog__section:nth-of-type(even) {
  background-color: #7A0E0E; /* Deep Red for alternating sections */
}

.page-blog__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem); /* Responsive font size */
  font-weight: 700;
  color: #FFD86A; /* Gold-like color for section titles */
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.8px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.page-blog__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem); /* Responsive font size */
  font-weight: 600;
  color: #E53935; /* Auxiliary red for sub-titles */
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #F2B544; /* Border color for sub-titles */
  padding-bottom: 10px;
}

.page-blog p {
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main */
}

.page-blog strong {
  color: #F4D34D; /* Gold for strong text */
}

.page-blog a {
  color: #FFD86A; /* Gold for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog a:hover {
  color: #F4D34D; /* Lighter gold on hover */
  text-decoration: underline;
}

.page-blog__image-with-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin: 40px 0;
}

.page-blog__image-content {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* CTA Buttons */
.page-blog__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure buttons are not too small */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Responsive button */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red text for contrast */
  border: 2px solid #F2B544; /* Border color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #F4D34D 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #FFD86A; /* Gold text */
  border: 2px solid #FFD86A; /* Gold border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-blog__btn-secondary:hover {
  background-color: #FFD86A;
  color: #7A0E0E;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

/* FAQ Section */
.page-blog__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  border: 1px solid #F2B544;
  border-radius: 8px;
  overflow: hidden;
}

.page-blog__faq-item {
  background-color: #D32F2F; /* Card BG */
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFF5E1; /* Text Main */
  cursor: pointer;
  background-color: #C91F17; /* Main color for question background */
  transition: background-color 0.3s ease;
}

.page-blog__faq-question:hover {
  background-color: #E53935; /* Auxiliary red on hover */
}

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

.page-blog__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: #FFD86A; /* Gold for toggle icon */
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−'; /* Minus sign when open */
}

.page-blog__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #FFF5E1; /* Text Main */
  background-color: #D32F2F; /* Card BG for answer */
}

/* Details element specific styles */
.page-blog__faq-item > summary {
  list-style: none;
}
.page-blog__faq-item > summary::-webkit-details-marker {
  display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 10px 15px 40px;
  }

  .page-blog__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-blog__intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-blog__section {
    padding: 40px 15px;
  }

  .page-blog__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-blog__sub-title {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-blog__image-with-text {
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
  }

  .page-blog__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-blog__faq-question {
    padding: 15px;
    font-size: 1rem;
  }

  .page-blog__faq-toggle {
    font-size: 1.2rem;
  }

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

  /* General image responsiveness for all content images */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure content wrappers also adapt */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video section top padding for mobile */
  .page-blog__video-section {
    padding-top: 10px !important;
  }
}

/* Ensure content images are at least 200x200px */
.page-blog img:not(.page-blog__hero-image) {
  min-width: 200px;
  min-height: 200px;
}