/* style/news.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #E0B048;
  --text-dark: #333333;
  --text-light: #f4f4f4;
  --bg-light: #ffffff;
  --bg-dark: #0A2463;
  --accent-color: #E0B048;
  --border-color: #e0e0e0;
}

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f8f8f8;
}

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

.page-news h1, .page-news h2, .page-news h3, .page-news h4, .page-news h5, .page-news h6 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news h1 {
  font-size: 2.8em;
  text-align: center;
  color: var(--text-light);
}

.page-news h2 {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-news h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-news h3 {
  font-size: 1.6em;
  margin-bottom: 10px;
}

.page-news p {
  margin-bottom: 15px;
}

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

.page-news a:hover {
  color: var(--secondary-color);
}

/* Hero Section */
.page-news .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--bg-dark);
}

.page-news .hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-news .hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-news .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-news .hero-content p {
  color: var(--text-light);
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-news .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news .cta-button:hover {
  background: #f0c266; /* Slightly lighter secondary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Section Styling */
.page-news section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-news section:nth-of-type(even) {
  background-color: #f0f0f0;
}

/* News Grid (Featured News) */
.page-news .section-featured-news .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news .news-card {
  background-color: var(--bg-light);
  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;
  display: flex;
  flex-direction: column;
}

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

.page-news .news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-news .news-card h3 {
  padding: 15px 20px 0;
  margin-bottom: 10px;
}

.page-news .news-card h3 .page-news.card-link {
  color: var(--primary-color);
  font-size: 1.4em;
  line-height: 1.3;
}

.page-news .news-card h3 .page-news.card-link:hover {
  color: var(--secondary-color);
}

.page-news .news-card p {
  padding: 0 20px 15px;
  font-size: 0.95em;
  color: #555;
  flex-grow: 1;
}

.page-news .news-card .page-news.read-more {
  display: inline-block;
  padding: 10px 20px 15px;
  color: var(--secondary-color);
  font-weight: bold;
  align-self: flex-start;
}

.page-news .news-card .page-news.read-more:hover {
  text-decoration: underline;
}

/* Article List (Latest Articles) */
.page-news .article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-news .article-item {
  display: flex;
  background-color: var(--bg-light);
  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-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news .article-item img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-news .article-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news .article-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.page-news .article-content h3 .page-news.article-link {
  color: var(--primary-color);
  font-size: 1.3em;
  line-height: 1.3;
}

.page-news .article-content h3 .page-news.article-link:hover {
  color: var(--secondary-color);
}

.page-news .article-content p {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 10px;
}

.page-news .article-date {
  font-size: 0.85em;
  color: #888;
  margin-top: auto;
  margin-bottom: 10px;
}

.page-news .article-content .page-news.read-more {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-news .article-content .page-news.read-more:hover {
  text-decoration: underline;
}

.page-news .view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

/* Promotions Overview */
.page-news .promotion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news .promotion-card {
  background-color: var(--bg-light);
  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;
  display: flex;
  flex-direction: column;
}

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

.page-news .promotion-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-news .promotion-card h3 {
  padding: 15px 20px 0;
  margin-bottom: 10px;
}

.page-news .promotion-card h3 .page-news.card-link {
  color: var(--primary-color);
  font-size: 1.4em;
  line-height: 1.3;
}

.page-news .promotion-card h3 .page-news.card-link:hover {
  color: var(--secondary-color);
}

.page-news .promotion-card p {
  padding: 0 20px 15px;
  font-size: 0.95em;
  color: #555;
  flex-grow: 1;
}

.page-news .promotion-card .page-news.read-more {
  display: inline-block;
  padding: 10px 20px 15px;
  color: var(--secondary-color);
  font-weight: bold;
  align-self: flex-start;
}

.page-news .promotion-card .page-news.read-more:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-news .section-faq {
  background-color: var(--bg-light);
}

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

.faq-item {
  margin-bottom: 15px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-question:hover {
  background: #081e4f; /* Slightly darker primary color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.faq-question h3 {
  margin: 0;
  color: var(--text-light);
  font-size: 1.2em;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 15px 20px;
  border-top: 1px solid #e0e0e0;
}

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

.faq-answer p {
  margin: 0;
  color: var(--text-dark);
}

/* Bottom CTA */
.page-news .section-cta-bottom {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 80px 20px;
}

.page-news .section-cta-bottom h2 {
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-news .section-cta-bottom p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-news .section-cta-bottom .cta-button {
  margin: 0 10px;
}

.page-news .section-cta-bottom .primary-button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-news .section-cta-bottom .primary-button:hover {
  background-color: #f0c266;
}

.page-news .section-cta-bottom .secondary-button {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.page-news .section-cta-bottom .secondary-button:hover {
  background-color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-news .hero-content h1 {
    font-size: 2.2em;
  }
  .page-news .hero-content p {
    font-size: 1em;
  }
  .page-news h2 {
    font-size: 1.8em;
  }
  .page-news .news-card img {
    height: 180px;
  }
  .page-news .article-item {
    flex-direction: column;
  }
  .page-news .article-item img {
    width: 100%;
    height: 200px;
  }
  .page-news .article-content {
    padding: 15px;
  }
  .page-news .promotion-cards {
    grid-template-columns: 1fr;
  }
  .page-news .promotion-card img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-news .hero-section {
    padding: 40px 15px;
  }
  .page-news .hero-image {
    margin-bottom: 20px;
  }
  .page-news .hero-content h1 {
    font-size: 1.8em;
  }
  .page-news .hero-content p {
    font-size: 0.9em;
  }
  .page-news .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-news h2 {
    font-size: 1.6em;
  }
  .page-news h3 {
    font-size: 1.3em;
  }
  .page-news section {
    padding: 40px 0;
  }
  .page-news .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news .article-list {
    gap: 20px;
  }
  .page-news .section-cta-bottom {
    padding: 60px 15px;
  }
  .page-news .section-cta-bottom .cta-button {
    display: block;
    margin: 15px auto;
    width: fit-content;
  }
  .faq-question {
    padding: 12px 15px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 15px;
  }
  .faq-item.active .faq-answer {
    padding: 12px 15px;
  }
}