
/* =====================================================
   TOUCHTECH | TECHNOLOGY INSIGHTS
   VIP BLOG DESIGN
===================================================== */

.tt-blog-page {
    --tt-blog-primary: #2563eb;
    --tt-blog-dark: #101d35;
    --tt-blog-text: #17243a;
    --tt-blog-muted: #718096;
    --tt-blog-border: #e8edf4;
    --tt-blog-light: #f5f8fc;

    background: #fff;
    color: var(--tt-blog-text);
    font-family: inherit;
}

.tt-blog-page *,
.tt-blog-page *::before,
.tt-blog-page *::after {
    box-sizing: border-box;
}

.tt-blog-page a {
    text-decoration: none;
}

.tt-blog-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* HERO */

.tt-blog-hero {
    position: relative;
    overflow: hidden;
    padding: 105px 0 85px;
    color: #fff;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(37, 99, 235, .32),
            transparent 35%
        ),
        linear-gradient(120deg, #0b172d 0%, #142a4b 65%, #173b69 100%);
}

.tt-blog-hero::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    right: -180px;
    bottom: -310px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 45px rgba(255,255,255,.025),
        0 0 0 90px rgba(255,255,255,.02);
}

.tt-blog-hero .tt-blog-container {
    position: relative;
    z-index: 1;
}

.tt-blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #3b82f6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.tt-blog-hero .tt-blog-eyebrow {
    color: #8db7ff;
}

.tt-blog-hero .tt-blog-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: #60a5fa;
}

.tt-blog-hero h1 {
    max-width: 850px;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(38px, 5.2vw, 66px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -2.5px;
}

.tt-blog-hero h1 span {
    display: block;
    color: #75a9ff;
}

.tt-blog-hero > .tt-blog-container > p {
    max-width: 650px;
    margin: 0;
    color: #c6d2e3;
    font-size: 17px;
    line-height: 1.85;
}

.tt-blog-hero-bottom {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 42px;
    color: #b7c8df;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
}

.tt-blog-hero-line {
    width: 65px;
    height: 1px;
    background: #568de6;
}

/* CONTENT */

.tt-blog-content {
    padding: 85px 0 100px;
    background: #fff;
}

.tt-blog-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.tt-blog-section-heading .tt-blog-eyebrow {
    margin-bottom: 10px;
}

.tt-blog-section-heading h2 {
    margin: 0;
    color: var(--tt-blog-dark);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -1.2px;
}

.tt-blog-post-count {
    padding: 10px 16px;
    border: 1px solid var(--tt-blog-border);
    border-radius: 30px;
    color: var(--tt-blog-muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* CATEGORY NAVIGATION */

.tt-blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 38px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--tt-blog-border);
}

.tt-blog-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 18px;
    border: 1px solid var(--tt-blog-border);
    border-radius: 30px;
    color: #526176;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    transition: all .25s ease;
}

.tt-blog-category-link:hover,
.tt-blog-category-link.is-active {
    border-color: var(--tt-blog-primary);
    color: #fff;
    background: var(--tt-blog-primary);
}

/* FEATURED ARTICLE */

.tt-blog-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 48px;
    margin-bottom: 65px;
    padding: 22px;
    border: 1px solid var(--tt-blog-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(20, 42, 75, .055);
}

.tt-blog-featured-image,
.tt-blog-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    background: #edf2f8;
}

.tt-blog-featured-image {
    min-height: 360px;
    border-radius: 15px;
}

.tt-blog-featured-image img,
.tt-blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.tt-blog-featured-image img {
    position: absolute;
    inset: 0;
    min-height: 100%;
}

.tt-blog-featured-image:hover img,
.tt-blog-card-image:hover img {
    transform: scale(1.055);
}

.tt-blog-featured-label {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    padding: 10px 14px;
    border-radius: 5px;
    color: #fff;
    background: var(--tt-blog-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.tt-blog-featured-info {
    padding: 20px 18px 20px 0;
}

.tt-blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
    color: var(--tt-blog-muted);
    font-size: 11px;
}

.tt-blog-meta a {
    color: var(--tt-blog-primary);
    font-weight: 800;
}

.tt-blog-meta span + span::before {
    content: "•";
    margin-right: 13px;
    color: #b6c2d1;
}

.tt-blog-featured-info h2 {
    margin: 0 0 18px;
    color: var(--tt-blog-dark);
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.8px;
}

.tt-blog-featured-info h2 a,
.tt-blog-card h3 a {
    color: inherit;
}

.tt-blog-featured-info h2 a:hover,
.tt-blog-card h3 a:hover {
    color: var(--tt-blog-primary);
}

.tt-blog-featured-info > p {
    margin: 0 0 26px;
    color: var(--tt-blog-muted);
    font-size: 14px;
    line-height: 1.9;
}

.tt-blog-read-more,
.tt-blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--tt-blog-primary);
    font-size: 12px;
    font-weight: 800;
}

.tt-blog-read-more span,
.tt-blog-card-link span {
    transition: transform .25s ease;
}

.tt-blog-read-more:hover span,
.tt-blog-card-link:hover span {
    transform: translateX(5px);
}

/* BLOG GRID */

.tt-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.tt-blog-card {
    overflow: hidden;
    border: 1px solid var(--tt-blog-border);
    border-radius: 16px;
    background: #fff;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.tt-blog-card:hover {
    transform: translateY(-6px);
    border-color: #d6e3f7;
    box-shadow: 0 18px 40px rgba(20, 42, 75, .09);
}

.tt-blog-card-image {
    height: 230px;
}

.tt-blog-card-body {
    padding: 24px 23px 26px;
}

.tt-blog-card .tt-blog-meta {
    margin-bottom: 14px;
}

.tt-blog-card h3 {
    min-height: 60px;
    margin: 0 0 12px;
    color: var(--tt-blog-dark);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.5;
}

.tt-blog-card-body > p {
    min-height: 68px;
    margin: 0 0 20px;
    color: var(--tt-blog-muted);
    font-size: 13px;
    line-height: 1.8;
}

.tt-blog-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #7c9ac5;
    background: linear-gradient(135deg, #eaf1fb, #dce8f8);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 4px;
}

/* PAGINATION */

.tt-blog-pagination {
    margin-top: 65px;
    text-align: center;
}

.tt-blog-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.tt-blog-pagination a,
.tt-blog-pagination span {
    display: flex;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid var(--tt-blog-border);
    border-radius: 8px;
    color: var(--tt-blog-text);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

.tt-blog-pagination .current,
.tt-blog-pagination a:hover {
    border-color: var(--tt-blog-primary);
    color: #fff;
    background: var(--tt-blog-primary);
}

/* EMPTY STATE */

.tt-blog-empty {
    padding: 65px 25px;
    border: 1px solid var(--tt-blog-border);
    border-radius: 18px;
    background: var(--tt-blog-light);
    text-align: center;
}

.tt-blog-empty h2 {
    color: var(--tt-blog-dark);
    font-size: 25px;
}

.tt-blog-empty p {
    color: var(--tt-blog-muted);
}

/* TABLET */

@media (max-width: 991px) {

    .tt-blog-featured {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .tt-blog-featured-image {
        min-height: 330px;
    }

    .tt-blog-featured-info {
        padding: 10px 8px 18px;
    }

    .tt-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

}

/* MOBILE */

@media (max-width: 600px) {

    .tt-blog-container {
        width: min(100% - 32px, 1200px);
    }

    .tt-blog-hero {
        padding: 75px 0 65px;
    }

    .tt-blog-hero h1 {
        font-size: 39px;
        letter-spacing: -1.5px;
    }

    .tt-blog-hero > .tt-blog-container > p {
        font-size: 14px;
    }

    .tt-blog-hero-bottom {
        margin-top: 28px;
        font-size: 10px;
    }

    .tt-blog-content {
        padding: 60px 0 70px;
    }

    .tt-blog-section-heading {
        align-items: flex-start;
    }

    .tt-blog-section-heading h2 {
        font-size: 29px;
    }

    .tt-blog-post-count {
        padding: 8px 11px;
        font-size: 10px;
    }

    .tt-blog-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 18px;
        scrollbar-width: thin;
    }

    .tt-blog-category-link {
        flex: 0 0 auto;
    }

    .tt-blog-featured {
        gap: 15px;
        margin-bottom: 45px;
        padding: 12px;
        border-radius: 15px;
    }

    .tt-blog-featured-image {
        min-height: 230px;
    }

    .tt-blog-featured-info {
        padding: 12px 5px 15px;
    }

    .tt-blog-featured-info h2 {
        font-size: 25px;
    }

    .tt-blog-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .tt-blog-card-image {
        height: 225px;
    }

    .tt-blog-card-body {
        padding: 21px;
    }

    .tt-blog-card h3,
    .tt-blog-card-body > p {
        min-height: auto;
    }

}
