/*
 * The seminar blog (resources/views/seminar/blog.blade.php and post.blade.php),
 * laid out as the Grand Conference template's blog page with a left sidebar:
 * the sidebar, one post large, the rest in a grid of two, and the pager.
 *
 * Loaded only by those two pages. The colours come from ibrothers.css
 * (--wb-accent, --wb-deep), so the pages follow the rest of the theme.
 */

.wb-blog-band {
    padding: 150px 0 90px;
    background-color: #111111;
    background-position: center;
    background-size: cover;
}

.wb-blog-head { text-align: left; }

.wb-blog-head .wb-post-topic {
    margin-bottom: 14px;
    color: #FFFFFF;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---------- the two columns: sidebar first, as the template has it ---------- */

.wb-blog-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 60px;
    align-items: start;
    text-align: left;
}

/* ---------- the sidebar ---------- */

.wb-side-block { margin-bottom: 45px; }
.wb-side-block:last-child { margin-bottom: 0; }

.wb-side-title {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 14px;
    color: #111111;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.wb-side-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--wb-accent);
}

.wb-side-posts { margin: 0; padding: 0; list-style: none; }

.wb-side-posts li {
    display: flex;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.wb-side-posts li:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }

.wb-side-thumb {
    flex: none;
    display: block;
    width: 74px;
    height: 74px;
    overflow: hidden;
    border-radius: 6px;
    background: #F2F2F2;
}

.wb-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.wb-side-thumb:hover img { transform: scale(1.08); }

.wb-side-thumb-blank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--wb-accent);
    color: #FFFFFF;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
}

.wb-side-post-text a {
    display: block;
    color: #111111;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.wb-side-post-text a:hover { color: var(--wb-accent); }

.wb-side-post-text time {
    display: block;
    margin-top: 8px;
    color: #888888;
    font-size: 13px;
}

.wb-side-socials { display: flex; flex-wrap: wrap; gap: 10px; }

.wb-side-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    color: #111111;
    font-size: 15px;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.wb-side-socials a:hover {
    border-color: var(--wb-accent);
    background: var(--wb-accent);
    color: #FFFFFF;
}

.wb-side-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.wb-tag {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 40px;
    color: #555555;
    font-size: 13px;
}

.wb-side-cta {
    padding: 28px;
    border-radius: 8px;
    background: #111111;
}

.wb-side-cta .wb-side-title { color: #FFFFFF; }

.wb-side-cta p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.7;
}

/* ---------- a post card ---------- */

.wb-post {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #FFFFFF;
    transition: box-shadow 0.3s, transform 0.3s;
}

.wb-post:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1); }

.wb-post-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #111111;
}

.wb-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.wb-post-media:hover img { transform: scale(1.05); }

.wb-post-media-blank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--wb-deep), #111111);
    color: #FFFFFF;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 64px;
    font-weight: 700;
}

/* the date block the template drops on the corner of the picture */
.wb-post-date {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--wb-accent);
    color: #FFFFFF;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}

.wb-post-date strong { display: block; font-size: 20px; font-weight: 700; }

.wb-post-body { padding: 28px; }

.wb-post-title {
    margin: 0 0 14px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}

.wb-post-title a { color: #111111; }
.wb-post-title a:hover { color: var(--wb-accent); }

.wb-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    color: #888888;
    font-size: 13px;
}

.wb-post-meta li { display: flex; align-items: center; gap: 7px; }
.wb-post-meta span { color: var(--wb-accent); }

.wb-post-excerpt {
    margin: 0 0 22px;
    color: #555555;
    font-size: 15px;
    line-height: 1.8;
}

.wb-post-more { display: inline-block; }

/* ---------- the lead post, then the grid of two ---------- */

.wb-post-lead { margin-bottom: 40px; }
.wb-post-lead .wb-post-media { aspect-ratio: 16 / 8; }
.wb-post-lead .wb-post-body { padding: 34px; }
.wb-post-lead .wb-post-title { font-size: 28px; }

.wb-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.wb-blog-empty {
    padding: 40px 0;
    color: #555555;
    font-size: 16px;
}

/* ---------- the pager ---------- */

.wb-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-top: 45px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.wb-pager-count { color: #888888; font-size: 14px; }

.wb-pager-links { display: flex; flex-wrap: wrap; gap: 8px; }

.wb-pager-link {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    color: #111111;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.wb-pager-link:hover,
.wb-pager-link.is-here {
    border-color: var(--wb-accent);
    background: var(--wb-accent);
    color: #FFFFFF;
}

.wb-pager-link.is-off { opacity: 0.4; }
.wb-pager-link.is-off:hover { border-color: rgba(0, 0, 0, 0.12); background: none; color: #111111; }

/* ---------- one post's page ---------- */

.wb-article {
    padding-bottom: 10px;
    color: #444444;
    font-size: 16px;
    line-height: 1.9;
}

.wb-article p { margin: 0 0 22px; }

.wb-article-lead {
    color: #111111;
    font-size: 18px;
    font-weight: 500;
}

.wb-article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }

.wb-article-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.wb-next { margin-top: 55px; }

@media (max-width: 991px) {
    .wb-blog-layout { grid-template-columns: 1fr; gap: 50px; }
    /* the sidebar reads better under the posts on a narrow screen */
    .wb-blog-side { order: 2; }
    .wb-blog-main { order: 1; }
}

@media (max-width: 767px) {
    .wb-blog-band { padding: 110px 0 70px; }
    .wb-post-grid { grid-template-columns: 1fr; }
    .wb-post-lead .wb-post-title { font-size: 22px; }
    .wb-post-body { padding: 22px; }
    .wb-pager { justify-content: center; }
}
