/* style/industry-news.css */

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

.page-industry-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--f79-text-main); /* Default text color for the page */
  background-color: var(--f79-background); /* Default background color for the page */
  padding-bottom: 50px; /* Ensure space above footer */
}

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

.page-industry-news__dark-section {
  background-color: var(--f79-background);
  color: var(--f79-text-main);
}

.page-industry-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-industry-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0; /* Image takes full space, content overlays or is below */
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-industry-news__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-industry-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability, not changing color */
}

.page-industry-news__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
  box-sizing: border-box;
}

.page-industry-news__main-title {
  color: var(--f79-gold);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  max-width: 100%;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

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

.page-industry-news__section-title {
  font-size: 2.2rem;
  color: var(--f79-gold);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-industry-news__section-title--dark {
  color: var(--f79-deep-green);
  text-shadow: none;
}

.page-industry-news__sub-title {
  font-size: 1.8rem;
  color: var(--f79-primary);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-industry-news__text-block {
  font-size: 1rem;
  color: var(--f79-text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-industry-news__text-block--dark {
  color: #333333;
}

.page-industry-news__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-industry-news__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--f79-text-secondary);
}

.page-industry-news__list-item {
  margin-bottom: 10px;
}

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

.page-industry-news__btn-primary,
.page-industry-news__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  width: auto;
}

.page-industry-news__btn-primary {
  background: var(--f79-button-gradient);
  color: var(--f79-text-main);
  border: 2px solid var(--f79-primary);
  box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

.page-industry-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(17, 168, 78, 0.6);
}

.page-industry-news__btn-secondary {
  background-color: transparent;
  color: var(--f79-primary);
  border: 2px solid var(--f79-primary);
  box-shadow: 0 4px 10px rgba(17, 168, 78, 0.2);
}

.page-industry-news__btn-secondary:hover {
  background-color: var(--f79-primary);
  color: var(--f79-text-main);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(17, 168, 78, 0.4);
}

.page-industry-news__card-section {
  background-color: var(--f79-card-bg);
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

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

.page-industry-news__card {
  background-color: var(--f79-deep-green);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-industry-news__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

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

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

.page-industry-news__card-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: bold;
}

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

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

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

.page-industry-news__card-description {
  font-size: 1rem;
  color: var(--f79-text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.page-industry-news__card-link {
  display: inline-block;
  color: var(--f79-primary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-industry-news__card-link:hover {
  color: var(--f79-glow);
}

.page-industry-news__view-all-button-container {
  margin-top: 50px;
}

.page-industry-news__faq-section {
  background-color: var(--f79-card-bg);
  padding: 60px 20px;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-industry-news__faq-container {
  max-width: 900px;
  margin: 30px auto 0;
}

.page-industry-news__faq-item {
  background-color: var(--f79-deep-green);
  border: 1px solid var(--f79-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-industry-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--f79-text-main);
  background-color: var(--f79-deep-green);
  user-select: none;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-industry-news__faq-item[open] > .page-industry-news__faq-question {
  background-color: var(--f79-deep-green);
  color: var(--f79-glow);
}

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

.page-industry-news__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-industry-news__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  width: 30px;
  text-align: center;
  color: var(--f79-glow);
}

.page-industry-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--f79-text-secondary);
  line-height: 1.6;
}

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

.page-industry-news__cta-bottom {
  text-align: center;
  background-color: #ffffff;
  color: #333333;
  padding: 60px 20px;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-industry-news__hero-content {
    max-width: 600px;
    padding: 15px;
  }

  .page-industry-news__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

  .page-industry-news__sub-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .page-industry-news {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-industry-news__hero-content {
    position: relative; /* Make it flow normally on mobile, below image */
    transform: none;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    padding: 20px 15px;
    background: var(--f79-background); /* Use page background for content */
    border-radius: 0;
    box-shadow: none;
  }

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

  .page-industry-news__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-industry-news__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-industry-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-industry-news__btn-primary,
  .page-industry-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-industry-news__section,
  .page-industry-news__card-section,
  .page-industry-news__faq-section,
  .page-industry-news__cta-bottom {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-industry-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  .page-industry-news__image,
  .page-industry-news__card-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-industry-news__grid-container {
    grid-template-columns: 1fr;
  }

  .page-industry-news__card {
    margin-bottom: 20px;
  }

  .page-industry-news__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  .page-industry-news__section-title {
    font-size: 1.8rem;
  }

  .page-industry-news__sub-title {
    font-size: 1.4rem;
  }
}

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

  .page-industry-news__main-title {
    font-size: clamp(1.5rem, 9vw, 2.2rem);
  }

  .page-industry-news__section-title {
    font-size: 1.6rem;
  }

  .page-industry-news__sub-title {
    font-size: 1.2rem;
  }

  .page-industry-news__btn-primary,
  .page-industry-news__btn-secondary {
    font-size: 0.95rem;
    padding: 10px 15px;
  }
}