/* news-page.css — single source of truth for the News & Success Stories page.
 *
 * Used by news.html only. These are the card/listing flavor of the news-*
 * classes. The scrolling ticker flavor (used on the homepage / demo) lives in
 * news-headlines.css so the two never collide.
 */

.news-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: calc(var(--header-offset) + 40px) 0 80px;
    text-align: center;
}

.news-hero-title {
    font-size: 48px;
    margin-bottom: 20px;
}

.news-hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.news-content-section {
    padding: 80px 0;
    background-color: var(--primary);
}

.news-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.news-item {
    background-color: var(--secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.news-header {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    padding: 18px 20px;
    border-bottom: 3px solid var(--accent);
}

.news-date {
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.news-category {
    display: inline-block;
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content {
    padding: 20px;
}

/* ---------------------------------------------------------------------------
 * Compact news cards — collapse detailed content by default, click to expand.
 * The first (teaser) excerpt stays visible; highlights, metrics, extra quotes
 * and the CTA are revealed only when the card is .expanded.
 * ------------------------------------------------------------------------- */
.news-item .news-content {
    padding: 0 20px 14px;
}
.news-item .news-content > * {
    display: none;
}
.news-item .news-content > .news-excerpt:first-of-type {
    display: block;
    padding-top: 14px;
    margin-bottom: 0;
}
.news-item.expanded .news-content > * {
    display: block;
}

.news-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 16px;
    margin: auto 20px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s;
    align-self: flex-start;
}
.news-toggle:hover {
    background-color: rgba(100, 255, 218, 0.1);
}
.news-toggle .news-toggle-icon {
    transition: transform 0.3s;
}
.news-item.expanded .news-toggle .news-toggle-icon {
    transform: rotate(180deg);
}

.news-excerpt {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.news-highlights {
    background-color: var(--primary);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--accent);
}

.news-highlights h4 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 16px;
}

.news-highlights ul {
    list-style: none;
    padding: 0;
}

.news-highlights li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.news-highlights li::before {
    content: '▶';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 12px;
}

.partnership-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background-color: var(--primary);
    border-radius: 8px;
    justify-content: center;
}

.partner-logo {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 18px;
    padding: 10px 15px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 6px;
    background-color: var(--secondary);
}

.read-more-btn {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more-btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateX(5px);
}

.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    margin: 60px 0;
}

/* New styles for profile image */
.news-profile-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 25px 0;
    padding: 25px;
    background-color: var(--primary);
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.profile-image-container {
    flex-shrink: 0;
    position: relative;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.profile-info {
    flex-grow: 1;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
}

.profile-title {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 15px;
}

.profile-bio {
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .news-profile-section {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }
}
