/* style/blog-latest-news.css */

/* Base styles for the page */
.page-blog-latest-news {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-blog-latest-news__dark-bg {
  background-color: #1a1a2e; /* Matches body background for consistency */
  color: #ffffff;
}

.page-blog-latest-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-blog-latest-news__hero-section {
  position: relative;
  width: 100%;
  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-latest-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for aesthetic */
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-blog-latest-news__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog-latest-news__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-blog-latest-news__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Titles */
.page-blog-latest-news__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-blog-latest-news__section-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  text-align: center;
  margin-bottom: 40px;
  color: #666666;
}

/* News Grid */
.page-blog-latest-news__news-grid {
  padding: 60px 0;
}

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

.page-blog-latest-news__news-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.page-blog-latest-news__news-card:hover {
  transform: translateY(-5px);
}

.page-blog-latest-news__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

.page-blog-latest-news__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog-latest-news__card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog-latest-news__card-title a:hover {
  color: #1c7bb6;
}

.page-blog-latest-news__card-meta {
  font-size: 0.9rem;
  color: #888888;
  margin-bottom: 15px;
}

.page-blog-latest-news__card-excerpt {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* CTA Section */
.page-blog-latest-news__cta-section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-blog-latest-news__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  z-index: 1;
}

.page-blog-latest-news__cta-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog-latest-news__cta-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-blog-latest-news__cta-description {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  margin-bottom: 30px;
}

.page-blog-latest-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.page-blog-latest-news__btn-primary,
.page-blog-latest-news__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-latest-news__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-blog-latest-news__btn-primary:hover {
  background-color: #1c7bb6;
  border-color: #1c7bb6;
}

.page-blog-latest-news__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-blog-latest-news__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* FAQ Section */
.page-blog-latest-news__faq-section {
  padding: 60px 0;
}

.page-blog-latest-news__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog-latest-news__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-blog-latest-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  list-style: none; /* For details/summary */
}

.page-blog-latest-news__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog-latest-news__faq-qtext {
  flex-grow: 1;
}

.page-blog-latest-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-blog-latest-news__faq-answer {
  padding: 20px;
  padding-top: 0;
  font-size: 1rem;
  color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog-latest-news__hero-content {
    max-width: 700px;
  }

  .page-blog-latest-news__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-blog-latest-news__hero-description {
    font-size: clamp(0.95rem, 1.7vw, 1.15rem);
  }
}

@media (max-width: 768px) {
  .page-blog-latest-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog-latest-news__container {
    padding: 0 15px;
  }

  .page-blog-latest-news__hero-section {
    padding-bottom: 40px;
  }

  .page-blog-latest-news__hero-content {
    max-width: 90%;
    padding: 15px;
  }

  .page-blog-latest-news__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-blog-latest-news__hero-description {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 20px;
  }

  .page-blog-latest-news__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-blog-latest-news__section-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 30px;
  }

  .page-blog-latest-news__news-grid,
  .page-blog-latest-news__cta-section,
  .page-blog-latest-news__faq-section {
    padding: 40px 0;
  }

  .page-blog-latest-news__grid-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog-latest-news__card-title {
    font-size: 1.2rem;
  }

  .page-blog-latest-news__card-image {
    height: 180px;
  }

  .page-blog-latest-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-blog-latest-news__btn-primary,
  .page-blog-latest-news__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-blog-latest-news__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-blog-latest-news__faq-toggle {
    font-size: 1.2rem;
  }

  .page-blog-latest-news__faq-answer {
    padding: 15px;
    padding-top: 0;
  }

  /* Mobile image responsiveness */
  .page-blog-latest-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog-latest-news__section,
  .page-blog-latest-news__card,
  .page-blog-latest-news__container,
  .page-blog-latest-news__hero-section,
  .page-blog-latest-news__cta-section,
  .page-blog-latest-news__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Video section top padding for mobile */
  .page-blog-latest-news__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-blog-latest-news__hero-content {
    padding: 10px;
  }

  .page-blog-latest-news__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-blog-latest-news__hero-description {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
  }

  .page-blog-latest-news__cta-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .page-blog-latest-news__cta-description {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
  }
}