/* ── Blog Post Layout ──────────────────────────────────────────
   Content is capped at 800 px and centered.
   To add a sidebar later: widen section.py-5.container to ~1200px,
   place article content in .col-lg-8 and sidebar in .col-lg-4.
─────────────────────────────────────────────────────────────── */

/* Banner section */
#aboutmain > .container {
    max-width: 800px;
}

#aboutmain img.img-fluid {
    width: 100% !important;
    display: block;
    border-radius: 8px;
}

/* Article body */
section.py-5.container {
    max-width: 800px;
}

section.py-5 .col-lg-10 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ── Typography ────────────────────────────────────────────── */

section.py-5 p,
section.py-5 li {
    font-size: 1.05rem;
    line-height: 1.8;
}

section.py-5 h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    line-height: 1.3;
}

section.py-5 h3 {
    font-size: 1.35rem;
    margin-top: 2rem;
    line-height: 1.35;
}

/* ── Breadcrumbs ───────────────────────────────────────────── */

.post-breadcrumb {
    margin-bottom: 1.25rem;
}

.post-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
}

.post-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.post-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
}

.post-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.35);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.post-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.25);
}

/* ── Pagination ────────────────────────────────────────────── */

.post-pagination {
    padding: 2.5rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex: 0 1 40%;
    min-width: 0;
}

.post-nav-link.post-nav-next {
    text-align: right;
    align-items: flex-end;
}

.post-nav-dir {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.3rem;
}

.post-nav-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-nav-link:hover .post-nav-title {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-nav-all {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    transition: color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.post-nav-all:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 576px) {
    .post-nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .post-nav-link.post-nav-next {
        text-align: left;
        align-items: flex-start;
    }

    .post-nav-all {
        text-align: center;
    }
}
