/**
 * News and Alerts Styles
 * 
 * @package Clayutility
 * @version 1.0
 */

/* ===== News and Alerts ===== */
.news-and-alerts {
    padding: 80px 0;
}

.archive-wave-divider {
    position: relative;
    height: 200px;
    background: var(--color-white-bg);
    overflow: hidden;
    margin-bottom: -60px;
}

.archive-wave-divider__svg {
    position: absolute;
    width: 140%;
    height: 100%;
    left: -20%;
    top: 0;
    transform: scaleY(-1);
}

.news-and-alerts.archive-posts {
    background-color: var(--color-white-bg);
    position: relative;
}

.news-and-alerts__title {
    margin: 0 0 100px;
    font-size: 3rem;
    color: var(--color-black);
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-and-alerts__title--centered {
    text-align: center;
}

.news-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-card {
    display: block;
}

.news-card__article {
    background: var(--color-white);
    overflow: visible;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 20px;
    min-width: 0;
}

.news-card__article--featured {
    background: var(--color-white-bg) !important;
}

.news-card__article:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md, 0 4px 8px rgba(0, 0, 0, 0.15));
}

.news-card__media {
    position: relative;
}

.news-card__media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px 20px 0 0;
}

.news-card__date {
    position: absolute;
    left: 0px;
    top: -30px;
    background: var(--color-magenta);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.1));
    margin-top: 5px;
    font-weight: 800;
}

.news-card__date strong {
    display: block;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-top: 5px;
}

.news-card__date small {
    display: block;
    font-weight: 700;
    letter-spacing: .3px;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.news-card__date-day {
    margin: 5px 0 0;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.news-card__date-month {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    line-height: 1;
}

.news-card__body {
    padding: 14px 16px 18px;
    display: grid;
    gap: 8px;
    flex: 1;
}

.news-card__title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--color-blue);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card__title a:hover {
    color: var(--color-magenta);
}

.news-card__excerpt {
    margin: 0;
    color: var(--color-gray-600);
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-card__link {
    font-weight: 700;
    color: var(--color-blue);
    text-decoration: none;
    transition: color 0.2s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.news-card__link:hover {
    color: var(--color-magenta);
}

.news-and-alerts__actions {
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

/* Responsive News and Alerts */
@media (max-width: 1366px) {
    .news-cards {
        gap: 40px;
    }

    .archive-wave-divider {
        height: 180px;
    }
}

@media (max-width: 1100px) {
    .news-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 680px) {
    .news-cards {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .archive-wave-divider {
        height: 150px;
    }
	
	.news-and-alerts__title{
		font-size:2rem;
	}
}

@media (max-width: 480px) {
    .news-cards {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .archive-wave-divider {
        height: 130px;
    }
}