/*!
    로고 관련
!*/

.default-logo {
    color: var(--white);
}

.alt-logo, .mobile-logo {
    color: var(--dark-gray);
}

/* 체크박스 색상 지정 */
.terms-condition-box input[type=checkbox], .border-color-dark-gray  + .box:before {
    border-color:  var(--dark-gray);
}


/* 개인정보처리방침 팝업 */
.privacy-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    padding: 30px;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
}

.privacy-modal-content {
    width: 100%;
    max-width: 720px;
    max-height: 80vh;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* 팝업 상단 */
.privacy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.privacy-modal-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

/* 개인정보처리방침 닫기 버튼 */
.privacy-modal-close {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;

    margin: 0;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 50%;

    background: #f5f5f5 !important;

    box-shadow: none !important;

    cursor: pointer;
    outline: none;
}

/* X 가로선 */
.privacy-modal-close::before,
.privacy-modal-close::after {
    content: "";
    position: absolute;

    width: 13px;
    height: 1.5px;

    background: #555;
    border-radius: 2px;
}

/* X */
.privacy-modal-close::before {
    transform: rotate(45deg);
}

.privacy-modal-close::after {
    transform: rotate(-45deg);
}

/* 마우스 올렸을 때 */
.privacy-modal-close:hover {
    background: #eeeeee !important;
}

.privacy-modal-close:hover::before,
.privacy-modal-close:hover::after {
    background: #222;
}

/* 팝업 본문 */
.privacy-modal-body {
    max-height: calc(80vh - 75px);
    padding: 25px 30px 30px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

.privacy-modal-body p {
    margin-bottom: 18px;
}

.privacy-modal-body h5 {
    margin: 28px 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.privacy-modal-body h5:first-child {
    margin-top: 0;
}

.privacy-modal-body ul {
    margin: 0 0 18px;
    padding-left: 20px;
}

.privacy-modal-body li {
    margin-bottom: 5px;
}

.privacy-modal-body strong {
    color: #333;
    font-weight: 600;
}

/* 약관보기 링크 */
.privacy-policy-link {
    color: #555;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.privacy-policy-link:hover {
    color: #111;
}

/* 팝업 열렸을 때 배경 스크롤 방지 */
/*body.privacy-modal-open {*/
/*    overflow: hidden;*/
/*}*/

/* 모바일 */
@media (max-width: 767px) {
    .privacy-modal {
        padding: 15px;
    }

    .privacy-modal-content {
        max-height: 88vh;
    }

    .privacy-modal-header {
        padding: 18px 20px;
    }

    .privacy-modal-header h4 {
        font-size: 18px;
    }

    .privacy-modal-body {
        max-height: calc(88vh - 70px);
        padding: 20px;
        font-size: 13px;
    }
}


/*! 줄바꿈 !*/
.text-keep {
    word-break: keep-all;
}

.admin-gallery-table { width: 100%; min-width: 600px; table-layout: fixed; }
.admin-gallery-date { width: 15%; }
.admin-gallery-code { width: 20%; }
.admin-gallery-title { width: 45%; }
.admin-gallery-actions { width: 20%; }
.admin-gallery-table td { overflow-wrap: anywhere; }
.admin-gallery-preview { max-height: 180px; object-fit: contain; }

/* Keep news cards equal in height even when their summaries are short. */
#newsList .card-body {
    display: flex;
    flex-direction: column;
}

#newsList .card-title,
#newsList .card-body p {
    overflow-wrap: anywhere;
}

#newsList .card-body .author {
    margin-top: auto;
}

.news-detail-dialog {
    max-width: 860px;
}

.news-detail-panel {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.18);
}

.news-detail-header,
.news-detail-footer {
    padding: 20px 32px;
    border-color: #ededed;
}

.news-detail-body {
    padding: 28px 32px 36px;
}

.news-detail-image {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    background: #f7f7f7;
    border-radius: 4px;
    margin-bottom: 28px;
}

.news-detail-title {
    font-size: 28px;
    line-height: 1.45;
    margin-bottom: 24px;
    overflow-wrap: anywhere;
}

.news-detail-content {
    font-size: 17px;
    line-height: 1.85;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 575px) {
    .news-detail-header,
    .news-detail-footer {
        padding: 16px 20px;
    }
    .news-detail-body {
        padding: 20px;
    }
    .news-detail-title {
        font-size: 22px;
    }
}

/*! 이미지 자르기 !*/
.img-600-413 {
    width: 100%;
    aspect-ratio: 600 / 413;
    object-fit: cover;
    display: block;
}

/*! 이미지 자르기 !*/
.img-800-570 {
    width: 100%;
    aspect-ratio: 800 / 570;
    object-fit: cover;
    display: block;
}


/*! 이미지 자르기 !*/
.img-800-635 {
    width: 100%;
    aspect-ratio: 800 / 635;
    object-fit: cover;
    display: block;
}

/*! 넥서스 디자인 텍스트 !*/
.text-orange {
    color: #F96F02;
}

/* =========================================
   NEXUS Organization
========================================= */

.nexus-history {
    max-width: 1000px;
    padding: 0;
    margin: 0 auto;
    list-style: none;
    border-top: 1px solid #e8e8e8;
}

.nexus-history-entry {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: baseline;
    gap: 32px;
    padding: 30px 40px;
    border-bottom: 1px solid #e8e8e8;
}

.nexus-history-date {
    color: var(--dark-gray, #232323);
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.nexus-history-event {
    margin: 0;
    color: var(--dark-gray, #232323);
    font-size: 20px;
    line-height: 1.65;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.nexus-history-location {
    display: inline-block;
    margin-left: 6px;
    color: var(--medium-gray, #717580);
    font-size: 16px;
}

@media (max-width: 575px) {
    .nexus-history-entry {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 24px 12px;
    }
    .nexus-history-date,
    .nexus-history-event {
        font-size: 18px;
    }
}

.nexus-org {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 50px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* 대표 / 기술이사 */
.nexus-org-main {
    display: flex;
    justify-content: center;
}

/* 카드 */
.nexus-org-card {
    width: 270px;
    min-height: 82px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: relative;
}

/* 대표 */
.nexus-org-card-main {
    background-color: #232323;
}

/* 기술이사 */
.nexus-org-card-sub {
    background-color: #fff;
    border: 1px solid #e5e5e5;
}

/* 번호 */
.nexus-org-number {
    position: absolute;
    left: 25px;
    width: 32px;
    font-size: 12px;
    font-weight: 600;
}

/* 대표 → 기술이사 */
.nexus-org-line {
    width: 1px;
    margin-left: auto;
    margin-right: auto;
    background-color: #d5d5d5;
}

.nexus-org-line-main {
    height: 25px;
}

.nexus-org-line-director {
    height: 35px;
}


/* =========================================
   Team
========================================= */

.nexus-org-teams {
    position: relative;
    padding-top: 35px;
}

/* 팀 전체를 연결하는 가로선 */
.nexus-org-team-line {
    position: absolute;
    top: 0;
    left: 16.6667%;
    right: 16.6667%;
    height: 1px;
    background-color: #d5d5d5;
}

/* 각 팀 위쪽 세로선 */
.nexus-org-teams .col-lg-4 {
    position: relative;
}

.nexus-org-team-line-vertical {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 35px;
    background-color: #d5d5d5;
}

/* 팀 카드 */
.nexus-org-team-card {
    position: relative;
    min-height: 125px;
    padding: 25px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background-color: #fff;
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* =========================================
   Hover
========================================= */

.nexus-org-card,
.nexus-org-team-card {
    transition: all 0.3s ease;
}

.nexus-org-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


/* =========================================
   Tablet
========================================= */

@media (max-width: 991px) {

    .nexus-org {
        max-width: 700px;
    }

    .nexus-org-team-line,
    .nexus-org-team-line-vertical {
        display: none;
    }

    .nexus-org-teams {
        padding-top: 20px;
    }

    .nexus-org-team-card {
        min-height: 105px;
    }
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 575px) {

    .nexus-org-card {
        width: 240px;
        min-height: 75px;
        padding: 13px 20px;
    }

    .nexus-org-card-main,
    .nexus-org-card-sub {
        gap: 12px;
    }

    .nexus-org-team-card {
        min-height: 90px;
        padding: 20px 15px;
    }

}


