/* style/news.css */
:root {
    --primary-color: #0A1931;
    --secondary-color: #FFD700;
    --text-light: #F0F0F0;
    --text-dark: #333333;
    --background-dark: #1A2E47;
    --background-light: #FFFFFF;
    --card-bg: #FFFFFF;
    --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: 0 20px;
}

.page-news .text-center {
    text-align: center;
}

.page-news .hero-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--background-dark));
    padding: 80px 0;
    color: var(--text-light);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-news .hero-banner .page-news-subtitle {
    font-size: 1.4em;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

.page-news .news-articles-section {
    padding: 60px 0;
    background-color: #F8F8F8;
}

.page-news .article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .page-news .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-news .news-card.featured {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .page-news .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .page-news .news-card.featured {
        grid-column: span 3;
    }
}

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

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

.page-news .card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-news .news-card.featured .card-image {
    height: 350px;
}

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

.page-news .card-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news .news-card.featured .card-title {
    font-size: 2.5em;
}

.page-news .card-date {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.page-news .card-excerpt {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news .card-excerpt a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.page-news .read-more-button {
    display: inline-block;
    padding: 12px 25px;
    background: 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 .read-more-button:hover {
    background-color: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
}

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

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

.page-news .cta-section .page-news-cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: 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: #FFC107; /* Slightly darker gold */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news .faq-section {
    padding: 60px 0;
    background-color: #F8F8F8;
}

.page-news .faq-section .page-news-faq-heading {
    font-size: 2.8em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

/* FAQ default state - Answer hidden */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

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

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

/* Question styling */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 10px;
}

.faq-question:hover {
  background: #f5f5f5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

/* Toggle icon */
.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-news .hero-banner .page-news-title {
        font-size: 2.8em;
    }
    .page-news .hero-banner .page-news-subtitle {
        font-size: 1.2em;
    }
    .page-news .card-image {
        height: 200px;
    }
    .page-news .news-card.featured .card-image {
        height: 300px;
    }
    .page-news .card-title {
        font-size: 1.6em;
    }
    .page-news .news-card.featured .card-title {
        font-size: 2em;
    }
    .page-news .cta-section .page-news-cta-title {
        font-size: 2em;
    }
    .page-news .cta-button {
        padding: 12px 30px;
        font-size: 1.1em;
    }
    .page-news .faq-section .page-news-faq-heading {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-news .hero-banner {
        padding: 60px 0;
    }
    .page-news .hero-banner .page-news-title {
        font-size: 2.2em;
    }
    .page-news .hero-banner .page-news-subtitle {
        font-size: 1em;
    }
    .page-news .news-articles-section {
        padding: 40px 0;
    }
    .page-news .article-grid {
        grid-template-columns: 1fr;
    }
    .page-news .news-card.featured {
        grid-column: span 1;
    }
    .page-news .card-image {
        height: 180px;
    }
    .page-news .news-card.featured .card-image {
        height: 250px;
    }
    .page-news .card-content {
        padding: 20px;
    }
    .page-news .card-title {
        font-size: 1.4em;
    }
    .page-news .news-card.featured .card-title {
        font-size: 1.8em;
    }
    .page-news .cta-section {
        padding: 40px 15px;
    }
    .page-news .cta-section .page-news-cta-title {
        font-size: 1.8em;
    }
    .page-news .cta-button {
        padding: 10px 25px;
        font-size: 1em;
    }
    .page-news .faq-section .page-news-faq-heading {
        font-size: 2em;
    }
    .faq-question {
        padding: 15px;
    }
    .faq-question h3 {
        font-size: 1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .page-news .hero-banner .page-news-title {
        font-size: 1.8em;
    }
    .page-news .hero-banner .page-news-subtitle {
        font-size: 0.9em;
    }
    .page-news .card-title {
        font-size: 1.2em;
    }
    .page-news .news-card.featured .card-title {
        font-size: 1.5em;
    }
    .page-news .read-more-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-news .cta-section .page-news-cta-title {
        font-size: 1.5em;
    }
    .page-news .cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-news .faq-section .page-news-faq-heading {
        font-size: 1.8em;
    }
    .faq-question h3 {
        font-size: 0.9em;
    }
}