/* ============================================================
   BLOG PAGE
   ============================================================ */

.blog-page {
    padding-top: var(--header-h);
    background: #383838;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ── Header ── */
.blog-header {
    padding: 56px 0 36px;
    text-align: center;
}

.blog-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}

/* ── Grid ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* ── Card ── */
.blog-card {
    background: #444;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s cubic-bezier(0.4,0,0.2,1);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.blog-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card__thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.75s cubic-bezier(0.4,0,0.2,1);
}

.blog-card:hover .blog-card__thumb img {
    transform: scale(1.05);
}

.blog-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-card__date {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}

.blog-card__title {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.blog-card__excerpt {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

.blog-card__more {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.03em;
    margin-top: 4px;
    transition: opacity 0.25s;
    opacity: 0.6;
}

.blog-card:hover .blog-card__more {
    opacity: 1;
}

/* ── Pagination ── */
.blog-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.blog-pagination a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 100px;
    transition: background 0.2s, color 0.2s;
}

.blog-pagination a:hover {
    background: #fff;
    color: #383838;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 92%;
    }
    .blog-pagination { max-width: 92%; }
}


/* ============================================================
   SINGLE BLOG POST
   ============================================================ */

.single-post {
    background: #383838;
    min-height: 100vh;
    color: #fff;
}

/* ── Hero ── */
.sbp-hero {
    position: relative;
    height: 70vh;
    min-height: 420px;
    overflow: hidden;
}

.sbp-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sbp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.22) 40%,
        rgba(0,0,0,0.72) 100%
    );
}

.sbp-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px clamp(24px, 6vw, 100px) 52px;
    z-index: 2;
    max-width: 860px;
}

.sbp-hero__date {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    margin-bottom: 12px;
}

.sbp-hero__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

/* ── Body ── */
.sbp-body {
    max-width: 780px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}

/* ── Content typography ── */
.sbp-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.72);
}

.sbp-content p { margin-bottom: 1.4em; }

.sbp-content h2, .sbp-content h3 {
    font-weight: 700;
    color: #fff;
    margin: 2em 0 0.6em;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.sbp-content h2 { font-size: 1.45rem; }
.sbp-content h3 { font-size: 1.2rem; }

.sbp-content img {
    width: 100%;
    border-radius: 8px;
    margin: 2em 0;
    display: block;
}

.sbp-content ul, .sbp-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.4em;
}

.sbp-content li { margin-bottom: 0.4em; }

.sbp-content blockquote {
    border-left: 3px solid rgba(255,255,255,0.4);
    padding-left: 24px;
    margin: 2em 0;
    font-style: italic;
    color: rgba(255,255,255,0.55);
}

/* ── Navigation ── */
.sbp-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 64px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
}

.sbp-nav-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #444;
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
}

.sbp-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.sbp-nav-card--next {
    flex-direction: row-reverse;
    text-align: right;
}

.sbp-nav-card__img {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e0e0e0;
}

.sbp-nav-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sbp-nav-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sbp-nav-card__dir {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

.sbp-nav-card--next .sbp-nav-card__dir {
    justify-content: flex-end;
}

.sbp-nav-card__title {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Back link ── */
.sbp-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 40px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.sbp-back:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .sbp-nav { grid-template-columns: 1fr; }
    .sbp-nav-card--next { flex-direction: row; text-align: left; }
    .sbp-nav-card--next .sbp-nav-card__dir { justify-content: flex-start; }
    .sbp-hero { height: 55vh; }
    .sbp-hero__content { padding: 32px 20px 36px; }
}
