/* style/news.css */
:root {
  --primary-color: #0A1931;
  --secondary-color: #E0B143;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f4f7f6;
  --bg-dark: #1a2a46;
  --border-color: #e0e0e0;
}

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

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

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

.page-news .hero-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.page-news .hero-image {
  width: 100%;
  height: 400px; /* Adjusted height for content image, not hero */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-news .hero-content p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #e0e0e0;
}

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

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

.page-news .articles-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

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

.page-news .news-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  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 10px 30px rgba(0, 0, 0, 0.15);
}

.page-news .news-card.featured {
  grid-column: 1 / -1; /* Make featured article span full width */
  display: flex;
  flex-direction: row;
  align-items: center;
  background: linear-gradient(to right, #ffffff 60%, var(--secondary-color) 100%);
}

.page-news .news-card.featured .card-image {
  width: 50%;
  height: auto;
  border-radius: 10px 0 0 10px;
  object-fit: cover;
}

.page-news .news-card.featured .card-content {
  width: 50%;
  padding: 30px;
}

.page-news .news-card .card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

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

.page-news .news-card .article-date {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 10px;
  display: block;
}

.page-news .news-card h3 {
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

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

.page-news .news-card p {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news .news-card .read-more {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

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

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

.page-news .pagination a.active,
.page-news .pagination a:hover {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-news .categories-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
}

.page-news .categories-section h2 {
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-news .categories-section p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #e0e0e0;
}

.page-news .category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-news .category-item {
  display: inline-block;
  padding: 12px 25px;
  background-color: rgba(224, 177, 67, 0.2);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-news .category-item:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.page-news .cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), #000000);
  color: var(--text-light);
  text-align: center;
}

.page-news .cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-news .cta-content h2 {
  font-size: 2.8em;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-news .cta-content p {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #e0e0e0;
}

.page-news .cta-content .primary-button {
  background: var(--secondary-color);
  color: var(--primary-color);
  margin-right: 20px;
}

.page-news .cta-content .primary-button:hover {
  background: #f0c260;
}

.page-news .cta-content .secondary-button {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

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

.page-news .faq-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.page-news .faq-section h2 {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
}

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

.page-news .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-news .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-news .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
}

.page-news .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.page-news .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
  background: #f9f9f9;
  color: var(--text-dark);
}

.page-news .faq-answer p {
  padding: 15px 0;
  margin: 0;
  font-size: 1em;
}

.page-news .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 15px 25px;
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--border-color);
  border-top: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news .news-card.featured {
    flex-direction: column;
  }
  .page-news .news-card.featured .card-image,
  .page-news .news-card.featured .card-content {
    width: 100%;
    border-radius: 10px 10px 0 0;
  }
  .page-news .news-card.featured .card-content {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-news .hero-section {
    padding: 40px 0;
  }
  .page-news .hero-image {
    height: 250px;
  }
  .page-news .hero-content h1 {
    font-size: 2.5em;
  }
  .page-news .hero-content p {
    font-size: 1em;
  }
  .page-news .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-news .articles-section,
  .page-news .categories-section,
  .page-news .cta-section,
  .page-news .faq-section {
    padding: 50px 0;
  }
  
  .page-news .news-card .card-image {
    height: 200px;
  }

  .page-news .cta-content .primary-button,
  .page-news .cta-content .secondary-button {
    margin-right: 0;
    margin-bottom: 15px;
    width: 100%;
  }
  .page-news .cta-content h2 {
    font-size: 2em;
  }
  .page-news .cta-content p {
    font-size: 1em;
  }
  .page-news .category-list {
    flex-direction: column;
    align-items: center;
  }
  .page-news .category-item {
    width: 80%;
  }

  .page-news .faq-question {
    padding: 15px 20px;
  }
  .page-news .faq-question h3 {
    font-size: 1.1em;
  }
  .page-news .faq-answer {
    padding: 0 20px;
  }
  .page-news .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-news .hero-image {
    height: 180px;
  }
  .page-news .hero-content h1 {
    font-size: 2em;
  }
  .page-news .news-card h3 {
    font-size: 1.2em;
  }
  .page-news .news-card.featured .card-image {
    height: 200px;
  }
}