/* ── Blogs Hero ── */
.blogs-hero {
    padding: 80px 0 60px;
    background: var(--blog-pink-gradient);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blogs-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.blogs-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.blogs-hero__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.blogs-hero__title .highlight {
    color: var(--blog-pink-soft);
}

.blogs-hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blogs-hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    margin-top: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

/* ── Blog Filters ── */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    padding: 1.5rem 0 2.5rem;
}

.blog-filter-btn {
    background: transparent;
    border: 1.5px solid rgba(194, 24, 91, 0.15);
    color: var(--blog-pink-soft);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.blog-filter-btn:hover {
    border-color: var(--blog-pink-light);
    color: var(--blog-pink-light);
    background: rgba(194, 24, 91, 0.08);
    transform: translateY(-1px);
}

.blog-filter-btn.active {
    background: var(--blog-pink-light);
    color: #fff;
    border-color: var(--blog-pink-primary);
    box-shadow: 0 4px 16px rgba(194, 24, 91, 0.25);
}

.blog-filter-btn.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(194, 24, 91, 0.35);
}

/* ── Blog Grid ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.8rem;
    padding: 1rem 0 3rem;
}

.blog-card {
    background: #1a1a1a;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(194, 24, 91, 0.08);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(194, 24, 91, 0.1);
    border-color: rgba(194, 24, 91, 0.12);
}

.blog-card:active {
    transform: scale(0.98);
}

.blog-card__image-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f8fafc;
}

.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image {
    transform: scale(1.03);
}

.blog-card__category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(139, 26, 59, 0.88);
    padding: 0.2rem 0.9rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.blog-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.blog-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #eee;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__title:hover {
    color: var(--blog-pink-light);
}

.blog-card__excerpt {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #777;
    border-top: 1px solid rgba(194, 24, 91, 0.08);
    padding-top: 0.75rem;
}

.blog-card__author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card__author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blog-pink-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}

.blog-card__read-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-card__read-time .material-symbols-outlined {
    font-size: 1rem;
    color: var(--blog-pink-dark);
}

/* ── Blog Card Hover Accent ── */
.blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blog-pink-dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.blog-card:hover::after {
    transform: scaleX(1);
}

/* ── LinkedIn-Style Blog Detail Overlay ── */
.blog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    backdrop-filter: blur(8px);
}

.blog-overlay--open {
    display: flex;
}

.blog-detail {
    background: #1a1a1a;
    max-width: 820px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 0 24px 80px rgba(139, 26, 59, 0.2);
}

.blog-detail::-webkit-scrollbar {
    width: 6px;
}

.blog-detail::-webkit-scrollbar-track {
    background: #2a2a2a;
}

.blog-detail::-webkit-scrollbar-thumb {
    background: var(--blog-pink-dark);
    border-radius: 3px;
}

.blog-detail::-webkit-scrollbar-thumb:hover {
    background: var(--blog-pink-primary);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.blog-detail__close {
    position: sticky;
    top: 14px;
    right: 18px;
    float: right;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    transition: all 0.25s ease;
    z-index: 10;
    margin: 8px 12px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(4px);
}

.blog-detail__close:hover {
    background: var(--blog-pink-primary);
    color: #fff;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 4px 16px rgba(194, 24, 91, 0.3);
}

.blog-detail__close .material-symbols-outlined {
    font-size: 1.4rem;
}

.blog-detail__image-wrap {
    width: 100%;
    height: 320px;
    background: #2a2a2a;
    margin-top: -52px;
    position: relative;
    overflow: hidden;
}

.blog-detail__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-detail__category-tag {
    position: absolute;
    bottom: 20px;
    left: 24px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(139, 26, 59, 0.88);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.blog-detail__content {
    padding: 1.5rem 2.5rem 2.5rem;
}

.blog-detail__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #eee;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.blog-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.2rem;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1.25rem;
}

.blog-detail__author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.blog-detail__author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blog-pink-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.blog-detail__divider {
    color: var(--blog-pink-dark);
}

.blog-detail__body {
    font-size: 1rem;
    line-height: 1.85;
    color: #ccc;
}

.blog-detail__body p {
    margin-bottom: 1.1rem;
}

.blog-detail__body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.8rem 0 0.8rem;
    color: var(--blog-pink-soft);
}

.blog-detail__body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.4rem 0 0.6rem;
    color: var(--blog-pink-light);
}

.blog-detail__body ul,
.blog-detail__body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.1rem;
}

.blog-detail__body ul li,
.blog-detail__body ol li {
    margin-bottom: 0.4rem;
}

.blog-detail__body ul li::marker {
    color: var(--blog-pink-light);
}

.blog-detail__body blockquote {
    border-left: 4px solid var(--blog-pink-primary);
    padding-left: 1.25rem;
    margin: 1.25rem 0;
    color: #aaa;
    font-style: italic;
    background: rgba(194, 24, 91, 0.06);
    padding: 0.8rem 1.25rem;
    border-radius: 0 8px 8px 0;
}

.blog-detail__body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.blog-detail__body a {
    color: var(--blog-pink-light);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.blog-detail__body a:hover {
    color: var(--blog-pink-soft);
}

.blog-detail__body hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blog-pink-dark), transparent);
    margin: 2rem 0;
}

/* ── No Results ── */
.blog-no-results {
    text-align: center;
    padding: 4rem 0;
    grid-column: 1 / -1;
}

.blog-no-results .material-symbols-outlined {
    font-size: 3.5rem;
    color: var(--blog-pink-dark);
    margin-bottom: 1rem;
}

.blog-no-results h3 {
    font-size: 1.3rem;
    color: var(--blog-pink-soft);
}

.blog-no-results p {
    color: #888;
}

p {
    color: white;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blogs-hero {
        padding: 60px 0 40px;
    }

    .blogs-hero__title {
        font-size: 2rem;
    }

    .blogs-hero__subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .blog-detail__content {
        padding: 1rem 1.25rem 1.5rem;
    }

    .blog-detail__image-wrap {
        height: 200px;
        margin-top: -40px;
    }

    .blog-detail__title {
        font-size: 1.4rem;
    }

    .blog-detail__close {
        top: 8px;
        right: 10px;
        width: 34px;
        height: 34px;
    }

    .blog-detail__close .material-symbols-outlined {
        font-size: 1.2rem;
    }

    .blog-detail__category-tag {
        bottom: 14px;
        left: 16px;
        font-size: 0.6rem;
        padding: 0.15rem 0.8rem;
    }

    .blog-detail__meta {
        font-size: 0.78rem;
        gap: 0.3rem 1rem;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blog-card__image-wrap {
        height: 160px;
    }

    .blog-detail {
        max-height: 95vh;
        border-radius: 12px;
    }

    .blog-detail__body {
        font-size: 0.95rem;
    }

    .blog-detail__body h2 {
        font-size: 1.25rem;
    }

    .blog-filters {
        gap: 0.4rem;
    }

    .blog-filter-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.9rem;
    }

    .blog-card__title {
        font-size: 0.8rem;
    }

    .blog-card__excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
}