/* style/news.css */

/* --- Base Styles --- */
.page-news {
  font-family: Arial, sans-serif;
  color: var(--text-main-color, #FFF3E6); /* Use Text Main from custom palette */
  background-color: var(--background-color, #0D0E12); /* Background from custom palette */
  line-height: 1.6;
  font-size: 16px;
}

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

.page-news__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-main-color, #FFF3E6);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

/* --- Hero Section --- */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, no var(--header-offset) */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height on desktop */
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Min size for images */
  min-height: 200px; /* Min size for images */
}

.page-news__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above image wrapper if any overlap */
}

.page-news__main-title {
  font-size: clamp(32px, 5vw, 52px); /* Responsive font size for H1 */
  font-weight: 800;
  color: var(--text-main-color, #FFF3E6);
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-news__description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-main-color, #FFF3E6);
  margin-bottom: 30px;
  max-width: 100%; /* Ensure description doesn't overflow */
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

/* --- Buttons --- */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  min-width: 180px; /* Minimum width for buttons */
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom button gradient */
  color: #FFF3E6; /* Text Main color */
  border: 2px solid transparent;
}

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #FF8C1A; /* Main color for secondary button text */
  border: 2px solid #FF8C1A; /* Main color for secondary button border */
}

.page-news__btn-secondary:hover {
  background-color: #FF8C1A;
  color: #FFF3E6;
  transform: translateY(-2px);
}

/* --- News List Section --- */
.page-news__news-list-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background color */
}

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

.page-news__news-card {
  background-color: #17191F; /* Card BG from custom palette */
  border-radius: 12px;
  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 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__news-card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Min size for images */
  min-height: 200px; /* Min size for images */
}

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

.page-news__news-card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

.page-news__news-card-title a {
  color: #FFF3E6; /* Text Main color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
  color: #FF8C1A; /* Main color on hover */
}

.page-news__news-card-meta {
  font-size: 14px;
  color: rgba(255, 243, 230, 0.7); /* Slightly lighter Text Main */
  margin-bottom: 15px;
}

.page-news__news-card-excerpt {
  font-size: 16px;
  color: rgba(255, 243, 230, 0.9);
  margin-bottom: 20px;
}

.page-news__news-card-link {
  display: inline-block;
  color: #FF8C1A; /* Main color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-news__news-card-link:hover {
  text-decoration: underline;
  color: #FFA53A;
}

.page-news__view-all-button-wrapper {
  text-align: center;
  margin-top: 20px;
}

/* --- FAQ Section --- */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #17191F; /* Card BG for FAQ section */
}

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

.page-news__faq-item {
  background-color: #0D0E12; /* Background color for FAQ item */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #A84F0C; /* Border from custom palette */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #FFF3E6;
  cursor: pointer;
  background-color: #0D0E12;
  border-bottom: 1px solid transparent; /* No border for details summary */
  list-style: none; /* Hide default marker */
}

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

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

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  margin-left: 15px;
  color: #FF8C1A;
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg); /* Rotate to form an 'X' or '-' */
}

.page-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: rgba(255, 243, 230, 0.8);
  line-height: 1.6;
}

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

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-news__hero-image-wrapper {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 15px;
  }

  /* Universal mobile image, video, button, and container responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Remove min-width on mobile */
    min-height: unset !important; /* Remove min-height on mobile */
  }

  .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__hero-section,
  .page-news__news-list-section,
  .page-news__faq-section,
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .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 !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-news__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* Ensure minimal top padding */
  }

  .page-news__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-news__main-title {
    font-size: clamp(28px, 8vw, 40px); /* Adjust H1 for mobile */
  }

  .page-news__description {
    font-size: 16px;
  }

  .page-news__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important; /* Full width for buttons on mobile */
    padding: 12px 20px !important;
    font-size: 16px !important;
    min-width: unset !important;
  }

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

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

  .page-news__news-card-title {
    font-size: 20px;
  }

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

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

@media (max-width: 480px) {
  .page-news__hero-section {
    padding-bottom: 30px;
  }

  .page-news__hero-image-wrapper {
    max-height: 250px;
  }

  .page-news__main-title {
    font-size: clamp(24px, 10vw, 36px);
  }

  .page-news__news-list-section,
  .page-news__faq-section {
    padding: 40px 0;
  }
}