/* Upcoming CTAs Block */

.wp-block-cta-manager-upcoming-ctas {
    margin: 2rem 0;
}

.cta-upcoming-block {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem;
}

.cta-upcoming-block__header {
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #19a44a;
}

.cta-upcoming-block__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
}

.cta-upcoming-block__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cta-upcoming-block__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cta-upcoming-block__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cta-upcoming-card {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
    padding: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-upcoming-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-upcoming-card__title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.cta-upcoming-card__title a {
    color: #333;
    text-decoration: none;
}

.cta-upcoming-card__title a:hover {
    color: #19a44a;
}

.cta-upcoming-card__deadline {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: #666;
}

.cta-upcoming-card__deadline strong {
    color: #d9534f;
}

.cta-upcoming-card__button {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #19a44a;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.2s;
}

.cta-upcoming-card__button:hover,
.cta-upcoming-card__button:focus {
    background: #118137;
    color: #ffffff;
}

.cta-upcoming-block__empty {
    padding: 2rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Editor preview styles */
.block-editor-block-list__block .cta-upcoming-block {
    background: #fff;
    border: 1px dashed #ccc;
}
/* View More link button -- matches the theme button style, right-aligned.
   Note: this block sits inside a Spectra .uagb-inner-blocks-wrap which applies
   flex-direction: column and align-items: center to all children. We override
   by making the wrapper full-width and using margin-left: auto on the button. */
.cta-upcoming-block__view-more-wrap {
	display: block;
	width: 100%;
	margin-top: 1.5rem;
}

.cta-upcoming-block__view-more-btn {
	display: block;
	margin-left: auto;
	width: fit-content;
	padding: 10px 20px;
	background-color: rgb(0, 104, 80);
	color: #ffffff !important;
	border: 1px solid rgb(51, 51, 51);
	border-radius: 8px;
	text-decoration: none;
	font-family: Montserrat, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 18px;
	cursor: pointer;
	box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px;
	transition: background-color 0.2s;
}

.cta-upcoming-block__view-more-btn:hover {
	background-color: rgb(0, 80, 61);
	color: #ffffff !important;
	text-decoration: none;
}

.cta-upcoming-block__view-more-btn:focus {
	outline: 2px solid rgb(0, 104, 80);
	outline-offset: 2px;
}
