/* ============================================================
   BLOGS PAGE — blogs.css
   Scoped under bl-* namespace to avoid global conflicts
   ============================================================ */

/* ===== HERO ===== */
.bl-hero {
    background: linear-gradient(135deg, #f0fdf9 0%, #e6f7f5 50%, #f8fafc 100%);
    padding: 64px 0 80px;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.bl-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.bl-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.2);
    color: #0d9488;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    width: fit-content;
}

.bl-hero__title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
}

.bl-title-accent { color: #0d9488; }

.bl-hero__desc {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 480px;
}

/* Search Bar */
.bl-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 6px 6px 6px 18px;
    max-width: 440px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bl-search-form:focus-within {
    border-color: #0d9488;
    box-shadow: 0 4px 20px rgba(13,148,136,0.12);
}
.bl-search-icon { color: #94a3b8; flex-shrink: 0; }
.bl-search-form input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #0f172a;
    background: transparent;
}
.bl-search-form input::placeholder { color: #94a3b8; }
.bl-search-form button {
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.bl-search-form button:hover { background: #0f766e; }

/* Hero Image */
.bl-hero__image-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15,23,42,0.12);
}
.bl-hero__image-wrap img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}
.bl-hero__doodle {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 10px 16px;
    font-family: var(--font-doodle, 'Caveat', cursive);
    font-size: 15px;
    line-height: 1.4;
    color: #0f766e;
    text-align: center;
    transform: rotate(2.5deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    animation: floatGentle 4.5s ease-in-out infinite;
}
.bl-hero__stack {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bl-hero__stack span {
    display: block;
    background: rgba(13, 148, 136, 0.88);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 7px 18px;
    border-radius: 6px;
    backdrop-filter: blur(6px);
    letter-spacing: 0.02em;
}

/* ===== FILTER STRIP ===== */
.bl-filter-strip {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 50;
}
.bl-filter-strip__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 0;
}
.bl-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.bl-filter-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.bl-filter-pill.active {
    background: #0d9488;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13,148,136,0.25);
}
.bl-pill-count {
    font-size: 11px;
    opacity: 0.75;
}

/* ===== MAIN CONTENT ===== */
.bl-main {
    background: #f8fafc;
    padding: 52px 0 80px;
}
.bl-main__inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* Filter indicator */
.bl-filter-indicator {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
    color: #475569;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.bl-filter-indicator a {
    color: #0d9488;
    font-weight: 700;
    text-decoration: none;
    margin-left: auto;
}

/* ===== BLOG GRID ===== */
.bl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

/* ===== BLOG CARD ===== */
.bl-card {
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.bl-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(13,148,136,0.1);
    border-color: rgba(13,148,136,0.25);
}

/* Thumb */
.bl-card__thumb {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #e2e8f0;
}
.bl-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.bl-card:hover .bl-card__thumb img { transform: scale(1.05); }

.bl-card__cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(13,148,136,0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(4px);
}
.bl-card__gallery-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15,23,42,0.75);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}

/* Body */
.bl-card__body {
    padding: 20px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.bl-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.bl-card__meta-date,
.bl-card__meta-read,
.bl-card__meta-comments {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.bl-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}
.bl-card__title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    margin: 0 0 10px;
}
.bl-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.bl-card__title a:hover { color: #0d9488; }
.bl-card__excerpt {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.bl-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}
.bl-card__author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.bl-card__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ccfbf1;
    color: #0f766e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}
.bl-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0d9488;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease;
}
.bl-read-more:hover { gap: 9px; color: #0f766e; }

/* ===== EMPTY STATE ===== */
.bl-empty-state {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 60px;
}
.bl-empty-state__icon { font-size: 48px; margin-bottom: 12px; }
.bl-empty-state h3 { color: #0f172a; margin-bottom: 8px; }
.bl-empty-state p { color: #64748b; max-width: 400px; margin: 0 auto 20px; font-size: 14px; }

/* ===== PAGINATION ===== */
.bl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 60px;
}
.bl-page-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s;
}
.bl-page-btn:hover {
    border-color: #0d9488;
    color: #0d9488;
}
.bl-page-btn.active {
    background: #0d9488;
    color: #fff;
    border-color: #0d9488;
    box-shadow: 0 4px 12px rgba(13,148,136,0.25);
}
.bl-page-btn--nav {
    font-size: 16px;
    color: #94a3b8;
}

/* ===== SIDEBAR ===== */
.bl-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 80px;
}
.bl-sidebar__widget {
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    padding: 24px;
}
.bl-sidebar__widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.bl-sidebar__widget-header h4 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}
.bl-sidebar__widget-header h4 svg { color: #0d9488; }
.bl-view-all {
    font-size: 13px;
    font-weight: 600;
    color: #0d9488;
    text-decoration: none;
    white-space: nowrap;
}
.bl-view-all:hover { color: #0f766e; }

/* Popular Posts */
.bl-popular-list { display: flex; flex-direction: column; gap: 16px; }
.bl-popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}
.bl-popular-item:hover { transform: translateX(3px); }
.bl-popular-num {
    width: 22px;
    font-size: 15px;
    font-weight: 800;
    color: #0d9488;
    flex-shrink: 0;
    line-height: 1;
}
.bl-popular-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}
.bl-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bl-popular-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.bl-popular-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.bl-popular-item:hover .bl-popular-title { color: #0d9488; }
.bl-popular-date {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 500;
}

/* Tags */
.bl-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.bl-tag {
    display: inline-block;
    padding: 7px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}
.bl-tag:hover {
    background: #f0fdfa;
    border-color: #99f6e4;
    color: #0d9488;
}

/* ===== NEWSLETTER ===== */
.bl-newsletter {
    background: #f8fafc;
    padding: 0 0 60px;
}
.bl-newsletter__inner {
    background: #0f766e;
    background-image:
        radial-gradient(ellipse 60% 80% at 90% 20%, rgba(45,212,191,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 10% 80%, rgba(13,148,136,0.3) 0%, transparent 60%);
    border-radius: 20px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    box-shadow: 0 16px 40px rgba(13,148,136,0.22);
}
.bl-newsletter__left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    min-width: 260px;
}
.bl-newsletter__icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}
.bl-newsletter__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #99f6e4;
    margin-bottom: 6px;
}
.bl-newsletter__title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.25;
}
.bl-newsletter__desc {
    font-size: 14px;
    color: #ccfbf1;
    margin: 0;
    line-height: 1.5;
}
.bl-newsletter__form {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    overflow: hidden;
    min-width: 320px;
    flex-shrink: 0;
}
.bl-newsletter__form input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 14px 18px;
    font-size: 14px;
    color: #ffffff;
    min-width: 0;
}
.bl-newsletter__form input::placeholder { color: rgba(255,255,255,0.55); }
.bl-newsletter__form button {
    background: #0d9488;
    color: #fff;
    border: none;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.bl-newsletter__form button:hover { background: #134e4a; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .bl-main__inner {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 900px) {
    .bl-hero__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .bl-hero__image-wrap { order: -1; }
    .bl-main__inner {
        grid-template-columns: 1fr;
    }
    .bl-sidebar { position: static; }
    .bl-grid { grid-template-columns: 1fr; }
    .bl-newsletter__inner { flex-direction: column; gap: 24px; }
    .bl-newsletter__form { min-width: 100%; width: 100%; }
}

@media (max-width: 600px) {
    .bl-hero { padding: 44px 0 60px; }
    .bl-hero__title { font-size: 1.75rem; }
    .bl-newsletter__inner { padding: 28px 24px; }
    .bl-newsletter__left { flex-direction: column; }
}
