/* style/news.css */

/* Base styles for news page */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Inherit from body or set explicitly if needed */
  padding-top: 120px; /* Spacing for fixed header on desktop */
}

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

.page-news__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-news__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #2a2a2a; /* Lighter background for cards/elements */
  color: #ffffff;
}

.page-news__section-title {
  font-size: 38px;
  font-weight: 700;
  color: #FFA500; /* Orange for titles */
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-news__section-description {
  font-size: 18px;
  color: #cccccc;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Banner Section */
.page-news__hero-banner {
  padding: 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.page-news__hero-banner-container {
  position: relative;
  width: 100%;
  height: 450px; /* Fixed height for the banner */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-news__hero-banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
  z-index: 1;
}

.page-news__hero-banner-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  color: #ffffff;
  padding: 20px;
}

.page-news__hero-banner-title {
  font-size: 48px;
  font-weight: 800;
  color: #FFA500; /* Orange for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-news__hero-banner-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
}

.page-news__btn-primary {
  background-color: #FFA500; /* Orange background */
  color: #000000; /* Black text for contrast */
  border-color: #FFA500;
}

.page-news__btn-primary:hover {
  background-color: #ffb733;
  border-color: #ffb733;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #FFA500; /* Orange text */
  border-color: #FFA500;
  margin-left: 20px;
}

.page-news__btn-secondary:hover {
  background-color: #FFA500;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-news__article-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #2a2a2a; /* Light dark background for cards */
  color: #ffffff;
}

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

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-news__article-content {
  padding: 25px;
}

.page-news__article-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFA500; /* Orange for article titles */
  margin-bottom: 10px;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-news__read-more {
  color: #007bff; /* Blue for read more link */
  font-weight: 600;
  display: flex;
  align-items: center;
}

.page-news__read-more i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.page-news__article-card:hover .page-news__read-more i {
  transform: translateX(5px);
}

.page-news__cta-block {
  text-align: center;
  margin-top: 50px;
}

.page-news__cta-text {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 25px;
}

/* Categories Grid */
.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-news__category-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #2a2a2a; /* Light dark background for cards */
  color: #ffffff;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-news__category-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

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

.page-news__category-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFA500; /* Orange for category titles */
  padding: 15px 20px 5px;
}

.page-news__category-description {
  font-size: 15px;
  color: #cccccc;
  padding: 0 20px 20px;
}

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

.page-news__guide-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #2a2a2a; /* Light dark background for cards */
  color: #ffffff;
}

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

.page-news__guide-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-news__guide-content {
  padding: 25px;
}

.page-news__guide-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFA500; /* Orange for guide titles */
  margin-bottom: 10px;
}

.page-news__guide-excerpt {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 15px;
}

/* Security and Support Section */
.page-news__security-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__security-item {
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background-color: #2a2a2a; /* Light dark background for items */
  color: #ffffff;
  text-align: center;
}

.page-news__security-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFA500; /* Orange for security titles */
  margin-bottom: 15px;
}

.page-news__security-text {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-news__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #333333; /* Darker background for question */
  color: #ffffff;
  border: 1px solid #444444;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background: #444444;
  border-color: #555555;
}

.page-news__faq-question:active {
  background: #555555;
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFA500; /* Orange for FAQ question titles */
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFA500; /* Orange for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #2a2a2a; /* Lighter dark background for answer */
  color: #cccccc;
  border-radius: 0 0 8px 8px;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #2a2a2a;
}

/* Final CTA Section */
.page-news__cta-final {
  text-align: center;
  padding: 80px 20px;
}

.page-news__cta-final .page-news__section-title {
  font-size: 42px;
  margin-bottom: 25px;
}

.page-news__cta-final .page-news__section-description {
  font-size: 20px;
  margin-bottom: 40px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-banner-title {
    font-size: 40px;
  }
  .page-news__hero-banner-description {
    font-size: 18px;
  }
  .page-news__section-title {
    font-size: 32px;
  }
  .page-news__section-description {
    font-size: 16px;
  }
  .page-news__article-title {
    font-size: 20px;
  }
  .page-news__category-title {
    font-size: 18px;
  }
  .page-news__guide-title {
    font-size: 20px;
  }
  .page-news__security-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-news {
    padding-top: 100px; /* Spacing for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__section {
    padding: 40px 0;
  }

  .page-news__hero-banner-container {
    height: 350px;
  }
  .page-news__hero-banner-title {
    font-size: 32px;
  }
  .page-news__hero-banner-description {
    font-size: 16px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 10px 20px;
    font-size: 16px;
  }
  .page-news__btn-secondary {
    margin-left: 10px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-secondary {
    margin-left: 0;
  }

  .page-news__articles-grid,
  .page-news__categories-grid,
  .page-news__guides-grid,
  .page-news__security-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-card,
  .page-news__category-card,
  .page-news__guide-card,
  .page-news__security-item {
    padding: 20px;
  }
  .page-news__article-title,
  .page-news__category-title,
  .page-news__guide-title,
  .page-news__security-title {
    font-size: 18px;
  }
  .page-news__article-excerpt,
  .page-news__category-description,
  .page-news__guide-excerpt,
  .page-news__security-text {
    font-size: 15px;
  }

  /* Mobile image adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__article-card,
  .page-news__category-card,
  .page-news__guide-card,
  .page-news__security-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ specific mobile styles */
  .page-news__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-news__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-news__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-news__faq-answer {
    padding: 0 15px;
  }
  
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-news__hero-banner-title {
    font-size: 28px;
  }
  .page-news__hero-banner-description {
    font-size: 15px;
  }
  .page-news__section-title {
    font-size: 26px;
  }
  .page-news__cta-final .page-news__section-title {
    font-size: 32px;
  }
  .page-news__cta-final .page-news__section-description {
    font-size: 16px;
  }
}