/* Blog Style 2 — responsive tile / list layout */

/* Blog header: transparent at top, blurred on scroll; dark nav + black logo always */
body.rework-blog-archive:not(.careerfy-sticky-header) .careerfy-header-two {
    position: absolute;
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 0;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

body.rework-blog-archive:not(.careerfy-sticky-header) .header-row {
    background-color: transparent;
}

body.rework-blog-archive .careerfy-logo .logo--light {
    display: none !important;
}

body.rework-blog-archive .careerfy-logo .logo--dark {
    display: block !important;
}

body.rework-blog-archive .careerfy-navigation .level-1 > li > a,
body.rework-blog-archive #menu-general.level-1 > li > a {
    color: var(--cfy-dark) !important;
}

body.rework-blog-archive .careerfy-navigation .level-1 > li > a:hover,
body.rework-blog-archive #menu-general.level-1 > li > a:hover,
body.rework-blog-archive .careerfy-navigation .level-1 > li.current-menu-item > a,
body.rework-blog-archive #menu-general.level-1 > li.current-menu-item > a {
    color: var(--cfy-primary) !important;
}

body.rework-blog-archive.careerfy-sticky-header .careerfy-header-two {
    position: fixed;
    background-color: hsla(0, 0%, 100%, 0.72) !important;
    -webkit-backdrop-filter: saturate(180%) blur(12px) !important;
    backdrop-filter: saturate(180%) blur(12px) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}

body.rework-blog-archive .careerfy-main-content {
    padding-top: 120px;
}

body.admin-bar.rework-blog-archive .careerfy-main-content {
    padding-top: 152px;
}

body.rework-blog-archive .careerfy-main-section > .container {
    width: 100%;
    max-width: min(1680px, calc(100vw - 32px));
    padding-left: 16px;
    padding-right: 16px;
}

.careerfy-news-grid.rework-news-grid,
.careerfy-posts-list.rework-posts-list {
    float: none;
    width: 100%;
    margin-bottom: 48px;
}

.careerfy-news-grid.rework-news-grid ul.row,
.careerfy-posts-list.rework-posts-list ul.row {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    grid-template-columns: 1fr;
    width: 100%;
}

/* Bootstrap .row clearfix breaks CSS grid — pseudo-elements steal the first cell */
.careerfy-news-grid.rework-news-grid ul.row::before,
.careerfy-news-grid.rework-news-grid ul.row::after,
.careerfy-posts-list.rework-posts-list ul.row::before,
.careerfy-posts-list.rework-posts-list ul.row::after {
    display: none !important;
    content: none !important;
}

.careerfy-news-grid.rework-news-grid ul.row > li.rework-article-card,
.careerfy-posts-list.rework-posts-list ul.row > li.rework-article-card {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
    display: block;
    min-width: 0;
}

.careerfy-posts-list.rework-posts-list > ul.row > li.rework-article-card {
    display: block !important;
    width: 100% !important;
}

.rework-blog-categories {
    margin-top: 8px;
    margin-bottom: 28px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 16px;
}

.rework-blog-categories__title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2430;
}

.rework-blog-categories__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rework-blog-categories__link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid #dfe3ea;
    border-radius: 999px;
    background: #f7f8fa;
    color: #4b5568;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rework-blog-categories__link:hover,
.rework-blog-categories__link.is-active {
    border-color: #0a65fc;
    background: #edf3ff;
    color: #0a65fc;
}

.rework-article-card__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    height: 100%;
    padding: 16px;
    background: #fff;
    border: 1px solid #eceef2;
    border-radius: 16px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.rework-article-card__inner:hover {
    border-color: #d8deea;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.rework-article-card__media {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    overflow: hidden;
    border-radius: 12px;
}

.rework-article-card__media img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.rework-article-card__read-time {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.rework-article-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.rework-article-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 10px;
}

.rework-article-card__date {
    color: #7a8499;
    font-size: 13px;
    line-height: 1.3;
}

.rework-article-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rework-article-card__categories a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f2f5fb;
    color: #0a65fc;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.rework-article-card__categories a:hover {
    background: #e4ecff;
}

.rework-article-card__title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.rework-article-card__title a {
    color: #1f2430;
    text-decoration: none;
}

.rework-article-card__title a:hover {
    color: #0a65fc;
}

.rework-article-card__excerpt {
    display: -webkit-box;
    margin: 0 0 16px;
    color: #5f677a;
    font-size: 15px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.rework-article-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #eef1f6;
}

.rework-article-card__author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}

.rework-article-card__author img,
.rework-article-card__avatar {
    flex: 0 0 auto;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover;
}

.rework-article-card__author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rework-article-card__author-info strong {
    color: #1f2430;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.rework-article-card__author-info small {
    color: #7a8499;
    font-size: 12px;
    line-height: 1.3;
}

.rework-article-card__stats {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #7a8499;
    font-size: 13px;
    white-space: nowrap;
}

.rework-article-card__stats li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rework-article-card__stats a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.rework-article-card__stats a:hover {
    color: #0a65fc;
}

/* Pagination */
body.rework-blog-archive .careerfy-pagination-blog,
.careerfy-news-grid.rework-news-grid + .careerfy-pagination-blog {
    clear: both;
    float: none;
    width: 100%;
    margin-top: 0;
    margin-bottom: 40px;
    padding-top: 16px;
}

body.rework-blog-archive .careerfy-pagination-blog ul,
.careerfy-main-section .careerfy-pagination-blog ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

body.rework-blog-archive .careerfy-pagination-blog ul li a,
body.rework-blog-archive .careerfy-pagination-blog ul li.active a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background-color: #eef1f6;
    color: #4b5568;
    font-weight: 600;
}

body.rework-blog-archive .careerfy-pagination-blog ul li.active a,
body.rework-blog-archive .careerfy-pagination-blog ul li:hover a {
    background-color: #0a65fc;
    color: #fff;
}

body.rework-blog-archive .careerfy-pagination-blog ul li span.page-numbers.dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 40px;
    min-width: auto;
    padding: 0 6px;
    border-radius: 0;
    background: transparent !important;
    color: #7a8499;
    font-size: 16px;
    letter-spacing: 1px;
}

body.rework-blog-archive .careerfy-pagination-blog ul li.prev a,
body.rework-blog-archive .careerfy-pagination-blog ul li.next a {
    background: #fff;
    color: #0a65fc;
    border: 1px solid #dfe3ea;
}

body.rework-blog-archive .careerfy-pagination-blog ul li.prev:hover a,
body.rework-blog-archive .careerfy-pagination-blog ul li.next:hover a {
    background: #edf3ff;
    color: #0a65fc;
}

/* Mobile: compact horizontal list */
@media (max-width: 767px) {
    body.rework-blog-archive .careerfy-main-content {
        padding-top: 100px;
    }

    body.admin-bar.rework-blog-archive .careerfy-main-content {
        padding-top: 132px;
    }

    body.rework-blog-archive .careerfy-main-section > .container {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .rework-blog-categories {
        margin-top: 4px;
        padding: 18px 16px;
    }

    .rework-article-card__inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
    }

    .rework-article-card__media {
        flex: 0 0 112px;
        width: 112px;
        max-width: 112px;
    }

    .rework-article-card__media img {
        height: 84px;
    }

    .rework-article-card__read-time {
        left: 8px;
        bottom: 8px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .rework-article-card__title {
        margin-bottom: 6px;
        font-size: 16px;
    }

    .rework-article-card__excerpt,
    .rework-article-card__author-info small {
        display: none;
    }

    .rework-article-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-top: 8px;
        border-top: 0;
    }

    .rework-article-card__author img,
    .rework-article-card__avatar {
        width: 32px !important;
        height: 32px !important;
    }

    .rework-article-card__stats {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
        font-size: 12px;
    }
}

/* Tablet: 2-column tiles */
@media (min-width: 768px) {
    .careerfy-news-grid.rework-news-grid ul.row,
    .careerfy-posts-list.rework-posts-list ul.row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Desktop: wider container, 2 columns */
@media (min-width: 992px) {
    body.rework-blog-archive .careerfy-main-content {
        padding-top: 130px;
    }

    body.rework-blog-archive .careerfy-main-section > .container {
        max-width: min(1680px, calc(100vw - 48px));
        padding-left: 24px;
        padding-right: 24px;
    }

    .rework-article-card__inner {
        padding: 20px;
    }

    .rework-article-card__title {
        font-size: 22px;
    }
}

/* Large screens: 3-column tiles */
@media (min-width: 1280px) {
    .careerfy-news-grid.rework-news-grid ul.row,
    .careerfy-posts-list.rework-posts-list ul.row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.rework-blog-archive .careerfy-main-section > .container {
        max-width: min(1760px, calc(100vw - 64px));
    }
}

/* Extra-wide: use full available width */
@media (min-width: 1600px) {
    body.rework-blog-archive .careerfy-main-section > .container {
        max-width: calc(100vw - 80px);
    }
}

/* Blog Style 13 widget — overlay cards */
.careerfy-eighteen-blog-grid {
    float: none;
    width: 100%;
}

.careerfy-eighteen-blog-grid ul.row {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    grid-template-columns: 1fr;
    width: 100%;
}

.careerfy-eighteen-blog-grid ul.row::before,
.careerfy-eighteen-blog-grid ul.row::after {
    display: none !important;
    content: none !important;
}

.careerfy-eighteen-blog-grid ul.row > li.rework-article-card {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
    display: block;
    min-width: 0;
}

.careerfy-eighteen-blog-grid .rework-article-card--compact .rework-article-card__inner {
    position: relative;
    gap: 0;
    padding: 0;
    min-height: 210px;
    overflow: hidden;
    border-radius: 16px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.careerfy-eighteen-blog-grid .rework-article-card--compact .rework-article-card__inner:hover {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
    transform: translateY(-1px);
}

.careerfy-eighteen-blog-grid .rework-article-card--compact .rework-article-card__cover {
    position: relative;
    display: block;
    width: 100%;
    min-height: 210px;
    color: #fff;
    text-decoration: none;
}

.careerfy-eighteen-blog-grid .rework-article-card--compact .rework-article-card__cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.careerfy-eighteen-blog-grid .rework-article-card--compact .rework-article-card__inner:hover .rework-article-card__cover-img {
    transform: scale(1.03);
}

.careerfy-eighteen-blog-grid .rework-article-card--compact .rework-article-card__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.2) 0%,
        rgba(15, 23, 42, 0.45) 45%,
        rgba(15, 23, 42, 0.78) 100%
    );
    transition: background 0.25s ease;
}

.careerfy-eighteen-blog-grid .rework-article-card--compact .rework-article-card__inner:hover .rework-article-card__scrim {
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.28) 0%,
        rgba(15, 23, 42, 0.55) 45%,
        rgba(15, 23, 42, 0.86) 100%
    );
}

.careerfy-eighteen-blog-grid .rework-article-card--compact .rework-article-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 16px 40px;
    pointer-events: none;
}

.careerfy-eighteen-blog-grid .rework-article-card--compact .rework-article-card__title {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.careerfy-eighteen-blog-grid .rework-article-card--compact .rework-article-card__corner-meta {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    max-width: calc(100% - 24px);
}

.careerfy-eighteen-blog-grid .rework-article-card--compact .rework-article-card__category-pills {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.careerfy-eighteen-blog-grid .rework-article-card--compact .rework-article-card__category-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.careerfy-eighteen-blog-grid .rework-article-card--compact .rework-article-card__category-pills a:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.careerfy-eighteen-blog-grid .rework-article-card--compact .rework-article-card__category-pills li::before,
.careerfy-eighteen-blog-grid .rework-article-card--compact .rework-article-card__category-pills li::after {
    content: none !important;
    display: none !important;
}

@media (min-width: 768px) {
    .careerfy-eighteen-blog-grid ul.row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .careerfy-eighteen-blog-grid .rework-article-card--compact .rework-article-card__inner,
    .careerfy-eighteen-blog-grid .rework-article-card--compact .rework-article-card__cover {
        min-height: 220px;
    }
}
