/* style/blog.css */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for aesthetic */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

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

.page-blog__hero-content-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 800px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog__hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFF6D6; /* Text Main */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #FFD36B; /* Glow */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-blog__hero-cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for contrast */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background */
}

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

.page-blog__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F2C14E; /* Main color */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-blog__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #FFF6D6; /* Text Main */
}

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

.page-blog__post-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-blog__post-thumbnail-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for thumbnails */
  overflow: hidden;
}

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

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

.page-blog__post-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-blog__post-meta {
  font-size: 0.9rem;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1rem;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-button {
  display: inline-block;
  background: transparent;
  color: #F2C14E; /* Main color */
  border: 1px solid #F2C14E; /* Main color */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.page-blog__read-more-button:hover {
  background-color: #F2C14E; /* Main color */
  color: #111111; /* Dark text for contrast */
}

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

.page-blog__view-all-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for contrast */
  padding: 15px 40px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__view-all-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Newsletter Section */
.page-blog__newsletter-section {
  padding: 80px 0;
  background-color: #111111; /* Card BG */
  text-align: center;
  border-top: 1px solid #3A2A12; /* Border */
}

.page-blog__newsletter-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  margin-bottom: 20px;
}

.page-blog__newsletter-description {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: #FFF6D6; /* Text Main */
}

.page-blog__newsletter-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-blog__newsletter-input {
  flex: 1;
  min-width: 250px;
  padding: 15px 20px;
  border: 1px solid #3A2A12; /* Border */
  border-radius: 5px;
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6; /* Text Main */
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__newsletter-input::placeholder {
  color: rgba(255, 246, 214, 0.7); /* Lighter version of Text Main */
}

.page-blog__newsletter-input:focus {
  border-color: #FFD36B; /* Glow */
  box-shadow: 0 0 0 3px rgba(255, 211, 107, 0.3);
}

.page-blog__newsletter-submit-button {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for contrast */
  padding: 15px 30px;
  border-radius: 5px;
  border: none;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.page-blog__newsletter-submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.page-blog__newsletter-note {
  font-size: 0.9rem;
  color: rgba(255, 246, 214, 0.8); /* Lighter version of Text Main */
  margin-top: 20px;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background */
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none; /* Hide default marker */
  transition: background-color 0.3s ease;
  color: #F2C14E; /* Main color */
  font-weight: 600;
}
details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}
details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: rgba(242, 193, 78, 0.1); /* Slightly lighter hover */
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: left;
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #0A0A0A; /* Background */
  border-top: 1px solid #3A2A12; /* Border */
  border-radius: 0 0 8px 8px;
  color: #FFF6D6; /* Text Main */
  font-size: 1rem;
}
.page-blog__faq-answer p {
  margin: 0;
}

/* General image responsive styles */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all content containers are responsive */
.page-blog__section,
.page-blog__card,
.page-blog__container,
.page-blog__post-grid,
.page-blog__newsletter-form {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Button responsive styles */
.page-blog__hero-cta-button,
.page-blog__read-more-button,
.page-blog__view-all-button,
.page-blog__newsletter-submit-button,
.page-blog a[class*="button"],
.page-blog a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Button containers responsive styles */
.page-blog__cta-buttons,
.page-blog__button-group,
.page-blog__btn-container,
.page-blog__view-all-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 3rem;
  }
  .page-blog__hero-description {
    font-size: 1.1rem;
  }
  .page-blog__post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .page-blog__newsletter-form {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__newsletter-input {
    min-width: unset;
    width: 100%;
  }
  .page-blog__newsletter-submit-button {
    width: 100%;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Hero Section */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }
  .page-blog__hero-image-wrapper {
    max-height: 300px;
  }
  .page-blog__hero-content-wrapper {
    padding: 0 15px;
  }
  .page-blog__hero-title {
    font-size: 2rem !important; /* Reduced font size for mobile */
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 1rem !important;
    margin-bottom: 20px;
  }
  .page-blog__hero-cta-button {
    padding: 12px 25px !important;
    font-size: 0.95rem !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Latest Posts Section */
  .page-blog__latest-posts-section {
    padding: 40px 0;
  }
  .page-blog__container {
    padding: 0 15px !important;
    max-width: 100% !important; /* Ensure container is full width */
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 15px;
  }
  .page-blog__section-description {
    font-size: 0.95rem !important;
    margin-bottom: 30px;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr !important; /* Single column for mobile */
    gap: 20px;
  }
  .page-blog__post-thumbnail-wrapper {
    height: 180px;
  }
  .page-blog__post-content {
    padding: 20px;
  }
  .page-blog__post-title {
    font-size: 1.2rem !important;
  }
  .page-blog__post-excerpt {
    font-size: 0.9rem !important;
  }
  .page-blog__read-more-button {
    padding: 8px 15px !important;
    font-size: 0.9rem !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__view-all-wrapper {
    margin-top: 40px;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
  }
  .page-blog__view-all-button {
    padding: 12px 30px !important;
    font-size: 1rem !important;
    max-width: 100% !important; /* Button responsive */
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Newsletter Section */
  .page-blog__newsletter-section {
    padding: 50px 0;
  }
  .page-blog__newsletter-title {
    font-size: 1.8rem !important;
    margin-bottom: 15px;
  }
  .page-blog__newsletter-description {
    font-size: 0.95rem !important;
    margin-bottom: 30px;
  }
  .page-blog__newsletter-form {
    flex-direction: column !important;
    gap: 10px;
    padding: 0 15px !important;
    max-width: 100% !important; /* Form responsive */
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__newsletter-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    font-size: 0.95rem !important;
  }
  .page-blog__newsletter-submit-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    font-size: 1rem !important;
  }
  .page-blog__newsletter-note {
    font-size: 0.85rem !important;
    padding: 0 15px !important;
  }

  /* FAQ Section */
  .page-blog__faq-section {
    padding: 40px 0;
  }
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px !important;
  }
  .page-blog__faq-qtext {
    font-size: 1rem !important;
  }
  .page-blog__faq-toggle {
    font-size: 20px !important;
    width: 24px !important;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px !important;
  }
  .page-blog__faq-answer p {
    font-size: 0.95rem !important;
  }

  /* General image responsive styles for mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* Specific container overrides for mobile */
  .page-blog__hero-section,
  .page-blog__latest-posts-section,
  .page-blog__newsletter-section,
  .page-blog__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button containers mobile specific styles */
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }
  .page-blog__hero-cta-button,
  .page-blog__read-more-button,
  .page-blog__view-all-button,
  .page-blog__newsletter-submit-button,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    padding-left: 15px;
    padding-right: 15px;
  }
}