/* style/news.css */

.page-news {
  color: #ffffff; /* Body background #111 (dark), so text should be 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;
}

.page-news__heading {
  font-size: 2.5rem;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__sub-heading {
  font-size: 1.8rem;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__paragraph {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.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: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

.page-news__btn-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-news__btn-link:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
}

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

.page-news__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual effect */
  position: relative;
  z-index: 1; /* Ensure content is above image wrapper if overlapping */
  background: rgba(17, 17, 17, 0.85); /* Semi-transparent dark background for text readability */
  border-radius: 10px;
  padding-top: 60px;
}

.page-news__hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size */
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Video Section */
.page-news__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px 20px; /* Small top padding */
  background: #1a1a1a;
}

.page-news__video-container {
  width: 100%; /* Desktop width: 100% */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
}

.page-news__video-title {
  font-size: 2rem;
  color: #26A9E0;
  margin-bottom: 30px;
}

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

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.page-news__video-cta {
  margin-top: 20px;
}

/* Introduction Section */
.page-news__introduction {
  padding: 60px 20px;
  background: #111;
}

/* Categories Section */
.page-news__categories {
  padding: 60px 20px;
  background: #1a1a1a;
}

.page-news__category-item {
  margin-bottom: 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08); /* Light transparent background for cards */
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Featured News Section */
.page-news__featured-news {
  padding: 60px 20px;
  background: #111;
}

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

.page-news__news-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  color: #f0f0f0;
}

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

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

.page-news__news-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.3;
}

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

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

.page-news__news-excerpt {
  font-size: 0.95rem;
  margin-bottom: 15px;
  flex-grow: 1;
  color: #cccccc;
}

.page-news__news-date {
  font-size: 0.85rem;
  color: #aaaaaa;
  margin-bottom: 15px;
}

.page-news__view-all-button-wrapper {
  text-align: center;
}

/* Why Choose Section */
.page-news__why-choose {
  padding: 60px 20px;
  background: #1a1a1a;
}

.page-news__benefits-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-news__benefit-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__benefit-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 10px;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 20px;
  background: #111;
}

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

.page-news__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__faq-item summary {
  list-style: none;
  cursor: pointer;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #ffffff;
}

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

.page-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #cccccc;
}

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

/* Call to Action Section */
.page-news__cta-section {
  padding: 60px 20px;
  background: #26A9E0;
  text-align: center;
}

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

.page-news__cta-section .page-news__heading {
  color: #ffffff;
}

.page-news__cta-section .page-news__paragraph {
  color: #ffffff;
  margin-bottom: 30px;
}

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

.page-news__cta-buttons .page-news__btn-primary {
  background: #EA7C07; /* Login color */
  border-color: #EA7C07;
}

.page-news__cta-buttons .page-news__btn-primary:hover {
  background: #d46a00;
  border-color: #d46a00;
}

.page-news__cta-buttons .page-news__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-news__cta-buttons .page-news__btn-secondary:hover {
  background: #e0e0e0;
  border-color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 40px;
  }

  .page-news__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

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

  .page-news__hero-description {
    font-size: 1rem;
  }

  .page-news__heading {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-news__sub-heading {
    font-size: 1.5rem;
  }

  .page-news__paragraph {
    font-size: 0.95rem;
  }

  .page-news__section {
    padding: 40px 15px;
  }

  .page-news__news-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .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;
  }

  /* Video and Image Responsive */
  .page-news img {
    max-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,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__video-section {
    padding-top: 10px !important;
  }
}