/* style/news.css */
.page-news {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

.page-news__hero-banner {
  position: relative;
  width: 100%;
  height: 500px; /* Adjust height as needed */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px; /* Spacing for fixed header, adjusted for hero content */
}

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

.page-news__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-news__hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  padding: 30px 40px;
  border-radius: 10px;
  max-width: 800px;
}

.page-news__hero-title {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-news__intro-section {
  padding-top: 120px; /* Fixed header spacing for desktop, as this is the first content section after hero */
}

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

.page-news__section-title {
  font-size: 36px;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #0A192F;
  border-radius: 2px;
}

.page-news__section-title--light {
  color: #ffffff;
}

.page-news__section-title--light::after {
  background-color: #FFD700;
}

.page-news__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #e0e0e0;
  text-align: justify;
}

.page-news__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
}

.page-news__btn--primary {
  background-color: #FFD700;
  color: #0A192F;
  border: 2px solid #FFD700;
}

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

.page-news__btn--secondary {
  background-color: #0A192F;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-news__btn--secondary:hover {
  background-color: #1a3a6b;
  border-color: #FFD700;
  transform: translateY(-2px);
}

.page-news__btn--link {
  background: none;
  color: #FFD700;
  border: 2px solid #FFD700;
  padding: 10px 20px;
}

.page-news__btn--link:hover {
  background-color: #FFD700;
  color: #0A192F;
}

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

.page-news__article-card {
  background-color: #1a1a1a; /* Darker background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

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

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

.page-news__article-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

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

.page-news__article-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__article-excerpt {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news__read-more {
  color: #FFD700;
  font-weight: bold;
  display: flex;
  align-items: center;
}

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

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

.page-news__cta-block {
  text-align: center;
  margin-top: 60px;
  background-color: #0A192F;
  padding: 40px 30px;
  border-radius: 10px;
  border: 1px solid #FFD700;
}

.page-news__cta-text {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 30px;
  font-weight: 500;
}

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

.page-news__promo-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
}

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

.page-news__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-news__promo-title {
  font-size: 20px;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-news__promo-description {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* FAQ styles */
.page-news__faq-section {
  background-color: #0A192F;
}

.page-news__faq-list {
  margin-top: 40px;
}

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #e0e0e0;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #1a1a1a;
  border-radius: 0 0 5px 5px;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background: #2a2a2a;
  border-color: #FFD700;
}

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

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #f0f0f0;
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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: 28px;
  height: 28px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 40px;
  }
  .page-news__section-title {
    font-size: 30px;
  }
  .page-news__article-title {
    font-size: 20px;
  }
  .page-news__promo-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-banner {
    height: 400px;
    padding-top: 80px;
  }
  .page-news__hero-overlay {
    padding: 20px;
    max-width: 90%;
  }
  .page-news__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-news__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-news__btn {
    padding: 12px 25px;
    font-size: 15px;
  }
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__intro-section {
    padding-top: 100px; /* Fixed header spacing for mobile */
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-news__text-block {
    font-size: 15px;
  }
  .page-news__article-grid {
    gap: 20px;
  }
  .page-news__article-image-wrapper {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__article-excerpt {
    font-size: 14px;
  }
  .page-news__cta-block {
    margin-top: 40px;
    padding: 30px 20px;
  }
  .page-news__cta-text {
    font-size: 18px;
    margin-bottom: 20px;
  }
  .page-news__promotions .page-news__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__promo-card img {
    height: 180px;
  }
  .page-news__promo-title {
    font-size: 18px;
  }
  .page-news__promo-description {
    font-size: 14px;
  }
  .page-news__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-news__faq-question h3 {
    font-size: 15px;
    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;
  }
  
  /* Mobile image adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__container,
  .page-news__article-card,
  .page-news__promo-card,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-banner {
    height: 350px;
  }
  .page-news__hero-title {
    font-size: 28px;
  }
  .page-news__section-title {
    font-size: 24px;
  }
  .page-news__article-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-image-wrapper {
    height: 150px;
  }
  .page-news__promo-card img {
    height: 150px;
  }
}