/* style/blog.css */

/* Base Styles for Blog Page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

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

.page-blog__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: #AFC4E8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-blog__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  color: #F2C14E; /* Gold color */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.2em;
  color: #F3F8FF;
  margin-bottom: 30px;
}

/* CTA Button General Style */
.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__cta-button:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
}

/* Articles Section */
.page-blog__articles-section {
  padding: 60px 0;
  background-color: #08162B; /* Deep Navy background for content */
}

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

.page-blog__article-card {
  background-color: #10233F; /* Card background color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-blog__article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.page-blog__article-date {
  font-size: 0.9em;
  color: #AFC4E8;
  margin-bottom: 10px;
}

.page-blog__article-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__article-title a {
  color: #F2C14E; /* Gold color for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #4FA8FF; /* Glow color on hover */
}

.page-blog__article-summary {
  font-size: 1em;
  color: #F3F8FF;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more-link {
  display: inline-block;
  color: #4FA8FF; /* Glow color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog__read-more-link:hover {
  text-decoration: underline;
  color: #F2C14E;
}

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

/* Promotion CTA Section */
.page-blog__promotion-cta-section {
  padding: 80px 0;
  background-color: #113B7A; /* Primary brand color */
  text-align: center;
  color: #F3F8FF;
}

.page-blog__promotion-cta-section .page-blog__section-title {
  color: #F2C14E;
}

.page-blog__promotion-cta-section .page-blog__cta-button {
  margin-top: 30px;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #08162B; /* Deep Navy background */
}

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

.page-blog__faq-item {
  background-color: #10233F; /* Card background color */
  border: 1px solid #244D84; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2C14E; /* Gold color */
  cursor: pointer;
  list-style: none;
  transition: background-color 0.3s ease;
}

.page-blog__faq-question::-webkit-details-marker, 
.page-blog__faq-question::marker {
  display: none;
  content: "";
}

.page-blog__faq-question:hover {
  background-color: rgba(79, 168, 255, 0.1); /* Light hover effect */
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #4FA8FF; /* Glow color */
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1.1em;
  color: #F3F8FF;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-blog__faq-item[open] .page-blog__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 10px;
}

/* Responsive Design */

/* Tablet styles */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: clamp(2em, 4vw, 3em);
  }

  .page-blog__hero-description {
    font-size: 1.1em;
  }

  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__article-title {
    font-size: 1.3em;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__hero-section {
    min-height: 400px;
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }

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

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

  .page-blog__cta-button {
    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: 1em;
  }

  .page-blog__articles-section {
    padding: 40px 0;
  }

  .page-blog__articles-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-blog__article-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-blog__section-description {
    font-size: 0.95em;
  }

  .page-blog__promotion-cta-section {
    padding: 60px 0;
  }

  .page-blog__faq-section {
    padding: 40px 0;
  }

  .page-blog__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-blog__faq-answer {
    font-size: 1em;
    padding: 0 15px 15px 15px;
  }

  /* Ensure all content containers are responsive */
  .page-blog__hero-content,
  .page-blog__articles-grid,
  .page-blog__promotion-cta-section .page-blog__container,
  .page-blog__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__view-all-button-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* If buttons are grouped horizontally, make them stack */
  .page-blog__button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}