/* style/news.css */
/* Body background is assumed dark based on brand colors, so text color is light (#FFF6D6) */

.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark background */
  background-color: #0A0A0A; /* Page background */
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* 10px top padding as per rule, no var(--header-offset) */
  background-color: #0A0A0A;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-news__hero-content {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: center;
  padding: 0 20px;
  z-index: 1;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Using clamp as per rule */
  font-weight: 700;
  line-height: 1.2;
  color: #FFD36B; /* Highlight with auxiliary color */
  margin-bottom: 20px;
}

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

.page-news__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-news__latest-news-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #FFD36B;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

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

.page-news__news-card {
  background-color: #111111; /* Card BG color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #3A2A12; /* Border color */
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.5);
}

.page-news__news-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.page-news__news-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency, object-fit will handle aspect ratio */
  object-fit: cover;
  display: block;
}

.page-news__card-content {
  padding: 25px;
}

.page-news__card-title {
  font-size: 1.5em;
  color: #FFD36B;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.page-news__card-meta {
  font-size: 0.9em;
  color: #F2C14E; /* Main color for meta info */
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: #FFF6D6;
  line-height: 1.5;
}

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

.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background-color: transparent;
  color: #FFD36B;
  border: 2px solid #FFD36B;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.page-news__btn-secondary:hover {
  background-color: #FFD36B;
  color: #111111;
}

.page-news__cta-section {
  background-color: #111111; /* Card BG for CTA section */
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid #3A2A12;
}

.page-news__cta-title {
  font-size: 2.2em;
  color: #FFD36B;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-news__cta-description {
  font-size: 1.1em;
  color: #FFF6D6;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-news__hero-content {
    padding: 0 15px;
  }
  .page-news__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 0.95em;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__news-image {
    height: 180px;
  }
  .page-news__card-title {
    font-size: 1.3em;
  }
  .page-news__card-content {
    padding: 20px;
  }
  .page-news__latest-news-section,
  .page-news__cta-section {
    padding: 50px 0;
  }
  .page-news__cta-title {
    font-size: 1.6em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }

  /* Mandatory image and container responsive styles */
  .page-news img {
    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__latest-news-section,
  .page-news__cta-section,
  .page-news__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .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__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
  .page-news__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: clamp(1.3em, 7vw, 2em);
  }
  .page-news__section-title {
    font-size: 1.6em;
  }
  .page-news__cta-title {
    font-size: 1.4em;
  }
}