/* ==========================================================================
   yitit homepage 2026
   Loaded only on the homepage (see Head.htm). All layout classes are hp-*.
   ========================================================================== */

body {
    background: #f4f6fa;
}

/* ---------- Header ---------- */
.header1 {
    height: 74px;
    background: #ffffff;
    border-bottom: 1px solid #e7ecf3;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 6px 24px -18px rgba(15, 23, 42, .35);
}

.header1 .nav_ {
    width: 1200px;
    max-width: calc(100% - 40px);
    height: 74px;
}

.header1 .logo {
    width: 150px;
    height: 44px;
    display: flex;
    align-items: center;
}

.header1 .logo img {
    width: auto;
    height: 38px;
}

.header1 .nav_1 {
    flex: 1;
    margin-left: 36px;
}

.header1 .nav-list {
    width: 100%;
    justify-content: flex-end;
    align-items: center;
}

.header1 .nav-list .item {
    margin-right: 2px;
}

.header1 .nav-list .item:not(:last-of-type)::after {
    content: none;
    display: none;
}

.header1 .nav-list .item > a {
    height: 40px;
    line-height: 40px;
    padding: 0 13px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .01em;
    color: #344054;
    display: flex;
    align-items: center;
}

.header1 .nav-list .item > a:hover {
    color: #1d4ed8;
    background: #eef4ff;
}

.header1 .nav-list .item:last-child > a {
    margin-left: 10px;
    padding: 0 18px;
    background: #1d4ed8;
    color: #ffffff;
}

.header1 .nav-list .item:last-child > a:hover {
    background: #1e40af;
    color: #ffffff;
}

/* ---------- Page shell ---------- */
.hp {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 64px;
    box-sizing: border-box;
    color: #101828;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.hp *,
.hp *::before,
.hp *::after {
    box-sizing: border-box;
}

.hp a {
    text-decoration: none;
}

.hp img {
    display: block;
}

.hp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Shared bits ---------- */
.hp-kicker {
    display: inline-flex;
    align-items: center;
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 6px;
    line-height: 1;
}

.hp-kicker-sm {
    font-size: 10px;
    padding: 5px 8px;
}

.hp-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .72);
}

.hp-meta-dark {
    color: #98a2b3;
}

.hp-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

/* ---------- Hero ---------- */
.hp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
    gap: 20px;
    padding-top: 26px;
}

.hp-hero-main,
.hp-side-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #0b1220;
}

.hp-hero-main {
    min-height: 500px;
    box-shadow: 0 26px 60px -42px rgba(15, 23, 42, .75);
}

.hp-hero-main > a {
    position: absolute;
    inset: 0;
    display: block;
}

.hp-hero-main img,
.hp-side-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.hp-hero-main:hover img,
.hp-side-card:hover img {
    transform: scale(1.045);
}

.hp-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 15, 30, .04) 18%, rgba(8, 15, 30, .5) 55%, rgba(8, 15, 30, .93) 100%);
}

.hp-hero-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hp-hero-title {
    display: block;
    margin: 16px 0 12px;
    font-size: clamp(26px, 2.9vw, 40px);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -.022em;
    color: #ffffff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .28);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.hp-hero-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-width: 720px;
    margin-bottom: 18px;
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .8);
}

.hp-hero-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.hp-side-card {
    min-height: 0;
}

.hp-side-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hp-side-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 12px 0 10px;
    font-size: 19px;
    line-height: 1.32;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #ffffff;
}

/* ---------- Topic nav ---------- */
.hp-topics {
    width: auto;
    margin: 26px 0 6px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    box-shadow: 0 18px 40px -38px rgba(15, 23, 42, .5);
}

.hp-topics-label {
    margin-right: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #98a2b3;
}

.hp-topics a {
    padding: 7px 14px;
    border-radius: 999px;
    background: #f2f5f9;
    color: #344054;
    font-size: 13.5px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}

.hp-topics a:hover {
    background: #1d4ed8;
    color: #ffffff;
}

/* ---------- Section headings ---------- */
.hp-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 38px 0 16px;
    border-bottom: 2px solid #0f172a;
}

.hp-head-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0f172a;
}

.hp-head-title a {
    color: #0f172a;
}

.hp-head-title a:hover {
    color: #1d4ed8;
}

.hp-head-sub {
    font-size: 13px;
    font-weight: 500;
    color: #98a2b3;
}

.hp-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    white-space: nowrap;
}

.hp-more:hover {
    color: #1e40af;
}

.hp-more span {
    transition: transform .2s ease;
}

.hp-more:hover span {
    transform: translateX(3px);
}

/* ---------- Latest ---------- */
.hp-latest {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
}

.hp-latest > .hp-latest-main > .hp-head {
    padding-top: 34px;
}

.hp-latest-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
}

.hp-row {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #e7ecf3;
}

.hp-row-img {
    width: 108px;
    height: 76px;
    object-fit: cover;
    border-radius: 10px;
    background: #e9eef5;
}

.hp-row-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.hp-row-cat {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #1d4ed8;
}

.hp-row-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 15.5px;
    line-height: 1.4;
    font-weight: 700;
    color: #101828;
    transition: color .2s ease;
}

.hp-row-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.5;
    color: #667085;
}

.hp-row:hover .hp-row-title {
    color: #1d4ed8;
}

/* ---------- Sidebar ---------- */
.hp-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: start;
    margin-top: 34px;
}

.hp-panel {
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    box-shadow: 0 24px 50px -44px rgba(15, 23, 42, .6);
}

.hp-panel-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #98a2b3;
}

.hp-topic-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-topic-list li + li {
    border-top: 1px solid #eef2f7;
}

.hp-topic-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    font-size: 14.5px;
    font-weight: 600;
    color: #344054;
}

.hp-topic-list a::after {
    content: '\2192';
    font-size: 14px;
    color: #cbd5e1;
    transition: transform .2s ease, color .2s ease;
}

.hp-topic-list a:hover {
    color: #1d4ed8;
}

.hp-topic-list a:hover::after {
    color: #1d4ed8;
    transform: translateX(3px);
}

.hp-panel-dark {
    background: #0b1220;
    border-color: #0b1220;
}

.hp-panel-dark .hp-panel-title {
    color: #94a3b8;
}

.hp-pick {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.hp-pick:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.hp-pick img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    background: #1e293b;
}

.hp-pick-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hp-pick-cat {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #60a5fa;
}

.hp-pick-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 13.5px;
    line-height: 1.38;
    font-weight: 600;
    color: #e2e8f0;
    transition: color .2s ease;
}

.hp-pick:hover .hp-pick-title {
    color: #93c5fd;
}

/* ---------- Card grid ---------- */
.hp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    padding-top: 24px;
}

.hp-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hp-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.hp-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: #e9eef5;
}

.hp-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.hp-card:hover .hp-card-media img {
    transform: scale(1.05);
}

.hp-card-tag {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 5px;
    background: rgba(11, 18, 32, .82);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1;
}

.hp-card-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.hp-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 16.5px;
    line-height: 1.4;
    font-weight: 700;
    color: #101828;
    transition: color .2s ease;
}

.hp-card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.55;
    color: #667085;
}

.hp-card:hover .hp-card-title {
    color: #1d4ed8;
}

/* ---------- Computing list ---------- */
.hp-list2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    padding-top: 8px;
    counter-reset: hp-count;
}

.hp-line {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e7ecf3;
}

.hp-line::before {
    counter-increment: hp-count;
    content: counter(hp-count, decimal-leading-zero);
    font-size: 20px;
    font-weight: 800;
    color: #cbd5e1;
    line-height: 1;
}

.hp-line-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.hp-line-cat {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #1d4ed8;
}

.hp-line-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 15.5px;
    line-height: 1.42;
    font-weight: 700;
    color: #101828;
    transition: color .2s ease;
}

.hp-arrow {
    font-size: 18px;
    color: #cbd5e1;
    transition: color .2s ease, transform .2s ease;
}

.hp-line:hover .hp-line-title {
    color: #1d4ed8;
}

.hp-line:hover .hp-arrow {
    color: #1d4ed8;
    transform: translateX(3px);
}

/* ---------- Deals accent ---------- */
.hp-deals .hp-head {
    border-bottom-color: #dc2626;
}

.hp-deals .hp-card-tag {
    background: #dc2626;
}

/* ---------- Narrow desktop / tablet: keep shared footer fluid ---------- */
@media (max-width: 1200px) {
    .frame {
        width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box;
    }

    .btn_href {
        width: 100% !important;
    }

    .htmlBody1 {
        width: 100% !important;
    }

    .Website_Box1 {
        width: auto !important;
        padding: 0 24px !important;
    }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .header1 {
        height: auto;
    }

    .header1 .nav_ {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        padding: 8px 0;
    }

    .header1 .nav_1 {
        margin-left: 20px;
    }

    .header1 .nav-list {
        flex-wrap: wrap;
    }

    .header1 .nav-list .item > a {
        height: 34px;
        line-height: 34px;
        padding: 0 10px;
        font-size: 13.5px;
    }

    .hp-hero {
        grid-template-columns: 1fr;
    }

    .hp-hero-main {
        min-height: 430px;
    }

    .hp-hero-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .hp-side-card {
        min-height: 230px;
    }

    .hp-latest {
        grid-template-columns: 1fr;
    }

    .hp-latest-list {
        grid-template-columns: 1fr;
    }

    .hp-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0;
    }

    .hp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hp-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 750px) {
    .head— {
        background: #ffffff !important;
        border-bottom: 1px solid #e7ecf3;
        padding: 6px 0;
    }

    .head-1 {
        background: #ffffff !important;
        border-bottom: 1px solid #e7ecf3;
    }

    .navslide1 li {
        padding: 4px 8px;
    }

    .navslide1 li a {
        color: #344054;
        font-weight: 600;
    }

    .hp {
        padding: 0 16px 44px;
    }

    .hp-hero {
        gap: 14px;
        padding-top: 16px;
    }

    .hp-hero-main {
        min-height: 330px;
    }

    .hp-hero-body {
        padding: 20px;
    }

    .hp-hero-title {
        font-size: 24px;
        -webkit-line-clamp: 4;
    }

    .hp-hero-desc {
        display: none;
    }

    .hp-hero-side {
        gap: 14px;
    }

    .hp-side-card {
        min-height: 175px;
    }

    .hp-side-body {
        padding: 14px;
    }

    .hp-side-title {
        margin: 9px 0 7px;
        font-size: 15px;
    }

    .hp-topics {
        margin: 18px 0 4px;
        padding: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hp-topics::-webkit-scrollbar {
        display: none;
    }

    .hp-topics-label {
        flex: 0 0 auto;
    }

    .hp-topics a {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 6px 12px;
        font-size: 13px;
    }

    .hp-head {
        padding: 28px 0 13px;
    }

    .hp-head-title {
        font-size: 21px;
    }

    .hp-head-sub {
        display: none;
    }

    .hp-row {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
        padding: 15px 0;
    }

    .hp-row-img {
        width: 96px;
        height: 70px;
    }

    .hp-row-title {
        font-size: 14.5px;
    }

    .hp-row-desc {
        display: none;
    }

    .hp-side {
        grid-template-columns: 1fr;
    }

    .hp-grid,
    .hp-grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hp-card {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
    }

    .hp-card-media {
        aspect-ratio: 1 / 1;
        border-radius: 11px;
    }

    .hp-card-title {
        font-size: 15px;
        -webkit-line-clamp: 3;
    }

    .hp-card-desc {
        display: none;
    }

    .hp-list2 {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .hp-line {
        grid-template-columns: 36px minmax(0, 1fr) 16px;
        gap: 12px;
        padding: 15px 0;
    }

    .hp-line::before {
        font-size: 17px;
    }

    .hp-line-title {
        font-size: 14.5px;
    }
}
