/* style/blog-latest-news.css */
.page-blog-latest-news {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
}

.page-blog-latest-news__section {
  padding: 60px 0;
  text-align: center;
}

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

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

.page-blog-latest-news__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-blog-latest-news__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: inherit;
}

.page-blog-latest-news__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Hero Section */
.page-blog-latest-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 10px; /* Small top padding */
  background-color: #f0f8ff; /* Light blue tint */
}

.page-blog-latest-news__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
}

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

.page-blog-latest-news__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 10px;
  margin-top: -80px; /* Overlap with image */
  position: relative;
  z-index: 10;
}

.page-blog-latest-news__main-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #26A9E0;
  margin-bottom: 20px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-latest-news__intro-paragraph {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: #555555;
}

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

.page-blog-latest-news__btn-primary,
.page-blog-latest-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  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: #1a8ccb;
  border-color: #1a8ccb;
}

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

.page-blog-latest-news__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1a8ccb;
  border-color: #1a8ccb;
}

.page-blog-latest-news__cta-buttons--center {
  margin-top: 40px;
}

/* Video Section */
.page-blog-latest-news__video-section {
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  background-color: #f5f5f5;
}

.page-blog-latest-news__video-container {
  width: 100%; /* Desktop width */
  max-width: 900px;
  margin: 0 auto;
}

.page-blog-latest-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background-color: #000;
  border-radius: 8px;
}

.page-blog-latest-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  border-radius: 8px;
}

/* News Section */
.page-blog-latest-news__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-latest-news__news-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog-latest-news__news-image {
  width: 100%;
  height: 225px;
  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__news-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #26A9E0;
  flex-grow: 1;
}

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

.page-blog-latest-news__news-title a:hover {
  color: #1a8ccb;
}

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

.page-blog-latest-news__news-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

.page-blog-latest-news__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog-latest-news__read-more:hover {
  color: #1a8ccb;
}

/* Guide Section */
.page-blog-latest-news__guide-section {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-blog-latest-news__guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-latest-news__guide-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-blog-latest-news__guide-title {
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #26A9E0;
  flex-grow: 1;
}

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

.page-blog-latest-news__guide-title a:hover {
  color: #1a8ccb;
}

.page-blog-latest-news__guide-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
}

/* App Section */
.page-blog-latest-news__app-section {
  background-color: #FFFFFF;
  padding-bottom: 0;
}

.page-blog-latest-news__app-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-blog-latest-news__app-text {
  flex: 1;
  max-width: 600px;
}

.page-blog-latest-news__app-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-blog-latest-news__app-features li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #555555;
}

.page-blog-latest-news__app-features li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #26A9E0;
}

.page-blog-latest-news__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.page-blog-latest-news__app-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transform: translateY(60px); /* Lift image slightly */
}

/* FAQ Section */
.page-blog-latest-news__faq-section {
  background-color: #26A9E0;
  color: #FFFFFF;
  padding-bottom: 80px;
}

.page-blog-latest-news__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog-latest-news__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1em;
  color: #26A9E0;
}

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

.page-blog-latest-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-blog-latest-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
  text-align: left;
}

.page-blog-latest-news__faq-answer p {
  margin-bottom: 0;
}

.page-blog-latest-news__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Call to Action Section */
.page-blog-latest-news__call-to-action {
  background-color: #f0f8ff; /* Light blue tint */
  padding-top: 80px;
}

.page-blog-latest-news__cta-content {
  max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-latest-news__section-title {
    font-size: 2em;
  }
  .page-blog-latest-news__hero-content {
    margin-top: -60px;
  }
  .page-blog-latest-news__app-image {
    transform: translateY(40px);
  }
}

@media (max-width: 768px) {
  .page-blog-latest-news__section {
    padding: 40px 0;
  }
  .page-blog-latest-news__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-latest-news__hero-section {
    padding-top: 10px !important;
  }

  .page-blog-latest-news__hero-content {
    margin-top: -40px;
    padding: 30px 15px;
    border-radius: 0;
  }

  .page-blog-latest-news__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em); /* Using clamp for H1 */
  }

  .page-blog-latest-news__intro-paragraph {
    font-size: 1em;
  }

  .page-blog-latest-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog-latest-news__btn-primary,
  .page-blog-latest-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog-latest-news__news-grid,
  .page-blog-latest-news__guide-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-blog-latest-news__app-content {
    flex-direction: column;
    text-align: center;
  }

  .page-blog-latest-news__app-text {
    max-width: 100%;
  }

  .page-blog-latest-news__app-image-wrapper {
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }

  .page-blog-latest-news__app-image {
    transform: translateY(0); /* Reset transform */
    margin-top: 20px;
    max-width: 80% !important;
    height: auto !important;
  }

  .page-blog-latest-news__app-features {
    text-align: left;
  }

  .page-blog-latest-news__video-section {
    padding-top: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-latest-news__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-latest-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-latest-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-blog-latest-news__news-card,
  .page-blog-latest-news__guide-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-latest-news__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

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