/* 네비게이션 CSS */
.main-navbar {
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.site-logo {
    width: 130px;
    max-width: 40vw;
    height: auto;
}

.navbar1 {
    padding-right: 30px;
    text-decoration: none;
    color: black;
    transition: color 0.15s ease;
}

.navbar1:hover,
.navbar1:focus {
    color: #0d6efd;
}

.main-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.main-nav-login {
    white-space: nowrap;
}

/* 상단 메뉴 제목에 마우스를 올리면 나오는 카테고리 드롭다운 (회사소개 / 제품안내) */
.nav-item-with-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 170px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    z-index: 200;
}

.nav-dropdown a {
    display: block;
    padding: 10px 18px;
    font-size: 0.95em;
    color: #444;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.nav-dropdown a:hover {
    background-color: #f4f7fc;
    color: #4176c3;
}

/* 데스크탑: 메뉴 + 로그인 버튼을 로고 오른쪽으로 정렬 */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        gap: 20px;
    }

    .nav-item-with-dropdown:hover .nav-dropdown {
        display: block;
    }
}

/* 모바일에서는 드롭다운 없이 제목을 누르면 바로 페이지로 이동 */
@media (max-width: 991.98px) {
    .nav-item-with-dropdown {
        display: block;
        width: 100%;
    }

    .nav-dropdown {
        display: none !important;
    }
}

/* 모바일: 햄버거로 접히는 메뉴는 세로로 나열 */
@media (max-width: 991.98px) {
    .main-nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 6px 0 4px;
    }

    .navbar1 {
        padding: 10px 0;
        width: 100%;
    }

    .main-nav-login {
        display: inline-block;
        margin: 10px 0 12px;
    }
}

/* 로그인 회원가입 CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.custom-container {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 30px;
}

.custom-form {
    position: relative;
    max-width: 430px;
    width: 100%;
    padding: 30px;
    border-radius: 6px;
    background: #FFF;
}

.custom-form.signup {
    opacity: 0;
    pointer-events: none;
}

.custom-forms.show-signup .custom-form.signup {
    opacity: 1;
    pointer-events: auto;
}

.custom-forms.show-signup .custom-form.login {
    opacity: 0;
    pointer-events: none;
}

.custom-header {
    font-size: 28px;
    font-weight: 600;
    color: #232836;
    text-align: center;
}

.custom-form-container {
    margin-top: 30px;
}

.custom-form .custom-field {
    position: relative;
    height: 50px;
    width: 100%;
    margin-top: 20px;
    border-radius: 6px;
}

.custom-field input,
.custom-field button {
    height: 100%;
    width: 100%;
    border: none;
    font-size: 16px;
    font-weight: 400;
    border-radius: 6px;
}

.custom-field input {
    outline: none;
    padding: 0 15px;
    border: 1px solid #CACACA;
}

.custom-field input:focus {
    border-bottom-width: 2px;
}

.custom-eye-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #8b8b8b;
    cursor: pointer;
    padding: 5px;
}

.custom-field button {
    color: #fff;
    background-color: #0171d3;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-field button:hover {
    background-color: #016dcb;
}

.custom-form-link {
    text-align: center;
    margin-top: 10px;
}

.custom-form-link span,
.custom-form-link a {
    font-size: 14px;
    font-weight: 400;
    color: #232836;
}

.custom-form a {
    color: #0171d3;
    text-decoration: none;
}

.custom-form-content a:hover {
    text-decoration: underline;
}

.custom-line {
    position: relative;
    height: 1px;
    width: 100%;
    margin: 36px 0;
    background-color: #d4d4d4;
}

.custom-line::before {
    content: 'Or';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FFF;
    color: #8b8b8b;
    padding: 0 15px;
}

.custom-media-options a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-facebook {
    color: #fff;
    background-color: #4267b2;
}

.custom-facebook .custom-facebook-icon {
    height: 28px;
    width: 28px;
    color: #0171d3;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.custom-facebook-icon,
.custom-google-img {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
}

.custom-google-img {
    height: 20px;
    width: 20px;
    object-fit: cover;
}

.custom-google {
    border: 1px solid #CACACA;
}

.custom-google span {
    font-weight: 500;
    opacity: 0.6;
    color: #232836;
}

@media screen and (max-width: 400px) {
    .custom-form {
        padding: 20px 10px;
    }
}

.modal {
    display: none;
    position: fixed;
    /* 페이지에 z-index를 가진 요소(홈 히어로 텍스트 등)가 있어도 항상 모달이 맨 위에 오도록 상향 */
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    position: relative;
    border-radius: 10px;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}