.blog-section {
    padding-bottom: 70px;
}

.blog-section h4, .blog-post-section h4 {
    padding-left: 0;
}

.blog-section .title-row {
    margin-bottom: 16px;
}

/* Search */
.blog-search-form {
    flex-shrink: 0;
}

.blog-search-wrap {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 4px 8px;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.blog-search-label {
    display: flex;
    align-items: center;
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
}

.blog-search-input {
    width: 100%;
    border: none;
    background: none;
    outline: none;
    padding: 0;
}

.blog-search-btn {
    cursor: pointer;
    white-space: nowrap;
    outline: none;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.blog-search-btn img {
    width: 31px;
}

/* --- THE HOVER MAGIC --- */
.blog-search-wrap:hover .blog-search-label,
.blog-search-wrap:focus-within .blog-search-label {
    width: 180px;
    padding-right: 8px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 43px;
}

.blog-card {
    border-radius: 20px;
    overflow: hidden;
    background: #F1F3F7;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}

.blog-card:hover {
    transform: translateY(-2px);
}

.blog-card-img-link {
    display: block;
    text-decoration: none;
}

.blog-card-img {
    height: 220px;
    background: #D9D9D9 center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-img-fallback {
    color: #bdbdbd;
}

.blog-card-img-fallback svg {
    width: 48px;
    height: 48px;
}

.blog-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.blog-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 38px;
}

.blog-card-date {
    font-size: 16px;
    color: #80868b;
    font-family: "SF Pro Light", serif;
}

.blog-card-title {
    font-size: 1.65rem;
    font-weight: 700;
    margin-top: 11px;
}

.blog-card-title a {
    color: #202124;
    text-decoration: none;
    font-family: 'Syne Medium', serif;
}

.blog-card-title a:hover {
    color: var(--accent, #8b7cf7);
}

.blog-card-desc {
    font-size: 1.15rem;
    color: #5f6368;
    flex: 1;
    margin: 0;
    white-space: pre-wrap;;
    font-family: "SF Pro Light", serif;
}

.blog-card-socials {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.blog-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    color: #5f6368;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: all .15s;
}

.blog-social-link:hover {
    background: var(--accent, #4670ED);
    color: #fff;
    border-color: transparent;
}

.blog-read-more {
    font-size: 1rem;
    font-weight: 300;
    color: var(--accent, #4670ED);
    background: #E5E8EE;
    text-decoration: none;
    margin-top: auto;
    margin-left: auto;
    padding: 7px 10px;
    border-radius: 25px;
    font-family: "SF Pro Light", serif;
}

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 121px;
    flex-wrap: wrap;
}

.blog-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    padding: 8px;
    border-radius: 50%;
    font-size: 28px;
    color: #202124;
    text-decoration: none;
    cursor: pointer;
    transition: all .15s;
    font-family: "DM Sans", serif;
}

.blog-page-num-btn {
    background: #EFF2F8;
}

.blog-page-btn svg {
    height: 25px;
}

.blog-page-btn:hover {
    background: #f1f3f4;
}

.blog-page-active {
    background: var(--accent, #4670ED) !important;
    border-color: var(--accent, #4670ED) !important;
    color: #fff !important;
}

.blog-page-disabled {
    color: #bdbdbd;
    cursor: default;
    pointer-events: none;
}

/* Empty */
.blog-empty {
    text-align: center;
    padding: 64px 0;
    color: #80868b;
}

.blog-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.blog-empty p {
    font-size: 15px;
    margin: 0;
}


/* POST section*/
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 23px;
    color: #5f6368;
    text-decoration: none;
    font-size: 19px;
    margin-bottom: 22px;
    padding-left: 16px;
    padding-top: 6px;
    transition: color .15s;
    font-family: 'Syne Medium', serif;
}

.back-link:hover {
    color: var(--accent, #8b7cf7);
}

.back-link svg {
    width: 15px;
}

.blog-post-section h4 {
    padding-bottom: 10px;
}

.post-img-wrap {
    margin-bottom: 28px;
    border-radius: 12px;
    overflow: hidden;
}

.post-img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.post-meta {
    margin-bottom: 12px;
}

.post-date {
    font-size: 13px;
    color: #80868b;
}

.post-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.25;
    margin-bottom: 20px;
}

.post-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.post-social-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid #e0e0e0;
    color: #5f6368;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}

.post-social-link:hover {
    background: var(--accent, #8b7cf7);
    color: #fff;
    border-color: transparent;
}

.blog-post-inner {
    padding: 34px 132px 108px;
}

.post-body {
    font-size: 22px;
    line-height: 1.8;
    color: #202124;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'DM Sans-Light', serif;
}

.share-section {
    margin-top: 48px;
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 13px;
    font-weight: 700;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

.share-buttons {
    display: flex;
    gap: 23px;
    flex-wrap: wrap;
}

.blog-post-date {
    background: #EFF2F8;
    border-radius: 18px;
    padding: 8px 10px;
}

.share-btn {
    border-radius: 50%;
    display: flex;
    background: #EFF2F8;
    justify-content: center;
    align-items: center;
    max-width: 49px;
    max-height: 49px;
    width: 4.95vw;
    height: 4.95vw;
    position: relative;
    transition: color 0.7s ease;
}

.share-btn::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #4670ED;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: capitalize;
}

.share-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.share-btn:hover svg path {
    fill: #4670ED !important;
}

.share-btn:hover {
    color: #4670ED;
}

.share-btn svg {
    max-width: 23px;
    max-height: 23px;
    width: auto;
    height: 1.7vw;
}

@media (max-width: 991px) {
    .blog-post-section {
        margin-top: 160px;
    }

    .blog-post-inner {
        padding: 34px 32px 108px;
    }

    .blog-search-label, .blog-search-label {
        width: 180px;
    }

    .post-body {
        font-size: 32px;
    }

    .back-link, .blog-search-input {
        font-size: 26px;
    }

    .blog-card-title {
        font-size: 1.95rem;
    }

    .blog-card-desc {
        font-size: 1.45rem;
    }

    .blog-card-date {
        font-size: 20px;
    }

    .blog-read-more {
        font-size: 1.5rem;
    }
}