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

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

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

.page-news-hero {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
  background-image: linear-gradient(135deg, var(--primary-color) 0%, #3a4a5a 100%);
}

.page-news-hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  font-weight: bold;
}

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

.page-news-section-title {
  font-size: 2.2em;
  color: var(--primary-color);
  text-align: center;
  margin: 60px 0 40px 0;
  font-weight: bold;
  position: relative;
}

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

.page-news-featured {
  padding: 40px 0;
  background-color: var(--bg-light);
}

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

.page-news-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-news-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news-card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

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

.page-news-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

.page-news-button:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

.page-news-categories {
  padding: 40px 0;
  background-color: #f9f9f9;
}

.page-news-category-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-news-category-list li {
  margin: 0;
}

.page-news-category-link {
  display: block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.05em;
}

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

.page-news-latest {
  padding: 40px 0;
  background-color: var(--bg-light);
}

.page-news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-news-list-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news-list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-news-list-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-news-list-content {
  padding: 20px 25px;
  flex-grow: 1;
}

.page-news-list-title {
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: bold;
}

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

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

.page-news-list-meta {
  font-size: 0.85em;
  color: #999;
  margin-bottom: 10px;
}

.page-news-list-excerpt {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
}

.page-news-promo-cta {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 20px;
  text-align: center;
  background-image: linear-gradient(135deg, var(--primary-color) 0%, #3a4a5a 100%);
}

.page-news-promo-content {
  max-width: 900px;
}

.page-news-promo-cta .page-news-section-title {
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 30px;
}

.page-news-promo-cta .page-news-section-title::after {
  background-color: var(--text-light);
}

.page-news-promo-description {
  font-size: 1.15em;
  margin-bottom: 40px;
  color: #e0e0e0;
}

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

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

.page-news-guides-deep-dive {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-news-guides-deep-dive h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news-guides-deep-dive p {
  font-size: 1.05em;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-news-link-inline {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

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

/* FAQ Section Styles */
.page-news-faq {
  padding: 60px 0;
  background-color: var(--bg-light);
}

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

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

.faq-question:hover {
  background: #f5f5f5;
  border-color: var(--secondary-color);
}

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

.faq-toggle {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background-color: #fcfcfc;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 0 5px 5px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px 20px;
}

.faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #555;
}

.page-news-contact {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  background-image: linear-gradient(135deg, #3a4a5a 0%, var(--primary-color) 100%);
}

.page-news-contact .page-news-section-title {
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 30px;
}

.page-news-contact .page-news-section-title::after {
  background-color: var(--text-light);
}

.page-news-contact p {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #e0e0e0;
}

.page-news-contact-button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 35px;
  font-size: 1.1em;
  border-radius: 8px;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-news-hero-title {
    font-size: 2.2em;
  }
  .page-news-section-title {
    font-size: 1.8em;
  }
  .page-news-card-image {
    height: 180px;
  }
  .page-news-list-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-news-list-image {
    width: 100%;
    height: 200px;
  }
  .page-news-list-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-news-hero {
    padding: 60px 15px;
  }
  .page-news-hero-title {
    font-size: 1.8em;
  }
  .page-news-hero-description {
    font-size: 1em;
  }
  .page-news-section-title {
    font-size: 1.6em;
    margin: 40px 0 30px 0;
  }
  .page-news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news-card-content {
    padding: 20px;
  }
  .page-news-card-title {
    font-size: 1.3em;
  }
  .page-news-category-list {
    flex-direction: column;
    gap: 10px;
  }
  .page-news-category-link {
    width: 100%;
    text-align: center;
  }
  .page-news-list-title {
    font-size: 1.1em;
  }
  .page-news-promo-cta {
    padding: 40px 15px;
  }
  .page-news-promo-description {
    font-size: 1em;
  }
  .page-news-cta-button {
    padding: 15px 30px;
    font-size: 1.05em;
  }
  .page-news-guides-deep-dive h3 {
    font-size: 1.5em;
  }
  .page-news-guides-deep-dive p {
    font-size: 0.95em;
  }
  .faq-question {
    padding: 12px 15px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 18px;
  }
  .faq-answer {
    padding: 0 15px;
  }
  .faq-item.active .faq-answer {
    padding: 15px;
  }
  .page-news-contact {
    padding: 40px 15px;
  }
  .page-news-contact-button {
    padding: 12px 25px;
    font-size: 1em;
  }
}