/* style/news.css */

/* Base styles for the news page content */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF);
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #FFFFFF; /* Light background for hero */
  text-align: center;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-news__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-news__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-news__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

/* General Container for sections */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-news__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #26A9E0; /* Brand color for section titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-news__intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-news__highlight {
  color: #EA7C07; /* Highlight color for emphasis */
  font-weight: bold;
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 60px 0;
  background-color: #f8f8f8; /* Slightly off-white background */
  color: #333333;
}

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

.page-news__article-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 450px; /* Ensure cards have similar height */
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

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

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

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

.page-news__article-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__article-title a {
  color: #26A9E0; /* Brand color for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #EA7C07; /* Highlight color on hover */
}

.page-news__article-excerpt {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

.page-news__read-more {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more:hover {
  color: #EA7C07;
}

/* CTA Buttons */
.page-news__cta-container {
  text-align: center;
  margin-top: 50px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-news__btn-primary:hover {
  background: #1e87c0;
  border-color: #1e87c0;
}

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

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

/* Featured Categories Section */
.page-news__featured-categories {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-news__category-item {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-news__category-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-news__category-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-news__category-title a:hover {
  text-decoration: underline;
}

.page-news__category-articles {
  list-style: none;
  padding: 0;
}

.page-news__category-articles li {
  margin-bottom: 10px;
}

.page-news__category-articles li a {
  color: #555555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__category-articles li a:hover {
  color: #EA7C07;
}

/* Why Choose Section */
.page-news__why-choose {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand main color for dark section */
  color: #ffffff; /* White text for dark background */
}

.page-news__why-choose .page-news__section-title,
.page-news__why-choose .page-news__intro-text {
  color: #ffffff;
}

.page-news__features-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.page-news__features-list li {
  font-size: 1.1em;
  display: flex;
  align-items: flex-start;
  text-align: left;
}

.page-news__feature-icon {
  font-size: 1.2em;
  margin-right: 10px;
  color: #EA7C07; /* Accent color for icons */
  flex-shrink: 0;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

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

.page-news__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0; /* Brand color for FAQ questions */
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
}

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  margin-left: 15px;
  color: #EA7C07; /* Accent color for toggle icon */
  transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
  border-top: 1px solid #eee;
}

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

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

.page-news__faq-answer a:hover {
  color: #EA7C07;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-news__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news__category-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 40px 15px;
  }
  .page-news__main-title {
    font-size: 1.8em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__intro-text {
    font-size: 1em;
  }
  .page-news__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__video-section {
    padding-top: 10px !important;
  }
  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add spacing between stacked buttons */
  }
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
  .page-news__features-list {
    margin-left: 0;
    margin-right: 0;
    padding: 0 15px;
  }
  .page-news__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.5em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__hero-section {
    padding: 30px 10px;
  }
  .page-news__container {
    padding: 0 10px;
  }
  .page-news__article-card {
    min-height: auto;
  }
  .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}