body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'NanumSquare', sans-serif;
    padding-top: 7.5vh; /* 헤더 높이만큼 상단 여백 추가 */
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.hero-section {
    background-image: url('/static/image/backgroundimg.jpg'); /* 배경 이미지 경로 */
    background-size: cover; /* 배경이 영역을 꽉 채우도록 설정 */
    background-position: center; /* 중심을 기준으로 이미지 배치 */
    background-repeat: no-repeat; /* 이미지 반복 금지 */
    background-blend-mode: multiply; /* 색상 혼합 */
    background-color: rgba(0, 36, 145, 0.5); /* 푸른 계열 반투명 색상 */
    display: flex; /* Flexbox로 중앙 정렬 */
    justify-content: center; /* 가로 중앙 정렬 */
    align-items: center; /* 세로 중앙 정렬 */
    text-align: center; /* 텍스트 중앙 정렬 */
    position: relative; /* 오버레이 및 콘텐츠 배치를 위해 */
    height: 92.5vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* 텍스트 아래 배치 */
}

.hero-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2; /* 텍스트와 버튼을 오버레이 위로 배치 */
    color: rgb(0, 0, 0); /* 텍스트 색상 */
    width: 100%;
    margin-bottom: 200px;
    font-size: 10px;
}

.hero-box{
    flex-basis: 45%;
    max-width: 45%;
    margin-top: 100px; /* 원하는 크기만큼 추가 */
}

.left-box {
    text-align: top;
    text-align: left; /* 텍스트 왼쪽 정렬 */
    margin-left: 4%;
    flex-grow: 1;
    line-height: 8px;
    padding-bottom: 48px;
}

.left-box.hidden{
    opacity: 0;
    transition: opacity 0.8s ease-out;
    transition-delay: 0.4s; /* 제목 애니메이션 이후에 시작 */
}

.left-box.hidden.quick{
    opacity: 0;
    transition: opacity 0.1s ease-out;
}

.left-box.visible {
    opacity: 1;
}  

.left-box p{
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.6);
}

.left-box p::first-letter{
    font-size: 2.7rem; /* 첫 글자만 크게 */
    font-weight: 700; /* 굵게 설정 (선택사항) */
}

.right-box{
    text-align: right;
    flex-grow: 1;
    margin-right: 4%;
}

.right-box.hidden{
    opacity: 0;
    transition: opacity 0.8s ease-out;
    transition-delay: 1.2s; /* 제목 애니메이션 이후에 시작 */
}

.right-box.hidden.quick{
    opacity: 0;
    transition: opacity 0.1s ease-out;
}

.right-box.visible {
    opacity: 1;
}

.right-box h2 {
    font-size: 2.5rem;
    padding-top: 10px;
    margin-top: -24px;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 1px 1px rgba(0, 0, 0, 0.6);
    white-space: normal; /* 기본 줄바꿈 허용 */
    word-wrap: break-word; /* 단어가 길 경우 줄바꿈 허용 */
    word-break: keep-all; /* 단어 중간에서 줄바꿈 방지 */  
}
.right-box p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 1px 1px #000;
    white-space: normal; /* 기본 줄바꿈 허용 */
    word-wrap: break-word; /* 단어가 길 경우 줄바꿈 허용 */
    word-break: keep-all; /* 단어 중간에서 줄바꿈 방지 */
}

.hero-buttons{ 
    position: relative;
    display: flex; /* Flexbox 활성화 */
    justify-content: right; /* 가로 중앙 정렬 */
    gap: 20px; /* 버튼 간 간격 */
    margin-top: 8px; /* 상단 여백 */

}
.hero-buttons .button {
    font-size: 1.25rem;
    text-align: center;
    font-weight: 700;
    padding: 16px 41px;
    background-color: #001b67; /* 파란색 버튼 */
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    opacity: 0.8;
    transition: background-color 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 120px;
    height: 20px;
}
.hero-buttons .button:hover {
    background-color: #0032ba; /* 버튼 호버 시 진한 파란색 */
}

/* 화살표 아이콘 스타일 */
.scroll-down {
    position: absolute; /* 부모 요소 기준 위치 설정 */
    bottom: 2%; 
    left: 50%; /* 가로 중앙 */
    transform: translateX(-50%); /* X축 중앙 정렬 */
    cursor: pointer;
    z-index: 2; /* 다른 요소 위로 표시 */
    display: flex; /* Flexbox 사용 */
    justify-content: center;
    align-items: center;
}

/*반응형처리*/
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column; /* 좌/우 박스를 세로로 정렬 */
        gap: 20px; /* 박스 간격 */
        margin-bottom: 200px;
        padding-top: 10vh; /* 위쪽 여백 추가 */
    }

    .hero-box {
        width: 100%; /* 박스 너비를 화면 비율에 맞춤 */
        max-width: 100%;
    }

    .left-box, .right-box {
        margin: 0; /* 외부 여백 제거 */
        text-align: center; /* 텍스트 가운데 정렬 */
    }

    .right-box h2, .left-box p {
        font-size: 2rem; /* 텍스트 크기 조정 */
    }

    .hero-buttons {
        justify-content: center; /* 버튼을 가운데 정렬 */
        gap: 10px;
        margin-top: 0;
    }
    .hero-buttons .button {
        width: auto;
        padding: 10px 20px; /* 버튼 크기 축소 */
    }

    .scroll-down {
        bottom: 10%; /* 화살표 위치 위로 */
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column; /* 위아래 정렬 */
        align-items: center; /* 가로 중앙 정렬 */
        justify-content: flex-start; /* 요소를 화면 상단으로 정렬 */
        gap: 20px; /* 박스 간격 */
        padding-top: 5vh; /* 위쪽 여백 추가 */
    }

    .left-box p {
        font-size: 1.8rem; /* 폰트 크기 축소 */
    }

    .right-box h2 {
        font-size: 1.5rem; /* 제목 크기 축소 */
    }

    .right-box p {
        font-size: 1rem; /* 부제목 크기 축소 */
    }

    .hero-buttons .button {
        font-size: 1rem; /* 버튼 텍스트 크기 축소 */
        width: auto; /* 버튼 크기를 내용에 맞춤 */
        padding: 10px 20px; /* 버튼 내부 여백 조정 */
    }

    .scroll-down {
        bottom: 8%; /* 화면 하단에서 더 위로 이동 */
    }

    .scroll-down svg {
        width: 40px; /* 화살표 크기 축소 */
        height: 24px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        gap: 10px; /* 더 작은 간격 */
        padding-top: 3vh; /* 위쪽 여백 최소화 */
    }

    .hero-box {
        width: 100%; /* 박스 너비를 꽉 채움 */
    }

    .left-box p, .right-box h2 {
        font-size: 1.2rem; /* 텍스트 크기 더 축소 */
    }

    .right-box p {
        font-size: 0.9rem;
    }

    .hero-buttons .button {
        font-size: 0.9rem; /* 버튼 텍스트 크기 축소 */
        padding: 8px 16px; /* 버튼 내부 여백 축소 */
    }

    .scroll-down {
        bottom: 6%; /* 화살표 위치 */
    }

    .scroll-down svg {
        width: 30px; /* 더 작은 화살표 */
        height: 18px;
    }
}

/*222222222222222222222222222222222222222222222222222222222222222222222222222222222222*/
/* 전체 섹션 스타일 */
.features-section {
    background-color: rgba(0, 36, 135, 0.05);
    display: flex;
    position: relative;
    text-align: center;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 92.5vh;
    overflow-x: hidden;
}

.title{
    position: relative;
    align-self: flex-start;
    text-align: right;
    width: 520px;
    height: auto;
    padding-top: 12vh;
    padding-left: 80px;
    padding-bottom: 10px;
    padding-right: 20px;
    margin: 0;
    border-bottom: 1px solid #001b67; /* 1px 두께, 실선, 색상 */
}

.title.hidden{
    opacity: 0;
    transform: translateX(-50px); /* 왼쪽으로 이동 */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.4s;
}

.title.hidden.quick{
    opacity: 0;
    visibility: hidden;
}

.title.visible {
    opacity: 1;
    transform: translateX(0); /* 원래 위치로 이동 */
}

.title p{
    font-size: 2.5rem;
    margin: 0;
    padding: 0;
    word-break: keep-all; /* 단어 중간에서 줄바꿈 방지 */  
}

.container{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow-y: hidden;
    margin-top: 6vh;
    width: 100%;
    height: 48vh;
}

.feature-grid{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    width: 90%;
    margin: 0;
    padding: 0;
    gap: 3%;
    overflow-x: auto;
    overflow-y: hidden;
}


.feature-item {
    padding: 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    word-break: keep-all; /* 단어 중간에서 줄바꿈 방지 */  
    height: 100%;
    width: 30%;
    max-width: 390;
}

.feature-item img {
    width: 15vh;
    height: 10vh;
}

.feature-item h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a1a1a;
    margin:0;
    margin-top: 5px;
}

.feature-item p {
    font-size: 1rem;
    color: #757575;
    line-height: 1.4;
}

.feature-item p.sub{
    height: 36%;
    max-height: 60px;
    margin-bottom: 0;
}

.feature-item p.content{
    color: #000;
    word-break: keep-all;
    height: 36%;
    width: 90%;
    padding-top: 8%;
    text-align: center;
    margin: 0;
    border-top: 1px solid #001b67;
}

.feature-item.hidden{
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.8s; /* 제목 애니메이션 이후에 시작 */
}

.feature-item.hidden.quick{
    opacity: 0;
    transition: opacity 0.1s ease-out;
}

.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1279px) {
    .title{
        width: 48%;
        padding-left: 80px;
        padding-top: 6vh;
    }

    .feature-item img {
        width: 12vh;
        height: 8vh;
    }
    
    .feature-item h3 {
        font-size: 1.3rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
        line-height: 1.2;
    }

}

@media (max-width: 1024px){
    .title p{
        font-size: 1.9rem;
    }

    .container{
        height: 44vh;
    }

    .feature-item img {
        width: 12vh;
        height: 8vh;
    }
    
    .feature-item h3 {
        font-size: 1.3rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
        line-height: 1.2;
    }
}

@media (max-width: 880px){
    .container{
        height: 40vh;
    }

    .feature-item{
        padding: 5px;
    }

    .feature-item p.content {
        width: 100%;
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .feature-grid{
        margin: 0;
        padding: 3px;
    }
}

@media (max-width: 800px){
    .container{
        height: 38vh;
    }
}
@media (max-width: 768px) {
    .title{
        width: 80%;
    }

    .title p{
        text-align: left;
        font-size: 1.7rem;
    }

    .container{
        margin: 5px;
        margin-top: 20px;
        height: 66vh;
        overflow: hidden;
    }

    .feature-grid{
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }

    .feature-item{
        display: flex;
        overflow-x: hidden;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        height: 30%;
    }

    .feature-item img{
        width: 60px;
        height: 40px;
    }

    .feature-item h3{
        display: grid;
        align-items: center;
        font-size: 1rem;
        margin: 0;
        padding: 0;
        margin-right: 10px;
        width: 20%;
        height: 50%;
    }

    .feature-item p{
        display: grid;
        align-items: center;
        text-align: left;
        margin: 0;
        margin-right: 10px;
        padding: 0;
        padding-right: 10px;
        width: 15%;
    }

    .feature-item p.sub{
        display: none;
    }

    .feature-item p.content{
        font-size: 1rem;
        margin: 0;
        padding: 0;
        width: 60%;
        height: 50%;
        border-top: none;
        border-left: 1px solid #001b67;
    }

    .tip-title p{
        font-size: 1.7rem;
    }

    .scroll-down {
        bottom: 2%; /* 화살표 위치 */
    }

    .scroll-down svg {
        width: 30px; /* 더 작은 화살표 */
        height: 18px;
    }
}
/*33333333333333333333333333333333333333333333333333333333333333333333333333333*/

/* 전체 섹션 스타일 */

.tip-section {
    background-color: rgb(255, 255, 255);
    display: flex;
    position: relative;
    text-align: center;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 92.5vh;
    overflow: hidden;
}

.tip-title{
    position: relative;
    align-self: flex-start;
    text-align: right;
    width: 520px;
    height: auto;
    padding-top: 12vh;
    padding-left: 80px;
    padding-bottom: 10px;
    padding-right: 20px;
    margin: 0;
    border-bottom: 1px solid #001b67; /* 1px 두께, 실선, 색상 */
    opacity: 0;
    transform: translateX(-50px); /* 왼쪽으로 이동 */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.4s;
}

.tip-title.visible {
    opacity: 1;
    transform: translateX(0); /* 원래 위치로 이동 */
}

.tip-title p{
    font-size: 2.5rem;
    margin: 0;
    padding: 0;
    word-break: keep-all; /* 단어 중간에서 줄바꿈 방지 */  
}

.tip-content{
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 6vh;
    width: 100%;
    height: 60vh;
}

.tip-container{
    width: 100%;
    position: relative;
    display: flex;  
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.tip{  
    width: 36%;
    height: 50%;
    text-align: left;
    font-size: 1.8rem;
    word-break: keep-all;   
    font-weight: 700;
    color: #001b67;
    opacity: 0;
    transform: translateY(20px); /* 아래에서 올라오는 효과 */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.8s;
}

.tip.visible{
    opacity: 1;
    transform: translateY(0);
}

.tip span{
    color: #ffffff;
    background-color: #001b67;
}

.example{
    width: 52%;
    height: 50%;
    text-align: left;
    font-size: 1.8rem;
    word-break: keep-all;
    opacity: 0;
    transform: translateX(20px); /* 아래에서 올라오는 효과 */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 1.2s;
}
.example.visible{
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1279px) {
    .tip-title{
        width: 48%;
        padding-left: 80px;
        padding-top: 6vh;
    }

    .tip-title p{
        font-size: 2rem;
        text-align: left;
    }

    .tip-content{
        height: 80vh;
        margin-top: 4vh;
        padding-top: 0;
    }

    .tip {
        width: 40%;
    }

}

@media (max-width: 1120px){
    .tip, .example {
        font-size: 1.5rem;
    }
}

@media (max-width: 950px){
    .tip, .example{
        width: 48%;
        font-size: 1.4rem;
    }
}

/* 768px 이하: 폰트 크기 감소 + 팁과 예시 교차 배치 */
@media (max-width: 768px) {
    .tip-title p{
        font-size: 1.7rem;
    }

    .tip-container{
        flex-direction: column;
        height: auto;
    }

    .tip {
        width: 90%;
        font-size: 1.2rem; /* 폰트 크기 감소 */ 
        text-align: left; /* 텍스트 왼쪽 정렬 */
    }

    .example{
        width: 90%;
        font-size: 1.2rem;
        text-align: right;
    }
}

