/* sub page title */
.sub .page_title h1 {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 100px;
    letter-spacing: -0.04em;
    color: #000;
    line-height: calc(80/100*1em);
}
@media screen and (max-width: 1280px) {
    .sub .page_title h1 {
        font-size: clamp(80px, 100/1280*100vw, 100px);
    }
}
@media screen and (max-width: 1024px) {
    .sub .page_title h1 {
        font-size: clamp(70px, 80/1024*100vw, 80px);
    }
}
@media screen and (max-width: 820px) {
    .sub .page_title h1 {
        font-size: clamp(65px, 85/820*100vw, 85px);
    }
}
@media screen and (max-width: 500px) {
    .sub .page_title h1 {
        font-size: clamp(60px, 70/500*100vw, 70px);
    }
}


/* sub page list top - magazine list markup used */
.sub .list-top {
    display: flex; align-items: flex-end; justify-content: space-between;
    font-size: 16px;
    padding-bottom: calc(50/16*1em);
}
.sub .list-top:has(.list-items-count) {
    padding-bottom: calc(40/16*1em);
}
@media screen and (max-width: 1280px) {
    .sub .list-top {
        font-size: clamp(14px, 15/1280*100vw, 15px);
    }
}
@media screen and (max-width: 1024px) {
    .sub .list-top {
        font-size: clamp(13px, 14/1024*100vw, 14px);
    }
}
@media screen and (max-width: 820px) {
    .sub .list-top {
        flex-direction: column;
        align-items: center;
        gap: calc(20/16*1em);
    }
}

/* sub page list items count - magazine list markup used */
.sub .list-top .list-items-count {
    font-family: 'Roboto', sans-serif;
    font-size: inherit;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: #000;
}
.sub .list-top .list-items-count em {
    padding: 0 calc(10/16*1em);
}

/* sub page list search bar style - magazine list markup used */
.sub .list-top .list-serch-bar {
    display: flex; align-items: center; justify-content: space-between;
    font-size: inherit;
    width: calc(450/16*1em);
    height: calc(60/16*1em);
    border-radius: calc(30/16*1em);
    background: #efefef;
    padding: 0 calc(10/16*1em) 0 calc(30/16*1em);
    box-sizing: border-box;
}
.sub .list-top .list-serch-bar input {
    border: none;
    outline: none;
    font-size: inherit;
    font-family: 'Pretendard';
    font-weight: 400;
    letter-spacing: -0.04em;
    color: #000;
    background: transparent;
    width: 100%;

    &::placeholder {
        letter-spacing: -0.04em;
        font-family: inherit;
        font-size: inherit;
        font-weight: inherit;
    }
}
.sub .list-top .list-serch-bar .search-btn {
    width: calc(40/18*1em);
    height: calc(40/18*1em);
    font-size: calc(18/16*1em);
    color: #fff;
    background: #c41b24;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;

    @media screen and (min-width: 821px) {
        &:hover {
            background: #555;
        }
    }
}
@media screen and (max-width: 500px) {
    .sub .list-top .list-serch-bar {
        width: 100%;
    }
}


/* sub page grid list style - magazine list markup used */
.sub .list-grid {
    --gap-row: calc(50/20*1em);
    --gap-col: calc(40/20*1em);
    --gap: var(--gap-row) var(--gap-col);
    font-size: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-row) var(--gap-col);
}
.sub .list-grid .item {
    display: flex; flex-direction: column;
    min-width: 0;
    cursor: pointer;

    @media screen and (min-width: 821px) {
        &:hover {
            .img {
                border-radius: 0 calc(100/20*1em) calc(100/20*1em) 0;
            }
            .info .title {
                color: #c41b24;
            }
        }
    }
}
.sub .list-grid .item .img {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.sub .list-grid .item .img::after {
    content: '';
    padding-top: calc(310/450*100%);
    display: block;
}
.sub .list-grid .item .img img {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    object-fit: cover;
}
.sub .list-grid .item .info {
    display: flex; flex-direction: column; gap: calc(20/20*1em);
    padding-top: calc(20/20*1em);
}
.sub .list-grid .item .info .title {
    font-size: inherit;
    color: #000;
    font-family: 'Pretendard';
    font-weight: 600;
    letter-spacing: -0.04em;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.sub .list-grid .item .info .date {
    font-size: clamp(14px, 16/20*1em, 16px);
    color: #666666;
    font-family: 'Pretendard';
    font-weight: 500;
    letter-spacing: -0.04em;
}

@media screen and (max-width: 1440px) {
    .sub .list-grid {
        font-size: clamp(18px, 20/1440*100vw, 20px);
    }
}
@media screen and (max-width: 1280px) {
    .sub .list-grid {
        font-size: clamp(17px, 18/1280*100vw, 18px);
        --gap-row: calc(40/17*1em);
        --gap-col: calc(30/17*1em);
    }
}
@media screen and (max-width: 1024px) {
    .sub .list-grid {
        font-size: clamp(15px, 16/1024*100vw, 16px);
        --gap-row: calc(30/15*1em);
        --gap-col: calc(20/15*1em);
    }
}
@media screen and (max-width: 820px) {
    .sub .list-grid {
        grid-template-columns: repeat(2, 1fr);
        font-size: clamp(16px, 18/820*100vw, 18px);
    }
}
@media screen and (max-width: 500px) {
    .sub .list-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
@media screen and (max-width: 360px) {
    .sub .list-grid {
        font-size: clamp(15px, 16/360*100vw, 16px);
    }
    .sub .list-grid .item .info .date {
        font-size: clamp(12px, 14/360*100vw, 14px);
    }
}


/* pagination style - magazine list markup used */
.sub .list-pagination {
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.sub .list-pagination > div {
    display: flex; align-items: center;
}
.sub .list-pagination > .num {
    padding: 0 calc(35/16*1em);
    gap: calc(5/16*1em);
}
.sub .list-pagination > .num a {
    width: calc(30/16*1em); height: calc(30/16*1em); 
    display: flex; align-items: center; justify-content: center; 
    font-family: 'Pretendard'; 
    font-weight: 500; 
    font-size: inherit; 
    letter-spacing: -0.04em; 
    color: #000; 
    border-radius: 50%; 
}
.sub .list-pagination > .arr a {
    width: calc(30/16*1em); height: calc(30/16*1em); 
    display: flex; align-items: center; justify-content: center;
}
.sub .list-pagination > .num a.act {background: #c41b24; color: #fff;}
.sub .list-pagination a {transition: all 0.3s;}
.sub .list-pagination a:hover {color: #c41b24;}


/* red with icon button style - work view page markup(list button) used */
.red-btn-with-icon {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 20px;
    width: calc(150/20*1em);
    font-family: 'Pretendard';
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #fff;
    background: #c41b24;
    border-radius: calc(100/20*1em);
    padding: calc(15/20*1em) calc(25/20*1em);
    transition: all 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;

    @media screen and (min-width: 821px){
        &:hover {
            background: #555;
        }
    }
}
.red-btn-with-icon i {
    font-size: calc(18/20*1em);
}
@media screen and (max-width: 1024px) {
    .red-btn-with-icon {
        font-size: clamp(18px, 20/1024*100vw, 20px);
    }
}
@media screen and (max-width: 500px) {
    .red-btn-with-icon {
        font-size: clamp(16px, 18/500*100vw, 18px);
    }
}
@media screen and (max-width: 360px) {
    .red-btn-with-icon {
        font-size: clamp(14px, 16/360*100vw, 16px);
    }
}

/* sub view page title */
.view-article .cont{
    border-top: 1px solid #ddd;
    margin: 0 auto;
    padding: 100px 0;
    /* text-align: center; */
    line-height: 1.5;
}
.view-article .title {
    text-align: center;
    margin-bottom: 100px;
}
.view-article .title h3{
    font-size: 40px; font-weight: 600; letter-spacing: -0.04em;
}
.view-article .title .date{
    font-size: 16px; letter-spacing: -0.04em;
    color: #666;
}
@media screen and (max-width: 1024px){
    .view-article .cont{
        padding: 80px 40px;
    }
    .view-article .title h3{
        font-size: 32px;
    }
}
@media screen and (max-width: 820px){
    .view-article .title{
        margin-bottom: 80px;
    }
    .view-article .title h3{
        font-size: 26px;
    }
}
@media screen and (max-width: 500px){
    .view-article .cont{
        padding: 60px 40px;
    }
    .view-article .title{
        margin-bottom: 60px;
    }
}


/* page-list style - news view page markup(list button) used */
.page-list li a{ 
    display: flex;
    font-size: 16px; letter-spacing: -0.04em;
    padding: 25px 10px;
    cursor: pointer;

    @media screen and (min-width: 821px) {
        &:hover {
            color: #c41b24;
        }
    }
 }
.page-list li:first-child{
    border-top: 1px solid #ddd;
}
.page-list li + li{
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #ddd;
}
.page-list li .flex{
    display: flex; align-items: center;
    gap: 10px;
}
.page-list li .line{
    padding: 0 18px;
    align-content: center;
}
@media screen and (max-width: 820px){
    .page-list li a{ 
        font-size: 14px;
        padding: 16px 8px;
    }
}

