body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 8%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.wrapper-box {
    width: 100%;
    text-align: center;
    margin: 3rem auto 0;
}

.wrapper {
    width: 70%;
    text-align: center;
}

.wrapper-box .scroll-box,
.wrapper-box .intro-message,
.wrapper-box .content-box {
    font-size: 14px;
}

h1 {
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 1%;
}

.logo {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

.banner {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.intro-message p {
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 30px;
    color : #778899; /* 연한 회청색 (slate gray 계열) */
}

.content-box {
    text-align: left;
    font-size: 20px;
    line-height: 1.8;
    margin: 0 auto 30px auto;
    width : 90%;
}

.content-box strong {
    display: block;
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.5em;
}

.content-box .red {
    color: red;
    font-weight: bold;
}

.btn {
    padding: 15px 30px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    color: white;
    background-color: #900020; /* 진한 자주색 (버건디 계열) */
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #500000; /* 매우 진한 와인색 */
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.qualification-table {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
}

.qualification-table table {
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
}

.qualification-table thead {
    background-color: #DB4455; /* 밝은 붉은색 (딸기 우유 느낌) */
    color: white;
}

.qualification-table td, .qualification-table th {
    padding: 15px;
    text-align: center;
}

.qualification-table td {
    font-size: 16px;
    background-color: #f9f9f9; /* 거의 흰색에 가까운 연회색 */
}

th {
    /* border-radius: 10px; */
    font-weight: bold;
    padding: 14px;
}

td {
    border-radius: 10px;
    /* padding: 14px; */
}

.top-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 80px;
    background-color: white;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}


.top-nav-left  {
    margin-left: 10%;
    display: flex;
    align-items: center;
}

.top-nav-right  {
    margin-right:10%;
    display: flex;
    align-items: center;
}

.top-nav-left a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: black;
}

.top-nav-left .logo, .top-nav-left img {
    height: 40px;
    margin-right: 10px;
}

.top-nav-left a:hover {
    color: #900020; /* 진한 자주색 (버건디 계열) */
}

.logo {
    margin: 10px;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: black;
    line-height: 2;
}

.top-nav-right a{
    display: flex;
    align-items: center;
    justify-content: center;
    color: #778899; /* 연한 회청색 (slate gray 계열) */
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    margin-left: 1.2em;
}

.top-nav-right a:hover {
    color: #900020; /* 진한 자주색 (버건디 계열) */
}

.top-nav-right button {
    background: none;
    border: none;
    color: #778899; /* 연한 회청색 (slate gray 계열) */
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 1.2em;
}

.top-nav-right button:hover {
    color: #900020; /* 진한 자주색 (버건디 계열) */
}

:root {
    --top-nav-height: 8%;
}

.container {
    width: 65%;
}

.info-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.photo-box {
    width: 200px;
    height: 250px;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    display: inline-block;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f5f5f5; /* 아주 연한 회색 */
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
}

.info-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: stretch;
}

.info-fields label {
    font-weight: bold;
    align-self: center;
}

.info-fields input, select {
    width: 95%;
    padding: 8px 10px;
    border: none;
    border-radius: 3px;
    background-color: #f9f9f9; /* 밝은 푸른빛 연회색 */
}

.info-fields span {
    padding: 8px;
    border: none;
    border-radius: 3px;
    background-color: #f9f9f9; /* 밝은 푸른빛 연회색 */
}
.field-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 12px;
}

.field-row.full-width {
    display: block;
}

.field-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    width: 100%;
}

.field-group label {
    font-weight: bold;
    width: 150px;
    text-align: left;
}

.field-group input, .field-group select {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 3px;
}

.field-group span {
    padding: 8px;
    border-radius: 3px;
}

.field-group .readonly-field {
    display: block;
    width: 100%;
    padding: 5px 10px;
    border-radius: 10px;
    background-color: #f5f5f5 /* 아주 연한 회색 */
    color: #333; /* 진한 회색 (거의 검정에 가까움) */
    line-height: 1.5;
}

.apply-fields {
    flex-direction: row;
    align-items: center;
    row-gap: 1rem;
    column-gap: 1rem;
    margin-bottom: 2rem;
}

.apply-fields label {
    font-weight: bold;
    margin-right: 10px;
    width: 150px;
}

.apply-fields input {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 3px;
    background-color: #f5f7fa; /* 아주 연한 파스텔 블루 */
}

.apply-fields select {
    width: 30%;
    padding: 8px 10px;
    border: none;
    border-radius: 3px;
}

.apply-fields span {
    padding: 8px;
    border: none;
    border-radius: 3px;
    background-color: #f9f9f9; /* 밝은 푸른빛 연회색 */
}

textarea {
    width: 100%;
    min-height: 150px;
    font-size: 16px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    border: none;
    border-radius: 3px;
    resize: none;
    overflow: hidden;
    box-sizing: border-box;
    color: #333;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.06);
}

input:focus,
textarea:focus {
    outline: none;
    border: 0.5px solid #f9f9f9; /* 밝은 푸른빛 연회색 */
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
}


.textarea-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.char-count {
    position: absolute;
    bottom: 4px;
    top: 8px;
    right: 12px;
    font-size: 14px;
    color: #555;
}

button[type="submit"] {
    width: 30%;
    padding: 14px;
    background-color: #5b97d4;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: white;
    margin-top: 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

#preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: [[${post.photoUrl != null} ? 'block' : 'none']];
}

#upload-label {
    display: [[${post.photoUrl != null} ? 'none' : 'inline']];
}

input[type="file"] {
    display: none;
}

.message {
    font-size: 1.5rem;
    color: green; /* 초록색 */
    text-align: center;
    margin-bottom: 0.8rem;
    font-weight: bold;
}

.back-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background-color: #900020; /* 진한 자주색 (버건디 계열) */
    color: white;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
.back-btn:hover {
    background-color: #7d001a; /* 좀 더 어두운 자주색 */
}
.back-btn-container {
    text-align: center;
    margin-top: 2rem;
}
.section-label {
    font-size: 1.5rem;
    font-weight: bold;
}
.no-resume-message {
    color: #888; /* 중간 회색 */
    font-size: 20px;
    margin-bottom: 20px;
}
.submit {
    padding: 10px 20px;
    background-color: #5b97d4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.submit:hover {
    background-color: #0056b3; /* 더 어두운 파란색 */
}

tbody tr, thead tr{
    font-size : 80%;
}

tbody tr {
    border-bottom: 1px solid #ccc;
}

tbody tr td {
    font-size: 16px;
}

tbody input {
    width: 90%;
    padding: 10px;
    border: none;
    border-radius: 3px;
    background-color: #f9f9f9; /* 밝은 푸른빛 연회색 */
}

.noresume {
    text-align : center;
}

.academy-container, .military-container, .career-container, .license-container, .engineering-container, .language-container {
    margin-bottom: 2rem;
}

/* 표 전체 */
.academy-table, .military-table, .career-table, .license-table, .engineering-table, .language-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 5px;
}

/* 헤더 셀 스타일 */
.academy-table th, .military-table th, .career-table th, .license-table th, .engineering-table th, .language-table th {
    background-color: #f0f4f8;
    color: #1f2937;
    font-weight: 600;
    font-size: 15px;
    padding: 16px 12px;
    text-align: center;
    border-bottom: 1px solid #d1d5db;
}

/* 본문 셀 스타일 */
.academy-table td, .military-table td, .career-table td, .license-table td, .engineering-table td, .language-table td {
    background-color: #ffffff;
    color: #374151;
    font-size: 15px;
    padding: 5px;
    text-align: center;
    /* border-bottom: 1px solid #e5e7eb; */
}

d, .academy-table th, .military-table th, .career-table th, .license-table th, .engineering-table th, .language-table th {
    padding: 1%;
    text-align: center;
}

.academy-table tbody tr, .military-table tbody tr, .career-table tbody tr, .license- table tbody tr, .engineering-table tbody tr, .language-table tbody tr {
    border-bottom: 1px solid #ccc;
}

.info-container, .application-info, .academy-info, .military-info, .career-info, .license-info, .engineering-info, .language-info, .intro-info {
    margin-top : 2%;
}

.flex {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.add-delete {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.add-delete button {
    background-color: #a8dadc;      /* 연한 민트색 */
    color: white;                   /* 글자색 흰색 */
    border: none;                   /* 테두리 제거 */
    padding: 5px;             /* 안쪽 여백 */
    border-radius: 3px;             /* 둥근 테두리 */
    font-size: 14px;                /* 글자 크기 */
    cursor: pointer;                /* 마우스 포인터 */
    transition: background-color 0.3s ease; /* 부드러운 호버 효과 */
}

.add-delete button:hover {
    background-color: #4589c2d9;      /* 호버 시 색상 변경 */
    transform: translateY(-2px);
}


.horizontal-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.horizontal-inputs input[type="date"] {
    flex: 1 1 60%; /* 날짜 입력이 60% 차지 */
    min-width: 100px;
}

.horizontal-inputs select {
    flex: 1 1 40%; /* 선택 박스가 40% 차지 */
    min-width: 80px;
}
.scroll-box {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 20px;
    margin: 20px 0;
    background-color: #fafafa;
    border-radius: 8px;
}

.scroll-box strong {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.red {
    color: red;
    display: block;
    margin-top: 20px;
}

.red-style {
    color: #ff4d4f;
    display: block;
    font-size: 15px;
    text-align: right;
}

.blue-style {
    color: #6699cc;
    display: block;
    font-size: 15px;
    text-align: right;
}

.btn-style {
    width: 30%;
    padding: 14px;
    background-color: #5b97d4;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: white;
    margin-top: 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-style:hover {
    background-color: #0056b3;
}

/* 값이 정상적으로 선택된 경우 (required + value 있음) */
select:valid {
    background-color: #e7f1ff;
}

input:valid {
    background-color: #e7f1ff;
}

input:invalid {
    background-color: #f9f9f9;
}

input.unselected {
    background-color: #f9f9f9;
}

select.invalid {
    background-color: #f9f9f9;
}

select.unselected {
    background-color: #f9f9f9;
}

/* 공통: 값이 정상적으로 입력된 경우 */
input.filled,
select:valid {
    background-color: #e7f1ff;
}

/* 값이 비어 있거나 선택되지 않은 경우 */
input.unselected,
select.unselected,
input:invalid {
    background-color: #f9f9f9;
}

.custom-search-btn {
    border: none;
    background-color: #f0f4f8; /* 밝은 회청색 배경 */
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); */
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-search-btn:hover {
    background-color: #e0e7ee; /* 호버 시 약간 더 진하게 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.intro-container label {
    font-weight: 500;
}

.column{
    display: flex;
    flex-direction: column;
}