/* News Horizontal Grid */
.sa-news-grid {
    display: grid;
    grid-template-columns: repeat(var(--sa-news-cols, 3), 1fr);
    gap: 25px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .sa-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* News Grid */
.sa-news-grid {
    display: grid;
    grid-template-columns: repeat(var(--sa-news-cols, 3), minmax(0, 1fr));
    gap: 25px;
    margin: 30px 0;
    align-items: start; /* Prevents uneven card stretching */
}

@media (max-width: 768px) {
    .sa-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* News Grid */
.sa-news-grid {
    display: grid;
    grid-template-columns: repeat(var(--sa-news-cols, 3), minmax(0, 1fr));
    gap: 25px;
    margin: 30px 0;
    align-items: start;
}

@media (max-width: 768px) {
    .sa-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Card */
.sa-news-card {
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sa-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Strict 4:5 Ratio Box */
.sa-news-image-link {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    position: relative;
    overflow: hidden;
}

/* Static, non-distorting image */
.sa-news-image-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    display: block;
}

/* Semi-Transparent White Overlay */
.sa-news-overlay {
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    pointer-events: none;
}

.sa-news-card:hover .sa-news-overlay {
    opacity: 0.18; /* Adjust between 0.15 and 0.25 to control brightness */
}

/*
.sa-news-card {
    background: #ffffff;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sa-news-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.sa-news-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sa-news-date {
    font-size: 12px;
    color: #646970;
    margin-bottom: 6px;
    display: block;
}

.sa-news-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.3;
}

.sa-news-title a {
    color: #1d2327;
    text-decoration: none;
}

.sa-news-title a:hover {
    color: #0073aa;
}

.sa-news-excerpt {
    font-size: 14px;
    color: #50575e;
    margin: 0 0 15px 0;
    line-height: 1.5;
    flex-grow: 1;
}

.sa-news-readmore {
    font-size: 13px;
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
    align-self: flex-start;
}
*/

/* Home CTA Banner */
.sa-home-cta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-radius: 8px;
    gap: 20px;
}

.sa-home-cta-guest {
    background: #f0f6fc;
    border: 1px solid #c8d8ea;
}

.sa-home-cta-auth {
    background: #e7f5ea;
    border: 1px solid #b7e4c2;
}

.sa-cta-text h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
}

.sa-cta-text p {
    margin: 0;
    font-size: 14px;
    color: #50575e;
}

.sa-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.sa-btn-cta {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.sa-btn-cta-primary {
    background: #0073aa;
    color: #ffffff;
}

.sa-btn-cta-primary:hover,
.sa-btn-cta-primary:focus {
    background: #005177;
    color: #ffffff;
}

.sa-btn-cta-outline {
    border: 1px solid #0073aa;
    color: #0073aa;
    background: transparent;
}

@media (max-width: 768px) {
    .sa-home-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}