/* style/news.css */
:root {
    --primary-color: #0A192F;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f1f3f5;
    --bg-card: #ffffff;
    --border-light: #e0e0e0;
}

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

/* Fixed Header Spacing */
.page-news__hero-banner {
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2a47 100%);
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 0;
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-news__main-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-news__intro-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    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: 18px;
    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: #ffc107;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-news__section-title,
.page-news__faq-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

.page-news__articles-list {
    padding: 40px 0;
    background: var(--bg-light);
}

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

.page-news__article-card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.page-news__article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-news__article-card:hover .page-news__article-image {
    transform: scale(1.05);
}

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

.page-news__article-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-news__article-excerpt {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__article-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

.page-news__read-more {
    font-size: 16px;
    font-weight: bold;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.page-news__article-link:hover .page-news__read-more {
    color: #ffc107;
}

.page-news__read-more .arrow {
    transition: transform 0.3s ease;
}

.page-news__article-link:hover .page-news__read-more .arrow {
    transform: translateX(5px);
}

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

.page-news__cta-section .page-news__cta-title {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 40px;
}

.page-news__cta-section .page-news__cta-description {
    font-size: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #e0e0e0;
}

.page-news__btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 18px 45px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.page-news__btn-primary:hover {
    background: #ffc107;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.page-news__faq-section {
    padding: 60px 0 80px 0;
    background: var(--bg-light);
}

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

.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: 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.4s ease;
    padding: 0 15px;
    opacity: 0;
    background: var(--bg-card);
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-dark);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-news__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-news__faq-question:active {
    background: #eeeeee;
}

.page-news__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-news__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-news__faq-item.active .page-news__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg);
}

.page-news__text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-news__text-link:hover {
    text-decoration: underline;
    color: #004499;
}

.page-news .highlight {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 40px;
    }
    .page-news__intro-text {
        font-size: 17px;
    }
    .page-news__section-title,
    .page-news__faq-title {
        font-size: 32px;
    }
    .page-news__article-title {
        font-size: 20px;
    }
    .page-news__cta-section .page-news__cta-title {
        font-size: 36px;
    }
    .page-news__cta-section .page-news__cta-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-news__hero-banner {
        padding-top: 140px !important; /* Mobile: Adjust based on fixed header height */
        padding-bottom: 40px;
    }
    .page-news__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__hero-content,
    .page-news__container,
    .page-news__articles-list,
    .page-news__cta-section,
    .page-news__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-news__intro-text {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-news__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-news__section-title,
    .page-news__faq-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding-top: 40px;
    }
    .page-news__articles-grid {
        gap: 20px;
    }
    .page-news__article-image {
        height: 180px;
    }
    .page-news__article-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .page-news__article-excerpt {
        font-size: 15px;
        margin-bottom: 15px;
    }
    .page-news__article-date,
    .page-news__read-more {
        font-size: 13px;
    }
    .page-news__cta-section {
        padding: 60px 0;
    }
    .page-news__cta-section .page-news__cta-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .page-news__cta-section .page-news__cta-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-news__btn-primary {
        padding: 15px 30px;
        font-size: 18px;
    }
    .page-news__faq-section {
        padding: 40px 0 60px 0;
    }
    .page-news__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-news__faq-question h3 {
        font-size: 15px;
        width: calc(100% - 40px);
    }
    .page-news__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px !important;
    }
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 28px;
    }
    .page-news__section-title,
    .page-news__faq-title {
        font-size: 24px;
    }
    .page-news__cta-section .page-news__cta-title {
        font-size: 24px;
    }
    .page-news__btn-primary {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-news__article-title {
        font-size: 16px;
    }
    .page-news__article-excerpt {
        font-size: 14px;
    }
    .page-news__faq-question h3 {
        font-size: 14px;
    }
}