/* News & Insights Feed Styles (Figma node-id: 1-569) */

.news-feed-section {
    background-color: #ffffff;
    padding: 100px 0 100px; /* Spaced padding */
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px; /* spacing between title and grid */
}

/* Title Block - Aligned Left */
.news-feed-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 15px;
    max-width: 1320px;
    width: 90%;
    box-sizing: border-box;
}

/* Divider with Split/Fading Linear Gradient and Draw Scroll Animation */
.news-feed-divider-wrapper {
    width: 100%;
    height: 1px;
    position: relative;
    margin-bottom: 5px;
}

.news-feed-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #59bcb1 0%, rgba(65, 137, 129, 0) 54%, #15b4b6 100%);
    border: none;
    margin: 0;
    transform-origin: left;
    transform: scaleX(0); /* Hidden at rest */
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.news-feed-section.in-view .news-feed-divider {
    transform: scaleX(1); /* Animated to full width on viewport enter */
}

/* Fallback for disabled JS */
.news-feed-section:not(.js-enabled) .news-feed-divider {
    transform: scaleX(1);
}

.news-feed-subtitle {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 26px; /* fontSize: 26.0 */
    font-weight: 400; /* Regular */
    letter-spacing: -1.56px; /* letterSpacing: -1.56 */
    color: #4d4d4d; /* rgb(77, 77, 77) */
    margin: 0;
}

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

@media (max-width: 768px) {
    .news-feed-subtitle {
        font-size: 20px;
        letter-spacing: -1px;
    }
    
    .news-feed-title {
        font-size: 44px;
        letter-spacing: -2.5px;
    }
}

/* Grid Wrapper */
.news-feed-grid-container {
    max-width: 1320px;
    width: 90%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.news-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

@media (max-width: 992px) {
    .news-feed-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 500px;
    }
}

/* News Card */
.news-feed-card {
    background-color: #59bcb1; /* rgb(89, 188, 177) */
    border-radius: 7px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Make card clickable */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.news-feed-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(89, 188, 177, 0.3);
}

/* Image Container */
.news-feed-card-image-wrapper {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.news-feed-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-feed-card:hover .news-feed-card-image {
    transform: scale(1.05);
}

/* Fallback Image Box with Plus sign */
.news-feed-card-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
}

.news-feed-plus-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.news-feed-plus-icon {
    color: #59bcb1;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    display: block;
    margin-top: -2px; /* Visual adjustment for vertical centering of '+' */
    transition: color 0.3s ease;
}

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

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

/* Card Info Block */
.news-feed-card-info {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
    box-sizing: border-box;
}

.news-feed-card-date {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px; /* fontSize: 12.0 */
    font-weight: 400;
    letter-spacing: -0.72px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.news-feed-card-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 24px; /* fontSize: 25.0 */
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.4px;
    color: #ffffff;
    margin: 0;
}

.news-feed-card-excerpt {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px; /* fontSize: 16.0 */
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.8px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Bottom CTA Button */
.news-feed-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: #59bcb1; /* rgb(89, 188, 177) */
    color: #ffffff;
    border-radius: 30px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(89, 188, 177, 0.2);
    border: none;
    margin-top: 20px;
}

.news-feed-cta-btn:hover {
    background-color: #15b4b6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 180, 182, 0.4);
}

.news-feed-cta-btn:active {
    transform: translateY(0);
}
