/* style/news.css */

:root {
  --page-news-primary-color: #11A84E;
  --page-news-secondary-color: #22C768;
  --page-news-card-bg: #11271B;
  --page-news-background: #08160F;
  --page-news-text-main: #F2FFF6;
  --page-news-text-secondary: #A7D9B8;
  --page-news-border: #2E7A4E;
  --page-news-glow: #57E38D;
  --page-news-gold: #F2C14E;
  --page-news-divider: #1E3A2A;
  --page-news-deep-green: #0A4B2C;
  --page-news-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-news {
  font-family: Arial, sans-serif;
  color: var(--page-news-text-main); /* Default text color for the page */
  background-color: var(--page-news-background); /* Body background is dark, so text is light */
}

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

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

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-news__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-news__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--page-news-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  font-size: 1.15rem;
  color: var(--page-news-text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-news__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* General Section Styling */
.page-news__section {
  padding: 60px 0;
  background-color: var(--page-news-background);
}

.page-news__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--page-news-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-news__section-description {
  font-size: 1.1rem;
  color: var(--page-news-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.page-news__news-card {
  background-color: var(--page-news-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-news-border);
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-news__news-card-title a {
  color: var(--page-news-text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
  color: var(--page-news-gold);
}

.page-news__news-card-meta {
  font-size: 0.9rem;
  color: var(--page-news-text-secondary);
  margin-bottom: 15px;
}

.page-news__news-card-excerpt {
  font-size: 1rem;
  color: var(--page-news-text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__news-card-link {
  display: inline-block;
  color: var(--page-news-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

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

/* CTA Section */
.page-news__cta-section {
  background-color: var(--page-news-deep-green);
  padding: 80px 0;
  text-align: center;
}

.page-news__cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--page-news-text-main);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-news__cta-description {
  font-size: 1.15rem;
  color: var(--page-news-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

/* Buttons */
.page-news__btn-primary {
  background: var(--page-news-button-gradient);
  color: #ffffff;
  border: none;
}

.page-news__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn-secondary {
  background: transparent;
  color: var(--page-news-primary-color);
  border: 2px solid var(--page-news-primary-color);
}

.page-news__btn-secondary:hover {
  background-color: var(--page-news-primary-color);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px !important;
  }

  .page-news__hero-section {
    padding-bottom: 40px;
  }

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

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

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

  .page-news__news-card-image {
    height: 180px;
  }

  .page-news__news-card-title {
    font-size: 1.25rem;
  }

  .page-news__news-card-content {
    padding: 20px;
  }

  .page-news__cta-section {
    padding: 60px 0;
  }

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

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile specific image adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile specific video adaptation (if any) */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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;
  }

  /* Mobile specific button adaptation */
  .page-news__hero-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;
  }

  .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 {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-news__hero-content {
    padding: 0 10px;
  }

  .page-news__news-card-title {
    font-size: 1.1rem;
  }

  .page-news__news-card-content {
    padding: 15px;
  }
}