/* style/news.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color: #333333;
    --light-bg-color: #f9f9f9;
    --dark-bg-color: #26A9E0;
    --login-color: #EA7C07;
    --black-color: #000000;
}

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color); /* Assuming shared.css sets body background to white or light */
}

.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--light-bg-color);
    color: var(--text-color);
}

.page-news__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-news__hero-title {
    font-size: clamp(2.2em, 4vw, 3.2em);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
}

.page-news__hero-image-main {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__content-section {
    padding: 60px 20px;
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-news__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-news__featured-article {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    align-items: center;
    padding: 25px;
}

.page-news__featured-image {
    width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-news__featured-content {
    width: 50%;
    padding-right: 20px;
}

.page-news__article-title {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-news__article-title a:hover {
    color: var(--primary-color);
}

.page-news__article-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    margin-bottom: 20px;
    color: #555;
}

.page-news__btn-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__btn-link:hover {
    background-color: #1e87b7;
    transform: translateY(-2px);
}

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

.page-news__article-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-news__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-news__card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__card-title {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

.page-news__card-title a:hover {
    color: var(--primary-color);
}

.page-news__card-meta {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 15px;
}

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

.page-news__view-all {
    text-align: center;
}

.page-news__btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page-news__btn-primary:hover {
    background: #1e87b7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-news__cta-section {
    padding: 80px 20px;
    background-color: var(--dark-bg-color);
    color: var(--secondary-color);
    text-align: center;
}

.page-news__cta-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
}

.page-news__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-news__btn-secondary {
    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;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.page-news__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-news__faq-section {
    padding: 60px 20px;
    background-color: var(--light-bg-color);
    color: var(--text-color);
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-color);
}
details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
  display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
  background: #f5f5f5;
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__featured-article {
        flex-direction: column;
        text-align: center;
    }

    .page-news__featured-image,
    .page-news__featured-content {
        width: 100%;
    }

    .page-news__featured-content {
        padding-right: 0;
    }

    .page-news__article-title,
    .page-news__card-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__hero-title {
        font-size: 2em;
    }

    .page-news__hero-description {
        font-size: 1em;
    }

    .page-news__content-section,
    .page-news__cta-section,
    .page-news__faq-section {
        padding: 40px 15px;
    }

    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-news__featured-article {
        padding: 15px;
        margin-bottom: 40px;
    }

    .page-news__article-title,
    .page-news__card-title {
        font-size: 1.3em;
    }

    .page-news__articles-grid {
        gap: 20px;
    }

    .page-news__card-image {
        height: 180px;
    }

    .page-news__card-content {
        padding: 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__featured-article,
    .page-news__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
    .page-news__faq-qtext { font-size: 15px; }
}