/* ═══════════════════════════════════════════════════════ */
/* BLOGS PAGE                                             */
/* ═══════════════════════════════════════════════════════ */

/* ─── Hero ─── */
.blogs-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 80px 0 60px;
    overflow: hidden;
}

.blogs-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.blogs-hero__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(.45);
    transform: scale(1.05);
    animation: kenBurns 20s ease-in-out infinite alternate;
}
.blogs-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,27,42,.55) 0%, rgba(13,27,42,.85) 100%);
}

.blogs-hero .container {
    position: relative;
    z-index: 2;
}

.blogs-hero__inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.blogs-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255,255,255,.7);
    margin-bottom: 20px;
    padding: 6px 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 100px;
    backdrop-filter: blur(10px);
}
.blogs-hero__breadcrumb a {
    color: rgba(255,255,255,.9);
    text-decoration: none;
    transition: color .2s;
}
.blogs-hero__breadcrumb a:hover { color: #FFD166; }
.blogs-hero__breadcrumb i { font-size: 9px; opacity: .6; }
.blogs-hero__breadcrumb span { color: #FFD166; font-weight: 600; }

.blogs-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #E07A3F, #C25A2A);
    color: #fff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(224,122,63,.4);
}

.blogs-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4.5vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 14px;
    letter-spacing: -.02em;
    text-shadow: 0 4px 20px rgba(0,0,0,.35);
}

.blogs-hero__sub {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,.85);
    max-width: 560px;
    margin: 0 auto 28px;
}

/* Stats */
.blogs-hero__stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.blogs-hero__stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    font-size: 12px;
}
.blogs-hero__stat i { color: #FFD166; font-size: 12px; }
.blogs-hero__stat strong {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}
.blogs-hero__stat > span:last-child {
    color: rgba(255,255,255,.7);
    font-size: 11px;
}

/* Search */
.blogs-search {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}
.blogs-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.6);
    font-size: 14px;
    pointer-events: none;
}
.blogs-search input {
    width: 100%;
    padding: 14px 46px 14px 46px;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.2);
    border-radius: 100px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: all .25s;
    backdrop-filter: blur(12px);
    outline: none;
}
.blogs-search input::placeholder {
    color: rgba(255,255,255,.5);
}
.blogs-search input:focus {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,209,102,.5);
    box-shadow: 0 0 0 4px rgba(255,209,102,.15);
}

.blogs-search__clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: background .2s;
}
.blogs-search__clear:hover { background: rgba(255,255,255,.25); }
.blogs-search__clear[hidden] { display: none; }

/* ─── Blogs Section ─── */
.blogs {
    padding: 56px 0 80px;
    background: linear-gradient(180deg, #FAF6F0 0%, #FFFFFF 100%);
    min-height: 400px;
}

/* Toolbar */
.blogs__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.blogs__cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1.5px solid rgba(26,35,50,.08);
    border-radius: 100px;
    color: #4B5563;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .25s;
    white-space: nowrap;
}
.cat-btn i { font-size: 11px; }
.cat-btn:hover {
    border-color: rgba(224,122,63,.4);
    color: #E07A3F;
    transform: translateY(-1px);
}
.cat-btn.active {
    background: linear-gradient(135deg, #E07A3F, #C25A2A);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(224,122,63,.3);
}

.blogs__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid rgba(26,35,50,.08);
    border-radius: 10px;
    padding: 4px 14px;
    flex-shrink: 0;
}
.blogs__sort i { color: #E07A3F; font-size: 13px; }
.blogs__sort select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #1A2332;
    cursor: pointer;
    padding: 8px 4px;
    font-family: inherit;
}

/* Grid */
.blogs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}

/* Empty */
.blogs__empty {
    text-align: center;
    padding: 80px 20px;
    color: #6B7280;
}
.blogs__empty i {
    font-size: 48px;
    color: rgba(224,122,63,.3);
    display: block;
    margin-bottom: 16px;
}
.blogs__empty h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #1A2332;
    margin: 0 0 8px;
}
.blogs__empty p {
    font-size: 14px;
    margin: 0;
}

/* Pagination */
.blogs__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
}
.blogs__pagination[hidden] { display: none; }

.blogs__page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1.5px solid rgba(26,35,50,.1);
    border-radius: 100px;
    color: #1A2332;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .25s;
}
.blogs__page-btn:hover:not(:disabled) {
    background: #E07A3F;
    color: #fff;
    border-color: #E07A3F;
    transform: translateY(-2px);
}
.blogs__page-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.blogs__page-info {
    font-size: 13px;
    font-weight: 700;
    color: #1A2332;
    min-width: 60px;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

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

@media (max-width: 640px) {
    .blogs-hero { min-height: 380px; padding: 60px 0 50px; }
    .blogs-hero__title { font-size: 24px; }
    .blogs-hero__sub { font-size: 13.5px; }
    .blogs-hero__stats { gap: 10px; margin-bottom: 24px; }
    .blogs-hero__stat { padding: 6px 12px; font-size: 11px; }
    .blogs-hero__stat strong { font-size: 14px; }

    .blogs__toolbar { gap: 12px; }
    .blogs__cats { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; scrollbar-width: none; }
    .blogs__cats::-webkit-scrollbar { display: none; }

    .blogs { padding: 40px 0 60px; }
    .blogs__grid { gap: 14px; margin-bottom: 30px; }

    .blogs__pagination { gap: 10px; }
    .blogs__page-btn { padding: 9px 14px; font-size: 12px; }
    .blogs__page-btn span { display: none; }
}

/* Views badge in card */
.article-card__views {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 9.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.article-card__views i { font-size: 9px; color: #FFD166; }