/* style/news.css */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

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

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #1A2B4C;
  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: #FFD700;
  border-radius: 2px;
}

.page-news__hero-section {
  position: relative;
  padding: 100px 20px 80px; /* Adjusted padding for hero section */
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  text-align: center;
  background: linear-gradient(135deg, #1A2B4C 0%, #0F1A2E 100%);
  color: #ffffff; /* Light text for dark background */
  overflow: hidden;
}

.page-news__main-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #FFD700; /* Highlight with auxiliary color */
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

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

.page-news__cta-button {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-news__btn-primary {
  background: #FFD700;
  color: #1A2B4C;
}

.page-news__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-news__btn-secondary:hover {
  background: #FFD700;
  color: #1A2B4C;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__articles-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

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

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

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

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

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

.page-news__article-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: #1A2B4C;
  text-decoration: none;
}

.page-news__article-title a:hover {
  color: #FFD700;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-news__article-date {
  font-size: 14px;
  color: #888888;
  display: block;
  margin-bottom: 15px;
}

.page-news__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background: #1A2B4C;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-news__read-more-button:hover {
  background: #FFD700;
  color: #1A2B4C;
}

.page-news__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.page-news__pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  border: 1px solid #ddd;
  color: #1A2B4C;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-news__pagination-link:hover:not(.page-news__pagination-link--disabled):not(.page-news__pagination-link--active) {
  background-color: #FFD700;
  border-color: #FFD700;
  color: #1A2B4C;
}

.page-news__pagination-link--active {
  background-color: #1A2B4C;
  border-color: #1A2B4C;
  color: #ffffff;
  cursor: default;
}

.page-news__pagination-link--disabled {
  color: #aaaaaa;
  cursor: not-allowed;
  opacity: 0.6;
}

.page-news__brand-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0F1A2E 0%, #1A2B4C 100%);
  color: #ffffff; /* Light text for dark background */
  text-align: center;
}

.page-news__brand-section .page-news__section-title {
  color: #FFD700;
}

.page-news__brand-description {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #f0f0f0;
}

.page-news__brand-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-news__brand-feature-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-news__brand-feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-news__brand-feature-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-news__brand-feature-item p {
  font-size: 16px;
  color: #cccccc;
}

.page-news__faq-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

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

.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;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A2B4C;
  color: #ffffff;
  border: 1px solid #1A2B4C;
  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: #0F1A2E;
  border-color: #0F1A2E;
}

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

.page-news__faq-item.active .page-news__faq-question {
  border-radius: 5px 5px 0 0;
}

.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: #ffffff;
}

.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 {
  transform: rotate(45deg);
  color: #FFD700;
}

.page-news__cta-bottom-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1A2B4C 0%, #0F1A2E 100%);
  color: #ffffff;
  text-align: center;
}

.page-news__cta-bottom-section .page-news__section-title {
  color: #FFD700;
}

.page-news__cta-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 44px;
  }
  .page-news__section-title {
    font-size: 32px;
  }
  .page-news__hero-description, .page-news__brand-description, .page-news__cta-description {
    font-size: 18px;
  }
  .page-news__article-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 80px 15px 60px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__main-title {
    font-size: 36px;
  }
  .page-news__hero-description {
    font-size: 16px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__cta-button {
    width: 100%;
    max-width: 100% !important;
    padding: 14px 25px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-news__articles-section, .page-news__brand-section, .page-news__faq-section, .page-news__cta-bottom-section {
    padding: 60px 0;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 20px;
  }
  .page-news__article-excerpt {
    font-size: 15px;
  }
  .page-news__brand-features {
    grid-template-columns: 1fr;
  }
  .page-news__brand-feature-title {
    font-size: 20px;
  }
  .page-news__brand-feature-item {
    padding: 25px;
  }
  .page-news__faq-question {
    padding: 15px;
  }
  .page-news__faq-question h3 {
    font-size: 16px;
  }
  .page-news__faq-toggle {
    font-size: 22px;
    width: 26px;
    height: 26px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__article-card, .page-news__brand-feature-item, .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__article-grid {
    gap: 20px;
  }
  .page-news__pagination-link {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 30px;
  }
  .page-news__section-title {
    font-size: 24px;
  }
  .page-news__hero-description, .page-news__brand-description, .page-news__cta-description {
    font-size: 15px;
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__article-excerpt {
    font-size: 14px;
  }
  .page-news__faq-question h3 {
    font-size: 15px;
  }
}