/* style/news.css */

/* Base styles for the news page, ensuring light text on dark body background */
.page-news {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  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__section-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size constraint - using clamp for other titles too */
  color: #26A9E0; /* Brand color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-news__section-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8); /* Slightly lighter text for description */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image then text */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  overflow: hidden; /* Prevent content overflow */
}

.page-news__hero-image-wrapper {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px; /* Space between image and content */
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: none; /* No CSS filter */
}

.page-news__hero-content {
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding: 30px 20px;
  border-radius: 10px;
  box-sizing: border-box;
  background: rgba(38, 169, 224, 0.8); /* Semi-transparent brand color for content block */
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__hero-content .page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem); /* H1 title specific font size */
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-news__hero-content .page-news__description {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-news__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button adapts to container */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.page-news__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-news__btn-primary:hover {
  background-color: #d16e06;
}

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

.page-news__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #208cb9;
  border-color: #208cb9;
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Dark background matching body */
  color: #ffffff;
}

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

.page-news__news-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-news__card-content {
  padding: 20px;
  flex-grow: 1; /* Allow content to fill space */
  display: flex;
  flex-direction: column;
}

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

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

.page-news__card-title a:hover {
  color: #5ec0ee;
  text-decoration: underline;
}

.page-news__card-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  flex-grow: 1; /* Allow excerpt to fill space */
}

.page-news__card-link {
  display: inline-block;
  color: #EA7C07; /* Login color for read more link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-news__card-link:hover {
  color: #d16e06;
  text-decoration: underline;
}

.page-news__text-center {
  text-align: center;
}

/* Featured News Section */
.page-news__featured-news-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color dark background */
  color: #ffffff;
}

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

.page-news__featured-news-section .page-news__section-description {
  color: rgba(255, 255, 255, 0.9);
}

.page-news__featured-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column by default */
  gap: 40px;
  margin-top: 40px;
}

.page-news__featured-card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on brand color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-news__featured-card .page-news__card-image {
  height: 350px; /* Larger image for featured news */
}

.page-news__featured-card .page-news__card-title a {
  color: #ffffff; /* White title links on dark background */
}
.page-news__featured-card .page-news__card-title a:hover {
  color: #f0f0f0;
}

.page-news__featured-card .page-news__card-meta {
  color: rgba(255, 255, 255, 0.7);
}

.page-news__featured-card .page-news__card-excerpt {
  color: rgba(255, 255, 255, 0.95);
}

.page-news__featured-card .page-news__card-link {
  color: #EA7C07; /* Login color */
}

/* Industry Updates Section */
.page-news__industry-updates {
  padding: 60px 0;
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff;
}

.page-news__update-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-news__update-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__update-title {
  font-size: 1.5rem;
  color: #26A9E0; /* Brand color */
  margin-bottom: 8px;
}

.page-news__update-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 15px;
}

.page-news__update-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Moto88win Updates Section */
.page-news__moto88win-updates {
  padding: 60px 0;
  background-color: #22223a; /* Slightly different dark background */
  color: #ffffff;
}

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

.page-news__update-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.page-news__update-card .page-news__card-title {
  color: #26A9E0;
  font-size: 1.4rem;
}

.page-news__update-card .page-news__card-meta {
  color: rgba(255, 255, 255, 0.6);
}

.page-news__update-card .page-news__card-excerpt {
  color: rgba(255, 255, 255, 0.9);
}


/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff;
}

.page-news__faq-list {
  margin-top: 40px;
}

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

.page-news__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker */
}

.page-news__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-news__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news__faq-qtext {
  flex-grow: 1;
  color: #26A9E0; /* Brand color for question text */
}

.page-news__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color dark background */
  color: #ffffff;
}

.page-news__cta-section .page-news__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-news__cta-section .page-news__section-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.page-news__btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
  min-width: 250px;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-news__featured-grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns for larger screens */
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px; /* Add padding to containers on mobile */
  }

  /* Images responsive */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive - no video on this page, but keeping the rule for safety */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video containers responsive - no video on this page, but keeping the rule for safety */
  .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; /* Small top padding for video section */
  }
  
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons responsive */
  .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;
  }
  
  /* Button containers responsive */
  .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-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-news__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 30px;
  }

  .page-news__hero-content {
    padding: 20px 15px;
  }

  .page-news__hero-content .page-news__main-title {
    font-size: 2rem;
  }

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

  .page-news__section-title {
    font-size: 2rem;
  }

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

  .page-news__news-grid {
    grid-template-columns: 1fr; /* Single column for news cards */
  }

  .page-news__card-image {
    height: 180px; /* Adjust card image height for mobile */
  }

  .page-news__featured-card .page-news__card-image {
    height: 250px; /* Adjust featured card image height for mobile */
  }

  .page-news__faq-item summary {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

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

  .page-news__btn-large {
    min-width: unset;
  }
}