/* style/news.css */

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

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

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  background-color: var(--page-news-deep-green);
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-news__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--page-news-text-main);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--page-news-glow-color);
}

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

.page-news__btn-secondary:hover {
  background-color: var(--page-news-border-color);
  color: var(--page-news-text-main);
  box-shadow: 0 0 15px rgba(var(--page-news-glow-color), 0.5);
}

.page-news__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--page-news-gold-color);
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
  font-weight: bold;
}

.page-news__section-subtitle {
  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;
}

.page-news__featured-section,
.page-news__event-section,
.page-news__tips-section,
.page-news__industry-section,
.page-news__faq-section,
.page-news__cta-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--page-news-divider-color);
}

.page-news__featured-section:last-of-type {
  border-bottom: none;
}

.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: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  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 10px 30px rgba(0, 0, 0, 0.6);
}

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

.page-news__card-content {
  padding: 25px;
  flex-grow: 1;
  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: var(--page-news-text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-news__card-description {
  font-size: 1rem;
  color: var(--page-news-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__card-link {
  color: var(--page-news-gold-color);
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

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

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

.page-news__event-content,
.page-news__industry-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-news__event-image,
.page-news__industry-image {
  width: 50%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__event-text,
.page-news__industry-text {
  width: 50%;
}

.page-news__event-heading,
.page-news__industry-heading {
  font-size: 1.8rem;
  color: var(--page-news-text-main);
  margin-bottom: 15px;
}

.page-news__event-date,
.page-news__industry-date {
  font-size: 0.95rem;
  color: var(--page-news-text-secondary);
  margin-bottom: 15px;
}

.page-news__event-description,
.page-news__industry-description {
  font-size: 1rem;
  color: var(--page-news-text-secondary);
  margin-bottom: 25px;
}

.page-news__event-highlights-title,
.page-news__industry-highlights-title {
  font-size: 1.5rem;
  color: var(--page-news-gold-color);
  margin-bottom: 20px;
  text-align: center;
}

.page-news__event-list,
.page-news__industry-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.page-news__event-list-item,
.page-news__industry-list-item {
  background-color: var(--page-news-card-bg);
  padding: 15px 20px;
  border-radius: 8px;
  color: var(--page-news-text-secondary);
  font-size: 1rem;
  border-left: 3px solid var(--page-news-gold-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-news__tip-item {
  background-color: var(--page-news-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__tip-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-news__tip-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__tip-title {
  font-size: 1.3rem;
  margin: 20px 20px 10px;
  line-height: 1.3;
}

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

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

.page-news__tip-description {
  font-size: 0.95rem;
  color: var(--page-news-text-secondary);
  padding: 0 20px 20px;
}

.page-news__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-news__faq-item {
  background-color: var(--page-news-card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  color: var(--page-news-text-main);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--page-news-deep-green);
  border-bottom: 1px solid var(--page-news-border-color);
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: var(--page-news-border-color);
}

.page-news__faq-item[open] .page-news__faq-question {
  border-bottom: 1px solid var(--page-news-border-color);
}

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

.page-news__faq-question::marker {
  display: none;
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--page-news-gold-color);
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

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

.page-news__cta-section {
  text-align: center;
  background-color: var(--page-news-deep-green);
  padding: 80px 20px;
  border-radius: 15px;
  margin-top: 60px;
  margin-bottom: 60px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-news__cta-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--page-news-gold-color);
  margin-bottom: 20px;
}

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__event-content,
  .page-news__industry-content {
    flex-direction: column;
    text-align: center;
  }

  .page-news__event-image,
  .page-news__industry-image,
  .page-news__event-text,
  .page-news__industry-text {
    width: 100%;
  }

  .page-news__event-image,
  .page-news__industry-image {
    margin-bottom: 20px;
  }
}

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

  .page-news__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }

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

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

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-top: 30px;
  }

  .page-news__section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

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

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

  .page-news__card-title,
  .page-news__tip-title {
    font-size: 1.2rem;
  }

  .page-news__event-heading,
  .page-news__industry-heading {
    font-size: 1.5rem;
  }

  .page-news__event-list,
  .page-news__industry-list {
    grid-template-columns: 1fr;
  }

  .page-news__cta-section {
    padding: 50px 15px;
  }

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

  .page-news__cta-description {
    font-size: 1rem;
  }
  
  /* Force images to be responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-image-wrapper,
  .page-news__event-content,
  .page-news__industry-content,
  .page-news__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Ensure no image CSS makes it smaller than 200px display */
  .page-news__card-image, .page-news__tip-image {
    height: auto !important; /* Let height adjust to maintain aspect ratio */
    min-height: 200px; /* Ensure minimum display height */
  }
}

/* Ensure no image CSS makes it smaller than 200px display */
.page-news__card-image, .page-news__tip-image {
  min-height: 200px; /* Ensure minimum display height for content images */
}

/* Ensure no filter on images */
.page-news img {
  filter: none !important;
}