/* Custom Home Patterns CSS */

/* --- Home Hero --- */
.rye-home-hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #ffffff;
    padding: 4rem 2rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 3rem;
}

.rye-home-hero h2 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.rye-home-hero .wp-block-search {
    max-width: 600px;
    margin: 0 auto;
}

.rye-home-hero .wp-block-search__input {
    border-radius: 9999px;
    border: none;
    padding: 1rem 1.5rem;
}

.rye-home-hero .wp-block-search__button {
    border-radius: 9999px;
    background-color: #3182ce;
    color: white;
    padding: 0.75rem 1.5rem;
    margin-left: 0.5rem;
}

/* --- Sticky Posts Grid --- */
.rye-sticky-posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .rye-sticky-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.rye-sticky-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.rye-sticky-card:hover {
    transform: translateY(-5px);
}

/* Card Header with Category Images */
.rye-sticky-card__header {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 50px;
    /* Space for the circular overlap */
}

.rye-sticky-card__cat-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #fff;
    overflow: hidden;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rye-sticky-card__cat-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Body */
.rye-sticky-card__body {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rye-sticky-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.rye-sticky-card__title a {
    color: #2d3748;
    text-decoration: none;
}

.rye-sticky-card__title a:hover {
    color: #3182ce;
}

.rye-sticky-card__excerpt {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.rye-sticky-card__meta {
    font-size: 0.8rem;
    color: #a0aec0;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.rye-sticky-card__meta span {
    display: inline-block;
}