/* style/news.css */
:root {
  --primary-color: #0A244A;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f4f7f6;
  --background-dark: #071a33;
  --card-background: #ffffff;
  --border-color: #e0e0e0;
}

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

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

.page-news .hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1A3C6B 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.page-news .hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-news .hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-news .hero-subtitle {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-news .cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news .section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  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: var(--secondary-color);
  border-radius: 2px;
}

.page-news .latest-news-section, .page-news .all-news-section, .page-news .cta-section, .page-news .faq-section {
  padding: 60px 0;
}

.page-news .latest-news-section {
  background-color: var(--background-light);
}

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

.page-news .news-card {
  background-color: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news .news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

.page-news .news-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  min-height: 70px; /* Ensure consistent card height */
}

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

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

.page-news .news-excerpt {
  color: #666;
  font-size: 0.95em;
  line-height: 1.7;
  margin-bottom: 20px;
  min-height: 100px; /* Ensure consistent card height */
}

.page-news .read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 3px;
  transition: all 0.3s ease;
}

.page-news .read-more:hover {
  color: var(--secondary-color);
  border-color: var(--primary-color);
}

.page-news .all-news-section {
  background-color: #ffffff;
}

.page-news .news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-news .news-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.page-news .news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-news .item-thumbnail {
  flex-shrink: 0;
  width: 250px;
  height: 150px;
  margin-right: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news .item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news .item-content {
  flex-grow: 1;
}

.page-news .item-title {
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 10px;
}

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

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

.page-news .item-date {
  font-size: 0.9em;
  color: #999;
  margin-bottom: 10px;
}

.page-news .item-excerpt {
  color: #555;
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-news .pagination {
  text-align: center;
  margin-top: 50px;
}

.page-news .page-link {
  display: inline-block;
  padding: 10px 18px;
  margin: 0 5px;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
  font-weight: bold;
}

.page-news .page-link.active,
.page-news .page-link:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
}

.page-news .cta-section {
  background: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 80px 0;
}

.page-news .cta-section .section-title {
  color: var(--secondary-color);
}

.page-news .cta-section .section-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
}

.page-news .cta-button.large {
  padding: 18px 50px;
  font-size: 1.25em;
  border-radius: 50px;
}

.page-news .faq-section {
  background-color: var(--background-light);
}

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

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--card-background);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: var(--card-background);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f5f5f5;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: var(--primary-color);
  font-weight: bold;
}

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background-color: #fdfdfd;
  color: #555;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px 25px;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-news .hero-title {
    font-size: 2.8em;
  }
  .page-news .hero-subtitle {
    font-size: 1.1em;
  }
  .page-news .section-title {
    font-size: 2em;
  }
  .page-news .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news .news-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-news .item-thumbnail {
    width: 100%;
    height: 200px;
    margin-right: 0;
    margin-bottom: 20px;
  }
  .page-news .item-content {
    padding: 0 15px;
  }
  .page-news .item-title {
    font-size: 1.4em;
  }
  .page-news .cta-section .section-description {
    font-size: 1em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.05em;
  }
}

@media (max-width: 768px) {
  .page-news .hero-title {
    font-size: 2.2em;
  }
  .page-news .hero-subtitle {
    font-size: 1em;
  }
  .page-news .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-news .section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }
  .page-news .news-card {
    margin: 0 10px;
  }
  .page-news .news-title {
    font-size: 1.3em;
    min-height: auto;
  }
  .page-news .news-excerpt {
    font-size: 0.9em;
    min-height: auto;
  }
  .page-news .item-title {
    font-size: 1.3em;
  }
  .page-news .item-date, .page-news .item-excerpt {
    font-size: 0.85em;
  }
  .page-news .pagination {
    margin-top: 30px;
  }
  .page-news .page-link {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  .page-news .cta-button.large {
    padding: 15px 40px;
    font-size: 1.1em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-news .hero-section {
    padding: 50px 0;
  }
  .page-news .hero-title {
    font-size: 1.8em;
  }
  .page-news .hero-subtitle {
    font-size: 0.9em;
  }
  .page-news .news-grid {
    grid-template-columns: 1fr;
  }
  .page-news .news-item {
    padding-left: 0;
    padding-right: 0;
  }
  .page-news .item-thumbnail {
    height: 180px;
  }
  .page-news .item-content {
    padding: 0 10px;
  }
  .page-news .item-title {
    font-size: 1.2em;
  }
  .page-news .section-title {
    font-size: 1.6em;
  }
}