/* ========================================
   isys_footer CSS 스타일
   ======================================== */

/* 푸터 기본 스타일 */
.isys_footer {
    background: #f5f6fa;
    border-top: 1px solid #e0e2e7;
}

.isys_footer-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* 좌우 패딩은 site_optimization.css 의 .isys_footer .isys_container 에서 일괄 관리 */
    font-size: 13px;
    color: #444;
    line-height: 1.8;
    gap: 0;
    position: relative;
}

.isys_footer-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.isys_footer-logo img {
    height: 29px;
    width: auto;
}

.isys_footer-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
}

.isys_footer-links {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.isys_footer-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.isys_footer-link:hover {
    color: #0066cc;
}

.isys_footer-divider {
    color: #d0d2d7;
    font-size: 12px;
    margin: 0 8px;
    flex-shrink: 0;
}

.isys_footer-info {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;          /* 좁은 폭에서 자연스럽게 줄바꿈 */
    gap: 4px 0;
    align-items: center;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    width: 100%;
    padding-right: 140px;     /* 우측 워터마크 영역 확보 */
    box-sizing: border-box;
}

.isys_footer-info-item {
    color: #444;
    white-space: nowrap;
}

/* 파트너 배지 행 (KICA + KT Biz SA) — 정보 행 다음 줄에 좌측 정렬 한 블록 */
.isys_footer-badges {
    flex-basis: 100%;
    margin-top: 8px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    line-height: 1;
}
.isys_footer-kica {
    padding-left: 0;
    line-height: 1;
    white-space: normal;
}
/* 배지 행 직전의 구분자(│) 숨김 — 행 분리되어 인접 divider 무의미 */
.isys_footer-info-divider:has(+ .isys_footer-badges) {
    display: none;
}
/* 배지 사이 구분자는 약간의 여백 */
.isys_footer-badges__divider {
    margin: 0 12px;
}
.isys_footer-kica__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}
.isys_footer-kica__link:hover {
    color: #0066cc;
}
.isys_footer-kica__link:hover .isys_footer-kica__mark {
    opacity: 0.85;
}
.isys_footer-kica__mark {
    height: 22px;
    width: auto;
    display: block;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: left center;
}
.isys_footer-kica__text {
    line-height: 1;
    font-size: 13px;
    color: #444;
}

/* ── KT Biz SA 파트너 배지 ───────────────────────── */
.isys_footer-ktbiz {
    padding-left: 0;
    line-height: 1;
    white-space: normal;
}
.isys_footer-ktbiz__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}
.isys_footer-ktbiz__link:hover {
    color: #0066cc;
}
.isys_footer-ktbiz__link:hover .isys_footer-ktbiz__kt,
.isys_footer-ktbiz__link:hover .isys_footer-ktbiz__ent {
    opacity: 0.85;
}
.isys_footer-ktbiz__marks {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.isys_footer-ktbiz__kt {
    height: 22px;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: left center;
}
.isys_footer-ktbiz__ent {
    height: 17px;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: left center;
}
.isys_footer-ktbiz__text {
    line-height: 1;
    font-size: 13px;
    color: #444;
    font-weight: 400;       /* KICA 텍스트와 동일 (기본 weight) */
    font-family: inherit;   /* 부모로부터 폰트 패밀리 명시적 상속 */
}

/* 자매 사이트 링크 (host 자동 분기, 같은 법인 운영 시그널) */
.isys_footer-sibling {
    padding-left: 0;
    line-height: 1;
}
.isys_footer-sibling__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}
.isys_footer-sibling__link:hover {
    color: #0066cc;
}
.isys_footer-sibling__link:hover .isys_footer-sibling__label {
    text-decoration: underline;
}
.isys_footer-sibling__label {
    font-size: 13px;
    color: #444;
    font-weight: 400;
    font-family: inherit;
}
/* .isys_footer-sibling__url 제거됨 (2026-05-23) — 화면 URL 텍스트 노출 안 함 (SEO 영향 없음, anchor text 깔끔화) */

/* 모바일에서 배지 행이 좁을 때 자연스럽게 줄바꿈 */
@media (max-width: 480px) {
    .isys_footer-badges__divider {
        display: none;
    }
    .isys_footer-ktbiz {
        margin-top: 6px;
        flex-basis: 100%;
    }
    .isys_footer-sibling {
        margin-top: 6px;
        flex-basis: 100%;
    }
}

.isys_footer-info-divider {
    color: #d0d2d7;
    margin: 0 8px;
    flex-shrink: 0;
}

.isys_footer-copyright {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 12px;
    letter-spacing: 0.01em;
    width: 100%;
}

.isys_footer-updated {
    display: inline-block;
    margin-top: 4px;
    color: #777;
    font-size: 11.5px;
    letter-spacing: 0.01em;
}
.isys_footer-updated time {
    color: inherit;
}

.isys_footer-watermark {
    position: absolute;
    right: 24px;
    bottom: 18px;
    height: 30px;
    width: auto;
    opacity: 0.13;
    pointer-events: none;
    z-index: 0;
}
@media (max-width: 768px) {
    .isys_footer-watermark { display: none; }
    .isys_footer-info { padding-right: 0; }
}

/* ── 자매 사이트 배지 로고 (KT Enterprise 배지와 동일 패턴) ─────── */
.isys_footer-sibling__marks {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    /* margin-right 제거: .isys_footer-sibling__link 의 gap:6px 가 이미 spacing 담당 (이중 간격 방지) */
}
.isys_footer-sibling__mark {
    /* HTML width/height attribute 로 배지별 개별 사이즈 제어 — 로고 비율이 달라 시각 무게 균형 맞추기 위함.
       width/height 를 auto 로 두면 HTML attribute 를 override 하므로 명시 안 함. max-height 만 안전장치. */
    max-height: 22px;
    display: block;
    object-fit: contain;
    object-position: left center;
}

/* ── 푸터 전체 서비스 메뉴 — 단일 트리거 메가패널 ────────────── */
.isys_footer-nav {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

/* 트리거 버튼 */
.isys_footer-nav__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px 8px 15px;
    background: #fff;
    border: 1.5px solid #b0b8c8;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    margin-bottom: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.isys_footer-nav__trigger i:first-child {
    font-size: 12px;
    color: #6b7280;
    transition: color 0.2s ease;
}
.isys_footer-nav__chevron {
    font-size: 11px;
    color: #6b7280;
    transition: transform 0.28s ease, color 0.2s ease;
}
.isys_footer-nav:hover .isys_footer-nav__trigger {
    color: #0055bb;
    border-color: #0055bb;
    background: rgba(0, 85, 187, 0.05);
}
.isys_footer-nav:hover .isys_footer-nav__trigger i {
    color: #0055bb;
}
.isys_footer-nav:hover .isys_footer-nav__chevron {
    transform: rotate(180deg);
}

/* 메가 패널 — 기본 숨김 */
.isys_footer-nav__panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}
.isys_footer-nav:hover .isys_footer-nav__panel {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
}

/* 4컬럼 그리드 카드 */
.isys_footer-nav__grid {
    display: flex;
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
}
.isys_footer-nav__col {
    flex: 1;
    padding: 18px 20px 20px;
}
.isys_footer-nav__col + .isys_footer-nav__col {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

/* 카테고리 헤딩 — 컬럼별 고유 색상 */
.isys_footer-nav__heading {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 11px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.isys_footer-nav__col:nth-child(1) .isys_footer-nav__heading { color: #60a5fa; }
.isys_footer-nav__col:nth-child(2) .isys_footer-nav__heading { color: #34d399; }
.isys_footer-nav__col:nth-child(3) .isys_footer-nav__heading { color: #fbbf24; }
.isys_footer-nav__col:nth-child(4) .isys_footer-nav__heading { color: #a78bfa; }

/* 링크 목록 */
.isys_footer-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.isys_footer-nav__item { margin: 0; }
.isys_footer-nav__link {
    display: block;
    padding: 4px 0;
    font-size: 12.5px;
    color: #94a3b8;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.isys_footer-nav__link:hover { color: #f1f5f9; }

/* 모바일 — 트리거 숨기고 항상 펼침 */
@media (max-width: 768px) {
    .isys_footer-nav__trigger { display: none; }
    .isys_footer-nav__panel {
        max-height: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        overflow: visible;
    }
    .isys_footer-nav__grid {
        flex-wrap: wrap;
        border-radius: 10px;
    }
    .isys_footer-nav__col {
        flex: 1 1 calc(50% - 1px);
        padding: 14px 16px 16px;
    }
    .isys_footer-nav__col:nth-child(2) { border-left: 1px solid rgba(255,255,255,0.07); }
    .isys_footer-nav__col:nth-child(3) {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.07);
    }
    .isys_footer-nav__col:nth-child(4) {
        border-left: 1px solid rgba(255,255,255,0.07);
        border-top: 1px solid rgba(255,255,255,0.07);
    }
    .isys_footer-nav__link { font-size: 12px; }
}

/* 팝업 스타일 */
.isys_policy-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.62);
    animation: fadeIn 0.3s ease;
}

.isys_policy-popup-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.isys_policy-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #f5f6fa;
    border-bottom: 1px solid #e0e2e7;
}

.isys_policy-popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.isys_policy-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.isys_policy-popup-close:hover {
    background-color: #e0e2e7;
    color: #333;
}

.isys_policy-popup-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
}

.isys_policy-popup-body h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #0066cc;
}

.isys_policy-popup-body h4:first-child {
    margin-top: 0;
}

.isys_policy-popup-body p {
    color: #444;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.isys_policy-popup-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.isys_policy-popup-body li {
    color: #444;
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.5;
}

.isys_policy-popup-body strong {
    color: #333;
    font-weight: 600;
}

/* 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 스크롤바 스타일 */
.isys_policy-popup-body::-webkit-scrollbar {
    width: 8px;
}

.isys_policy-popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.isys_policy-popup-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.isys_policy-popup-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .isys_footer-container {
        flex-direction: column;
        gap: 0;
        padding: 10px;
        text-align: left;
        position: relative;
    }
    
    .isys_footer-logo {
        order: 1;
        margin-bottom: 15px;
        justify-content: flex-start;
        align-self: flex-start;
        width: 100%;
    }
    
    .isys_footer-logo img {
        height: 30px;
        width: auto;
    }
    
    .isys_footer-content {
        order: 2;
        width: 100%;
    }
    
    .isys_footer-links {
        justify-content: flex-start;
        width: 100%;
    }
    
    .isys_footer-info {
        justify-content: flex-start;
        width: 100%;
    }
    
    .isys_footer-watermark {
        order: 3;
        margin: 15px 0 0 0;
        opacity: 0.3;
        height: 25px;
        display: block;
		min-width: 30px;		
    }
}

@media (max-width: 768px) {
    .isys_footer-container {
        flex-direction: column;
        gap: 0;
        padding: 10px;
        text-align: left;
        position: relative;
    }
    
    .isys_footer-logo {
        order: 1;
        margin-bottom: 15px;
        justify-content: flex-start;
        align-self: flex-start;
        width: 100%;
    }
    
    .isys_footer-logo img {
        height: 30px;
        width: auto;
    }
    
    .isys_footer-content {
		order: 2;
        width: 100%;
    }
    
    .isys_footer-links {
        justify-content: flex-start;
        width: 100%;
    }
    
    .isys_footer-info {
        justify-content: flex-start;
        width: 100%;
        font-size: 11px;
        padding-right: 0;             /* 모바일: 워터마크가 하단으로 내려가므로 우측 여백 불필요 */
        flex-direction: column;       /* 한 줄에 한 항목 — 길이 제각각 줄바꿈 방지 */
        align-items: flex-start;
        gap: 4px;
    }
    .isys_footer-info-item { white-space: normal; word-break: keep-all; }
    .isys_footer-info-divider { display: none; }   /* 세로 정렬 시 구분자 숨김 */
    
    .isys_footer-watermark {
        order: 3;
        margin: 15px 0 0 0;
        opacity: 0.3;
        height: 25px;
        display: block;
    }
    
    .isys_policy-popup-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }

    .isys_policy-popup-header {
        padding: 15px 20px;
    }

    .isys_policy-popup-header h3 {
        font-size: 16px;
    }

    .isys_policy-popup-body {
        padding: 20px;
        max-height: 70vh;
    }

    .isys_policy-popup-body h4 {
        font-size: 15px;
        margin: 20px 0 12px 0;
    }

    .isys_policy-popup-body p,
    .isys_policy-popup-body li {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .isys_footer-container {
        padding: 10px;
        gap: 0;
    }
    
    .isys_footer-logo {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .isys_footer-logo img {
        height: 25px;
    }
    
    .isys_footer-content {
        width: 100%;
		padding-left:10px;
    }
    
    .isys_footer-links {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    
    .isys_footer-info {
        flex-wrap: wrap;
        align-items: center;
        gap: 5px 8px;
        width: 100%;
    }
    
    .isys_footer-info-item {
        white-space: normal;
    }
    
    .isys_footer-watermark {
        height: 20px;
        opacity: 0.4;
        margin: 10px 0 0 0;
    }
    
    .isys_policy-popup-content {
        width: 98%;
        margin: 5% auto;
    }

    .isys_policy-popup-header {
        padding: 12px 15px;
    }

    .isys_policy-popup-body {
        padding: 15px;
    }
}
