@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #4a8cf0;
    --primary-hover: #3576d6;
    --text-dark: #1a1a1a;
    --text-body: #555555;
    --text-muted: #888888;
    --hero-bg: #e8eef8;
    --border: #e0e0e0;
    --white: #ffffff;
}

.blog-main,
.blog-hero {
    color: var(--text-body);
    background: var(--white);
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.blog-main a,
.blog-hero a {
    color: var(--primary);
    transition: color 0.2s ease;
}

.blog-main a:hover,
.blog-hero a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

.blog-main img,
.blog-hero img {
    max-width: 100%;
    height: auto;
    display: block;
}

.blog-hero {
    background: var(--hero-bg);
    padding: 70px 0 50px;
}

.blog-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.25;
}

.blog-hero__desc {
    font-size: 1.05rem;
    color: var(--text-body);
    max-width: 720px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.blog-breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.blog-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--text-muted);
    padding: 0 6px;
}

.blog-breadcrumb .breadcrumb-item a {
    color: var(--text-muted);
}

.blog-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary);
}

.blog-breadcrumb .breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 500;
}

.blog-main {
    background: var(--white);
}

.blog-section {
    padding: 60px 0 80px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.blog-card__image {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 16px;
}

.blog-card {
    height: 100%;
}

.blog-card__image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.35s ease;
}

.blog-card__image:hover img {
    transform: scale(1.04);
}

.blog-card__cats {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.blog-card__cats a {
    color: var(--primary);
    font-weight: 500;
}

.blog-card__cats a:hover {
    text-decoration: underline;
}

.blog-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.blog-card__title a {
    color: var(--text-dark);
}

.blog-card__title a:hover {
    color: var(--primary);
}

.blog-card__meta,
.blog-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-card__meta .meta-sep,
.blog-detail__meta .meta-sep {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.6;
}

.blog-card__excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.65;
}

.blog-pagination {
    margin-top: 10px;
    margin-bottom: 40px;
}

.blog-pagination .pagination {
    margin: 0;
}

.blog-pagination .page-link {
    width: auto;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    line-height: 1.2;
    margin: 0 4px;
    border-radius: 6px !important;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--white);
    padding: 0;
    min-width: 40px;
    padding: 0 10px;
}

.blog-pagination .page-item:last-child .page-link {
    width: auto;
    padding: 0 14px;
}

.blog-pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.blog-pagination .page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.blog-pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    background: #f5f5f5;
    border-color: var(--border);
    pointer-events: none;
    opacity: 0.6;
}

.blog-home-page .blog-hero {
    padding: 72px 0 52px;
}

.blog-home-page .blog-hero__title {
    font-size: 40px;
    max-width: 900px;
    margin-bottom: 18px;
}

.blog-home-page .blog-hero__desc {
    max-width: 860px;
}

.blog-home-page .sidebar-widget:first-child {
    margin-bottom: 30px;
}

.blog-sidebar {
    padding-left: 10px;
}

.sidebar-widget {
    margin-bottom: 40px;
}

.sidebar-widget__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 18px;
}

.sidebar-search {
    position: relative;
}

.sidebar-search .form-control {
    height: 48px;
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 10px 44px 10px 16px;
    font-size: 0.95rem;
    color: var(--text-body);
    box-shadow: none;
}

.sidebar-search .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(74, 140, 240, 0.15);
}

.sidebar-search .form-control::placeholder {
    color: var(--text-muted);
}

.sidebar-search__btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
}

.sidebar-search__btn:hover {
    color: var(--primary);
}

.recent-posts__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.recent-posts__item:last-child {
    margin-bottom: 0;
}

.recent-posts__thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-posts__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.recent-posts__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.45;
    padding-top: 4px;
}

.recent-posts__link:hover {
    color: var(--primary);
}

.blog-sidebar .recent-posts__link,
.blog-sidebar .recent-posts__link:visited {
    color: #111111 !important;
}

.blog-sidebar .recent-posts__link:hover,
.blog-sidebar .recent-posts__link:focus {
    color: #111111 !important;
    text-decoration: none;
}

.sidebar-cats li {
    margin-bottom: 10px;
}

.sidebar-cats li:last-child {
    margin-bottom: 0;
}

.sidebar-cats a,
.sidebar-cats span {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 400;
}

.sidebar-cats a:hover,
.sidebar-cats a.active {
    color: var(--primary);
    text-decoration: underline;
}

.blog-detail-section {
    padding-top: 50px;
}

.blog-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 28px;
}

.blog-detail__back:hover {
    color: var(--primary);
}

.blog-detail__cats {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.blog-detail__cats a {
    color: var(--primary);
    font-weight: 500;
}

.blog-detail__cats a:hover {
    text-decoration: underline;
}

.blog-detail__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 14px;
}

.blog-detail__content-wrap {
    position: relative;
}

.blog-detail__image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.blog-detail__image img {
    width: 100%;
    border-radius: 12px;
}

.single-post-content p,
.single-post-content li {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 20px;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    color: var(--text-dark);
    margin-top: 22px;
    margin-bottom: 10px;
}

.single-author-box {
    margin-top: 22px;
    padding: 18px;
    border-radius: 10px;
    background: #f7fbff;
    border: 1px solid rgba(17, 16, 19, 0.08);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.single-author-avatar-wrap {
    flex: 0 0 62px;
}

.single-author-avatar,
.single-author-avatar-fallback {
    width: 62px;
    height: 62px;
    border-radius: 50%;
}

.single-author-avatar {
    object-fit: cover;
}

.single-author-avatar-fallback {
    background: var(--text-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.single-author-content h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.author-social-row {
    display: flex;
    gap: 10px;
}

.author-social-row a {
    color: var(--text-dark);
}

.author-social-row a:hover {
    color: var(--primary);
}

.single-tags {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.single-tags a {
    background: rgba(144, 145, 156, 0.15);
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 13px;
}

.faq-block .accordion-item {
    border: 1px solid var(--border);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-block .accordion-button {
    font-weight: 600;
}

.related-posts {
    margin-top: 34px !important;
}

.related-posts h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.author-page-hero {
    border: 1px solid #edf0e8;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.author-page-hero .author-page-avatar-wrap {
    flex: 0 0 64px;
}

.author-page-avatar,
.author-page-avatar-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.author-page-avatar {
    object-fit: cover;
}

.author-page-avatar-fallback {
    background: var(--text-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.author-label {
    display: inline-block;
    color: #6f7786;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.author-page-content h2 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.author-page-content p {
    margin-bottom: 12px;
    color: #596076;
}

.author-site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #20295a;
    background: #20295a;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
}

.author-posts-title {
    margin: 28px 0 16px;
    font-size: 30px;
    line-height: 1.2;
    color: var(--text-dark);
}

@media (max-width: 991.98px) {
    .blog-hero {
        padding: 50px 0 40px;
    }

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

    .blog-home-page .blog-hero__title {
        font-size: 2rem;
    }

    .blog-section {
        padding: 40px 0 60px;
    }

    .blog-sidebar {
        padding-left: 0;
        margin-top: 20px;
    }

    .blog-pagination {
        margin-bottom: 20px;
    }
}

@media (max-width: 767.98px) {
    .blog-hero {
        padding: 40px 0 30px;
    }

    .blog-hero__title {
        font-size: 1.65rem;
    }

    .blog-home-page .blog-hero__title {
        font-size: 1.65rem;
    }

    .blog-hero__desc {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

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

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

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

    .author-page-hero,
    .single-author-box {
        flex-direction: column;
    }

    .author-posts-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .blog-hero__title {
        font-size: 1.45rem;
    }

    .blog-home-page .blog-hero__title {
        font-size: 1.45rem;
    }

    .blog-pagination .page-link {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 0.85rem;
    }

    .recent-posts__thumb {
        width: 60px;
        height: 60px;
    }
}
