/* style/news.css */

/* General Page Styles */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Inherited from body */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #26A9E0, #0056b3);
  color: #ffffff;
  text-align: center;
}

.page-news__hero-content {
  z-index: 10;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-news__hero-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.3;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%); /* Allowed for stylistic effect, not color change */
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  margin: 10px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-news__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-news__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
  transform: translateY(-2px);
}

/* Latest News Section */
.page-news__latest-news-section {
  background-color: #1a1a1a;
  padding: 60px 20px;
  color: #f0f0f0;
}

.page-news__latest-news-section .page-news__section-description {
  color: #cccccc;
}

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

.page-news__article-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #f0f0f0;
}

.page-news__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__article-image {
  width: 100%;
  height: 220px;
  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.5em;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #4dc3ff;
}

.page-news__card-text {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #ff912a;
}

/* Categories Section */
.page-news__categories-section {
  background-color: #0d0d0d;
  padding: 60px 20px;
  color: #ffffff;
}

.page-news__categories-section .page-news__section-description {
  color: #cccccc;
}

.page-news__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-news__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-news__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__category-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-news__category-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #26A9E0;
}

/* Articles List Section */
.page-news__articles-list-section {
  background-color: #1a1a1a;
  padding: 60px 20px;
  color: #f0f0f0;
}

.page-news__articles-list-section .page-news__section-description {
  color: #cccccc;
}

.page-news__articles-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-news__list-item {
  display: flex;
  background-color: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
}

.page-news__list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-news__list-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.page-news__list-content {
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news__list-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.3;
}

.page-news__list-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__list-title a:hover {
  color: #4dc3ff;
}

.page-news__list-text {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 15px;
}

/* CTA Download Section */
.page-news__cta-download-section {
  background: linear-gradient(90deg, #26A9E0, #0056b3);
  padding: 80px 20px;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-news__cta-content {
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-news__cta-download-section .page-news__section-title {
  color: #FFFFFF;
}

.page-news__cta-download-section .page-news__section-description {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  overflow: hidden;
}

.page-news__cta-image {
  max-width: 500px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: block;
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #1a1a1a;
  padding: 60px 20px;
  color: #f0f0f0;
}

.page-news__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-news__faq-item {
  border-bottom: 1px solid #333333;
}

.page-news__faq-item:last-child {
  border-bottom: none;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #2a2a2a;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #3a3a3a;
}

.page-news__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #FFFFFF;
  font-weight: 600;
}

.page-news__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #333333;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-news__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #cccccc;
}

.page-news__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-news__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3em;
  }
  .page-news__hero-description {
    font-size: 1.2em;
  }
  .page-news__list-image {
    width: 200px;
    height: 140px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-news__btn-primary, .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px !important;
  }
  .page-news__article-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-card {
    margin-bottom: 20px;
  }
  .page-news__category-grid {
    grid-template-columns: 1fr;
  }
  .page-news__list-item {
    flex-direction: column;
    text-align: center;
  }
  .page-news__list-image {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
  }
  .page-news__list-content {
    padding: 20px;
  }
  .page-news__cta-image {
    max-width: 100% !important;
    height: auto !important;
    padding: 0 15px;
    box-sizing: border-box !important;
  }

  /* Image and Video responsive adaptation */
  .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__cta-buttons,
  .page-news__faq-list {
    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,
  .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,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__faq-question,
  .page-news__faq-answer {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__hero-description {
    font-size: 0.9em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__faq-question h3 {
    font-size: 1em;
  }
}