/* =============================================================================
   Shepcare Helper – public styles
   Mirrors the Pro child theme's design system:
     $red:       #EB3349  $blue:    #051f34
     $greyLight: #e6e6e6  $paleBlue:#e4e9f1
   Font: Overpass (loaded by the child theme)
   Grid: simple-grid .row.sg / .col-{1-12} (enqueued by the child theme)
   ============================================================================= */

/* ---------- Article Listing Block ---------- */

.sh-article-listing {
    padding: 3em 0;
}

.sh-listing-title {
    font-family: 'Overpass', sans-serif;
    color: #051f34;
    margin-top: 0;
    margin-bottom: 0;
    padding: 6rem 1rem 1rem;
    position: relative;
    display: inline-block;
}

.sh-listing-title::after {
    content: '';
    display: block;
    height: 5px;
    width: 50%;
    background: #EB3349;
    margin-top: 8px;
}

/* Cards */
.sh-article-card {
    background: #e6e6e6;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    -webkit-box-shadow: 0 0.15em 2em rgba(0,0,0,0.10);
    box-shadow: 0 0.15em 2em rgba(0,0,0,0.10);
}

.sh-article-card:hover {
    -webkit-box-shadow: 0 0.3em 3em rgba(0,0,0,0.2);
    box-shadow: 0 0.3em 3em rgba(0,0,0,0.2);
}

.sh-article-item {
    margin-bottom: 2em;
    display: flex;           /* makes all cards in a row equal height */
}

.sh-article-thumb {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e4e9f1;
    flex-shrink: 0;
}

.sh-article-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e4e9f1 0%, #e6e6e6 100%);
}

.sh-article-meta {
    display: flex;
    justify-content: space-between;
    padding: 0.5em 1em;
    background-color: #051f34;
    color: #fff;
    font-family: 'Overpass', sans-serif;
    font-size: 0.85em;
}

.sh-article-meta span {
    color: #fff;
}

.sh-article-body {
    padding: 1em;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sh-article-body h3 {
    font-family: 'Overpass', sans-serif;
    color: #051f34;
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 1.15em;
}

.sh-article-body p {
    flex: 1;
    font-family: 'Overpass', sans-serif;
    color: #3a3a3a;
    margin-bottom: 1em;
    font-size: 0.95em;
    line-height: 1.5;
}

.sh-no-articles {
    font-family: 'Overpass', sans-serif;
    color: #697885;
    padding: 2em 0;
    text-align: center;
}

/* ---------- Pagination ---------- */

.sh-pagination {
    text-align: center;
    margin-top: 2em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.sh-pagination .page-numbers {
    display: inline-block;
    padding: 0.4em 0.75em;
    background: #EB3349;
    color: #fff;
    font-family: 'Overpass', sans-serif;
    font-size: 0.95em;
    font-weight: 600;
    border: 2px solid #EB3349;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.sh-pagination .page-numbers.current,
.sh-pagination .page-numbers:hover {
    background: #fff;
    color: #EB3349;
}

.sh-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    color: #051f34;
    cursor: default;
}

.sh-pagination .page-numbers.prev,
.sh-pagination .page-numbers.next {
    font-size: 0.9em;
}

/* ---------- Article Archive ---------- */

.sh-article-archive {
    padding-bottom: 3em;
}

.sh-archive-wrap {
    padding-top: 2.5em;
}

.sh-archive-header {
    margin-bottom: 2em;
}

/* ---------- Single Article Template ---------- */

.sh-single-article .sh-article-hero {
    max-height: 700px;
    height: 70vh;
    background: rgba(5, 31, 52, 0.82);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sh-article-hero-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.25em 2em;
    background: rgba(5, 31, 52, 0.82);
}

.sh-article-hero-title h1 {
    font-family: 'Overpass', sans-serif;
    color: #fff;
    margin: 0;
}

.sh-article-content-wrap {
    padding: 2.5em 0;
}

.sh-article-content-wrap .entry-content {
    font-family: 'Overpass', sans-serif;
    line-height: 1.75;
    color: #3a3a3a;
}

.sh-article-content-wrap .entry-content h2,
.sh-article-content-wrap .entry-content h3 {
    color: #051f34;
}


.sh-article-cat-tag {
    display: inline-block;
    background: #e4e9f1;
    color: #051f34;
    font-family: 'Overpass', sans-serif;
    font-size: 0.85em;
    font-weight: 600;
    padding: 0.25em 0.75em;
    margin-bottom: 0.5em;
    border-left: 4px solid #EB3349;
}

.sh-article-content-wrap .entry-content > *:first-child {
    margin-top: 0;
}

/* ---------- Editor preview placeholder ---------- */

.sh-article-listing-editor-wrap .sh-editor-empty {
    padding: 2em;
    text-align: center;
    color: #697885;
    font-style: italic;
}

/* ---------- Responsive overrides ---------- */

@media only screen and (max-width: 44.9em) {
    .sh-article-thumb {
        height: 180px;
    }

    .sh-article-hero-title {
        padding: 0.75em 1em;
    }

    .sh-listing-title {
        font-size: 1em;
    }
}

.sh-article-content-wrap .entry-content h1, .sh-article-content-wrap .entry-content h2, .sh-article-content-wrap .entry-content h3, .sh-article-content-wrap .entry-content h4, .sh-article-content-wrap .entry-content h5, .sh-article-content-wrap .entry-content h6 {
    margin-bottom: 1rem;
}