/* =========================================================
   BLOG - Studio Gores Garis
   Simpan di: public/front/css/blog.css
   ========================================================= */

   :root {
    --blog-bg: #1b1b1b;
    --blog-surface: #242424;
    --blog-border: rgba(255, 255, 255, 0.12);
    --blog-muted: rgba(255, 255, 255, 0.65);
    --blog-accent: #f9a825; /* sama dengan warna hover menu */
}

/* ---------- HERO ---------- */
.blog-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    overflow: hidden;
}

.blog-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(27, 27, 27, 1) 100%);
    z-index: 1;
}

.blog-hero--detail {
    min-height: 70vh;
}

.blog-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 120px 20px 50px;
    text-align: center;
}

.blog-hero-title {
    font-family: 'CenturyGothicBold', 'CenturyGothic', sans-serif;
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

.blog-hero-desc {
    font-weight: 300;
    opacity: 0.85;
    margin: 0 auto;
    max-width: 600px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    font-size: 0.85rem;
    color: var(--blog-muted);
}

.blog-meta i {
    margin-right: 6px;
}

/* ---------- FILTER KATEGORI ---------- */
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}

.blog-filter a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 7px 20px;
    border: 1px solid var(--blog-border);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.blog-filter a:hover,
.blog-filter a.active {
    background: #fff;
    color: #1b1b1b;
    border-color: #fff;
}

/* ---------- FEATURED POST ---------- */
.blog-featured {
    position: relative;
    display: block;
    height: 460px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 50px;
    color: #fff;
    text-decoration: none;
}

.blog-featured img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.blog-featured::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.88) 100%);
}

.blog-featured-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 35px;
}

.blog-featured-title {
    font-family: 'CenturyGothicBold', 'CenturyGothic', sans-serif;
    font-size: 1.9rem;
    line-height: 1.3;
    margin: 10px 0;
    max-width: 720px;
}

/* ---------- KARTU BLOG ---------- */
.blog-card {
    background: var(--blog-surface);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
}

.blog-card-img {
    display: block;
    height: 230px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.blog-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.75rem;
    color: #1b1b1b;
    background: var(--blog-accent);
    padding: 3px 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

.blog-card-title {
    font-family: 'CenturyGothicBold', 'CenturyGothic', sans-serif;
    font-size: 1.15rem;
    line-height: 1.4;
    margin: 14px 0 10px;
}

.blog-card-title a {
    color: #fff;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--blog-accent);
}

.blog-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--blog-muted);
    margin-bottom: 18px;
}

.blog-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--blog-muted);
}

/* ---------- PAGINATION ---------- */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
    list-style: none;
    padding: 0;
}

.blog-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--blog-border);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination a:hover,
.blog-pagination .active a {
    background: #fff;
    color: #1b1b1b;
}

/* ---------- DETAIL ARTIKEL ---------- */
.blog-article {
    max-width: 780px;
    margin: 0 auto;
}

.blog-article p {
    font-size: 1.02rem;
    line-height: 1.95;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.blog-article h2,
.blog-article h3 {
    font-family: 'CenturyGothicBold', 'CenturyGothic', sans-serif;
    margin: 2.5rem 0 1rem;
}

.blog-article h2 {
    font-size: 1.6rem;
}

.blog-article h3 {
    font-size: 1.25rem;
}

.blog-article img {
    width: 100%;
    border-radius: 10px;
    margin: 1rem 0 0.5rem;
}

.blog-article figure {
    margin: 2rem 0;
}

.blog-article figcaption {
    font-size: 0.82rem;
    text-align: center;
    color: var(--blog-muted);
}

.blog-article blockquote {
    border-left: 4px solid var(--blog-accent);
    padding: 6px 0 6px 22px;
    margin: 2rem 0;
    font-size: 1.2rem;
    font-style: italic;
    color: #fff;
}

.blog-article ul {
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
}

.blog-tags a {
    display: inline-block;
    font-size: 0.8rem;
    color: #fff;
    text-decoration: none;
    border: 1px solid var(--blog-border);
    padding: 4px 14px;
    border-radius: 50px;
    margin: 0 6px 8px 0;
    transition: all 0.3s ease;
}

.blog-tags a:hover {
    border-color: var(--blog-accent);
    color: var(--blog-accent);
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--blog-border);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-share a:hover {
    background: #fff;
    color: #1b1b1b;
}

.blog-author {
    display: flex;
    gap: 18px;
    align-items: center;
    background: var(--blog-surface);
    border-radius: 12px;
    padding: 24px;
}

.blog-author img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-author h6 {
    margin: 0 0 4px;
    font-family: 'CenturyGothicBold', 'CenturyGothic', sans-serif;
}

.blog-author p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--blog-muted);
}

.blog-nav-post {
    display: block;
    padding: 20px 24px;
    border: 1px solid var(--blog-border);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    height: 100%;
    transition: all 0.3s ease;
}

.blog-nav-post:hover {
    border-color: var(--blog-accent);
    color: #fff;
}

.blog-nav-post small {
    display: block;
    color: var(--blog-muted);
    margin-bottom: 6px;
}

.blog-section-title {
    font-family: 'CenturyGothic', sans-serif;
    font-weight: 500;
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 1.6rem;
    }

    .blog-featured {
        height: 360px;
    }

    .blog-featured-body {
        padding: 22px;
    }

    .blog-featured-title {
        font-size: 1.35rem;
    }

    .blog-card-img {
        height: 200px;
    }

    .blog-author {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 1920px) {
    .blog-hero-title {
        font-size: 2.8rem;
    }

    .blog-featured {
        height: 560px;
    }

    .blog-article {
        max-width: 900px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card-img img,
    .blog-featured img {
        transition: none;
    }
}

.blog-hero-photo {
    position: relative;
    width: 100%;
    padding: 100px 20px 40px;   /* 100px atas supaya tidak tertutup navbar */
    display: flex;
    justify-content: center;
    background: #1b1b1b;
    overflow: hidden;
}

/* latar: foto yang sama, dibuat buram dan gelap */
.blog-hero-photo::before {
    content: '';
    position: absolute;
    inset: -40px;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.45);
    transform: scale(1.1);
}

/* bagian bawah menyatu dengan warna halaman */
.blog-hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 25%, rgba(27, 27, 27, 0) 70%, #1b1b1b 100%);
    pointer-events: none;
}

/* foto utama: utuh, tidak dipotong */
.blog-hero-photo img {
    position: relative;
    z-index: 2;
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 1100px);
    max-height: 75vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .blog-hero-photo {
        padding: 80px 14px 24px;
    }

    .blog-hero-photo img {
        max-height: 60vh;
        border-radius: 8px;
    }
}

.blog-title-block {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 20px 10px;
    text-align: center;
}

.blog-card-body > .blog-card-title:first-child {
    margin-top: 0;
}

