/* News Archive Page Styles */

/* Base Main Content Page Layout */
.news-page-main-content {
    background-color: #ffffff;
    width: 100%;
    min-height: 80vh;
    box-sizing: border-box;
}

/* Hero / Header Section */
.news-page-header {
    background: linear-gradient(180deg, #f4fbfb 0%, #ffffff 100%);
    padding: 245px 0 60px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.news-page-header-container {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.news-page-subtitle {
    display: none !important;
}

.news-page-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -3.5px;
    background: linear-gradient(135deg, #15b4b6 0%, #094f50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 24px 0;
}

@media (max-width: 1024px) {
    .news-page-header {
        padding: 215px 0 50px;
    }
    .news-page-title {
        font-size: 52px;
        letter-spacing: -2.5px;
    }
}

@media (max-width: 768px) {
    .news-page-header {
        padding: 175px 0 40px;
    }
    .news-page-title {
        font-size: 40px;
        letter-spacing: -2px;
        margin: 0 0 18px 0;
    }
    .news-page-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .news-page-header {
        padding: 160px 0 32px;
    }
    .news-page-title {
        font-size: clamp(28px, 8.5vw, 36px);
        letter-spacing: -1.5px;
        line-height: 1.15;
        margin: 0 0 16px 0;
    }
}

/* Search Bar Wrapper & Layout */
.news-search-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 10px auto 0;
}

.news-search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #ffffff;
    border: 2px solid rgba(89, 188, 177, 0.3);
    border-radius: 50px;
    padding: 6px 15px 6px 20px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-search-input-container:hover {
    border-color: rgba(89, 188, 177, 0.6);
    box-shadow: 0 6px 24px rgba(89, 188, 177, 0.08);
}

.news-search-input-container:focus-within {
    border-color: #15b4b6;
    box-shadow: 0 0 0 4px rgba(21, 180, 182, 0.15), 0 8px 30px rgba(21, 180, 182, 0.1);
}

/* Icons */
.news-search-input-container .search-icon {
    width: 20px;
    height: 20px;
    color: #59bcb1;
    margin-right: 12px;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.news-search-input-container:focus-within .search-icon {
    color: #094f50;
}

.news-search-input-container input {
    width: 100%;
    border: none;
    outline: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: #2b2b2b;
    background: transparent;
    padding: 8px 0;
}

.news-search-input-container input::placeholder {
    color: #9c9c9c;
}

/* Clear Search Button */
.search-clear-btn {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 2px;
    color: #9c9c9c;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #4d4d4d;
}

.search-clear-btn svg {
    width: 16px;
    height: 16px;
}

/* News Grid Container */
.news-page-grid-section {
    padding: 0 0 120px 0;
    width: 100%;
    box-sizing: border-box;
}

.news-page-grid-container {
    max-width: 1320px;
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Grid Layout */
.news-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    transition: opacity 0.3s ease;
}

@media (max-width: 992px) {
    .news-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 650px) {
    .news-page-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 450px;
        margin: 0 auto;
    }
}

/* News Card Styling */
.news-page-card {
    background-color: #59bcb1;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* State for Javascript Filter animation */
.news-page-card.is-hidden {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
}

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

.news-page-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(89, 188, 177, 0.25);
}

/* Image Wrapper */
.news-page-card-image-wrapper {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    background-color: #f7fcfc;
}

.news-page-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-page-card:hover .news-page-card-image {
    transform: scale(1.06);
}

/* Fallback Image Design */
.news-page-card-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #e8f7f6 0%, #c4ece9 100%);
}

.news-page-card-image-fallback .fallback-logo {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #59bcb1;
    letter-spacing: -1.5px;
}

/* Plus Icon Overlay */
.news-page-plus-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 5;
}

.news-page-plus-icon {
    color: #59bcb1;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    display: block;
    margin-top: -2px;
    transition: color 0.3s ease;
}

.news-page-card:hover .news-page-plus-overlay {
    background-color: #15b4b6;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(21, 180, 182, 0.5);
}

.news-page-card:hover .news-page-plus-icon {
    color: #ffffff;
}

/* Info Box */
.news-page-card-info {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
}

.news-page-card-date {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 12px 0;
}

.news-page-card-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.8px;
    color: #ffffff;
    margin: 0 0 14px 0;
    /* Limit title to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 55px; /* Ensure cards align properly */
}

.news-page-card-excerpt {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.3px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    /* Limit excerpt to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 65px; /* Aligns readmore links across cards */
}

/* Read More Link styling inside card */
.news-page-card-readmore {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    position: relative;
    width: fit-content;
}

.news-page-card-readmore svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-page-card:hover .news-page-card-readmore svg {
    transform: translateX(6px);
}

/* No Results State */
.news-no-results {
    width: 100%;
    text-align: center;
    padding: 80px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease forwards;
}

.no-results-illustration {
    width: 80px;
    height: 80px;
    background-color: #f0faf9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #59bcb1;
}

.no-results-illustration svg {
    width: 40px;
    height: 40px;
}

.news-no-results h3 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #094f50;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.news-no-results p {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: #6c6c6c;
    margin: 0;
    max-width: 400px;
    line-height: 1.5;
}

.news-no-results p strong {
    color: #15b4b6;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
