/* style/news.css */

/* Base styles for the news page */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  background-color: #0A192F;
  line-height: 1.6;
}

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

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

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, #0A192F 0%, #1a3a60 100%);
  padding-top: var(--header-offset, 120px);
}

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

.page-news__hero-description {
  font-size: 1.3rem;
  color: #e0e0e0;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.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.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

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

.page-news__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

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

/* Latest News Section */
.page-news__latest-news-section {
  padding: 80px 0;
  background-color: #0A192F;
}

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

.page-news__news-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  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 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__card-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.5rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-news__card-date {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 15px;
}

.page-news__card-summary {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

/* Featured Articles Section */
.page-news__featured-articles-section {
  padding: 80px 0;
  background-color: #0A192F;
}

.page-news__category-block {
  margin-bottom: 60px;
}

.page-news__category-title {
  font-size: 2rem;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.page-news__category-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #FFD700;
}

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

.page-news__article-item {
  display: flex;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-image {
  width: 200px;
  height: auto;
  object-fit: cover;
  display: block;
}

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

.page-news__article-heading {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-heading a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-heading a:hover {
  color: #e6c200;
}

.page-news__article-summary {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 15px;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #1a3a60;
  text-align: center;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #0A192F;
}

.page-news__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-news__faq-heading {
  font-size: 1.2rem;
  color: #FFD700;
  margin: 0;
  flex-grow: 1;
  text-align: left;
}

.page-news__faq-toggle {
  font-size: 1.8rem;
  color: #FFD700;
  margin-left: 20px;
  line-height: 1;
  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;
  color: #ccc;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px 25px 25px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3rem;
  }
  .page-news__hero-description {
    font-size: 1.2rem;
  }
  .page-news__article-list {
    grid-template-columns: 1fr;
  }
  .page-news__article-item {
    flex-direction: column;
  }
  .page-news__article-image {
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__hero-title {
    font-size: 2.2rem;
  }
  .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;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-news__section-title {
    font-size: 2rem;
  }
  .page-news__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-news__latest-news-section,
  .page-news__featured-articles-section,
  .page-news__cta-section,
  .page-news__faq-section {
    padding: 50px 0;
  }
  .page-news__news-grid {
    gap: 20px;
  }
  .page-news__card-title {
    font-size: 1.3rem;
  }
  .page-news__card-summary {
    font-size: 0.9rem;
  }
  .page-news__category-title {
    font-size: 1.8rem;
  }
  .page-news__article-list {
    grid-template-columns: 1fr;
  }
  .page-news__article-heading {
    font-size: 1.1rem;
  }
  .page-news__article-summary {
    font-size: 0.85rem;
  }
  .page-news__faq-question {
    padding: 15px 20px;
  }
  .page-news__faq-heading {
    font-size: 1rem;
  }
  .page-news__faq-toggle {
    font-size: 1.5rem;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 10px 20px 20px 20px;
  }

  /* Mobile image/video/container specific rules */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__news-card,
  .page-news__article-item,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__featured-articles-section,
  .page-news__cta-section,
  .page-news__faq-section,
  .page-news__hero-cta-buttons,
  .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-news__hero-cta-buttons, .page-news__cta-buttons {
    flex-wrap: wrap !important;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8rem;
  }
  .page-news__section-title {
    font-size: 1.6rem;
  }
  .page-news__category-title {
    font-size: 1.5rem;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-item {
    flex-direction: column;
  }
  .page-news__article-image {
    height: 200px;
  }
}