/* style/news.css */

/* Base styles for the news page */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: var(--header-offset, 120px);
}

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

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #E34234; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.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 Section */
.page-news__hero-section {
  background: linear-gradient(135deg, #0A2463, #E34234);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-news__hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px;
}

.page-news__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

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

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

.page-news__hero-button {
  display: inline-block;
  background-color: #E34234; /* Auxiliary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__hero-button:hover {
  background-color: #cc3322;
  transform: translateY(-3px);
}

.page-news__hero-image {
  flex: 1;
  max-width: 700px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #f0f0f0;
}

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

.page-news__article-card {
  background-color: #2a2a2a; /* Darker card background */
  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__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.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-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  padding: 15px 20px 10px;
  margin: 0;
}

.page-news__article-excerpt {
  font-size: 15px;
  color: #cccccc;
  padding: 0 20px 10px;
  flex-grow: 1;
}

.page-news__article-meta {
  font-size: 13px;
  color: #999999;
  padding: 0 20px 15px;
  display: block;
}

.page-news__read-more-button {
  display: inline-block;
  background-color: #0A2463; /* Main color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more-button:hover {
  background-color: #071c4a;
}

.page-news__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-news__view-all-button {
  display: inline-block;
  background-color: #E34234;
  color: #ffffff;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__view-all-button:hover {
  background-color: #cc3322;
  transform: translateY(-3px);
}

/* Categories Section */
.page-news__categories-section {
  padding: 80px 0;
  background-color: #0A2463; /* Main color as background */
  color: #ffffff;
}

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

.page-news__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-align: center;
  padding: 20px;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

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

.page-news__category-image {
  width: 100%;
  max-width: 150px;
  height: auto;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 5px;
}

.page-news__category-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

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

.page-news__cta-title {
  font-size: 36px;
  font-weight: 700;
  color: #E34234;
  margin-bottom: 20px;
}

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

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: #E34234;
  color: #ffffff;
}

.page-news__btn-primary:hover {
  background-color: #cc3322;
  transform: translateY(-3px);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #E34234;
  border-color: #E34234;
}

.page-news__btn-secondary:hover {
  background-color: rgba(227, 66, 52, 0.1);
  transform: translateY(-3px);
  color: #ffffff;
}

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

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

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1a1a1a; /* Dark background for FAQ item */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a2a; /* Slightly lighter dark for question */
  border: 1px solid #3a3a3a;
  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: #3a3a3a;
  border-color: #4a4a4a;
}

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

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #E34234; /* Auxiliary color for toggle */
  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);
}

.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 25px;
  opacity: 0;
  background-color: #1a1a1a;
  color: #cccccc;
  border-radius: 0 0 8px 8px;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid #3a3a3a;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-section {
    padding: 60px 0;
  }
  .page-news__hero-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
  }
  .page-news__hero-content {
    max-width: 100%;
    text-align: center;
  }
  .page-news__hero-title {
    font-size: 40px;
  }
  .page-news__hero-image {
    max-width: 80%;
  }
  .page-news__section-title {
    font-size: 32px;
  }
  .page-news__section-description,
  .page-news__cta-description {
    font-size: 16px;
  }
  .page-news__articles-grid,
  .page-news__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
  .page-news__article-title {
    font-size: 20px;
  }
  .page-news__cta-title {
    font-size: 32px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    font-size: 18px;
    padding: 12px 25px;
  }
  .page-news__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__hero-section {
    padding: 40px 0;
  }
  .page-news__hero-title {
    font-size: 32px;
  }
  .page-news__hero-description {
    font-size: 16px;
  }
  .page-news__hero-button {
    font-size: 18px;
    padding: 12px 25px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__hero-image {
    max-width: 100%;
  }
  .page-news__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__latest-articles,
  .page-news__categories-section,
  .page-news__cta-section,
  .page-news__faq-section {
    padding: 40px 0;
  }
  .page-news__section-title,
  .page-news__cta-title {
    font-size: 26px;
  }
  .page-news__section-description,
  .page-news__cta-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-news__articles-grid,
  .page-news__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-card {
    margin: 0 auto;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__article-excerpt,
  .page-news__article-meta {
    font-size: 14px;
  }
  .page-news__read-more-button {
    width: calc(100% - 40px);
    text-align: center;
  }
  .page-news__view-all-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-news__categories-grid {
    gap: 15px;
  }
  .page-news__category-card {
    padding: 15px;
  }
  .page-news__category-title {
    font-size: 16px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 18px;
  }
  .page-news__faq-list {
    padding: 0 10px;
  }
  .page-news__faq-question {
    padding: 15px;
  }
  .page-news__faq-question h3 {
    font-size: 15px;
    width: calc(100% - 40px);
  }
  .page-news__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-news__faq-answer {
    padding: 0 15px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }

  /* General image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 28px;
  }
  .page-news__section-title,
  .page-news__cta-title {
    font-size: 22px;
  }
  .page-news__articles-grid {
    gap: 15px;
  }
  .page-news__article-image {
    height: 150px;
  }
  .page-news__article-title {
    font-size: 16px;
    padding: 10px 15px 5px;
  }
  .page-news__article-excerpt,
  .page-news__article-meta {
    font-size: 13px;
    padding: 0 15px 10px;
  }
  .page-news__read-more-button {
    font-size: 14px;
    padding: 8px 15px;
    margin: 0 15px 15px;
  }
  .page-news__category-image {
    max-width: 100px;
  }
  .page-news__category-title {
    font-size: 15px;
  }
  .page-news__faq-question h3 {
    font-size: 14px;
  }
}