/**
Theme Name: JRTCGB
Author: Garfield Media
Author URI: https://media.garfieldservices.co.uk
Description: JRTCGB – Jack Russell Terrier Club of Great Britain. Promoting, preserving and protecting the true working Jack Russell Terrier since 1974.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jrtcgb
Template: astra
*/

/* =========================================================
   JRTCGB Latest News
   ========================================================= */

.jrtcgb-news {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 30px;
}

/* Section heading */

.jrtcgb-news-header {
    max-width: 680px;
    margin-bottom: 40px;
}

.jrtcgb-news-eyebrow {
    display: block;
    margin-bottom: 10px;

    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #176B2C;
}

.jrtcgb-news-header h2 {
    margin: 0 0 14px;

    font-family: "Libre Baskerville", serif;
    font-size: 36px;
    line-height: 1.2;

    color: #242424;
}

.jrtcgb-news-header p {
    margin: 0;

    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.7;

    color: #555555;
}


/* Main grid */

.jrtcgb-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
    gap: 24px;
    align-items: stretch;
}


/* Featured article */

.jrtcgb-news-featured {
    overflow: hidden;

    background: #F7F3E9;
    border: 1px solid #E6E0D5;
    border-radius: 3px;
}

.jrtcgb-news-featured-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 8.5;
}

.jrtcgb-news-featured-image img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.jrtcgb-news-featured:hover .jrtcgb-news-featured-image img {
    transform: scale(1.025);
}

.jrtcgb-news-featured-content {
    padding: 28px;
}

.jrtcgb-news-category {
    display: block;
    margin-bottom: 8px;

    font-family: "Open Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;

    color: #176B2C;
}

.jrtcgb-news-featured h3 {
    margin: 0 0 14px;

    font-family: "Libre Baskerville", serif;
    font-size: 27px;
    line-height: 1.3;
}

.jrtcgb-news-featured h3 a,
.jrtcgb-news-small h3 a {
    color: #242424;
    text-decoration: none;
}

.jrtcgb-news-featured h3 a:hover,
.jrtcgb-news-small h3 a:hover {
    color: #176B2C;
}

.jrtcgb-news-excerpt {
    margin: 0 0 15px;

    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 1.7;

    color: #555555;
}


/* Secondary articles */

.jrtcgb-news-secondary {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.jrtcgb-news-small {
    display: grid;
    grid-template-columns: 42% 58%;
    overflow: hidden;

    background: #F7F3E9;
    border: 1px solid #E6E0D5;
    border-radius: 3px;
}

.jrtcgb-news-small-image {
    display: block;
    min-height: 100%;
    overflow: hidden;
}

.jrtcgb-news-small-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.jrtcgb-news-small:hover .jrtcgb-news-small-image img {
    transform: scale(1.03);
}

.jrtcgb-news-small-content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 22px;
}

.jrtcgb-news-small h3 {
    margin: 0 0 12px;

    font-family: "Libre Baskerville", serif;
    font-size: 18px;
    line-height: 1.35;
}


/* Meta */

.jrtcgb-news-meta {
    margin-bottom: 14px;

    font-family: "Open Sans", sans-serif;
    font-size: 12px;

    color: #77736E;
}


/* Article links */

.jrtcgb-news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    width: fit-content;

    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;

    color: #176B2C;
    text-decoration: none;
}

.jrtcgb-news-link span {
    transition: transform 0.2s ease;
}

.jrtcgb-news-link:hover {
    color: #0E4720;
}

.jrtcgb-news-link:hover span {
    transform: translateX(3px);
}


/* Missing featured image */

.jrtcgb-news-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    min-height: 200px;

    background: #EDE8DE;

    font-family: "Libre Baskerville", serif;
    font-size: 20px;

    color: #176B2C;
}


/* View all */

.jrtcgb-news-all {
    margin-top: 35px;
    text-align: center;
}

.jrtcgb-news-button {
    display: inline-block;

    padding: 12px 24px;

    border: 1px solid #176B2C;
    border-radius: 3px;

    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;

    color: #176B2C;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.jrtcgb-news-button:hover {
    background: #176B2C;
    color: #FFFFFF;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1024px) {

    .jrtcgb-news {
        padding: 65px 25px;
    }

    .jrtcgb-news-grid {
        grid-template-columns: 1fr;
    }

    .jrtcgb-news-secondary {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .jrtcgb-news-small {
        display: block;
    }

    .jrtcgb-news-small-image {
        aspect-ratio: 16 / 9;
    }

    .jrtcgb-news-small-image img {
        min-height: 0;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

    .jrtcgb-news {
        padding: 55px 20px;
    }

    .jrtcgb-news-header {
        margin-bottom: 30px;
    }

    .jrtcgb-news-header h2 {
        font-size: 28px;
    }

    .jrtcgb-news-header p {
        font-size: 15px;
    }

    .jrtcgb-news-grid,
    .jrtcgb-news-secondary {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .jrtcgb-news-featured-image,
    .jrtcgb-news-small-image {
        aspect-ratio: 16 / 9;
    }

    .jrtcgb-news-featured-content {
        padding: 24px;
    }

    .jrtcgb-news-featured h3 {
        font-size: 23px;
    }

    .jrtcgb-news-small-content {
        padding: 22px;
    }

    .jrtcgb-news-small h3 {
        font-size: 20px;
    }

}