/* style/news.css */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #1F2D3D);
    background-color: var(--page-bg-color, #F4F7FB);
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%); /* Brand color gradient */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
}

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    display: block;
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    color: #ffffff;
}

.page-news__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-news__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-news__btn-secondary {
    background: #ffffff;
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-news__btn-secondary:hover {
    background: #f0f0f0;
    border-color: #2F6BFF;
    color: #1a5acb;
    transform: translateY(-2px);
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 60px 0;
    background-color: var(--page-bg-color, #F4F7FB);
}

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

.page-news__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--text-main-color, #1F2D3D);
    text-align: center;
    margin-bottom: 40px;
}

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

.page-news__news-card {
    background: var(--card-bg-color, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    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 12px 25px rgba(0, 0, 0, 0.15);
}

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

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

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

.page-news__news-card-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-main-color, #1F2D3D);
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1;
}

.page-news__news-card-meta {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 15px;
}

.page-news__news-card-excerpt {
    font-size: 1rem;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.page-news__view-all-button {
    text-align: center;
    margin-top: 20px;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: var(--card-bg-color, #ffffff);
}

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

details.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color, #D6E2FF);
    overflow: hidden;
    background: var(--card-bg-color, #ffffff);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
details.page-news__faq-item summary.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main-color, #1F2D3D);
    font-weight: 600;
}
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: #f5f8fc;
}
.page-news__faq-qtext {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color, #1F2D3D);
}
.page-news__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #2F6BFF;
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
    line-height: 1;
}
details.page-news__faq-item[open] .page-news__faq-question {
    background: #e9f0f7;
}
details.page-news__faq-item .page-news__faq-answer {
    padding: 0 25px 25px;
    background: #f9fcff;
    border-radius: 0 0 12px 12px;
    color: #555555;
}
.page-news__faq-answer p {
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.6;
}
.page-news__faq-answer a {
    color: #2F6BFF;
    text-decoration: none;
    font-weight: 600;
}
.page-news__faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-news__dark-section {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    color: #ffffff;
}

.page-news__cta-section .page-news__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.page-news__cta-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-news__cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.3;
}

.page-news__cta-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-news__cta-image-wrapper {
    flex: 0 0 auto;
    width: 400px;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__cta-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block;
}

/* General image and button responsive styles */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-content {
        padding: 50px 20px;
    }
    .page-news__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-news__description {
        font-size: 1rem;
    }
    .page-news__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    .page-news__news-card-title {
        font-size: 1.2rem;
    }
    .page-news__news-card-image {
        height: 200px;
    }
    .page-news__cta-section .page-news__container {
        flex-direction: column;
        text-align: center;
    }
    .page-news__cta-content {
        text-align: center;
    }
    .page-news__cta-image-wrapper {
        width: 80%;
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-top: 10px !important;
        min-height: 400px;
    }
    .page-news__hero-content {
        padding: 40px 15px;
    }
    .page-news__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-news__description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__latest-news-section {
        padding: 40px 0;
    }
    .page-news__container {
        padding: 0 15px;
    }
    .page-news__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }
    .page-news__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__news-card-image {
        height: 180px;
    }
    .page-news__news-card-title {
        font-size: 1.1rem;
    }
    .page-news__news-card-meta,
    .page-news__news-card-excerpt {
        font-size: 0.9rem;
    }

    .page-news__faq-section {
        padding: 40px 0;
    }
    details.page-news__faq-item summary.page-news__faq-question {
        padding: 15px 18px;
    }
    .page-news__faq-qtext {
        font-size: 1rem;
    }
    .page-news__faq-toggle {
        font-size: 24px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 18px 18px;
    }
    .page-news__faq-answer p {
        font-size: 0.95rem;
    }

    .page-news__cta-section {
        padding: 50px 0;
    }
    .page-news__cta-title {
        font-size: clamp(1.6rem, 6.5vw, 2.2rem);
        margin-bottom: 15px;
    }
    .page-news__cta-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .page-news__cta-image-wrapper {
        width: 90%;
        margin-bottom: 25px;
    }

    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Ensure vertical stacking for CTA buttons on mobile */
    }
}