/* 기존 스타일을 유지하면서 중복을 제거하고 정리된 다중 검색(multi-search) 스타일 */
.multi-search {
    width: 100%;
    font-family: inherit;
    margin-top: 20px;
}

.multi-search form {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* 작은 화면에서 줄 바꿈 허용 */
    align-items: center;
    max-width: 100%; /* form 자체가 multi-search 내에서 최대 너비를 가지도록 */
}

.multi-search .search-select,
.multi-search .search-input,
.multi-search .search-button {
    all: unset; /* 모든 기본 스타일 초기화 */
    display: inline-block;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #003A63;
    background-color: #fff;
    color: black;
    height: auto;
    border-radius: 0;
}

.multi-search .search-select {
    -webkit-appearance: none; /* 웹킷 브라우저 기본 스타일 제거 */
    -moz-appearance: none; /* 모질라 브라우저 기본 스타일 제거 */
    appearance: none; /* 기본 select 박스 스타일 제거 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' width='12' height='8'%3E%3Cpath d='M1 1l5 6 5-6' fill='none' stroke='%23003A63' stroke-width='2'/%3E%3C/svg%3E"); /* 사용자 정의 드롭다운 화살표 */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 8px;
    padding-right: 30px; /* 화살표 공간 확보를 위한 패딩 */
}

.multi-search .search-button {
    background-color: #003A63;
    color: #fff;
    cursor: pointer;
    text-align: center;
    border-left: none; /* 왼쪽 테두리 제거 */
    border-top-right-radius: 25px; /* 우측 상단 모서리 둥글게 */
    border-bottom-right-radius: 25px; /* 우측 하단 모서리 둥글게 */
    min-width: 120px; /* 버튼의 최소 너비 */
    flex-shrink: 0; /* 버튼이 줄어들지 않도록 함 */
    flex-grow: 0; /* 버튼이 늘어나지 않도록 함 */
}

/* 첫 번째 .search-select에만 적용되도록 .multi-search form > .search-select:first-of-type 사용 */
.multi-search form > .search-select:first-of-type {
    border-top-left-radius: 25px; /* 첫 번째 select 박스의 좌측 상단 모서리 둥글게 */
    border-bottom-left-radius: 25px; /* 첫 번째 select 박스의 좌측 하단 모서리 둥글게 */
}

/* Flexbox 규칙을 각 요소에 직접 적용 */
.multi-search .search-select + .search-select, /* 연달아 오는 select 박스 */
.multi-search .search-select + .search-input, /* select 박스 뒤에 오는 input */
.multi-search .search-input + .search-button { /* input 뒤에 오는 버튼 */
    margin-left: -1px; /* 테두리 겹침으로 이음새 자연스럽게 연결 */
}

/* --- 업데이트된 Flexbox 규칙으로 세밀한 제어 (form 내부의 직접 자식들에게 적용) --- */
.multi-search form > .search-select { /* form의 직접 자식인 search-select에 적용 */
    flex: 1 1 auto; /* select 박스가 동일하게 늘어나거나 줄어들고, 초기에는 콘텐츠를 기준으로 함 */
    min-width: 80px; /* select 박스가 너무 작아지지 않도록 최소 너비 지정 */
}

.multi-search form > .search-input { /* form의 직접 자식인 search-input에 적용 */
    flex: 0 1 auto; /* flex-grow를 0으로 설정하여 기본적으로 늘어나지 않게 함 */
    /*flex: 1 1 auto; !* input 박스가 늘어나거나 줄어들고, 초기에는 콘텐츠를 기준으로 함 *!*/
    min-width: 100px; /* input에 대해 원하는 최소 너비 */
}

/* --- 미디어 쿼리 --- */
@media (min-width: 992px) {
    .multi-search form { /* form에 flex-wrap: nowrap 적용 */
        flex-wrap: nowrap; /* 큰 화면에서는 줄 바꿈 방지 */
    }
}

@media (max-width: 991px) {
    .multi-search form { /* form에 flex-wrap: wrap 적용 */
        flex-wrap: wrap; /* 작은 화면에서 줄 바꿈 허용 */
    }

    .multi-search .search-select,
    .multi-search .search-input,
    .multi-search .search-button {
        flex: 1 1 100%; /* 각 항목이 작은 화면에서 전체 너비를 차지하도록 함 */
        min-width: 0; /* 모바일 유연성을 위해 최소 너비 재설정 */
        margin-bottom: 8px; /* 각 항목 아래에 여백 추가 */
    }

    .multi-search .search-button {
        margin-bottom: 0; /* 버튼 아래 여백 제거 */
        border-radius: 25px; /* 모바일에서 전체 모서리를 둥글게 */
    }

    /* select 박스 및 input의 모바일 모서리 둥글게 조정 */
    .multi-search .search-select,
    .multi-search .search-input {
        border-radius: 25px;
    }
}

/* 작동하지 않음
.multi-search .search-select option:hover {
    background-color: #003A63;
    color: #fff;
}*/


/* 새로운 레이어 클래스: hero-section */
.hero-section {
    width: 100%; /* 가로 너비 100% */
    background-color: #003A63; /* 배경색 */
    color: #fff; /* 내부 텍스트 색상 (대부분 흰색으로 설정) */
    padding: 40px 20px; /* 상하좌우 패딩 (데스크탑 기본값) */
    margin-top: 20px; /* 위쪽 마진 20px */
    margin-bottom: 40px; /* 아래쪽 마진 20px */
    position: relative; /* 내부 요소 위치 지정을 위한 기준점 */
    overflow: hidden; /* 섹션 밖으로 내용이 나가지 않도록 (필요시) */
}

/* 대 타이틀 스타일 */
.hero-section .hero-title {
    font-size: 1.25em;
    font-weight: bold; /* 이미 bold 처리가 되어 있습니다. */
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 대 타이틀 내부 이미지 스팬 */
.hero-section .hero-title .symbol-left,
.hero-section .hero-title .symbol-right {
    display: inline-block;
    width: 1.25em; /* 대 타이틀 폰트 사이즈와 동일한 너비 */
    height: 1.25em; /* 대 타이틀 폰트 사이즈와 동일한 높이 */
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
    transform: rotate(45deg); /* 이미지 45도 회전 */
    vertical-align: middle; /* 텍스트와 이미지의 세로 정렬 맞춤 */
}

.hero-section .hero-title .symbol-left {
    background-image: url('/images/SVG/symbol-top.svg');
    background-position: center;
}

.hero-section .hero-title .symbol-right {
    background-image: url('/images/SVG/symbol-bottom.svg');
    background-position: center;
}

/* 대 타이틀 텍스트를 감싼 span 스타일 */
.hero-section .hero-title .title-text {
    vertical-align: middle;
}

/* --- 중 타이틀 스타일 시작 --- */
.hero-section .sub-hero-title {
    font-size: 1em; /* 중 타이틀 글자 크기 (대 타이틀보다 작게) */
    font-weight: bold;
    margin-top: 30px; /* 대 타이틀과의 상단 여백 */
    margin-bottom: 15px; /* 하단 리스트와의 여백 */
    display: flex; /* Flexbox로 아이콘과 텍스트 정렬 */
    align-items: center; /* 세로 중앙 정렬 */
    justify-content: flex-start; /* 좌측 정렬 */
    padding-left: 20px; /* 섹션 좌측 패딩과 맞추거나 필요에 따라 조절 */
    gap: 15px; /* 사각형 아이콘과 텍스트 사이 간격 */
}

/* 중 타이틀 사각형 아이콘 */
.hero-section .sub-hero-title .square-icon {
    display: inline-block;
    width: 12px; /* 사각형 아이콘 크기 */
    height: 12px; /* 사각형 아이콘 크기 */
    background-color: #fff; /* 흰색 사각형 */
    flex-shrink: 0; /* 아이콘이 줄어들지 않도록 */
}

/* 중 타이틀 텍스트를 감싼 span 스타일 */
.hero-section .sub-hero-title .sub-title-text {
    vertical-align: middle;
}

/* --- 중 타이틀 리스트 스타일 시작 --- */
.hero-section .sub-hero-list {
    width: 95%;
    list-style: none; /* 기본 리스트 마커 제거 */
    padding: 0; /* 기본 패딩 제거 */
    margin: 0; /* 좌측 정렬 */
    /*max-width: 800px;*/ /* 목록의 최대 너비 */
    text-align: left; /* li 텍스트 정렬 */
    padding-left: 20px; /* 중타이틀과 동일하게 좌측 패딩 */
}

.hero-section .sub-hero-list li {
    position: relative;
    /* ⭐ 들여쓰기 10px 추가: 기존 padding-left 20px에 10px 더해서 30px로 변경 */
    padding-left: 30px; /* 도트와 텍스트 사이 공간 확보 + 10px 들여쓰기 */
    margin-bottom: 8px; /* 리스트 항목별 하단 여백 */
    font-size: 0.9em; /* li 폰트 크기 */
    line-height: 1.6;
    text-align: left;
}

/* 중 타이틀 리스트 항목의 자동 도트 */
.hero-section .sub-hero-list li::before {
    content: '•'; /* 도트 문자 */
    color: #fff; /* 도트 색상 */
    font-size: 1.2em; /* 도트 크기 */
    position: absolute;
    left: 10px; /* ⭐ 도트 위치를 10px 안쪽으로 이동 (들여쓰기만큼) */
    top: 0; /* 위쪽 정렬 */
    line-height: inherit;
}
/* --- 중 타이틀 리스트 스타일 끝 --- */


/* --- 기존 hero-list 스타일 (필요시 유지) --- */
.hero-section .hero-list {
    width: 95%;
    list-style: none;
    padding: 0;
    margin: 0;
    /*max-width: 800px;*/
    text-align: left;
    margin-top: 30px; /* 중타이틀 리스트와 구분하기 위한 상단 여백 */
}

.hero-section .hero-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.9em; /* li 폰트 크기 0.9em */
    line-height: 1.6;
    text-align: left;
}

/* 기존 hero-list 항목의 자동 도트 */
.hero-section .hero-list li::before {
    content: '•';
    color: #fff;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
    line-height: inherit;
}

/* --- 모바일 반응형 미디어 쿼리 --- */
@media (max-width: 992px) {
    .hero-section {
        padding: 30px 15px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .hero-section .hero-title {
        font-size: 0.9em; /* 모바일에서 타이틀 크기 조절 */
        gap: 10px;
    }

    .hero-section .hero-title .symbol-left,
    .hero-section .hero-title .symbol-right {
        width: 0.9em; /* 모바일 타이틀 폰트 사이즈와 동일한 너비 */
        height: 0.9em; /* 모바일 타이틀 폰트 사이즈와 동일한 높이 */
    }

    /* 중타이틀 모바일 스타일 */
    .hero-section .sub-hero-title {
        font-size: 0.8em; /* 모바일 중타이틀 크기 조절 */
        margin-top: 20px;
        margin-bottom: 10px;
        padding-left: 15px; /* 모바일 섹션 패딩과 맞춤 */
    }

    .hero-section .sub-hero-title .square-icon {
        width: 10px; /* 모바일 사각형 아이콘 크기 조절 */
        height: 10px;
    }

    /* 중타이틀 리스트 모바일 스타일 */
    .hero-section .sub-hero-list {
        padding-left: 15px; /* 모바일 섹션 패딩과 맞춤 */
    }

    .hero-section .sub-hero-list li {
        /* ⭐ 모바일에서도 들여쓰기 10px 추가: 기존 padding-left (모바일 기준 15px) + 10px = 25px */
        padding-left: 25px; /* 모바일에서 도트와 텍스트 사이 공간 확보 + 10px 들여쓰기 */
        font-size: 0.8em; /* 모바일 중타이틀 리스트 폰트 크기 조절 */
    }

    .hero-section .sub-hero-list li::before {
        left: 10px; /* ⭐ 모바일에서도 도트 위치 10px 안쪽으로 이동 */
    }

    /* 기존 hero-list 모바일 스타일 */
    .hero-section .hero-list {
        margin-top: 20px; /* 모바일에서 기존 리스트 상단 여백 조절 */
    }

    .hero-section .hero-list li {
        font-size: 0.9em; /* 모바일에서도 li 폰트 크기 0.9em으로 유지 */
    }
}