.carousel-item img {
    width: auto; /* 가로세로 비율을 유지하며 크기 조정 */
    object-fit: cover; /* 이미지가 섹션 안에 꽉 차도록 */
    max-height: 560px;
}




.txt01 {
    font-size: 24px;
    line-height: 1.5;
    color: #333;
    text-align: center;
    margin-bottom: 21px;
    font-weight: 200;
}

.tit01 {
    font-size: 38px;
    text-align: center;
    color: #000;
    margin-bottom: 10px;
    font-weight: 700;
}

.tit01 span {
    display: block;
    font-size: 18px;
    color: #666;
    margin-top: 10px;
}

.link ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.link ul li {
    flex: 1;
    min-width: 250px;
    height: 300px;
    margin: 10px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.link ul li:hover {
    transform: translateY(-10px);
}

.link ul li a {
    display: block;
    padding: 20px;

    text-decoration: none;
    color: #333;
}

.link ul li a strong {
    font-size: 27px;
    display: block;

    color: #000;
    margin-bottom: 10px;
}

.link ul li a span {
    display: inline-block;
    font-size: 16px;
    text-align: left;
    color: #000;
    word-wrap: break-word; /* 단어가 길 경우 자동 줄바꿈 */
    line-height: 1.5;
}

.icon {
    width: 130px; /* 원하는 크기로 설정 */
    height: 130px;
    margin-top: 50px; /* 텍스트와의 간격 조정 */
    display: block; /* 텍스트와 이미지가 같은 줄에 있도록 설정 */
    float: right;

}

/* 메인 두번째 컨텐츠 */

.three{
    background-color: #ffffff;
    background-size: cover; 
    background-position: center;
}

.left-content {
    flex: 4;
    color: #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-content {
    flex: 6;
    padding: 20px;
    max-height: 680px; /* 고정된 높이 */
    min-height: 400px;
    overflow: hidden;
    position: relative;
}

.testimonial {
    background-color: #fff;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: clamp(600px, 2vw, 800px);
    border: 1px solid #ccc; 
    padding: 10px; 
    margin-bottom: 20px; 
    background-color: #f9f9f9; 
    border-radius: 8px;
}

/*추가 컨텐츠 배정과정 */

/* 전체 섹션 스타일 */
.procedure-section {
    padding: 10px;
    color: #333;
    text-align: center;
}

/* 절차 단계 스타일 */
.procedure-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.procedure-steps .step {
    background-color: #0056b3;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1;
    text-align: center;
    min-width: 140px
}
.procedure-steps .step h3 {
    color: white;
    font-size: clamp(12px, 1vw, 20px);
    white-space: nowrap;
    font-weight: 600;
    
}

.procedure-steps .step p {
    color: white;
    font-size: clamp(9px, 1vw, 14px);
    margin-bottom: 0rem;
}

/* 메인 세번째 컨텐츠 */
/* 메인 텍스트와 탭의 3:7 비율 설정 */
.layout-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.main-text {
    /* flex: 3; */
    padding-right: 20px;
    text-align: center;
}

.age-tab ul {
    /* flex: 7; */
    display: flex;
    justify-content: center;  /*flex-end or center*/
    list-style: none;
    padding: 0;
}

.age-tab ul li {
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right:  clamp(10px, 1vw, 25px);
    padding-left: clamp(10px, 1vw, 25px);
    cursor: pointer;
    background-color: #ccc;
    border-radius: 8px;
    margin-left: 10px;
    font-size: clamp(10px, 1vw, 16px);
    white-space: nowrap;

}

.age-tab ul li.active {
    background-color: #ff9800;
    color: white;
}

/* 과목 리스트의 그리드 레이아웃 */
.subject-content {
    margin-top: 0px;
}

.subjects {
    display: none;
}

.subjects.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* 한 줄로 가능할 경우 자동배치 */
    gap: clamp(5px, 1vw, 20px); /* 최소 gap: 5px, 최대 gap: 20px */
}

.subject-box {
    text-align: center;
    /* background-color: rgba(255, 255, 255, 0.5); */
    padding: 20px;
    border-radius: 10px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    position: relative; /* 부모 요소에 상대적 위치 설정 */
    width: 110px;
    height: 130px;
    /* border: 1px solid #ddd; */
    text-align: center;
    margin: 10px;
    transition: transform 0.3s ease;
    overflow: hidden; /* 자식 요소가 박스를 벗어나지 않게 */
}

.subject-box strong {
    font-size: clamp(8px, 1vw, 14px);
    white-space: nowrap;
}

.subject-box:hover {
    transform: scale(1.05); /* 마우스 오버 시 박스 크기 확대 */
}
.subject-box img {
    width: 100%;
    height: auto;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* 투명도가 있는 회색 */
    opacity: 0;
    transition: opacity 0.3s ease;
}
.subject-box:hover .overlay {
    opacity: 1; /* 마우스 오버 시 오버레이 보이기 */
}

.subject-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.details-button {
    position: absolute;
    bottom: 2cap;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f89b42;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 18px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.details-text {
    position: absolute;
    top: 50%; /* 세로 중앙 */
    left: 50%; /* 가로 중앙 */
    transform: translate(-50%, -50%); /* 정확한 중앙을 맞추기 위한 변환 */
    color: white;
    background-color: #f89b42; /* 배경색 */
    padding: 6px 13px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    font-size: clamp(8px, 1vw, 14px); /* 최소 10px, 최대 16px */
}
.subject-box:hover .details-text {
    opacity: 1; /* 마우스 오버 시 텍스트 보이기 */
}




/* 내부 페이지 */









@media (min-width: 1200px) {
    .inner-horizontal {
        width: 1200px; /* 큰 화면에서는 1200px로 고정 */
    }
}



@media (max-width: 1119px) {
    

    .carousel-item img {
        height: auto;
        width: auto;/* 모바일에서 이미지 높이를 줄임 */
    }

    .inner-horizontal {
        display: block; /* 모바일에서는 수직으로 쌓이도록 */
    }
    .inner-vertical {
        min-height: 400px;
        padding: 10px 10px;
    
    }

    .left-content, .right-content {
        flex: 1 1 100%; /* 각 영역이 100% 너비를 차지하도록 */
        padding: 10px;  /* 패딩 조정 */
    }

    .new-content {
        height: auto; /* 높이 자동 조정 */
    }
    .testimonial {
        font-size: 12px; /* 모바일에서 작은 글꼴 */
    }

    .right-content {
        overflow: hidden; /* 모바일에서 스크롤 감추기 */
    }
    .link ul li {
        flex: 1 2 45%; /* 한 줄에 하나씩 배치 */
        min-width: auto; /* 최소 너비 자동 설정 */
        height: auto; /* 높이 자동 설정 */
        margin: 5px; /* 위아래 마진 조정 */
    }
    .txt01 {
        font-size: 12px;
        margin-bottom: 1px;
    }
    
    .tit01 {
        font-size: 15px;
    }
    p {
        font-size: 10px;
    }
    .layout-section {
        margin-bottom: 0px;
    }
    /* 이미지 크기와 텍스트 간격 조정 */
    .icon {
        width: 70px; /* 모바일에서 작은 아이콘 */
        height: 70px;
        margin-top: 10px; /* 텍스트와 간격 조정 */
    }
    
    /* 텍스트 크기 조정 */
    .link ul li a strong {
        font-size: 14px; /* 강사명 텍스트 크기 조정 */
        margin-bottom: 0px;
    }
    
    .link ul li a span {
        white-space: normal; /* 텍스트 줄바꿈 허용 */
        max-width: 100%;
        font-size: 10px; /* 설명 텍스트 크기 조정 */
        line-height: 1.5;
    }

    .testimonial {
        width: auto;
    }

    .procedure-steps {
        flex-direction: column;
        align-items: center;
        max-height: 500px;
        flex-wrap: wrap; /* 요소가 컨테이너를 벗어나지 않도록 wrap 설정 */
        overflow: hidden; /* 요소가 벗어나지 않도록 숨김 처리 */
    }
    
    .procedure-steps .step {
        width: 220px;
        padding: 5px;
    }

    .subjects.active {
        grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
        gap: clamp(5px, 1vw, 10px); /* 최소 5px, 기본 2vw, 최대 20px */
        justify-items: center; /* 가로 방향으로 가운데 정렬 */
    }
    .subject-box {
        width: clamp(80px, 1vw, 100px);
        height: 95px;
    }
    .subject-box strong {
        font-size: 12px;
    }

    /* 네번째 컨텐츠 */
    


    .breadcrumb {
        font-size: 14px;
    }
}