@charset "utf-8";

.rt_latest_banner_wrap{
    width:100%;
    box-sizing:border-box;
}

.rt_latest_title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:24px;
}

.rt_latest_title a{
    text-decoration:none;
}

.rt_latest_title h2{
    margin:0;
    font-size:24px;
    font-weight:800;
    color:#111827;
}

.rt_latest_title button{
    border:0;
    background:#f3f4f6;
    color:#374151;
    padding:8px 16px;
    border-radius:999px;
    cursor:pointer;
}

.rt_banner_list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:32px;
}

.rt_banner_card{
    position:relative;
    width:100%;
    height:290px;
    overflow:hidden !important;
    border-radius:18px !important;
    background:#eaf4fb;
    box-sizing:border-box;
    clip-path:inset(0 round 18px);
}

.rt_banner_link{
    display:block;
    position:relative;
    width:100%;
    height:100%;
    overflow:hidden !important;
    border-radius:18px !important;
    color:inherit;
    text-decoration:none;
}

/* 핵심: 이미지 비율 자동 크롭 */
.rt_banner_bg{
    position:absolute !important;
    left:0 !important;
    top:0 !important;
    right:0 !important;
    bottom:0 !important;
    width:100% !important;
    height:100% !important;
    background-size:cover !important;
    background-position:center center !important;
    background-repeat:no-repeat !important;
    z-index:1;
}

.rt_banner_dim{
    position:absolute;
    inset:0;
    z-index:2;
    background:linear-gradient(
        90deg,
        rgba(255,255,255,.72) 0%,
        rgba(255,255,255,.48) 28%,
        rgba(255,255,255,.16) 52%,
        rgba(255,255,255,0) 78%,
        rgba(255,255,255,0) 100%
    );
}

.rt_banner_content{
    position:relative;
    z-index:3;
    width:82%;
    height:100%;
    padding:22px 28px 18px;
    box-sizing:border-box;
    color:#063b6d;
    display:flex;
    flex-direction:column;
}

.rt_banner_top{
    font-size:17px;
    line-height:1.3;
    font-weight:500;
    letter-spacing:-0.04em;
    margin-bottom:6px;
    color:#073b69;
}

.rt_banner_subject{
    width:100%;
    margin:0 0 13px;
    font-size:38px;
    line-height:1.08;
    font-weight:900;
    letter-spacing:-0.07em;
    color:#063b6d;
    word-break:keep-all;
}

.rt_banner_bottom{
    position:relative;
    width:100%;
    padding-left:20px;
    font-size:14px;
    line-height:1.45;
    font-weight:800;
    letter-spacing:-0.04em;
    color:#064576;
    margin-bottom:12px;
    word-break:keep-all;
}

.rt_banner_bottom:before{
    content:"";
    position:absolute;
    left:0;
    top:3px;
    width:2px;
    height:calc(100% - 6px);
    background:#064576;
}

.rt_banner_bottom:after{
    content:"";
    position:absolute;
    left:-4px;
    bottom:1px;
    width:10px;
    height:10px;
    border-radius:50%;
    background:#064576;
}

.rt_banner_icons{
    margin-top:auto;
    display:flex;
    align-items:flex-start;
    width:58%;
    max-width:430px;
    min-width:360px;
    padding-top:6px;
}

.rt_banner_icon_item{
    flex:1;
    min-width:0;
    text-align:center;
    padding:0 8px;
    border-right:1px solid rgba(6,59,109,.2);
    box-sizing:border-box;
}

.rt_banner_icon_item:last-child{
    border-right:0;
}

.rt_banner_icon{
    display:flex;
    align-items:center;
    justify-content:center;
    height:28px;
    margin-bottom:4px;
}

.rt_banner_icon svg{
    width:24px;
    height:24px;
    fill:none;
    stroke:#064576;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.rt_banner_icon_text{
    display:block;
    font-size:12px;
    font-weight:800;
    color:#064576;
    letter-spacing:-0.04em;
    white-space:nowrap;
}

.rt_banner_empty{
    grid-column:1 / -1;
    padding:60px 20px;
    text-align:center;
    background:#f9fafb;
    color:#777;
    border:1px solid #eee;
}

@media (max-width:1024px){
    .rt_banner_list{
        gap:20px;
    }

    .rt_banner_card{
        height:270px;
    }

    .rt_banner_content{
        width:86%;
        padding:22px 22px 18px;
    }

    .rt_banner_subject{
        font-size:34px;
    }

    .rt_banner_bottom{
        font-size:14px;
    }

    .rt_banner_icons{
        width:62%;
        min-width:310px;
    }
}

@media (max-width:768px){
    .rt_banner_list{
        grid-template-columns:1fr;
        gap:18px;
    }

    .rt_banner_card{
        height:340px;
        border-radius:16px !important;
        clip-path:inset(0 round 16px);
    }

    .rt_banner_link{
        border-radius:16px !important;
    }

    .rt_banner_content{
        width:100%;
        padding:24px 22px 20px;
    }

   .rt_banner_dim{
    background:linear-gradient(
        180deg,
        rgba(255,255,255,.68) 0%,
        rgba(255,255,255,.42) 42%,
        rgba(255,255,255,.08) 72%,
        rgba(255,255,255,0) 100%
    );
}

    .rt_banner_subject{
        font-size:36px;
    }

    .rt_banner_bottom{
        font-size:15px;
    }

    .rt_banner_icons{
        width:100%;
        max-width:none;
        min-width:0;
        flex-wrap:wrap;
        row-gap:12px;
    }

    .rt_banner_icon_item{
        width:50%;
        flex:none;
        border-right:0;
    }
}
/* 밝은 이미지 */
.rt_banner_light .rt_banner_dim{
    background:linear-gradient(
        90deg,
        rgba(255,255,255,.74) 0%,
        rgba(255,255,255,.48) 34%,
        rgba(255,255,255,.14) 58%,
        rgba(255,255,255,0) 76%,
        rgba(255,255,255,0) 100%
    );
}

.rt_banner_light .rt_banner_content,
.rt_banner_light .rt_banner_top,
.rt_banner_light .rt_banner_subject,
.rt_banner_light .rt_banner_bottom,
.rt_banner_light .rt_banner_icon_text{
    color:#064576;
}

.rt_banner_light .rt_banner_bottom:before,
.rt_banner_light .rt_banner_bottom:after{
    background:#064576;
}

.rt_banner_light .rt_banner_icon svg{
    stroke:#064576;
}


/* 어두운 이미지 */
.rt_banner_dark .rt_banner_dim{
    background:linear-gradient(
        90deg,
        rgba(0,0,0,.62) 0%,
        rgba(0,0,0,.44) 34%,
        rgba(0,0,0,.18) 58%,
        rgba(0,0,0,0) 76%,
        rgba(0,0,0,0) 100%
    );
}

.rt_banner_dark .rt_banner_content,
.rt_banner_dark .rt_banner_top,
.rt_banner_dark .rt_banner_subject,
.rt_banner_dark .rt_banner_bottom,
.rt_banner_dark .rt_banner_icon_text{
    color:#fff;
}

.rt_banner_dark .rt_banner_bottom:before,
.rt_banner_dark .rt_banner_bottom:after{
    background:#fff;
}

.rt_banner_dark .rt_banner_icon svg{
    stroke:#fff;
}

.rt_banner_dark .rt_banner_icon_item{
    border-right-color:rgba(255,255,255,.35);
}