/* style/news.css */
.page-news {
  color: #ffffff; /* Body background is dark, so text is light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #26A9E0;
  text-align: center;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  box-sizing: border-box;
}

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

.page-news__hero-content {
  width: 100%;
  max-width: 800px;
  z-index: 1;
}

.page-news__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

/* Section Titles & Descriptions */
.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #26A9E0;
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #666666;
}

/* Latest News Section */
.page-news__latest-news, .page-news__featured-news {
  padding: 60px 0;
}

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

.page-news__news-card, .page-news__featured-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover, .page-news__featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-news__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
  line-height: 1.3;
}

.page-news__card-meta {
  font-size: 0.9em;
  color: #bbbbbb;
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  color: #26A9E0;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
}

.page-news__arrow {
  margin-left: 5px;
  transition: margin-left 0.3s ease;
}

.page-news__card-link:hover .page-news__arrow {
  margin-left: 10px;
}

.page-news__view-all {
  text-align: center;
  margin-top: 40px;
}

/* Featured News Section */
.page-news__featured-news {
  background-color: #1a1a1a;
}

.page-news__featured-news .page-news__section-title {
  color: #ffffff;
}

.page-news__featured-news .page-news__section-description {
  color: #f0f0f0;
}

.page-news__featured-card {
  background: rgba(255, 255, 255, 0.08);
}

.page-news__featured-card .page-news__card-title {
  color: #26A9E0;
}

.page-news__featured-card .page-news__card-meta,
.page-news__featured-card .page-news__card-excerpt {
  color: #dddddd;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #f5f5f5; /* Light background for contrast */
  color: #333333; /* Dark text for contrast */
}

.page-news__faq-section .page-news__section-title {
  color: #26A9E0;
}

.page-news__faq-section .page-news__section-description {
  color: #666666;
}

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

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

.page-news__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0;
  background-color: #e0f2f7; /* Lighter shade of brand color for summary */
  border-bottom: 1px solid #d0e8ef;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-news__faq-answer {
  padding: 20px;
  border-top: 1px solid #eeeeee;
  color: #555555;
  font-size: 0.95em;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

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

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

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

/* Floating Buttons */
.page-news__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-news__floating-btn {
  display: block;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.page-news__floating-btn:hover {
  transform: translateY(-3px);
}

.page-news__btn-register {
  background-color: #EA7C07; /* Custom color for Login */
  color: #ffffff;
}

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

/* Dark/Light Background Helpers */
.page-news__dark-section {
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-news__dark-section .page-news__section-title {
  color: #ffffff;
}

.page-news__dark-section .page-news__section-description {
  color: #f0f0f0;
}

.page-news__light-bg {
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-news__light-bg .page-news__section-title {
  color: #26A9E0;
}

.page-news__light-bg .page-news__section-description {
  color: #666666;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.5em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__card-title {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__hero-section {
    padding: 40px 15px;
  }
  .page-news__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-news__main-title {
    font-size: 2em;
  }
  .page-news__description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-news__news-grid, .page-news__featured-grid {
    grid-template-columns: 1fr;
  }
  .page-news__card-image {
    height: 180px;
  }
  .page-news__card-content {
    padding: 15px;
  }
  .page-news__card-title {
    font-size: 1.1em;
  }
  .page-news__card-excerpt {
    font-size: 0.95em;
  }
  .page-news__faq-item summary {
    padding: 15px;
    font-size: 1em;
  }
  .page-news__faq-answer {
    padding: 15px;
  }
  .page-news__btn-primary, .page-news__btn-secondary {
    padding: 10px 20px;
    font-size: 0.95em;
  }

  /* Mobile responsive for all images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Mobile responsive for all containers */
  .page-news__section, .page-news__card, .page-news__container,
  .page-news__hero-section, .page-news__latest-news, .page-news__featured-news, .page-news__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__hero-section { /* specific for hero */
    padding-top: 10px !important;
  }

  /* Mobile responsive for all buttons */
  .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;
  }
  .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;
  }
  .page-news__floating-buttons {
    flex-direction: row;
    left: 15px;
    right: 15px;
    width: auto;
    justify-content: space-around;
  }
  .page-news__floating-btn {
    flex-grow: 1;
    padding: 10px 15px;
  }
}