/* Container Layout */
.apple-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px 0;
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; */
}

/* Individual Cards */
.apple-news-card {
    background: #1c1c1e; /* Dark sleek Apple gray */
    border-radius: 18px;
    padding: 32px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    border: 1px solid #2c2c2e;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.apple-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: #48484a;
}

/* Typography */
.card-headline a {
    color: #f5f5f7; /* Off-white */
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.3;
}

.card-preview {
    color: #86868b; /* Apple muted gray */
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 12px;
    margin-bottom: 24px;
    /* Soft fade-away effect using mask if text overflows */
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.card-link {
    color: #2997ff; /* Apple Blue link */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

.card-link .arrow {
    transition: transform 0.2s ease;
    margin-left: 4px;
}

.card-link:hover .arrow {
    transform: translateX(4px);
}

/* Make Community News (ID 248) slightly more compact & subtle */
.apple-news-grid.forum-248 .apple-news-card {
    background: #000000;
    border: 1px solid #1c1c1e;
}
.apple-news-grid.forum-248 .card-headline a {
    font-size: 1.2rem;
}
