/* style/news.css */

/* Base styles for the news page content */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background: #ffffff; /* Explicitly set for content area */
}

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

.page-news__section-title {
    font-size: 36px;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-title--white {
    color: #ffffff;
}

.page-news__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-news__section-description--white {
    color: #f0f0f0;
}

/* Hero Section */
.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: var(--header-offset, 120px); /* Fixed header spacing */
    background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Subtle gradient for light background */
}

.page-news__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-news__hero-image {
    width: 100%;
    height: auto; /* Ensure responsive */
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-news__hero-title {
    font-size: 48px;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-news__hero-description {
    font-size: 20px;
    color: #555555;
    margin-bottom: 40px;
    line-height: 1.6;
}

.page-news__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: #EA7C07; /* Login button color for CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.page-news__cta-button:hover {
    background: #d46f06;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 80px 0;
    background: #f9fbfd;
}

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

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

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-news__article-title {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
    color: #26A9E0;
}

.page-news__article-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #1a7aab;
}

.page-news__article-excerpt {
    font-size: 16px;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: #EA7C07; /* Login button color for emphasis */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: #d46f06;
    text-decoration: underline;
}

/* News Categories Section */
.page-news__categories {
    padding: 80px 0;
    background: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

.page-news__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    justify-content: center;
}

.page-news__category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: #ffffff;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-news__category-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-news__category-image {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
}

.page-news__category-name {
    font-size: 18px;
    font-weight: bold;
}

/* Featured Articles Section */
.page-news__featured-articles {
    padding: 80px 0;
    background: #ffffff;
}

.page-news__featured-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column for full width */
    gap: 60px;
}

.page-news__featured-card {
    display: flex;
    align-items: center;
    background: #fdfdfd;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__featured-card:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image position */
}

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

.page-news__featured-image {
    width: 50%;
    height: 400px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-news__featured-content {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-news__featured-title {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
    color: #26A9E0;
}

.page-news__featured-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__featured-title a:hover {
    color: #1a7aab;
}

.page-news__featured-excerpt {
    font-size: 17px;
    color: #666666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Call to Action Section */
.page-news__cta-section {
    padding: 80px 0;
    background: #26A9E0; /* Brand primary color */
    text-align: center;
    color: #ffffff;
}

.page-news__cta-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-title {
    font-size: 38px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__cta-description {
    font-size: 19px;
    color: #f0f0f0;
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 19px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding/border included in width */
}

.page-news__btn-primary {
    background: #EA7C07; /* Login button color */
    color: #ffffff;
    border-color: #EA7C07;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-news__btn-primary:hover {
    background: #d46f06;
    border-color: #d46f06;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary {
    background: #ffffff;
    color: #26A9E0; /* Brand primary color */
    border-color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-news__btn-secondary:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background: #f9fbfd;
}

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

/* FAQ container styles */
.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ default state - answer hidden */
.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
    padding: 0 25px;
    opacity: 0;
    color: #555555;
    background: #ffffff;
    font-size: 16px;
    line-height: 1.7;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-news__faq-item.active .page-news__faq-answer {
    max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough */
    padding: 20px 25px !important;
    opacity: 1;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 10px 10px;
}

/* Question styles */
.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f0f5f7; /* Lighter shade of brand color for question background */
    border: 1px solid #d0e0e5;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}