/* ==========================================================================
   Single Post Template
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero / Featured Image
   -------------------------------------------------------------------------- */

.blog-item--detail {
    display: flex;
    flex-direction: column;
}

.blog-item__hero {
    overflow: hidden;
    position: relative;
}

.blog-item__hero-image {
    display: block;
    height: 400px;
    object-fit: cover;
    width: 100%;
}

@media screen and (width >= 768px) {
    .blog-item__hero-image {
        height: 500px;
    }
}

@media screen and (width >= 1080px) {
    .blog-item__hero-image {
        height: 580px;
    }
}

/* --------------------------------------------------------------------------
   Page Title / Meta
   -------------------------------------------------------------------------- */

.blog-item__page-title {
    padding-block: 30px;
    text-align: center;
}

@media screen and (width >= 768px) {
    .blog-item__page-title {
        padding-block: 60px 30px;
    }
}

.blog-item__title {
    margin: 0 0 15px;
}

.blog-item__head__meta {
    color: var(--color-text-muted);
}

.blog-item__head__meta-separator {
    margin-inline: 8px;
}

/* --------------------------------------------------------------------------
   Content Body
   -------------------------------------------------------------------------- */

.blog-item__content {
    margin: 0 auto;
    max-width: 679px;
    padding-inline: var(--gutter);
}

.blog-item__content h2,
.blog-item__content h3,
.blog-item__content h4 {
    margin-top: 30px;
}

.blog-item__content img {
    border-radius: 6px;
    height: auto;
    max-width: 100%;
}

.blog-item__content p {
    margin-bottom: 21px;
}

.blog-item__content blockquote {
    border-left: 4px solid var(--color-navy);
    margin: 30px 0;
    padding: 15px 30px;
}

.blog-item__content blockquote p:last-child {
    margin-bottom: 0;
}

.blog-item__content ul,
.blog-item__content ol {
    margin-bottom: 21px;
    padding-left: 30px;
}

.blog-item__content a {
    color: var(--color-navy);
    text-decoration: underline;
}

.blog-item__content a:hover {
    color: var(--color-navy-dark);
}

/* --------------------------------------------------------------------------
   Sections Area (ACF Flexible Content)
   -------------------------------------------------------------------------- */

.blog-item__sections {
    margin-top: 15px;
}

/* --------------------------------------------------------------------------
   Footer / Author
   -------------------------------------------------------------------------- */

.blog-item__footer {
    margin: 30px auto 0;
    max-width: 679px;
    padding-bottom: 30px;
    padding-inline: var(--gutter);
}

.blog-item__author-wrapper {
    align-items: flex-start;
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.blog-item__author-data {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.blog-item__author-data-header {
    font-size: 18px;
    margin-bottom: 0;
}

.blog-item__author-name {
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Social Share
   -------------------------------------------------------------------------- */

.blog-item__share {
    margin: 30px auto 0;
    padding: 30px var(--gutter);
    width: min(100%, 1132px);
}

.blog-item__share-title {
    color: var(--color-navy);
    font-size: 38px;
    font-weight: 700;
    line-height: 43px;
    margin-bottom: 18px;
}

.blog-item__share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-item__share-button {
    align-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    display: inline-flex;
    font-size: 21px;
    height: 54px;
    justify-content: center;
    text-decoration: none;
    transition: var(--reduced-motion, 0.2s) background ease;
    width: 54px;
}

.blog-item__share-button[data-share="facebook"] {
    background: #3b5998;
}

.blog-item__share-button[data-share="twitter"] {
    background: #000;
}

.blog-item__share-button[data-share="linkedin"] {
    background: #007bb5;
}

.blog-item__share-button[data-share="whatsapp"] {
    background: #25d366;
}

.blog-item__share-button:hover {
    filter: brightness(0.85);
    color: var(--color-white);
}

.blog-item__back-link {
    align-items: center;
    color: var(--color-navy);
    display: inline-flex;
    font-size: 21px;
    gap: 8px;
    font-weight: 700;
    margin-top: 30px;
    text-decoration: underline;
}

.blog-item__back-link:hover {
    text-decoration: underline;
}

.blog-item__share-button .sr-only {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* --------------------------------------------------------------------------
   Related Posts
   -------------------------------------------------------------------------- */

.blog-item__related {
    background: var(--color-bg-subtle);
    padding-block: 60px;
}

.blog-item__related-container {
    margin: 0 auto;
    max-width: 1358px;
    padding-inline: var(--gutter);
}

.blog-item__related-title {
    margin-bottom: 30px;
}

.blog-item__related-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

@media screen and (width >= 500px) {
    .blog-item__related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (width >= 1080px) {
    .blog-item__related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-item__related-card {
    background: var(--color-navy);
    border-bottom-right-radius: 20px;
    overflow: hidden;
    position: relative;
}

.blog-item__related-card-image {
    display: block;
    height: 260px;
    object-fit: cover;
    width: 100%;
}

@media screen and (width >= 1080px) {
    .blog-item__related-card-image {
        height: 300px;
    }
}

.blog-item__related-card-body {
    color: var(--color-white);
    padding: 20px;
}

.blog-item__related-card-heading {
    color: var(--color-white);
    font-size: var(--h5-fs);
    font-weight: 700;
    line-height: var(--h5-lh);
    margin: 0 0 8px;
}

.blog-item__related-card-meta {
    color: rgb(255 255 255 / 0.7);
    font-size: 16px;
    margin-bottom: 15px;
}

.blog-item__related-card-link {
    color: var(--color-white);
    font-weight: 700;
    text-decoration: none;
}

.blog-item__related-card-link:hover {
    text-decoration: underline;
}

.blog-item__related-card-overlay {
    inset: 0;
    position: absolute;
    z-index: 1;
}

.blog-item__related-card:hover .blog-item__related-card-heading {
    text-decoration: underline;
}
