/* style/news.css */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--dark-bg-1);
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  background-color: var(--primary-color);
  color: var(--auxiliary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-news__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--auxiliary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-news__lead-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--auxiliary-color);
}

.page-news__btn-primary {
  display: inline-block;
  background-color: var(--auxiliary-color);
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid var(--auxiliary-color);
}

.page-news__btn-primary:hover {
  background-color: darken(var(--auxiliary-color), 5%);
  color: var(--primary-color);
}

/* Section Titles */
.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: inherit;
}

/* Featured Articles */
.page-news__featured-articles {
  padding: 60px 0;
  background-color: var(--auxiliary-color);
  color: var(--text-color-dark);
}

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

.page-news__article-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

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

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

.page-news__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-news__article-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: darken(var(--primary-color), 10%);
}

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

.page-news__read-more-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more-link:hover {
  color: darken(var(--primary-color), 10%);
}

/* Categories Section */
.page-news__categories {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--auxiliary-color);
}

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

.page-news__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: var(--auxiliary-color);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__category-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.page-news__category-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--auxiliary-color);
}

.page-news__category-description {
  font-size: 0.9em;
  opacity: 0.8;
}

/* Latest Articles List */
.page-news__latest-articles {
  padding: 60px 0;
  background-color: var(--auxiliary-color);
  color: var(--text-color-dark);
}

.page-news__articles-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-news__list-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transition: transform 0.3s ease;
}

.page-news__list-item:hover {
  transform: translateY(-3px);
}

.page-news__list-image {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.page-news__list-content {
  flex-grow: 1;
}

.page-news__list-title {
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-news__list-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__list-link:hover {
  color: darken(var(--primary-color), 10%);
}

.page-news__list-summary {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
}

.page-news__list-date {
  font-size: 0.85em;
  color: #999;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--auxiliary-color);
}

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

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

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

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

.page-news__faq-title {
  font-size: 1.1em;
  margin: 0;
  color: var(--auxiliary-color);
}

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--auxiliary-color);
}

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

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--auxiliary-color);
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important;
  padding: 15px 20px;
}

.page-news__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 0.95em;
}

/* Call to Action Section */
.page-news__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--auxiliary-color);
  color: var(--text-color-dark);
}

.page-news__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #555;
}

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

.page-news__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #C30808;
}

.page-news__btn-register:hover {
  background-color: darken(#C30808, 10%);
}

.page-news__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #C30808;
}

.page-news__btn-login:hover {
  background-color: darken(#C30808, 10%);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__main-title {
    font-size: 2.2em;
  }
  .page-news__lead-text {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-news__category-grid {
    grid-template-columns: 1fr;
  }
  .page-news__list-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-news__list-image {
    width: 100%;
    height: 180px;
    margin-bottom: 15px;
  }
  .page-news__list-title {
    font-size: 1.2em;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-register,
  .page-news__btn-login {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8em;
  }
  .page-news__lead-text {
    font-size: 0.9em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__btn-primary,
  .page-news__btn-register,
  .page-news__btn-login {
    padding: 12px 20px;
    font-size: 0.9em;
  }
  .page-news__article-title {
    font-size: 1.1em;
  }
  .page-news__list-title {
    font-size: 1.1em;
  }
  .page-news__list-item {
    padding: 15px;
  }
  .page-news__faq-question {
    padding: 12px 15px;
  }
  .page-news__faq-title {
    font-size: 1em;
  }
  .page-news__faq-answer {
    padding: 10px 15px;
  }
}