html {
    font-size: clamp(0px,0.0520833vw,1px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.body-content {
    width: 1160rem;
    margin: auto;
}

.content-background {
    width: 1160rem;
    height: 260rem; 
    margin: 5% auto;

    background-size: cover;  /*화면을 여뱍없이 꽉 채움*/
    background-position: center;  /*백그라운드 기준점을 가운데로*/
}

.content-background div {
    transform: translate(3%, 190%);
}

.content-background .top-p {
    font-size: 24rem; 
    font-weight: bold; 
    color: white; 
    text-shadow: 0rem 0rem 5rem rgba(0, 0, 0, 0.25); 
    margin-bottom: 0;
}

.top-p span {
    font-size: 36rem;
}

.content-background .bottom-p {
    font-size: 24rem; 
    font-weight: bold; 
    color: white;
    text-shadow: 0rem 0rem 5rem rgba(0, 0, 0, 0.25); 
    margin-top: 0; 
    vertical-align: bottom;
}

.content .item {
    display: flex; 
    width: 1160rem;
    /*margin: 3% auto;*/
    border-top: 2rem solid #BFBFBF;
}

.item a{
    display: flex;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.item a > div:first-child {
    overflow: hidden;
    width: 268rem;
    height: 240rem;
    margin: 20rem;
}

.item img {
    width: 100%;
    height: 100%;
    box-shadow: 0 2rem 2rem 0 rgba(0,0,0,0.25);
}

.script {
    margin-left: 28rem;
    width: 826rem;
}

.script .title {
    font-size: 20rem; 
    font-weight: bold;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 60rem 0 0 0;
}

.script .date {
    font-size: 16rem; 
    color: gray;
    font-weight: 500;
    margin: 0 0 0 5rem;
}

.script .description {
    margin: 20rem 0 20rem 5rem;
    width: 720rem;
    height: 60rem;
    font-size: 20rem;
    font-weight: 500;
    line-height: 30rem;
    color: grey;
    text-decoration: none;
    overflow: hidden;
}
.script .description p {
    width: 100%;
    height: 100%;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.read-more {
    font-size: 15rem;
    margin: auto; 
    text-align: center; 
}
.read-more p {
    cursor: pointer;
    width: 100rem;
    margin: auto;
    margin-bottom: 0;
}
.read-more img {
    width: 120rem;
    height: 8rem;
}

.container-fluid {
    float: right;
    margin-right: 10%;
    margin-bottom: 4%;
}

.search {
    width: 180rem;
}
.search-btn {
    background-color: #2D7700;
    color: white;
    width: 65rem;
    font-size: 15rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
}
@media screen and (max-width: 1160px) {
    /*.script .description {*/
    /*    height: 70rem;*/
    /*    font-size: 16rem;*/
    /*}*/
}

@media screen and (max-width: 780px) {
    .body-content {
        width: 1440rem;
    }
    .content-background {
        width: 100%;
        height: 360rem;
    }
    .content-background div {
        transform: translate(3%, 100rem);
    }
    .content-background .top-p {
        font-size: 50rem;
    }
    .top-p span {
        font-size: 80rem;
    }
    .content-background .bottom-p {
        font-size: 50rem;
    }
    .content .item {
        width: 100%;
    }
    .item a > div:first-child {
        width: 536rem;
        height: 480rem;
        margin: 40rem;
    }
    .script {
        width: 796rem;
    }
    .script .title {
        margin: 100rem 0 0 0;
        font-size: 50rem;
    }
    .script .date {
        font-size: 40rem;
    }
    .script .description {
        display: none;
    }

    .read-more {
        font-size: 40rem;
    }
    .read-more p {
        width: 230rem;
    }
    .read-more img {
        width: 220rem;
        height: 50rem;
    }
    .search {
        width: 240rem;
        height: 60rem;
        font-size: 25rem;
    }
    .search-btn {
        width: 110rem;
        height: 60rem;
        font-size: 25rem;
    }
}
