﻿@charset "utf-8";

/* =========================================================
   Winsun Technical Knowledge Base
   New naming: ws-tech-*
========================================================= */

#posts .ws-tech-hero *,
#posts .ws-tech-hub *,
#posts .ws-tech-category-hero *,
#posts .ws-tech-library *,
#posts .ws-tech-crumb * {
    box-sizing: border-box;
}


/* Shared */

.ws-tech-eyebrow {
    display: inline-flex;
    min-height: 30px;
    padding: 4px 13px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0000ff 0%, #28cbe8 100%);
    color: #fff;
    font-size: 13px;
    line-height: 22px;
    letter-spacing: 1px;
}

.ws-tech-section-head,
.ws-tech-library-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 42px;
    align-items: end;
}

.ws-tech-section-head > div > span,
.ws-tech-library-head > div > span,
.ws-tech-library-nav > div > span {
    display: block;
    margin-bottom: 5px;
    color: #00a9a0;
    font-size: 12px;
    line-height: 19px;
    letter-spacing: .9px;
}

.ws-tech-section-head h2,
.ws-tech-library-head h2,
.ws-tech-library-nav h2 {
    margin: 0;
    color: #17233a;
    font-size: 28px;
    line-height: 37px;
}

.ws-tech-section-head > p,
.ws-tech-library-head > p {
    margin: 0;
    color: #6b788b;
    font-size: 14px;
    line-height: 23px;
}


/* Home hero */

.ws-tech-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 0;
    background:
        radial-gradient(circle at 86% 14%, rgba(40, 203, 232, .24), transparent 27%),
        linear-gradient(135deg, #f3f7ff 0%, #eefbfb 55%, #ffffff 100%);
}

.ws-tech-hero::before {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -155px;
    width: 340px;
    height: 340px;
    border: 48px solid rgba(0, 0, 255, .025);
    border-radius: 50%;
}

.ws-tech-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 62px;
    align-items: center;
}

.ws-tech-hero-copy {
    max-width: 830px;
}

.ws-tech-hero-copy h1 {
    margin: 14px 0 0;
    color: #111827;
    font-size: 38px;
    line-height: 48px;
}

.ws-tech-hero-copy > p {
    max-width: 760px;
    margin: 15px 0 0;
    color: #617086;
    font-size: 15px;
    line-height: 25px;
}

.ws-tech-hero-points {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.ws-tech-hero-points span {
    color: #4f6076;
    font-size: 14px;
    line-height: 21px;
}

.ws-tech-hero-points i {
    margin-right: 6px;
    color: #00a9a0;
}

.ws-tech-hero-panel {
    position: relative;
    padding: 26px 26px 27px;
    overflow: hidden;
    border: 1px solid rgba(0, 198, 188, .22);
    border-radius: 18px;
    background: rgba(255,255,255,.93);
    box-shadow: 0 18px 42px rgba(4, 40, 88, .09);
}

.ws-tech-hero-panel::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #0000ff 0%, #28cbe8 55%, #00c6bc 100%);
}

.ws-tech-hero-panel > span {
    display: block;
    margin-bottom: 10px;
    color: #00a9a0;
    font-size: 13px;
    line-height: 19px;
    letter-spacing: 1px;
}

.ws-tech-hero-panel h2 {
    margin: 0;
    color: #17233a;
    font-size: 23px;
    line-height: 31px;
}

.ws-tech-hero-panel p {
    margin: 11px 0 0;
    color: #748197;
    font-size: 14px;
    line-height: 22px;
}

.ws-tech-hero-panel a {
    min-height: 40px;
    margin-top: 17px;
    padding: 0 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, #0000ff 0%, #28cbe8 100%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0,0,255,.12);
}

.ws-tech-hero-panel a:hover {
    background: linear-gradient(90deg, #042858 0%, #00c6bc 100%);
}


/* Home hub */

.ws-tech-hub {
    padding: 46px 0 64px;
    background: #fff;
}

.ws-tech-topic-grid {
    counter-reset: techTopic;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.ws-tech-topic-grid a {
    counter-increment: techTopic;
    min-width: 0;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid #e0e8ed;
    border-radius: 11px;
    background: #fff;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 24px;
    gap: 11px;
    align-items: center;
    color: #26364e;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ws-tech-topic-grid a:hover {
    border-color: #9bdfe6;
    background: #f8fcfc;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(4,40,88,.06);
}

.ws-tech-topic-index {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #eef9fb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00a9a0;
    font-size: 12px;
}

.ws-tech-topic-index::before {
    content: counter(techTopic, decimal-leading-zero);
}

.ws-tech-topic-grid a:nth-child(even) .ws-tech-topic-index {
    background: #f0f2ff;
    color: #0000ff;
}

.ws-tech-topic-copy {
    min-width: 0;
}

.ws-tech-topic-copy strong,
.ws-tech-topic-copy em {
    display: block;
}

.ws-tech-topic-copy strong {
    overflow: hidden;
    color: #24334a;
    font-size: 14px;
    line-height: 21px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ws-tech-topic-copy em {
    margin-top: 2px;
    color: #8a96a7;
    font-size: 12px;
    line-height: 18px;
    font-style: normal;
}

.ws-tech-topic-grid a > i {
    color: #9aa6b6;
}

.ws-tech-topic-grid a:hover > i {
    color: #00a9a0;
}


/* Latest */

.ws-tech-latest-head {
    margin-top: 48px;
}

.ws-tech-latest-layout {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
}

.ws-tech-latest-item {
    min-width: 0;
    min-height: 170px;
    padding: 14px 0;
    border-bottom: 1px solid #e6edf1;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
}

.ws-tech-latest-image {
    width: 150px;
    height: 140px;
    overflow: hidden;
    border-radius: 10px;
    background: #eef3f7;
}

.ws-tech-latest-image img,
.ws-tech-popular-image img,
.ws-tech-library-image img,
.ws-tech-recommended-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.ws-tech-latest-item:hover img,
.ws-tech-popular-row:hover img,
.ws-tech-library-row:hover img,
.ws-tech-recommended-item:hover img {
    transform: scale(1.04);
}

.ws-tech-latest-copy {
    min-width: 0;
}

.ws-tech-latest-copy > span,
.ws-tech-popular-copy > span,
.ws-tech-library-copy > span {
    display: block;
    color: #8995a5;
    font-size: 12px;
    line-height: 18px;
}

.ws-tech-latest-copy > span i,
.ws-tech-popular-copy > span i,
.ws-tech-library-copy > span i {
    margin-right: 5px;
    color: #00a9a0;
}

.ws-tech-latest-copy h3,
.ws-tech-popular-copy h3 {
    margin: 7px 0 0;
    font-size: 16px;
    line-height: 24px;
}

.ws-tech-latest-copy h3 a,
.ws-tech-popular-copy h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: #17233a;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ws-tech-latest-copy h3 a:hover,
.ws-tech-popular-copy h3 a:hover,
.ws-tech-library-copy h2 a:hover,
.ws-tech-recommended-copy strong:hover {
    color: #0000ff;
}

.ws-tech-latest-copy p,
.ws-tech-popular-copy p {
    margin: 7px 0 0;
    display: -webkit-box;
    overflow: hidden;
    color: #748195;
    font-size: 13px;
    line-height: 20px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ws-tech-text-link {
    margin-top: 9px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #00a9a0;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
}

.ws-tech-text-link:hover {
    color: #0000ff;
}


/* Popular */

.ws-tech-popular-head {
    margin-top: 48px;
}

.ws-tech-popular-list {
    margin-top: 20px;
    border-top: 1px solid #dfe7ec;
}

.ws-tech-popular-row {
    min-height: 108px;
    padding: 13px 0;
    border-bottom: 1px solid #e7edf1;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 38px;
    gap: 15px;
    align-items: center;
}

.ws-tech-popular-image {
    width: 90px;
    height: 80px;
    overflow: hidden;
    border-radius: 9px;
    background: #eef3f7;
}

.ws-tech-popular-copy {
    min-width: 0;
}

.ws-tech-popular-copy h3 {
    margin-top: 4px;
}

.ws-tech-popular-copy p {
    max-width: 880px;
}

.ws-tech-popular-open {
    width: 38px;
    height: 38px;
    border: 1px solid #dce6ec;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8190a3;
    text-decoration: none;
}

.ws-tech-popular-open:hover {
    border-color: #00c6bc;
    background: #f2fbfb;
    color: #00a9a0;
}


/* CTA */

.ws-tech-cta {
    margin-top: 46px;
    padding: 32px 35px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 0%, rgba(40,203,232,.24), transparent 25%),
        linear-gradient(135deg, #042858 0%, #000087 58%, #0000ff 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    box-shadow: 0 18px 42px rgba(4,40,88,.16);
}

.ws-tech-cta > div > span {
    display: block;
    color: #7ee5eb;
    font-size: 12px;
    line-height: 19px;
    letter-spacing: .9px;
}

.ws-tech-cta h2 {
    margin: 5px 0 0;
    color: #fff;
    font-size: 24px;
    line-height: 33px;
}

.ws-tech-cta p {
    max-width: 820px;
    margin: 8px 0 0;
    color: rgba(255,255,255,.76);
    font-size: 14px;
    line-height: 23px;
}

.ws-tech-cta > a {
    min-height: 43px;
    padding: 0 17px;
    border-radius: 8px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #0000ff;
    font-size: 14px;
    text-decoration: none;
}

.ws-tech-cta > a:hover {
    color: #00a9a0;
}


/* Breadcrumb */

.ws-tech-crumb {
    border-bottom: 1px solid #e6edf1;
    background: #fff;
}

.ws-tech-crumb .container {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    color: #8a96a8;
    font-size: 13px;
    white-space: nowrap;
}

.ws-tech-crumb a {
    color: #55657a;
    text-decoration: none;
}

.ws-tech-crumb a:hover {
    color: #0000ff;
}

.ws-tech-crumb i {
    color: #00a9a0;
}


/* Category hero */

.ws-tech-category-hero {
    padding: 40px 0;
    background:
        radial-gradient(circle at 88% 5%, rgba(40,203,232,.16), transparent 27%),
        linear-gradient(135deg, #f4f7ff 0%, #f2fbfa 58%, #fff 100%);
}

.ws-tech-category-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 44px;
    align-items: center;
}

.ws-tech-category-hero h1 {
    margin: 11px 0 0;
    color: #17233a;
    font-size: 35px;
    line-height: 45px;
}

.ws-tech-category-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: #68778a;
    font-size: 14px;
    line-height: 23px;
}

.ws-tech-category-action {
    min-height: 98px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #042858;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.ws-tech-category-action span,
.ws-tech-category-action strong {
    display: block;
    grid-column: 1;
}

.ws-tech-category-action span {
    color: #7ee5eb;
    font-size: 11px;
    line-height: 17px;
    letter-spacing: .7px;
}

.ws-tech-category-action strong {
    margin-top: 4px;
    font-size: 14px; color:#fff;
    line-height: 21px;
}

.ws-tech-category-action > i {
    grid-column: 2;
    grid-row: 1 / 3;
    color: #28cbe8;
}


/* Library */

.ws-tech-library {
    padding: 42px 0 60px;
    background: #fff;
}

.ws-tech-library-nav {
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e2e9ed;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: end;
}

.ws-tech-library-nav h2 {
    font-size: 22px;
    line-height: 30px;
}

.ws-tech-library-nav nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.ws-tech-library-nav nav a {
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid #dfe7ec;
    border-radius: 7px;
    background: #fff;
    color: #56667b;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
}

.ws-tech-library-nav nav a:hover {
    border-color: #00c6bc;
    color: #00a9a0;
}

.ws-tech-library-nav nav a.is-active {
    border-color: #042858;
    background: #042858;
    color: #fff;
}

.ws-tech-library-feed {
    margin-top: 19px;
    border-top: 1px solid #dfe7ec;
}

.ws-tech-library-row {
    min-height: 174px;
    padding: 18px 0;
    border-bottom: 1px solid #e7edf1;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
}

.ws-tech-library-image {
    width: 220px;
    height: 136px;
    overflow: hidden;
    border-radius: 10px;
    background: #eef3f7;
}

.ws-tech-library-copy {
    min-width: 0;
}

.ws-tech-library-copy h2 {
    margin: 7px 0 0;
    font-size: 18px;
    line-height: 26px;
}

.ws-tech-library-copy h2 a {
    display: -webkit-box;
    overflow: hidden;
    color: #17233a;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ws-tech-library-copy > p {
    margin: 7px 0 0;
    display: -webkit-box;
    overflow: hidden;
    color: #6d7a8d;
    font-size: 14px;
    line-height: 21px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* Pagination */

.ws-tech-pagination {
    margin-top: 27px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.ws-tech-pagination:empty {
    display: none;
}

.ws-tech-pagination a,
.ws-tech-pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 9px;
    border: 1px solid #dce5eb;
    border-radius: 7px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #56667b;
    font-size: 12px;
    text-decoration: none;
}

.ws-tech-pagination a:hover {
    border-color: #00c6bc;
    color: #00a9a0;
}

.ws-tech-pagination span {
    border-color: #042858;
    background: #042858;
    color: #fff;
}


/* Recommended */

.ws-tech-recommended-head {
    margin-top: 44px;
}

.ws-tech-recommended-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 18px;
}

.ws-tech-recommended-item {
    min-width: 0;
    min-height: 88px;
    padding: 9px 0;
    border-bottom: 1px solid #e7edf1;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 25px;
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.ws-tech-recommended-image {
    width: 78px;
    height: 68px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef3f7;
}

.ws-tech-recommended-copy {
    min-width: 0;
}

.ws-tech-recommended-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #26364e;
    font-size: 14px;
    line-height: 21px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ws-tech-recommended-copy em {
    margin-top: 4px;
    display: block;
    color: #8a96a6;
    font-size: 11px;
    line-height: 17px;
    font-style: normal;
}

.ws-tech-recommended-copy em i {
    margin-right: 4px;
    color: #00a9a0;
}

.ws-tech-recommended-item > i {
    color: #9aa7b7;
}

.ws-tech-recommended-item:hover > i {
    color: #00a9a0;
}


/* Responsive */

@media screen and (max-width: 1180px) {
    .ws-tech-topic-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 1024px) {
    .ws-tech-hero-grid {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 34px;
    }

    .ws-tech-section-head,
    .ws-tech-library-head {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 28px;
    }

    .ws-tech-latest-layout {
        grid-template-columns: 1fr;
    }

    .ws-tech-category-hero-grid {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 30px;
    }

    .ws-tech-library-nav {
        grid-template-columns: 230px minmax(0, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .ws-tech-hero {
        padding: 34px 0 38px;
    }

    .ws-tech-hero-grid,
    .ws-tech-category-hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ws-tech-hero-copy h1 {
        font-size: 28px;
        line-height: 36px;
    }

    .ws-tech-hero-copy > p {
        font-size: 14px;
        line-height: 22px;
    }

    .ws-tech-hero-points {
        display: grid;
        gap: 6px;
    }

    .ws-tech-hero-panel {
        padding: 20px;
        border-radius: 14px;
    }

    .ws-tech-hub {
        padding: 32px 0 45px;
    }

    .ws-tech-section-head,
    .ws-tech-library-head {
        display: block;
    }

    .ws-tech-section-head h2,
    .ws-tech-library-head h2 {
        font-size: 23px;
        line-height: 31px;
    }

    .ws-tech-section-head > p,
    .ws-tech-library-head > p {
        margin-top: 7px;
    }

    .ws-tech-topic-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .ws-tech-latest-head,
    .ws-tech-popular-head {
        margin-top: 34px;
    }

    .ws-tech-latest-layout {
        gap: 8px;
    }

    .ws-tech-latest-item {
        min-height: 0;
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 13px;
    }

    .ws-tech-latest-image {
        width: 108px;
        height: 82px;
    }

    .ws-tech-latest-copy p {
        display: none;
    }

    .ws-tech-latest-copy h3 {
        font-size: 14px;
        line-height: 21px;
    }

    .ws-tech-popular-row {
        grid-template-columns: 76px minmax(0, 1fr) 34px;
        gap: 11px;
    }

    .ws-tech-popular-image {
        width: 76px;
        height: 68px;
    }

    .ws-tech-popular-copy p {
        display: none;
    }

    .ws-tech-cta {
        padding: 25px 19px;
        display: block;
        border-radius: 14px;
    }

    .ws-tech-cta h2 {
        font-size: 21px;
        line-height: 29px;
    }

    .ws-tech-cta > a {
        width: 100%;
        margin-top: 18px;
    }

    .ws-tech-category-hero {
        padding: 30px 0;
    }

    .ws-tech-category-hero h1 {
        font-size: 28px;
        line-height: 37px;
    }

    .ws-tech-library {
        padding: 30px 0 44px;
    }

    .ws-tech-library-nav {
        display: block;
    }

    .ws-tech-library-nav nav {
        margin-top: 12px;
        justify-content: flex-start;
    }

    .ws-tech-library-row {
        min-height: 0;
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 13px;
    }

    .ws-tech-library-image {
        width: 108px;
        height: 80px;
    }

    .ws-tech-library-copy > p {
        display: none;
    }

    .ws-tech-library-copy h2 {
        font-size: 15px;
        line-height: 22px;
    }

    .ws-tech-recommended-grid {
        grid-template-columns: 1fr;
    }
}
