/* Obserway Blog — public list & detail */
:root {
    --blog-teal: #35a29f;
    --blog-teal-light: #4bbfbc;
    --blog-teal-faded: rgba(53, 162, 159, .08);
    --blog-teal-mid: rgba(53, 162, 159, .18);
    --blog-navy: #0B1728;
    --blog-off-white: #f7fafc;
    --blog-grey: #64748b;
    --blog-border: rgba(11, 23, 40, .08);
    --blog-shadow: 0 8px 28px rgba(11, 23, 40, .08);
    --blog-radius: 16px;
}

.blog-page {
    font-family: 'DM Sans', sans-serif;
    color: var(--blog-navy);
    background:
        radial-gradient(ellipse 80% 50% at 100% -10%, rgba(53, 162, 159, .12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 0% 20%, rgba(11, 23, 40, .04), transparent 50%),
        var(--blog-off-white);
}

.blog-page h1,
.blog-page h2,
.blog-page h3,
.blog-page h4,
.blog-page .blog-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.blog-page .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blog-teal);
    padding: 6px 14px;
    background: var(--blog-teal-faded);
    border: 1px solid var(--blog-teal-mid);
    border-radius: 100px;
    margin-bottom: 16px;
}

.blog-page .section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blog-teal);
}

/* ─── List hero ─── */
.blog-hero {
    padding: 72px 0 40px;
}

.blog-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: .75rem;
    color: var(--blog-navy);
}

.blog-hero-lead {
    font-size: 1.1rem;
    color: var(--blog-grey);
    max-width: 36rem;
    margin-bottom: 0;
}

.blog-search {
    display: flex;
    gap: .5rem;
    margin-top: 1.5rem;
}

.blog-search .form-control {
    border-radius: 12px;
    border-color: var(--blog-border);
    padding: .7rem 1rem;
    background: #fff;
}

.blog-search .btn {
    border-radius: 12px;
    background: var(--blog-teal);
    border-color: var(--blog-teal);
    padding: .7rem 1.25rem;
    font-weight: 600;
}

.blog-search .btn:hover {
    background: var(--blog-teal-light);
    border-color: var(--blog-teal-light);
}

.blog-list-section {
    padding-bottom: 80px;
}

.blog-empty {
    text-align: center;
    padding: 4rem 1.5rem;
    background: rgba(255, 255, 255, .7);
    border: 1px dashed var(--blog-border);
    border-radius: var(--blog-radius);
}

.blog-empty h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

/* ─── Cards ─── */
.blog-card {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: transform .25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    color: inherit;
}

.blog-cover {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    border-radius: var(--blog-radius);
    background: linear-gradient(145deg, #e8eef4, #d9e4ec);
    box-shadow: var(--blog-shadow);
    position: relative;
}

.blog-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform .4s ease;
}

.blog-card:hover .blog-cover img {
    transform: scale(1.04);
}

.blog-cover--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blog-teal);
    font-size: 2rem;
    opacity: .55;
}

.blog-card-body {
    padding: 1rem 0.15rem 0;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    font-size: .8rem;
    color: var(--blog-grey);
    margin-bottom: .4rem;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: .4rem;
    color: var(--blog-navy);
}

.blog-card-summary {
    font-size: .95rem;
    color: var(--blog-grey);
    line-height: 1.55;
    margin-bottom: .65rem;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.blog-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--blog-teal);
    background: var(--blog-teal-faded);
    border: 1px solid var(--blog-teal-mid);
    border-radius: 100px;
    padding: .2rem .65rem;
    text-decoration: none;
}

.blog-tag:hover {
    color: var(--blog-navy);
    background: rgba(53, 162, 159, .16);
}

/* ─── Detail ─── */
.blog-detail-page {
    padding: 40px 0 88px;
}

.blog-detail-breadcrumb {
    font-size: .8125rem;
    margin-bottom: 1.25rem;
}

.blog-detail-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.blog-detail-breadcrumb .breadcrumb-item,
.blog-detail-breadcrumb .breadcrumb-item.active {
    color: var(--blog-grey);
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-detail-breadcrumb a {
    color: var(--blog-teal);
    text-decoration: none;
    font-weight: 500;
}

.blog-detail-breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-detail-shell {
    max-width: 1080px;
    margin: 0 auto;
}

.blog-detail-cover-wrap {
    max-width: 100%;
    margin: 0 0 2rem;
}

.blog-detail-cover {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(145deg, #e8eef4, #d9e4ec);
    box-shadow: 0 12px 40px rgba(11, 23, 40, .1);
}

.blog-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.blog-detail-cover-wrap figcaption {
    margin-top: .65rem;
    font-size: .875rem;
    color: var(--blog-grey);
    text-align: center;
}

.blog-detail-header {
    max-width: 100%;
    margin: 0 0 2.25rem;
    text-align: left;
}

.blog-detail-header .blog-card-tags {
    margin-bottom: .85rem;
}

.blog-detail-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: clamp(1.75rem, 4vw, 2.65rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    line-height: 1.18 !important;
    color: var(--blog-navy) !important;
    margin: 0 0 .85rem !important;
}

.blog-detail-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .5rem;
    margin: 0 0 1.15rem;
    font-family: 'DM Sans', sans-serif;
    font-size: .9375rem;
    font-weight: 500;
    color: var(--blog-grey);
    letter-spacing: .01em;
}

.blog-detail-author {
    color: var(--blog-navy);
    font-weight: 600;
}

.blog-detail-sep {
    opacity: .45;
    font-weight: 400;
}

.blog-detail-summary {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: #475569;
    line-height: 1.65;
    margin: 0;
    padding: .9rem 0 .15rem 1rem;
    border-left: 3px solid var(--blog-teal);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.blog-content {
    max-width: 100%;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #1e293b;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--blog-navy);
    margin-top: 2rem;
    margin-bottom: .75rem;
    line-height: 1.3;
}

.blog-content h2 { font-size: 1.55rem; font-weight: 750; }
.blog-content h3 { font-size: 1.25rem; font-weight: 700; }

.blog-content p { margin-bottom: 1.15rem; }

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.25rem 0;
}

.blog-content figure {
    margin: 1.5rem 0;
}

.blog-content figcaption {
    font-size: .85rem;
    color: var(--blog-grey);
    text-align: center;
    margin-top: .5rem;
}

.blog-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--blog-teal);
    background: var(--blog-teal-faded);
    border-radius: 0 12px 12px 0;
    color: var(--blog-navy);
    font-style: italic;
}

.blog-content a {
    color: var(--blog-teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.15rem;
    padding-left: 1.35rem;
}

.blog-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    overflow-x: auto;
    font-size: .9rem;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: .95rem;
}

.blog-content th,
.blog-content td {
    border: 1px solid var(--blog-border);
    padding: .5rem .65rem;
}

/* ─── Gallery ─── */
.blog-gallery {
    max-width: 100%;
    margin: 3rem 0 0;
    padding-top: 2rem;
    border-top: 1px solid var(--blog-border);
}

.blog-gallery-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
    color: var(--blog-navy);
}

.blog-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

@media (min-width: 768px) {
    .blog-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.blog-gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #e8eef4;
    box-shadow: 0 4px 16px rgba(11, 23, 40, .06);
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: zoom-in;
    text-decoration: none;
    color: inherit;
}

.blog-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--blog-shadow);
}

.blog-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform .35s ease;
}

.blog-gallery-item:hover img {
    transform: scale(1.05);
}

.blog-gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .45rem .65rem;
    font-size: .75rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(11, 23, 40, .72));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Lightbox (vanilla) */
body.blog-lightbox-open {
    overflow: hidden;
}

.blog-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 3.5rem;
    background: rgba(11, 23, 40, .9);
    backdrop-filter: blur(4px);
}

.blog-lightbox[hidden] {
    display: none !important;
}

.blog-lightbox-stage {
    margin: 0;
    max-width: min(1100px, 100%);
    max-height: 100%;
    text-align: center;
}

.blog-lightbox-stage img {
    max-width: 100%;
    max-height: calc(100vh - 7rem);
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    display: block;
    margin: 0 auto;
}

.blog-lightbox-stage figcaption {
    margin-top: .75rem;
    color: rgba(255, 255, 255, .85);
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
}

.blog-lightbox-close,
.blog-lightbox-nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    border-radius: 999px;
    transition: background .15s ease;
}

.blog-lightbox-close:hover,
.blog-lightbox-nav:hover {
    background: rgba(255, 255, 255, .22);
}

.blog-lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1.75rem;
    line-height: 1;
}

.blog-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    font-size: 1.75rem;
    line-height: 1;
}

.blog-lightbox-prev { left: .75rem; }
.blog-lightbox-next { right: .75rem; }

.blog-lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .7);
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem;
}

@media (max-width: 575.98px) {
    .blog-lightbox {
        padding: 3.5rem 1rem 2.5rem;
    }
    .blog-lightbox-nav {
        width: 40px;
        height: 40px;
    }
}

.blog-detail-footer {
    max-width: 100%;
    margin: 3rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--blog-border);
}

.blog-back-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    color: var(--blog-teal);
    text-decoration: none;
    border: 1px solid var(--blog-teal-mid);
    background: var(--blog-teal-faded);
    border-radius: 12px;
    padding: .6rem 1.1rem;
    transition: background .2s ease;
}

.blog-back-btn:hover {
    background: rgba(53, 162, 159, .16);
    color: var(--blog-navy);
}

@media (max-width: 575.98px) {
    .blog-hero { padding: 48px 0 28px; }
    .blog-search { flex-direction: column; }
    .blog-detail-page { padding: 28px 0 64px; }
    .blog-detail-cover { border-radius: 14px; }
    .blog-detail-summary {
        font-size: 1.05rem;
        padding-left: .85rem;
    }
}

