/**
 * Featured content styles.
 *
 * - .home-hero        : two-column homepage hero (intro + featured post)
 * - .featured-post-card : the pinned/latest post card on the homepage
 * - .post-header      : single post header (flyer beside title + date)
 *
 * Brand colours: Main Light Blue #0CB1E1, Dark Accent Blue #0B3367.
 */

/*--------------------------------------------------------------
# Homepage hero
--------------------------------------------------------------*/
.home-hero {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 48px;
    align-items: flex-start;
    margin: 40px 0 64px;
}

.home-hero--solo {
    grid-template-columns: 1fr;
    max-width: 760px;
}

.home-hero__title {
    font-size: 2.6rem;
    line-height: 1.1;
    margin: 0 0 18px;
    color: #0B3367;
}

.home-hero__intro > *:first-child {
    margin-top: 0;
}

.home-hero__intro .entry-content > *:first-child {
    margin-top: 0;
}

/* Featured post card */
.featured-post-card {
    background: #fff;
    border: 1px solid rgba(11, 51, 103, 0.12);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.featured-post-card__image-link {
    display: block;
    line-height: 0;
    background: #f4f6f9;
}

.featured-post-card__image {
    display: block;
    width: 100%;
    height: auto;
}

.featured-post-card__body {
    padding: 20px 22px 24px;
}

.featured-post-card__title {
    font-size: 1.4rem;
    line-height: 1.25;
    margin: 0 0 10px;
}

.featured-post-card__title a {
    color: #0B3367;
    text-decoration: none;
}

.featured-post-card__title a:hover {
    color: #0CB1E1;
}

.featured-post-card__excerpt {
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0 0 18px;
}

/* Rides on the global .btn class (which guarantees readable text across
   link states); these only adjust size/shape to suit the card. */
.featured-post-card__btn {
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.featured-post-card__btn:hover,
.featured-post-card__btn:focus {
    background-color: #0CB1E1;
}

/*--------------------------------------------------------------
# Single post header
--------------------------------------------------------------*/
/* Use the full container width on single posts (matching the homepage),
   overriding the legacy 900px readability cap in single-post.css. */
.single .site-main {
    max-width: none;
    padding: 0;
}

.post-layout {
    display: grid;
    /* Mirror of the homepage hero (1fr 0.8fr) so the columns are the same
       width on both templates — image and body just swap sides. */
    grid-template-columns: minmax(220px, 0.8fr) 1fr;
    gap: 48px;
    align-items: start;
    margin: 36px 0 44px;
}

.post-layout--no-image {
    grid-template-columns: 1fr;
}

.post-layout__media {
    line-height: 0;
}

.post-layout__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Title + date sit at the top of the right-hand body column */
.post-header {
    margin: 0 0 18px;
}

.post-header__title {
    font-size: 2.4rem;
    line-height: 1.15;
    margin: 0 0 12px;
    color: #0B3367;
}

.post-header__date {
    color: #5f5f5f;
    font-size: 0.95rem;
    margin: 0;
}

.post-header__date--event {
    color: #0CB1E1;
    font-weight: 500;
}

/*--------------------------------------------------------------
# Responsive: stack to one column
--------------------------------------------------------------*/
@media (max-width: 860px) {
    .home-hero,
    .post-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .home-hero__featured,
    .post-layout__media {
        max-width: 480px;
    }

    .post-header__title {
        font-size: 2rem;
    }
}
