/* Blog index and post templates */


.post-banner {
    position: relative;
    isolation: isolate;
    background-color: #071e32;
}

.post-banner::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(0, 16, 32, .22);
    content: "";
}

.post-banner-heading {
    width: 100%;
    padding: 12px 18px;
    border-radius: 5px;
    color: #ffffff;
    background: rgba(22, 22, 22, .9);
}

.post-banner .post-banner-heading h1 {
    margin-bottom: 0;
    color: #ffffff;
}

.post-banner .hero-actions {
    margin-top: 20px;
}

.listing-section {
    padding: 22px 0 60px;
    background: var(--light-gray);
}

.content-with-sidebar,
.post-banner .simple-banner-copy {
    display: grid;
    grid-template-columns: minmax(0, 2.25fr) minmax(300px, 1fr);
    gap: 30px;
    align-items: start;
    padding: 0 5px;
}

.post-list {
    display: grid;
    gap: 38px;
}

.post-card {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 12px;
    min-height: 194px;
    padding: 28px 20px;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: rgba(0, 0, 0, .08) 0 4px 18px;
}

.post-card-media {
    display: block;
}

.post-card-media img {
    width: 145px;
    height: 145px;
    object-fit: cover;
}

.post-card-copy h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.45;
}

.post-card-copy h2 a {
    color: var(--blue);
    text-decoration: none;
}

.post-card-copy h2 a:hover,
.post-card-copy h2 a:focus-visible {
    text-decoration: underline;
}

.post-card-copy p {
    margin: 0;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px !important;
    font-size: 14px;
}

.sidebar {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 18px;
}

.related-posts {
    padding: 24px 20px;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: rgba(0, 0, 0, .08) 0 4px 18px;
}

.related-posts h2 {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.25;
    text-transform: uppercase;
}

.related-post-list {
    display: grid;
    gap: 12px;
}

.related-posts-empty {
    margin: 0;
}

.related-post {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.related-post > h3:only-child {
    grid-column: 1 / -1;
}

.related-post img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.related-post h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
}

.related-post h3 a {
    color: var(--blue);
    text-decoration: none;
}

.related-post h3 a:hover,
.related-post h3 a:focus-visible {
    text-decoration: underline;
}

.empty-state {
    padding: 30px;
}

.empty-state h2 {
    margin-top: 0;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 38px;
    padding: 14px;
    background: #ffffff;
    font-size: 13px;
}

.pagination a,
.pagination span {
    padding: 4px 9px;
    border: 1px solid #e0e0e0;
    color: #555555;
    text-decoration: none;
}

.pagination a:hover,
.pagination a:focus-visible,
.pagination .current {
    color: #ffffff;
    background: var(--blue);
    border-color: var(--blue);
}

.post-body {
    padding: 32px;
}

.post-body > :first-child {
    margin-top: 0;
}

.post-body h2,
.post-body h3 {
    color: var(--ink);
}

.post-body h2 {
    margin: 28px 0 12px;
    font-size: 25px;
    line-height: 1.35;
}

.post-body h3 {
    margin: 22px 0 10px;
    font-size: 20px;
    line-height: 1.4;
}

.post-body li {
    margin-bottom: 10px;
}

.post-aside {
    padding-left: 30px;
}

.post-footer {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #dddddd;
}

.post-footer .post-meta {
    color: #666666;
    font-size: 13px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-button {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border: 0;
    border-radius: 4px;
    color: #ffffff;
    background: var(--blue);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1);
    transition: filter .2s ease, transform .2s ease;
}

.share-button:hover,
.share-button:focus-visible {
    filter: brightness(.9);
    transform: scale(1.05);
}

.share-button span {
    font-size: 15px;
    font-weight: 700;
}

.share-x {
    background: #111111;
}

.share-linkedin {
    background: #0a66c2;
}

@media (max-width: 991px) {
    .simple-banner { min-height: 0; padding: 55px 0; background-position: 64% center; }
    .simple-banner h1 { max-width: 72%; font-size: 28px; }
    .post-banner .post-banner-heading h1 { max-width: 100%; }
    .simple-banner .hero-actions { align-items: flex-start; }
    .content-with-sidebar,
    .post-banner .simple-banner-copy { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}

@media (max-width: 767px) {
    .post-card { grid-template-columns: 110px minmax(0, 1fr); padding: 20px 15px; }
    .post-card-media img { width: 110px; height: 110px; }
    .post-card-copy h2 { font-size: 20px; }
}

@media (max-width: 480px) {
    .simple-banner { background-position: 72% center; }
    .simple-banner h1 { max-width: 100%; }
    .post-card { grid-template-columns: 1fr; }
    .post-card-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .post-body { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .share-button { transition: none; }
}
