/* =============================================
                   BLOG LIST PAGE — Custom Styles
                   ============================================= */

/* ---- Hero ---- */
.blog-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    background: #0f0f23;
    overflow: hidden;
}

.blog-hero__pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(232, 164, 0, .14) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(232, 164, 0, .08) 0%, transparent 40%);
}

.blog-hero__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 28px 28px;
}

.blog-hero__content {
    position: relative;
    z-index: 2;
    padding: 100px 0 80px;
}

.blog-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 20px;
}

.blog-hero__breadcrumb a {
    color: #e8a400;
    text-decoration: none;
    transition: color .2s;
}

.blog-hero__breadcrumb a:hover {
    color: #fff;
}

.blog-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 164, 0, .12);
    border: 1px solid rgba(232, 164, 0, .35);
    color: #e8a400;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.blog-hero__title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 16px;
}

.blog-hero__title span {
    color: #e8a400;
}

.blog-hero__desc {
    font-size: 16px;
    color: rgba(255, 255, 255, .6);
    line-height: 1.8;
    max-width: 520px;
    margin: 0;
}

/* ---- Toolbar ---- */
.blog-toolbar {
    background: #fff;
    border-bottom: 1px solid #eef0f5;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.blog-toolbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.blog-toolbar__left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-toolbar__label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

.blog-toolbar__cat-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-toolbar__cat-link {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid #e5e7eb;
    color: #6b7280;
    text-decoration: none;
    transition: all .25s ease;
    white-space: nowrap;
}

.blog-toolbar__cat-link:hover,
.blog-toolbar__cat-link.active {
    background: #e8a400;
    border-color: #e8a400;
    color: #fff;
}

.blog-toolbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-toolbar__search {
    display: flex;
    align-items: center;
    background: #f8f9fc;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .25s ease;
}

.blog-toolbar__search:focus-within {
    border-color: #e8a400;
}

.blog-toolbar__search input {
    border: none;
    background: transparent;
    padding: 9px 14px;
    font-size: 14px;
    color: #1a1a2e;
    outline: none;
    width: 200px;
    font-family: inherit;
}

.blog-toolbar__search input::placeholder {
    color: #9ca3af;
}

.blog-toolbar__search button {
    border: none;
    background: transparent;
    padding: 9px 14px;
    color: #9ca3af;
    cursor: pointer;
    transition: color .2s;
}

.blog-toolbar__search button:hover {
    color: #e8a400;
}

.blog-toolbar__sort {
    padding: 9px 30px 9px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    background: #f8f9fc;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    transition: border-color .25s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.blog-toolbar__sort:focus {
    border-color: #e8a400;
}

/* ---- Main Section ---- */
.blog-main {
    padding: 60px 0 80px;
    background: #f8f9fc;
}

/* ---- Blog Card ---- */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eef0f5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
    transition: all .35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    box-shadow: 0 20px 55px rgba(0, 0, 0, .11);
    transform: translateY(-6px);
    border-color: rgba(232, 164, 0, .25);
}

.blog-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.blog-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.blog-card:hover .blog-card__img-wrap img {
    transform: scale(1.06);
}

.blog-card__cat {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #e8a400;
    color: #fff;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s;
}

.blog-card__cat:hover {
    background: #d49500;
    color: #fff;
}

.blog-card__date {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 2;
    background: rgba(15, 15, 35, .75);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card__date i {
    color: #e8a400;
    font-size: 11px;
}

.blog-card__body {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.blog-card__meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card__meta i {
    color: #e8a400;
    font-size: 11px;
}

.blog-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__title a {
    text-decoration: none;
    color: inherit;
    transition: color .2s;
}

.blog-card__title a:hover {
    color: #e8a400;
}

.blog-card__excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.75;
    margin-bottom: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #f3f4f6;
}

.blog-card__comments {
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card__comments i {
    color: #e8a400;
}

.blog-card__read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #e8a400;
    text-decoration: none;
    transition: gap .25s ease;
}

.blog-card__read:hover {
    gap: 10px;
    color: #d49500;
}

.blog-card--featured .blog-card__img-wrap {
    aspect-ratio: 16/7;
}

.blog-card--featured .blog-card__title {
    font-size: 22px;
}

/* ---- Sidebar ---- */
.blog-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef0f5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
    overflow: hidden;
    margin-bottom: 24px;
}

.sidebar-widget__header {
    padding: 22px 24px 0;
    margin-bottom: 18px;
}

.sidebar-widget__title {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
    position: relative;
    padding-bottom: 14px;
}

.sidebar-widget__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, #e8a400, #f5c842);
    border-radius: 2px;
}

.sidebar-widget__body {
    padding: 0 24px 24px;
}

.sw-search {
    display: flex;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .25s ease;
}

.sw-search:focus-within {
    border-color: #e8a400;
    box-shadow: 0 0 0 3px rgba(232, 164, 0, .1);
}

.sw-search input {
    flex: 1;
    border: none;
    background: #fafafa;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    color: #1a1a2e;
}

.sw-search input::placeholder {
    color: #9ca3af;
}

.sw-search button {
    border: none;
    background: #e8a400;
    padding: 0 18px;
    color: #fff;
    cursor: pointer;
    transition: background .2s;
    font-size: 15px;
}

.sw-search button:hover {
    background: #d49500;
}

.recent-post {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.recent-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post:first-child {
    padding-top: 0;
}

.recent-post__img {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.recent-post__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.recent-post:hover .recent-post__img img {
    transform: scale(1.08);
}

.recent-post__date {
    font-size: 11px;
    color: #e8a400;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.recent-post__title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.45;
}

.recent-post__title a {
    text-decoration: none;
    color: inherit;
    transition: color .2s;
}

.recent-post__title a:hover {
    color: #e8a400;
}

.sw-cat-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sw-cat-list li {
    border-bottom: 1px solid #f3f4f6;
}

.sw-cat-list li:last-child {
    border-bottom: none;
}

.sw-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: color .2s;
}

.sw-cat-list a:hover {
    color: #e8a400;
}

.sw-cat-list a::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    color: #e8a400;
}

.sw-cat-list li.active a {
    color: #e8a400;
}

.sw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sw-tag {
    padding: 6px 14px;
    border-radius: 50px;
    border: 1.5px solid #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    transition: all .25s ease;
}

.sw-tag:hover {
    background: #e8a400;
    border-color: #e8a400;
    color: #fff;
}

/* ---- Pagination ---- */
.blog-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.blog-pagination ul {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.blog-pagination li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    color: #555;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s ease;
}

.blog-pagination li.active a,
.blog-pagination li a:hover {
    background: #e8a400;
    border-color: #e8a400;
    color: #fff;
}

/* ---- Empty State ---- */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed #e5e7eb;
}

.blog-empty__icon {
    font-size: 60px;
    color: #e5e7eb;
    margin-bottom: 20px;
}

.blog-empty h4 {
    font-size: 20px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
}

.blog-empty p {
    color: #9ca3af;
    margin-bottom: 24px;
    font-size: 15px;
}

/* ---- Filter chip ---- */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(232, 164, 0, .1);
    border: 1px solid rgba(232, 164, 0, .35);
    color: #e8a400;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    text-decoration: none;
    transition: all .2s;
}

.filter-chip:hover {
    background: rgba(232, 164, 0, .2);
    color: #d49500;
}

@media (max-width: 991px) {
    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }

    .blog-toolbar__search input {
        width: 140px;
    }
}

@media (max-width: 767px) {
    .blog-hero__content {
        padding: 80px 0 60px;
    }

    .blog-toolbar__left {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .blog-toolbar__right {
        width: 100%;
    }

    .blog-toolbar__search {
        flex: 1;
    }

    .blog-toolbar__search input {
        width: 100%;
    }

    .blog-card--featured .blog-card__title {
        font-size: 18px;
    }
}