@charset "UTF-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/variable/pretendardvariable.css");
.font-pretendard{
    font-family: "Pretendard Variable";
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Pretendard Variable";
    max-width: 580px;
    margin: auto;
    background: #f9f9f9;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    min-height:100vh
}

p {
    line-height: 1.5;
}

p, h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    margin-bottom: 0rem;
}

a {
    text-decoration: none;
    color: inherit
}

.btn-close {
    margin-bottom: 0px;
    padding-bottom: 0px;
    border: none;
}

.btn-close:focus {
    box-shadow: none;
}

.btn-outline-secondary {
    --bs-btn-color: #2c2c2c;
    --bs-btn-border-color: #525252;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #525252;
    --bs-btn-hover-border-color: #525252;
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #525252;
    --bs-btn-active-border-color: #525252;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #525252;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #525252;
    --bs-gradient: none;
}

.btn-light {
    --bs-btn-color: #525252;
    --bs-btn-bg: #ececec;
    --bs-btn-border-color: #ececec;
    --bs-btn-hover-color: #2c2c2c;
    --bs-btn-hover-bg: #d8d8d8;
    --bs-btn-hover-border-color: #d8d8d8;
    --bs-btn-focus-shadow-rgb: 211, 212, 213;
    --bs-btn-active-color: #525252;
    --bs-btn-active-bg: #d8d8d8;
    --bs-btn-active-border-color: #d8d8d8;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: #ececec;
    --bs-btn-disabled-border-color: #ececec;
    font-weight: 500;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    display: none;
}

@media (max-width:575.98px) {
    .row>* {
        padding-right: 7px;
    }
}

/* ---- 헤더 시작 ---- */

header{
    background:#fff;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    max-width:580px;
    width:100%;
    margin:auto;
}

.header-title{
    display:flex;
    justify-content: space-between;
    align-items: center
}

.header-title img{
    width:28px;
}

.title{
    font-size: calc(1.275rem + 0.3vw);
    font-weight:600;
}

@media (min-width: 1200px) {
    .title {
        font-size: 1.4rem;
    }
}

.header-search {
    position:relative;
    display:flex;
    align-items:center;
}  

.search-box {
    width: 100%;
    background-image: url(../images/icon/glass.svg);
    background-position: 1.2rem 0.775rem;
    background-size: 22px;
    background-repeat: no-repeat;
    text-indent: 50px;
    border: 0.1rem solid #1FBABF;
    border-radius: 30px;
    padding: 11px 5px;
    background-color: #fff;
    color: #222225;
    text-decoration: none;
    font-size: 1.1rem;
    outline: none;
}

@media (max-width:575.98px) {
    .search-box {
        background-position: 1.2rem 0.665rem;
        font-size: 1rem;
    }
}

.header-search button {
    position: absolute;
    border-radius: 16px;
    font-size: 14px;
    right: 15px;
    white-space: nowrap;
}

input::placeholder {
    color: #989898;
    font-size: 1.1rem
}

@media (max-width:575.98px) {
    input::placeholder {
        font-size: 1rem;
    }

}

/* ---- 헤더 끝 ---- */

/* ---- 모달 시작 ---- */

.modal-dialog {
    max-width: 600px;
    height: calc(var(--vh, 1vh) * 100); 
    margin: auto;
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 0;
    border: 0;
    padding: 0.2rem;
}

@media (min-width:575.98px) {
    .modal-content {
        padding: 1rem;
    }
}

.modal-header{
    border: 0;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
}

.modal-footer {
    flex-shrink: 0;
}

.modal h6{
    margin-bottom:0.75rem;
}

.btn-outline-secondary{
    margin: 0rem 0.375rem 0.75rem 0rem;
    padding: 0.5rem 1rem;
    width:78px;
    border-radius: 25px;
}

.btn-dark{
    padding: 0.5rem 1rem;
    width:78px;
    border-radius: 25px;
    font-size: 1.075rem;
}

.btn {
    padding: 5px 10px;
    height: auto;
}

.search-footer {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    text-align: right;
}

/* ---- 모달 끝 ---- */

/* ---- 메인 시작 ---- */

main{
    margin-top:150px;
    padding-bottom:40px;
}

.list-container {
    position:relative;
    background: #fff;
    padding: 1.2rem 0.9rem 1.2rem 0.9rem;
    margin-top: 1rem;
    overflow:hidden;
}

@media (min-width:575.98px) {
    .list-container {
        padding: 1.4rem;
    }
}

.info-container {
    display: flex;
    justify-content: space-between;
    height: auto;
    align-items: start;
}

.img-container{
    display:flex;
    align-items:start;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.harkwon-img{
    max-width: 100%; 
    max-height: 100%;
    object-fit: contain;
}


/* ---- 뉴 ----*/

.indicator {
    display: inline-block;
    width: .5rem;
    height: .5rem;
    background-color: #0B759D;
    border-radius: 50%;
    margin-right: .3rem;
    margin-bottom:1px;
}

.info-nm {
    font-size:1.05rem;
    margin-bottom:0.7rem;
    color: #222225;
}

.info-text{
    color: #222225;
    font-size:0.9rem;
    word-break: keep-all;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    width: 100%;
}

.info {
    display: flex;
    flex-direction: column;
    width: calc(100% - 80px);
    height: 72px;
}

.img-wrapper {
    height:72px; width:72px;
    position:relative
}

.tag-container {
    display: flex;
    margin-top: 0.75rem;
    flex-wrap: nowrap;
    overflow: hidden;
}

.tag-container h5 {
    font-weight: 400;
    font-size: 0.875rem;
    color: #0B759D;
    margin-right: 8px;
    text-wrap: nowrap;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-top: 0.875rem;
}

.link-container {
    overflow: hidden;
    width: calc(100% - 100px);
    line-height: 1.6;
    font-size: 0.875rem;
    color: #727272;
}

.link-container a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    display: block;
    padding-left: 22px;
}

.link-container a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 15px;
    background-image: url('../images/icon/naver_blog.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-top:0.056rem;
}

.icon-container {
    display:flex;
    align-items:center;
    justify-content: end;
    width: 100px;
    margin-bottom:2px;
}

.icon-container img{
    width:26px;
    margin-left:10px;
}

.apply-icon {
    position: absolute; 
    bottom: -15px;
    right: -10px;
    width: 44px;
    height: 44px;
}


/* 아이폰 */
@media (min-width:360.02px) {
    .info-nm {
        font-size:1.1rem;
        margin-bottom:0.8rem;
    }
    .info-text{
        font-size:0.975rem;
    }
    .info {
        width: calc(100% - 90px);
        height: 78px;
    }
    .img-wrapper {
        height:78px; width:78px;
    }
    .tag-container h5 {
        font-size: 0.9rem;
    }
    .link-container {
        width: calc(100% - 110px);
        font-size: 0.9rem;
    }
    .link-container a {
        padding-left: 25px;
    }
    .link-container a::before {
        width: 18px;
        height: 17px;
    }
    .icon-container img{
        width:28px;
    }
    .apply-icon { 
        bottom: -17px; 
        right: -10px; 
        width: 46px; 
        height: 46px; 
    }        
}

/* 테블릿 이상 */
@media (min-width:575.98px) {
    .info-nm {
        font-size:1.3rem;
        margin-bottom:0.875rem;
    }
    .info-text{
        font-size:17px;
    }
    .info {
        width: calc(100% - 110px);
        height: 90px;
    }
    .img-wrapper {
        height:89px; width:89px;
    }
    .tag-container h5 {
        font-size: 16px;
    }
    .link-container {
        width: calc(100% - 150px);
        font-size: 16px;
    }
    .link-container a {
        padding-left: 27px;
    }
    .link-container a::before {
        width: 19px;
        height: 18px;
    }
    .icon-container img{
        width:30px;
        margin-left:12px;
    }
    .apply-icon { 
        bottom: -18px; 
        right: -11px; 
        width: 48px; 
        height: 48px; 
    }    
}


.popover {
    max-width: 340px !important; /* 너비 고정 */
    width: 340px !important; /* 팝오버의 너비 */
    border-radius: 8px !important; /* 둥근 모서리 */
    border:1px solid #0B759D;
    font-size:16px;
    font-family: "Pretendard Variable";
    color:#020202;
    background-color: #fff;
    margin: 0px 0px 0px 10px !important; /* 원하는 margin 값으로 변경 */
    inset: auto auto 0px 0px !important;
}

@media (min-width:575.98px) {
    .popover {
        max-width: 400px !important; /* 너비 고정 */
        width: 400px !important; /* 팝오버의 너비 */
        margin: 0px 0px 0px -12px !important; /* 원하는 margin 값으로 변경 */
    }
}


.apply {
    flex: 1;
    margin-top: 60px;
    padding-bottom: 0px;
    background: #fff;
    word-break: keep-all
}

.apply .container{
    margin-top: 0.5rem;
    padding: 0rem 1.15rem 0rem 1.15rem;
}

@media (min-width:575.98px) {
    .apply .container {
        padding: 0rem 1.4rem 0rem 1.4rem;
    }
}

.section-nm {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.section-nm-1 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.section-nm-2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.hello {
    font-size:16px;
    word-break: keep-all;
    line-height: 1.6
}

.form-control:focus{
    box-shadow:none;
}

.text-size-14 {
    font-size: 14px;
    font-weight: 400;
    display: block;
}

.hakwon-footer {
    background: #fff;
    padding: 3rem 0rem
}

footer .container{
    margin-top: 3rem;
    padding: 0rem 1.15rem 0rem 1.15rem;
}

@media (min-width:575.98px) {
    .footer .container {
        padding: 0rem 1.4rem 0rem 1.4rem;
    }
}

.footer-hakwon-nm {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.75rem
}

.footer-icon-container {
    display: flex; 
    margin-bottom:0.75rem
}

.footer-icon-container img {
    margin-right:10px;
    width:28px;
}

.footer-hakwon-info {
    color:#747474;
}

.footer-hakwon-info span {
    font-size: 14px;
    line-height: 1.6;
    display: block
}

.footer-hakwon-info a {
    font-size: 14px;
    line-height: 1.6;
    display: block
}

.footer-hakwon-info img {
    width:28px; margin-right:10px;
}

.apply .form-control::placeholder {
    font-size: 14px; 
    color: #999;
}

.apply-icon.exmaple{
    bottom: -13px;
    right: -6px;
    width: 42px;
    height: 42px;
}

@media (min-width:360.02px) {
    .apply-icon.exmaple {
        bottom: -14px;
        right: -6px;
        width: 43px;
        height: 43px;
    }
}

@media (min-width:575.98px) {
    .apply-icon.exmaple {
        bottom: -14px;
        right: -4px;
        width: 44px;
        height: 44px;
    }
}

.show-ex {
    text-decoration: underline;
    color: #0d6efd
}

.footer-info {
    color:#747474;
    font-size: 12px;
    line-height:1.5
}

.term-semititle {
    font-size:16px; font-weight:500;
}

.term-text {
    font-size:14px; line-height:1.6;
}

.header-title a{font-size:14px;}