/* style/blog.css */
/* Base styles and color scheme */
.page-blog {
  background-color: #08160F; /* Background: #08160F (dark) */
  color: #F2FFF6; /* Text Main: #F2FFF6 (light) */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-blog__section {
  padding: 60px 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added padding for smaller screens */
  box-sizing: border-box;
}

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

.page-blog__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding-top: 10px; /* Small top padding */
  background-color: #08160F;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for hero image */
  overflow: hidden;
  position: relative;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure a minimum height */
}

.page-blog__hero-content {
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
  width: 100%; /* Ensure content block is full width */
  box-sizing: border-box;
}

.page-blog__main-title {
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__intro-text {
  font-size: 1.2em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
}

.page-blog__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Light text for button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

/* Grid Layout for Cards */
.page-blog__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #F2FFF6; /* Light text for card */
}

.page-blog__card-title {
  color: #F2C14E; /* Gold */
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-blog__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain; 
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-blog__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* List Styles */
.page-blog__list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 900px;
}

.page-blog__list-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.page-blog__list-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
}

/* Articles Grid */
.page-blog__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__article-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-blog__article-image {
  width: 100%;
  height: 200px; /* Fixed height for article images */
  object-fit: cover;
  display: block;
}

.page-blog__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-blog__article-title {
  color: #F2C14E; /* Gold */
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-meta {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.9em;
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  color: #F2FFF6; /* Text Main */
  font-size: 1em;
  flex-grow: 1;
}

.page-blog__button-group {
  text-align: center;
  margin-top: 40px;
}

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

/* FAQ Section */
.page-blog__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-blog__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Light text for FAQ */
}

.page-blog__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2C14E; /* Gold for question */
  position: relative;
}

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

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

/* The content property for the toggle is handled by JS for div structure, native for details */

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

/* Conclusion Section */
.page-blog__conclusion {
  text-align: center;
  padding-bottom: 80px;
}

.page-blog__final-cta {
  margin-top: 30px;
}

/* Text alignment */
.page-blog__text-center {
  text-align: center;
}

/* Divider for sections if needed */
.page-blog__divider {
  border-bottom: 1px solid #1E3A2A; /* Divider */
  margin: 60px auto;
  max-width: 80%;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__main-title {
    font-size: clamp(2em, 5vw, 3em); /* Using clamp for H1 */
  }
  .page-blog__intro-text {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-blog__section {
    padding: 40px 15px;
  }
  .page-blog__hero-content {
    padding: 30px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em); /* Adjust clamp for smaller screens */
  }
  .page-blog__intro-text {
    font-size: 1em;
  }
  .page-blog__cta-button {
    font-size: 1em;
    padding: 12px 20px;
    width: 100% !important; /* Button responsiveness */
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__grid-layout,
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__card,
  .page-blog__list-item,
  .page-blog__article-card,
  .page-blog__faq-item {
    padding: 20px;
  }
  .page-blog__card-title,
  .page-blog__list-title,
  .page-blog__article-title {
    font-size: 1.2em;
  }
  .page-blog__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }

  /* Mobile image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile video responsiveness (if any, though not present in this HTML) */
  .page-blog video,
  .page-blog__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-content,
  .page-blog__button-group,
  .page-blog__faq-list,
  .page-blog__articles-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* For multiple buttons in a group */
  .page-blog__button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__cta-button {
    margin: 0 auto; /* Center buttons if they are block */
  }

  /* Specific padding for sections for mobile */
  .page-blog__about-links .page-blog__container,
  .page-blog__official-links .page-blog__container,
  .page-blog__access-guide .page-blog__container,
  .page-blog__latest-news .page-blog__container,
  .page-blog__faq-section .page-blog__container,
  .page-blog__conclusion .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__main-title {
    font-size: clamp(1.5em, 7vw, 2.2em);
  }
  .page-blog__cta-button {
    padding: 10px 15px;
    font-size: 0.95em;
  }
}

/* Ensure desktop width for content blocks that are flex items */
.page-blog__hero-section .page-blog__hero-content {
    width: 100%; /* For desktop, ensure it takes full width of its container */
    max-width: 900px; /* Still constrain its content */
}