/* =========================================================
   DWERT HOMEPAGE - LATEST POSTS
   ========================================================= */

.dwert-home-latest {
    width: 100%;
    margin: 54px 0 20px;
}


/* =========================================================
   헤더
   ========================================================= */

.dwert-home-latest-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 22px;
}

.dwert-home-latest-eyebrow {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    margin-bottom: 9px;
    padding: 0 11px;

    background: #edf4ff;
    color: #285bd4;

    border: 1px solid #d8e5ff;
    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.07em;
}

.dwert-home-latest-header h2 {
    margin: 0 0 8px !important;

    color: #14213d;

    font-size: 34px;
    font-weight: 900;
    line-height: 1.25;

    letter-spacing: -0.045em;
}

.dwert-home-latest-header p {
    margin: 0 !important;

    color: #667085;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   글 카드 GRID
   ========================================================= */

.dwert-home-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}


/* =========================================================
   글 카드
   ========================================================= */

.dwert-home-post-card {
    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e4e7ec;
    border-radius: 20px;

    box-shadow:
        0 2px 4px rgba(16, 24, 40, 0.02),
        0 10px 28px rgba(16, 24, 40, 0.055);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.dwert-home-post-card:hover {
    transform: translateY(-3px);

    border-color: #bfd0f8;

    box-shadow:
        0 15px 34px rgba(28, 58, 120, 0.11);
}


/* =========================================================
   썸네일
   ========================================================= */

.dwert-home-post-thumbnail {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 5 / 4;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;

    background: #0b2b91;

    border: 0 !important;

    text-decoration: none !important;
    line-height: 0;
}

.dwert-home-post-thumbnail img {
    position: absolute !important;

    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover;
    object-position: center center;

    border: 0 !important;
    border-radius: 0 !important;

    transition:
        transform 0.35s ease;
}

.dwert-home-post-card:hover
.dwert-home-post-thumbnail img {
    transform: scale(1.025);
}

.dwert-home-post-placeholder {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    background:
        linear-gradient(
            135deg,
            #172d59 0%,
            #285bd4 100%
        );

    color: rgba(255, 255, 255, 0.85);

    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
}


/* =========================================================
   카드 콘텐츠
   ========================================================= */

.dwert-home-post-content {
    padding: 18px 19px 20px;
}

.dwert-home-post-meta {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 10px;

    color: #98a2b3;

    font-size: 11px;
    font-weight: 600;
}

.dwert-home-post-category {
    display: inline-flex;
    align-items: center;

    min-height: 25px;

    padding: 0 9px;

    background: #edf4ff;
    color: #285bd4;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
}

.dwert-home-post-content h3 {
    margin: 0 !important;

    font-size: 18px;
    font-weight: 900;
    line-height: 1.45;

    letter-spacing: -0.03em;
}

.dwert-home-post-content h3 a {
    color: #172033 !important;
    text-decoration: none !important;

    transition:
        color 0.2s ease;
}

.dwert-home-post-card:hover
.dwert-home-post-content h3 a {
    color: #285bd4 !important;
}


/* =========================================================
   글 보기
   ========================================================= */

.dwert-home-post-more {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-top: 16px;

    color: #667085;

    font-size: 12px;
    font-weight: 800;
}

.dwert-home-post-more span {
    color: #356df3;

    font-size: 15px;

    transition:
        transform 0.2s ease;
}

.dwert-home-post-card:hover
.dwert-home-post-more span {
    transform: translateX(3px);
}


/* =========================================================
   모든 게시글 보기
   ========================================================= */

.dwert-home-latest-footer {
    display: flex;
    justify-content: center;

    margin-top: 24px;
}

.dwert-home-latest-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-width: 190px;
    min-height: 48px;

    padding: 0 20px;

    background:
        linear-gradient(
            135deg,
            #f7faff 0%,
            #edf4ff 100%
        );

    color: #285bd4 !important;

    border: 1px solid #cfdcff;
    border-radius: 13px;

    font-size: 13px;
    font-weight: 800;
    line-height: 1;

    text-decoration: none !important;

    box-shadow:
        0 4px 14px rgba(53, 109, 243, 0.06);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.dwert-home-latest-all:hover {
    background:
        linear-gradient(
            135deg,
            #edf4ff 0%,
            #e3edff 100%
        );

    border-color: #aac3ff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(53, 109, 243, 0.12);
}

.dwert-home-latest-all span {
    font-size: 16px;

    transition:
        transform 0.2s ease;
}

.dwert-home-latest-all:hover span {
    transform: translateX(3px);
}


/* =========================================================
   글 없음
   ========================================================= */

.dwert-home-latest-empty {
    padding: 30px;

    background: #f8fafc;

    border: 1px solid #eaecf0;
    border-radius: 18px;

    color: #667085;

    text-align: center;

    font-size: 14px;
}


/* =========================================================
   태블릿
   ========================================================= */

@media (max-width: 760px) {

    .dwert-home-latest {
        margin-top: 42px;
    }

    .dwert-home-latest-header h2 {
        font-size: 29px;
    }

    .dwert-home-latest-grid {
        grid-template-columns: 1fr;

        gap: 13px;
    }

    .dwert-home-post-card {
        border-radius: 18px;
    }

    .dwert-home-post-content {
        padding: 17px;
    }

    .dwert-home-post-content h3 {
        font-size: 17px;
    }

    .dwert-home-latest-footer {
        margin-top: 20px;
    }
}


/* =========================================================
   모바일
   ========================================================= */

@media (max-width: 480px) {

    .dwert-home-latest {
        margin-top: 34px;
    }

    .dwert-home-latest-header {
        margin-bottom: 17px;
    }

    .dwert-home-latest-header h2 {
        font-size: 27px;
    }

    .dwert-home-latest-header p {
        font-size: 13px;
    }

    .dwert-home-post-content h3 {
        font-size: 16px;
    }

    .dwert-home-latest-all {
        width: 100%;
        min-height: 50px;
    }
}