/* ==========================================================================
   NEWS & INSIGHTS HUB LANDING STYLE SHEET (COMPACT VERSION)
   ========================================================================== */

.ceph-news-viewport {
    padding-top: 140px; /* Offset the floating capsule navigation bar */
    padding-bottom: 80px;
    background-color: var(--bg-pure);
}

/* 1. HERO BANNER HEADER */
.ceph-news-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px; /* Reduced bottom margin */
}

.ceph-hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    background: rgba(0, 122, 135, 0.06);
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.ceph-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.ceph-hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 2. RESPONSIVE CARDS GRID */
.ceph-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns for clean distribution */
    gap: 24px; /* Slightly tighter gap between cards */
}

/* 3. COMPACT WHITE-THEMED INTERACTIVE CARDS */
.ceph-news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    max-width: 480px; /* Limits maximum width for better proportions */
    margin: 0 auto;   /* Centers cards in their grid cells */
}

.ceph-news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 122, 135, 0.25);
    box-shadow: var(--shadow-premium);
}

/* Slimmer aspect ratio for images (21:9) */
.ceph-card-image-link {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 9; 
    overflow: hidden;
}

.ceph-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.ceph-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ceph-news-card:hover .ceph-card-img {
    transform: scale(1.04);
}

/* Scaled down category badge */
.ceph-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--text-main);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

/* Tightened card padding */
.ceph-card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ceph-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.ceph-meta-divider {
    width: 3px;
    height: 3px;
    background: var(--border);
    border-radius: 50%;
}

/* Smaller, cleaner headers */
.ceph-card-title {
    font-size: 1.1rem;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.ceph-card-title a {
    color: var(--text-main);
}

.ceph-card-title a:hover {
    color: var(--primary);
}

/* Brief summary limit (2 lines max) */
.ceph-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Compact actions footer */
.ceph-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.ceph-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-name-small {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
}

.ceph-card-action-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
}

.ceph-arrow-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ceph-card-action-link:hover {
    color: var(--primary-dark);
}

.ceph-card-action-link:hover .ceph-arrow-icon {
    transform: translateX(4px);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 900px) {
    .ceph-news-viewport {
        padding-top: 110px;
    }
    
    .ceph-hero-title {
        font-size: 2.1rem;
    }
    
    .ceph-posts-grid {
        grid-template-columns: 1fr; /* Stack cards vertically on mobile */
        gap: 20px;
    }
}