/* style/news.css */

/* Custom Colors */
:root {
  --page-news-bg: #08160F;
  --page-news-card-bg: #11271B;
  --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-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-news {
  background-color: var(--page-news-bg);
  color: var(--page-news-text-main);
  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;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  overflow: hidden;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  color: var(--page-news-text-main);
}

.page-news__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--page-news-text-main);
  margin-bottom: 20px;
  max-width: 100%; /* Ensure H1 doesn't overflow */
  font-size: clamp(2.2em, 4vw, 3.5em);
}

.page-news__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--page-news-text-secondary);
}

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

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

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

.page-news__btn-secondary {
  background: var(--page-news-card-bg);
  color: var(--page-news-text-main);
  border: 2px solid var(--page-news-border);
}

.page-news__btn-secondary:hover {
  background: var(--page-news-border);
  color: var(--page-news-text-main);
}

/* Section Titles */
.page-news__section-title {
  text-align: center;
  font-size: 2.5em;
  color: var(--page-news-text-main);
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

/* Recent News Section */
.page-news__recent-news-section {
  padding: 60px 0;
  background-color: var(--page-news-bg);
}

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

.page-news__news-card {
  background-color: var(--page-news-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-news__card-date {
  font-size: 0.9em;
  color: var(--page-news-text-secondary);
  margin-bottom: 10px;
}

.page-news__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
  flex-grow: 1;
}

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

.page-news__card-title a:hover {
  color: var(--page-news-glow);
}

.page-news__card-summary {
  font-size: 1em;
  color: var(--page-news-text-secondary);
  margin-bottom: 20px;
}

.page-news__read-more {
  display: inline-block;
  color: var(--page-news-glow);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-news__read-more:hover {
  text-decoration: underline;
}

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

/* Featured Article Section */
.page-news__featured-article-section {
  padding: 60px 0;
  background-color: var(--page-news-deep-green);
}

.page-news__featured-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-news__featured-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.page-news__featured-text {
  flex: 1;
}

.page-news__featured-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

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

.page-news__featured-summary {
  font-size: 1.1em;
  color: var(--page-news-text-secondary);
  margin-bottom: 30px;
}

/* Industry Updates Section */
.page-news__industry-updates-section {
  padding: 60px 0;
  background-color: var(--page-news-bg);
}

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

.page-news__update-item {
  background-color: var(--page-news-card-bg);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__update-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
}

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

.page-news__update-title a:hover {
  color: var(--page-news-glow);
}

.page-news__update-summary {
  color: var(--page-news-text-secondary);
}

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

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

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: var(--page-news-bg);
}

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

.page-news__faq-item {
  background-color: var(--page-news-card-bg);
  border: 1px solid var(--page-news-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  color: var(--page-news-text-main);
  font-size: 1.1em;
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-news-glow);
}

.page-news__faq-answer {
  padding: 0 20px 20px;
  color: var(--page-news-text-secondary);
  font-size: 1em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__featured-content {
    flex-direction: column;
  }

  .page-news__featured-image {
    max-width: 100%;
  }
}

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

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

  .page-news__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-news__description {
    font-size: 1em;
  }

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

  .page-news__news-grid {
    grid-template-columns: 1fr;
  }

  .page-news__card-image {
    height: 180px;
  }

  .page-news__card-title {
    font-size: 1.2em;
  }

  .page-news__featured-image {
    height: auto;
  }

  .page-news__featured-title {
    font-size: 1.6em;
  }

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

  .page-news__btn {
    width: 100%;
    padding: 12px 15px;
  }

  /* Mobile specific overrides for images, videos, buttons */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__hero-section,
  .page-news__recent-news-section,
  .page-news__featured-article-section,
  .page-news__industry-updates-section,
  .page-news__cta-section,
  .page-news__faq-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  
  .page-news__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .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;
  }
  
  .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: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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