@charset "utf-8";

/* ------------------------------------------------ */
/* [1] 기본 설정 및 변수 */
/* ------------------------------------------------ */
html { scroll-behavior: smooth; }
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.css');

:root {
    --gold: #c9a46c;        /* 고급스러운 골드 */
    --navy: #0a2b5e;        /* 신뢰의 네이비 */
    --dark: #111;
    --gray: #f4f4f4;
    --text: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Pretendard', sans-serif; color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
li { list-style: none; }
.inner { width: 1200px; margin: 0 auto; position: relative; }

/* 섹션 공통 타이틀 */
.sec-tit { text-align: center; margin-bottom: 10px; }
.sec-tit h3 { font-size: 40px; color: var(--navy); margin-bottom: 5px; font-weight: 800; }
.sec-tit p { font-size: 18px; color: #666; margin-bottom: 5px   ;}


/* ------------------------------------------------ */
/* [2] 헤더 (PC) */
/* ------------------------------------------------ */
.header { 
    height: 75px; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    background: #fff; 
    z-index: 1000; 
    border-bottom: 1px solid #eee; 
    display: flex; 
    align-items: center; 
    transition: all 0.4s ease; 
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.5); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
}
.header .inner { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    padding: 0 20px;
    position: relative; 
}

/* 로고 */
.logo {
    position: absolute; left: 40px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center;
}
.logo a { display: flex; align-items: center; height: 100%; }
.logo img { height: 30px; width: auto; object-fit: contain; cursor: pointer; }

/* 햄버거 버튼 (PC 숨김) */
.nav-toggle { display: none; }

/* 언어 변경 드롭다운 */
.lang-dropdown { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); z-index: 1002; }
.current-lang {
    background: transparent; border: 1px solid #ddd; border-radius: 4px;
    padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--navy);
    cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.3s;
    font-family: 'Montserrat', 'Pretendard', sans-serif;
}
.current-lang:hover { border-color: var(--navy); background: #f9f9f9; }
.current-lang i { font-size: 11px; color: #999; transition: 0.3s; }
.lang-list {
    position: absolute; top: 100%; right: 0; width: 100%; min-width: 60px;
    background: #fff; border: 1px solid #eee; border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); padding: 5px 0; display: none;
}
.lang-dropdown:hover .lang-list { display: block; }
.lang-dropdown:hover .current-lang i { transform: rotate(180deg); }
.lang-list li a { display: block; padding: 8px 0; text-align: center; font-size: 13px; color: #666; font-weight: 500; transition: 0.2s; }
.lang-list li a:hover { background: #f5f5f5; color: var(--navy); }
.lang-list li a.active { color: var(--gold); font-weight: 800; }

/* 메인 메뉴 (GNB) */
.gnb .main-menu { display: flex; gap: 40px; height: 75px; align-items: center; } 
.gnb .main-menu > li { position: relative; height: 100%; display: flex; align-items: center; }
.gnb .main-menu > li > a { 
    font-size: 16px; font-weight: 700; color: var(--dark); 
    transition: 0.3s; padding: 0 10px; height: 100%; display: flex; align-items: center;
}
.gnb .main-menu > li:hover > a { color: var(--gold); }
.gnb i { font-size: 12px; margin-left: 5px; color: #bbb; transition: 0.3s; }
.gnb .main-menu > li:hover i { transform: rotate(180deg); color: var(--gold); }

/* 서브 메뉴 */
.sub-menu {
    position: absolute; top: 75px; left: 50%; transform: translateX(-50%);
    width: 200px; background: #fff; border: 1px solid #eee;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-radius: 0 0 8px 8px;
    display: none; padding: 10px 0; z-index: 1001;
}
.has-sub:hover .sub-menu { display: block; }
.sub-menu li { width: 100%; }
.sub-menu li a {
    display: block; padding: 12px 20px; font-size: 15px; color: #555;
    font-weight: 500; transition: 0.2s; text-align: center;
}
.sub-menu li a:hover { background: #f9f9f9; color: var(--navy); font-weight: 700; }


/* ------------------------------------------------ */
/* [3] 메인 비주얼 (슬라이드) */
/* ------------------------------------------------ */
.hero { 
    height: 850px; position: relative; display: flex; 
    align-items: center; justify-content: center; text-align: center; 
    margin-top: 75px; color: #fff; background: #000; overflow: hidden; 
}
.swiper.mainSwiper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.swiper-slide { background-size: cover; background-position: center; position: relative; }
.swiper-slide::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); 
}
.hero-content { position: relative; z-index: 10; }
.sub-txt { color: var(--gold); font-weight: 700; letter-spacing: 2px; font-size: 18px; display: block; margin-bottom: 20px; }
.hero h1 { font-size: 60px; font-weight: 400; line-height: 1.3; margin-bottom: 30px; }
.hero h1 strong { font-weight: 700; }
.hero p { font-size: 25px; opacity: 0.9; margin-bottom: 50px; line-height: 1.35;}
.hero-btns { display: flex; gap: 15px; justify-content: center; }
.btn { padding: 18px 50px; font-size: 18px; font-weight: 700; border-radius: 50px; transition: 0.3s; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b08d55; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #f0f0f0; }


/* ------------------------------------------------ */
/* [4] 퀵 아이콘 바 */
/* ------------------------------------------------ */
.quick-bar { 
    background: #fff; padding: 40px 0; border-bottom: 1px solid #eee; 
    position: relative; top: -50px; z-index: 20; width: 1200px; margin: 0 auto; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.05); border-radius: 10px; 
}
.quick-bar .inner { display: flex; justify-content: space-around; }
.q-item { text-align: center; color: var(--dark); display: flex; flex-direction: column; align-items: center; transition: 0.3s; }
.q-item:hover { color: var(--gold); transform: translateY(-5px); }
.q-item i { font-size: 32px; margin-bottom: 10px; color: var(--navy); transition: 0.3s; }
.q-item:hover i { color: var(--gold); }
.q-item span { font-weight: 600; font-size: 16px; }


/* ------------------------------------------------ */
/* [5] CEO 소개 */
/* ------------------------------------------------ */
.about-ceo { padding: 80px 0 120px; }
.about-ceo .inner { display: flex; align-items: center; gap: 60px; }
.ceo-img { width: 65%; }

/* [수정] CEO 이미지 경로 수정 (../img/...) */
.img-frame { 
    width: 100%; height: 500px; 
    background: #ddd url('../img/team.jpg') no-repeat center top / cover; 
    border-radius: 3%;
}
.ceo-txt { width: 55%; }
.badge { display: inline-block; background: rgba(10, 43, 94, 0.1); color: var(--navy); font-weight: 700; padding: 5px 15px; border-radius: 20px; margin-bottom: 20px; }
.ceo-txt h3 { font-size: 44px; color: var(--navy); line-height: 1.3; margin-bottom: 30px; }
.ceo-txt h3 strong { color: var(--gold); }
.summary { font-size: 20px; font-weight: 600; color: #333; border-left: 4px solid var(--gold); padding-left: 20px; margin-bottom: 30px; line-height: 1.3;}
.desc { color: #666; font-size: 17px; margin-bottom: 40px; line-height: 1.35;}
.specs { display: flex; gap: 40px; border-top: 1px solid #eee; padding-top: 20px; padding-left: 20px;}
.specs li { text-align: left; }
.specs strong { display: block; font-size: 36px; color: var(--navy); font-weight: 800; }
.specs span { font-size: 15px; color: #888; }


/* ------------------------------------------------ */
/* [5.5] 미국 변호사 (단독) */
/* ------------------------------------------------ */
.us-lawyer { background: #f9f9fb; padding: 100px 0; }
.us-lawyer .inner { display: flex; align-items: center; justify-content: space-between; }
.lawyer-txt { width: 50%; padding-right: 50px; }
.l-badge { color: var(--gold); font-weight: 800; letter-spacing: 1px; margin-bottom: 15px; display: inline-block; font-size: 14px; }
.lawyer-txt h3 { font-size: 42px; color: var(--navy); line-height: 1.3; margin-bottom: 30px; }
.lawyer-txt h3 strong { border-bottom: 2.5px solid var(--gold); }
.l-desc { color: #666; font-size: 16px; margin-bottom: 40px; line-height: 1.4; }
.lawyer-profile { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-left: 5px solid var(--navy); }
.l-name { display: block; font-size: 24px; color: var(--navy); margin-bottom: 15px; font-weight: 800; }
.l-name span { font-size: 16px; color: #888; font-weight: 500; margin-left: 5px; }
.l-specs li { font-size: 15px; color: #555; margin-bottom: 8px; display: flex; align-items: center; }
.l-specs li i { color: var(--gold); margin-right: 10px; font-size: 14px; }
.lawyer-img { width: 45%; position: relative; }

/* [수정] 변호사 이미지 경로 수정 (../img/...) */
.l-photo {
    width: 100%; height: 550px; 
    background: #211d7f url('../img/lawer.jpg') no-repeat center top / cover;
    border-radius: 20px; 
}


/* ------------------------------------------------ */
/* [6] 주요 프로그램 (미국비자) */
/* ------------------------------------------------ */
.programs { background: var(--gray); padding: 100px 0; }
.sec-tit h3{line-height: 1.3;}
.sec-tit p{line-height: 1.3; padding-top: 18px;}
.prog-grid { display: flex; gap: 30px; }
.prog-card { background: #fff; width: 33.33%; border-radius: 10px; overflow: hidden; transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.prog-card:hover { transform: translateY(-10px); box-shadow: 0 20px 30px rgba(0,0,0,0.1); }
.card-img { height: 250px; background: #ccc; background-size: cover; background-position: center; }

/* [수정] 프로그램 이미지 경로 수정 (../img/...) */
.img-usa { background-image: url('../img/eb-1.jpg'); }
.img-eu { background-image: url('../img/eb-2.jpg'); }
.img-pass { background-image: url('../img/eb-3.jpg'); }
.img-money { background-image: url('../img/eb5main.jpg');}

.card-txt { padding: 30px; }
.card-txt h4 { font-size: 24px; margin-bottom: 15px; color: var(--navy); font-weight: 800; line-height: 1.3;}
.card-txt p { font-size: 16px; color: #666; margin-bottom: 25px; line-height: 1.3; min-height: 48px; }
.link { color: var(--gold); font-weight: 700; font-size: 15px; }


/* ------------------------------------------------ */
/* [7] 해외 시민권 */
/* ------------------------------------------------ */
.citizenship { padding: 100px 0; background: #fff; }
.city-list { display: flex; flex-wrap: wrap; gap: 40px 0; }
.city-item {
    width: 25%; display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 20px; border-radius: 15px; transition: 0.3s ease;
}
.city-item:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.city-img {
    width: 100%; height: 170px; border-radius: 8px; overflow: hidden;
    margin-bottom: 25px; border: 1px solid #e0e0e0; box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}
.city-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.city-item:hover .city-img img { transform: scale(1.1); }
.city-txt h4 {
    font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 10px;
    text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.city-txt h4 i { font-size: 12px; color: #ccc; transition: 0.3s; transform: rotate(0deg); }
.city-item:hover .city-txt h4 i { color: var(--gold); transform: translateX(5px); }
.city-txt p { font-size: 15px; color: #666; line-height: 1.3; word-break: keep-all; }


/* ------------------------------------------------ */
/* [8] 리뷰 */
/* ------------------------------------------------ */
.reviews { padding: 100px 0; background: #f9f9fb; }
.review-list { display: flex; gap: 20px; }
.review-item {
    width: 33.33%; background: #fff; border: 1px solid #eee; border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03); transition: 0.3s ease;
    display: flex; height: 240px; overflow: hidden;
}
.review-item:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08); border-color: var(--gold); }
.review-thumb { width: 50%; height: 100%; background-size: cover; background-position: center; border-right: 1px solid #f0f0f0; }
.review-content { width: 65%; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.review-item h5 { font-size: 17px; font-weight: 800; margin-bottom: 10px; color: var(--navy); line-height: 1.3; }
.r-txt {
    font-size: 14px; color: #666; line-height: 1.5; margin-bottom: 12px;
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; height: 63px;
}
.r-info { font-size: 12px; color: #999; font-weight: 600; border-top: 1px solid #eee; padding-top: 10px; margin-top: auto; }


/* ------------------------------------------------ */
/* [9] 미디어 링크, 오시는 길, 푸터 등 */
/* ------------------------------------------------ */
.media-links { padding: 100px 0; background: #f4f6f9; }
.m-card { display: block; border-radius: 15px; transition: 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; }
.m-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.media-top { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.white-card { width: 33.33%; background: #fff; padding: 50px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.icon-circle { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; color: #fff; font-size: 32px; }
.blog-color { background-color: #03c75a; }
.cafe-color { background-color: #00c73c; }
.youtube-color { background-color: #ff0000; }
.white-card h4 { font-size: 20px; font-weight: 700; color: #333; margin-bottom: 15px; }
.white-card .desc { font-size: 15px; color: #777; line-height: 1.6; }
.media-bottom { display: flex; justify-content: space-between; gap: 20px; }
.navy-card { width: 50%; background: var(--navy); padding: 40px 50px; display: flex; align-items: center; justify-content: space-between; color: #fff; text-align: left; }
.navy-card .txt-box h4 { font-size: 22px; font-weight: 700; margin-bottom: 15px; }
.navy-card .txt-box p { font-size: 15px; opacity: 0.8; line-height: 1.6; }
.navy-card .icon-box { font-size: 45px; opacity: 0.9; padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.2); height: 60px; display: flex; align-items: center; }

/* 오시는 길 */
.location { padding: 100px 0; background: #fff; }
.map-box { width: 100%; height: 450px; background: #eee; margin-bottom: 50px; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.map-box iframe { display: block; }
.loc-info { display: flex; justify-content: space-between; margin-bottom: 50px; padding-bottom: 40px; border-bottom: 1px solid #eee; }
.info-col { width: 33.33%; padding-right: 20px; }
.info-col h4 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 15px; }
.info-col p { font-size: 16px; color: #555; line-height: 1.6; }
.trans-grid { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 50px; }
.trans-item { width: 33.33%; display: flex; align-items: flex-start; background: #f9f9fb; padding: 30px 20px; border-radius: 12px; transition: 0.3s; }
.trans-item:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.05); background: #fff; border: 1px solid #eee; }
.trans-item .icon-circle { width: 50px; height: 50px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; flex-shrink: 0; margin-right: 15px; }
.trans-item .txt { flex-grow: 1; }
.trans-item .txt strong { display: block; font-size: 18px; color: #333; margin-bottom: 8px; font-weight: 700; }
.trans-item .txt p { font-size: 15px; color: #666; line-height: 1.5; }
.nav-btns { display: flex; gap: 20px; }
.btn-map { width: 50%; height: 60px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; border-radius: 8px; transition: 0.3s; }
.btn-map.naver { background: #03C75A; color: #fff; }
.btn-map.naver:hover { background: #02b150; }
.btn-map.kakao { background: #FEE500; color: #3C1E1E; }
.btn-map.kakao:hover { background: #fdd800; }

/* 푸터 */
.footer { background: #eef4ff; color: #777; padding: 60px 0; font-size: 14px; }
.f-info strong { color: #000000; font-size: 20px; display: block; margin-bottom: 20px; }
.f-info p { margin-bottom: 0px; }
.copy { margin-top: 10px; font-size: 14px; color: #555; }

/* 수속현황 & 공지사항 */
.news-board { padding: 0px 0 100px; background: #fff; }
.news-board .inner { display: flex; justify-content: space-between; gap: 40px; }
.news-board ul li {
    height: 56px;        /* 오른쪽 칸 높이에 맞춤 (확 줄임) */
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
    padding: 0;
    overflow: hidden;
}
.board-box { width: 48%; }
.tag.column { 
    border-color: #333; 
    color: #333; 
}
.board-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--navy); padding-bottom: 15px; margin-bottom: 20px; }
.board-head h3 { font-size: 22px; color: var(--navy); font-weight: 700; display: flex; align-items: center; }
.live-dot { font-size: 12px; color: #e74c3c; margin-left: 10px; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.btn-more { font-size: 14px; color: #999; }
/* 2. [수속현황 - 왼쪽] 가로 배치로 변경 (높이 축소 핵심) */
.status-list li {
    display: flex;
    align-items: center; /* 수직 중앙 정렬 */
    justify-content: space-between;
    padding: 0 5px;
}

/* 날짜: 작게 왼쪽 고정 */
.status-list .date {
    width: 70px;        /* 너비 고정 */
    font-size: 12px;
    color: #999;
    margin: 0;
    line-height: 1.2;
    flex-shrink: 0;     /* 찌그러짐 방지 */
}

/* 내용: 가운데 (제목/이름) */
.status-list .info {
    flex: 1;            /* 남은 공간 차지 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10px;
    min-width: 0;       /* 말줄임표(...) 작동 필수 */
    margin: 0;
}

.status-list .info strong {
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.status-list .info span {
    font-size: 13px;
    color: #555;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 뱃지: 오른쪽 끝 고정 */
.status-list .badge {
    width: 55px;
    font-size: 11px;
    padding: 3px 0;
    border-radius: 4px;
    text-align: center;
    color: #fff;
    flex-shrink: 0;
    margin: 0;
}
.badge.approval { background: var(--navy); }
.badge.success { background: var(--gold); }
.notice-list li { border-bottom: 1px solid #eee; }
.notice-list a { display: flex; align-items: center; padding: 16px 0; transition: 0.3s; }
.notice-list a:hover .title { text-decoration: underline; color: var(--navy); }
.tag { font-size: 12px; padding: 3px 8px; border: 1px solid #ddd; color: #666; margin-right: 15px; border-radius: 20px; min-width: 60px; text-align: center; }
.tag.notice { border-color: var(--gold); color: var(--gold); }
.tag.news { border-color: var(--navy); color: var(--navy); }
.tag.event { border-color: #e74c3c; color: #e74c3c; }
.notice-list .title { flex: 1; font-size: 16px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list .n-date { font-size: 14px; color: #999; margin-left: 15px; }

/* 사이드 위젯 */
.side-widget {
    position: fixed; right: 15px; bottom: 50px; z-index: 2000; width: 85px;
    background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-radius: 8px;
    overflow: hidden; display: flex; flex-direction: column; border: 1px solid #eee;
}
.side-list { margin: 0; padding: 0; }
.side-list li { border-bottom: 1px solid #f0f0f0; }
.side-list li:last-child { border-bottom: none; }
.side-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 70px; background: #fff; color: #555; transition: all 0.3s ease; text-decoration: none; }
.side-btn i { font-size: 22px; margin-bottom: 6px; color: #ccc; transition: all 0.3s ease; }
.side-btn span { font-size: 12px; font-weight: 600; letter-spacing: -0.5px; }
.side-btn.consult:hover { background: var(--navy); color: #fff; } .side-btn.consult:hover i { color: #fff; }
.side-btn.niw:hover { background: var(--gold); color: #fff; } .side-btn.niw:hover i { color: #fff; }
.side-btn.kakao:hover { background: #fee500; color: #3c1e1e; } .side-btn.kakao:hover i { color: #3c1e1e; }
.side-btn.blog:hover { background: #03c75a; color: #fff; } .side-btn.blog:hover i { color: #fff; }
.side-btn.map:hover { background: #5b70e5; color: #fff; } .side-btn.map:hover i { color: #fff; }
.side-top { width: 100%; height: 35px; background: #f8f8f8; color: #999; border: none; font-size: 11px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.side-top:hover { background: #333; color: #fff; }


/* =========================================================================
   [Mobile Responsive] 최종 통합 (PC ~ 768px)
   ========================================================================= */

   @media screen and (max-width: 1024px) {
    .inner { width: 96%; }
    .quick-bar { width: 96%; }
}

@media screen and (max-width: 768px) {
    
    /* [공통 레이아웃] */
    .inner { width: 100%; padding: 0 20px; }
    .sec-tit h3 { font-size: 24px; }
    .sec-tit p { font-size: 14px; word-break: keep-all; }
    section { overflow: hidden; }

    /* [헤더 & 메뉴] */
    .header { height: 60px; padding: 0; }
    .header .inner { justify-content: space-between; padding: 0 20px; }
    .logo { position: static; transform: none; }
    .logo img { height: 24px; }
    .nav-toggle { display: block; background: none; border: none; font-size: 24px; color: var(--navy); cursor: pointer; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); z-index: 1002; }
    .lang-dropdown { right: 60px; top: 50%; transform: translateY(-50%); }
    
    .gnb { 
        position: fixed; top: 60px; left: 0; width: 100%; background: #fff; 
        box-shadow: 0 5px 10px rgba(0,0,0,0.1); display: none; padding: 20px 0; 
        border-top: 1px solid #eee; max-height: calc(100vh - 60px); overflow-y: auto; 
    }
    .gnb.active { display: block; }
    .gnb .main-menu { flex-direction: column; height: auto; gap: 0; }
    .gnb .main-menu > li { width: 100%; border-bottom: 1px solid #f5f5f5; }
    .gnb .main-menu > li > a { display: block; padding: 15px 20px; font-size: 16px; width: 100%; }
    .sub-menu { position: static; display: block; width: 100%; box-shadow: none; border: none; background: #f9f9fb; transform: none; padding: 0; }
    .sub-menu li a { padding: 10px 40px; text-align: left; font-size: 14px; color: #777; }

    /* [메인 비주얼 & 퀵바 숨김] */
    .hero { height: 400px; margin-top: 60px; }
    .hero h1 { font-size: 26px; line-height: 1.4; }
    .hero p { font-size: 14px; margin-bottom: 25px; }
    .hero-btns { flex-direction: column; padding: 0 20px; }
    .btn { width: 100%; padding: 12px 0; font-size: 15px; }
    .quick-bar { display: none; }
    
    /* [기본 1열 유지 섹션] */
    .news-board .inner, .about-ceo .inner, .us-lawyer .inner, .review-list, .loc-info {
        flex-direction: column;
    }
    .board-box, .ceo-img, .ceo-txt, .lawyer-txt, .lawyer-img, .review-item, .info-col {
        width: 100%;
    }

    /* [여백 조정] */
    .news-board, .about-ceo, .us-lawyer, .programs, .citizenship, .reviews, .media-links, .location {
        padding: 30px 0;
    }

    /* 이미지 및 텍스트 최적화 */
    .ceo-img { order: 1; margin-bottom: 20px; }
    .ceo-txt { order: 2; }
    .img-frame { height: 220px; }
    .specs strong { font-size: 28px; }
    .lawyer-img { margin-top: 30px; }
    .l-photo { height: 350px; }
    .review-thumb { height: 160px; border-right: none; border-bottom: 1px solid #eee; }
    
    /* 텍스트 사이즈 축소 */
    .ceo-txt h3, .lawyer-txt h3 { font-size: 24px; margin-bottom: 15px; }
    .summary { font-size: 15px; margin-bottom: 15px; }
    .desc, .l-desc { font-size: 13px; line-height: 1.6; }
    .side-widget { display: none; }


    /* =======================================================
       [1] 카드 강제 2열/3열 정렬
       ======================================================= */

    /* 프로그램 (EB-1, NIW, EB-3) : 2열 */
    .prog-grid { flex-direction: row !important; flex-wrap: wrap !important; gap: 10px !important; }
    .prog-card { width: calc(50% - 5px) !important; margin-bottom: 0 !important; }
    .card-img { height: 120px; }
    .card-txt { padding: 15px 10px; }
    .card-txt h4 { font-size: 15px; margin-bottom: 5px; }
    .card-txt p { 
        font-size: 12px; line-height: 1.3; height: 32px; overflow: hidden; margin-bottom: 10px; 
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    }
    .link { font-size: 12px; }

    /* 해외 시민권 : 2열 */
    .city-list { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; gap: 10px !important; }
    .city-item { width: calc(50% - 5px) !important; padding: 10px !important; margin-bottom: 0 !important; }
    .city-img { height: 100px; margin-bottom: 10px; }
    .city-txt h4 { font-size: 12px; gap: 3px; }
    .city-txt h4 i { font-size: 10px; }
    .city-txt p { font-size: 11px; line-height: 1.3; letter-spacing: -0.5px; }

    /* 미디어 링크 (상단 3열 / 하단 2열) */
    .media-top { flex-direction: row !important; flex-wrap: nowrap !important; gap: 5px !important; }
    .white-card { width: 33.33% !important; padding: 15px 5px !important; border-radius: 8px; }
    .white-card .icon-circle { width: 40px; height: 40px; font-size: 18px; margin-bottom: 10px; }
    .white-card h4 { font-size: 11px; margin-bottom: 5px; height: 30px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
    .white-card .desc { display: none; }

    .media-bottom { flex-direction: row !important; gap: 10px !important; margin-top: 10px; }
    .navy-card { width: 50% !important; padding: 15px !important; flex-direction: column-reverse !important; text-align: center !important; justify-content: center !important; border-radius: 8px; }
    .navy-card .icon-box { border-left: none !important; padding-left: 0 !important; margin-bottom: 10px; justify-content: center; font-size: 24px; height: auto; }
    .navy-card .txt-box h4 { font-size: 13px; margin-bottom: 0; }
    .navy-card .txt-box p { display: none; }


    /* =======================================================
       [2] 교통편 텍스트 복구 (3열 유지 + 글자 보이게)
       ======================================================= */
    .trans-grid { flex-direction: row !important; flex-wrap: nowrap !important; gap: 5px !important; }
    .trans-item {
        width: 33.33% !important; padding: 15px 5px !important;
        flex-direction: column !important; align-items: center !important; text-align: center !important;
    }
    .trans-item .icon-circle { margin-right: 0 !important; margin-bottom: 8px !important; width: 36px; height: 36px; font-size: 16px; }
    .trans-item .txt strong { font-size: 12px; margin-bottom: 4px; display: block; }
    
    /* 상세 텍스트 강제 표시 및 사이즈 축소 */
    .trans-item .txt p { 
        display: block !important; 
        font-size: 10px; /* 글자 크기 축소 */
        line-height: 1.2; 
        color: #777; 
        word-break: keep-all; 
    }


    /* =======================================================
       [3] 수속현황 디자인 복구 (날짜/뱃지 상단, 내용 하단)
       ======================================================= */
    .status-list li {
        display: flex; flex-wrap: wrap; /* 줄바꿈 허용 */
        align-items: center; justify-content: space-between;
        padding: 15px 0;
    }
    /* 날짜: 왼쪽 상단 */
    .status-list .date {
        width: auto; font-size: 13px; color: #888; margin-bottom: 5px; order: 1;
    }
    /* 뱃지: 오른쪽 상단 */
    .status-list .badge {
        width: auto; font-size: 11px; padding: 3px 8px; margin-bottom: 5px; margin-left: auto; order: 2;
    }
    /* 내용: 다음 줄 전체 */
    .status-list .info {
        width: 100%; padding-right: 0; margin-top: 5px; order: 3;
    }
    .status-list .info strong { font-size: 16px; margin-bottom: 4px; display: block; }
    .status-list .info span { font-size: 14px; color: #555; }
}

/* =================================================================
   [모바일 파격 수정] 메인 게시판 가로 3단 강제 적용 & 스타일 최적화
   ================================================================= */

   @media screen and (max-width: 768px) {

    /* 1. 레이아웃: 세로 쌓임 방지 -> 가로 3단 강제 (Flex Row) */
    .news-board .inner {
        display: flex !important;
        flex-direction: row !important; /* 가로 배치 */
        flex-wrap: nowrap !important;   /* 줄바꿈 금지 */
        gap: 8px !important;            /* 박스 간 간격 좁힘 */
        padding: 0 10px !important;     /* 전체 여백 축소 */
        align-items: flex-start;        /* 위쪽 라인 맞춤 */
    }

    /* 2. 박스 크기: 3등분 (약 33%) */
    .board-box {
        width: 33.33% !important;
        min-width: 0; /* 내용이 넘쳐도 박스가 커지지 않게 함 */
    }

    /* 3. 헤더(제목) 축소 */
    .board-head {
        padding-bottom: 8px !important;
        margin-bottom: 8px !important;
        flex-direction: column; /* 제목과 더보기 버튼 분리 고려 */
        align-items: flex-start;
    }
    .board-head h3 {
        font-size: 11px !important; /* 제목 글자 작게 */
        letter-spacing: -1px;       /* 자간 좁힘 */
        white-space: nowrap;        /* 줄바꿈 방지 */
    }
    /* 공간 확보를 위해 장식 요소 숨김 */
    .live-dot, .btn-more { display: block !important; } 


    /* ------------------------------------------------ */
    /* [A] 왼쪽: 실시간 수속 현황 (최종: 날짜 삭제 -> 한 줄로 압축) */
    /* ------------------------------------------------ */
    .status-list li {
        display: flex !important;
        flex-direction: row !important; /* 가로 방향 */
        flex-wrap: nowrap !important;   /* 줄바꿈 없이 한 줄에 도전 */
        align-items: center !important; /* 수직 중앙 정렬 */
        padding: 6px 0 !important;
        height: auto !important;
        border-bottom: 1px solid #f0f0f0;
    }

    /* 1. 날짜: 삭제 (화면에서 숨김) */
    .status-list .date {
        display: none !important;
    }

    /* 2. 뱃지: 맨 왼쪽으로 이동 */
    .status-list .badge {
        display: inline-block !important;
        width: auto !important;
        font-size: 8px !important;
        padding: 2px 4px !important;
        margin: 0 5px 0 0 !important; /* 제목과의 간격 */
        order: 1;                     /* 순서 1번 */
        flex-shrink: 0;               /* 찌그러짐 방지 */
        border-radius: 3px;
    }

    /* 3. 내용(제목): 뱃지 옆에 배치 */
    .status-list .info {
        width: auto !important;
        flex: 1 !important;           /* 남은 공간 꽉 채우기 */
        margin: 0 !important;
        order: 2;                     /* 순서 2번 */
    }
    
    .status-list .info strong {
        font-size: 10px !important;
        color: #333;                  /* 글자색 진하게 */
        line-height: 1.2;
        margin-bottom: 0 !important;
        
        /* 2줄 넘어가면 ... 처리 (안전을 위해) */
        white-space: normal !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;          
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* 상세 이름(김*수님) 숨김 */
    .status-list .info span { display: none !important; }


    /* ------------------------------------------------ */
    /* [B] 중간 & 오른쪽: 공지사항 / 칼럼 (심플하게) */
    /* ------------------------------------------------ */
    .notice-list li {
        padding: 6px 0 !important;
        height: auto !important; /* 높이 고정 해제 */
    }
    
    .notice-list a {
        display: block !important; /* Flex 해제 */
        padding: 0 !important;
    }

    /* 태그(공지/뉴스)와 날짜는 공간 부족으로 숨김 */
    .notice-list .tag { display: none !important; }
    .notice-list .n-date { display: none !important; }

    /* 제목만 깔끔하게 표시 */
    .notice-list .title {
        font-size: 10px !important;
        line-height: 1.4;
        margin: 0 !important;
        white-space: normal !important; /* 줄바꿈 허용 */
        display: -webkit-box;
        -webkit-line-clamp: 2;          /* 최대 2줄 */
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #555;
    }
}

/* =================================================================
   [모바일 파격 수정] 수속 후기(Reviews) 가로 3단 변신
   ================================================================= */
   @media screen and (max-width: 768px) {
    
    /* 1. 리스트를 가로 한 줄로 배치 */
    .review-list {
        display: flex !important;
        flex-direction: row !important; /* 가로 방향 */
        flex-wrap: nowrap !important;   /* 줄바꿈 금지 */
        gap: 8px !important;            /* 카드 사이 간격 */
        padding: 0 10px !important;
        overflow: hidden;               /* 넘치는 것 방지 */
    }

    /* 2. 카드 개별 스타일: 작고 귀엽게 */
    .review-item {
        width: 33.33% !important;       /* 3등분 */
        display: flex !important;
        flex-direction: column !important; /* [사진 위] - [글 아래] 구조로 변경 */
        height: auto !important;        /* 높이 자동 */
        border-radius: 8px !important;
        box-shadow: none !important;    /* 그림자 제거 (깔끔하게) */
        border: 1px solid #eee !important;
        background: #fff;
    }

    /* 3. 썸네일(사진) 크기 축소 */
    .review-thumb {
        width: 100% !important;
        height: 70px !important;        /* 높이를 확 줄임 */
        border-right: none !important;
        border-bottom: 1px solid #f5f5f5;
        border-radius: 8px 8px 0 0 !important;
    }

    /* 4. 텍스트 영역 */
    .review-content {
        width: 100% !important;
        padding: 10px 5px !important;   /* 여백 축소 */
        text-align: center !important;  /* 중앙 정렬 */
    }

    /* 제목 (EB-3 등) */
    .review-item h5 {
        font-size: 11px !important;
        margin-bottom: 5px !important;
        white-space: nowrap;            /* 한 줄로 표시 */
        overflow: hidden;
        text-overflow: ellipsis;        /* 넘치면 ... */
        line-height: 1.2;
    }

    /* 본문 내용 (작게 2줄만 표시) */
    .r-txt {
        font-size: 10px !important;
        color: #888;
        line-height: 1.3;
        height: 2.6em;                  /* 2줄 높이 제한 */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;          /* 2줄 넘어가면 자름 */
        -webkit-box-orient: vertical;
        margin-bottom: 6px !important;
        word-break: keep-all;
    }

    /* 하단 정보 (이름 등) */
    .r-info {
        font-size: 9px !important;
        padding-top: 6px !important;
        margin-top: 0 !important;
        border-top: 1px solid #f5f5f5;
        color: #aaa;
    }
}

/* =================================================================
   [최종 수정] 미디어 섹션: 설명글 포함 + 컴팩트 비율 (PC/Mobile)
   ================================================================= */

/* 1. [공통] 섹션 전체 여백 축소 */
.media-links {
    padding: 30px 0 !important; /* 위아래 여백 줄임 */
}

/* 2. [PC 버전] 카드 비율 축소 (납작하고 단단하게) */
.white-card {
    padding: 25px 15px !important;  /* 내부 여백 대폭 축소 (뚱뚱함 제거) */
    border-radius: 12px !important;
    height: 100% !important;        /* 높이 꽉 채우기 */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* 아이콘 크기 축소 */
.icon-circle {
    width: 50px !important;        /* 80px -> 50px */
    height: 50px !important;
    font-size: 20px !important;
    margin-bottom: 12px !important;
}

/* 텍스트 크기 축소 (설명글 보임) */
.white-card h4 {
    font-size: 16px !important;    /* 제목 크기 줄임 */
    margin-bottom: 6px !important;
}

.white-card .desc {
    display: block !important;     /* ★설명글 다시 보임★ */
    font-size: 13px !important;    /* 글자 크기 줄임 */
    color: #888;
    line-height: 1.3 !important;
    word-break: keep-all;          /* 단어 끊김 방지 */
}


/* 3. [하단 네이비 카드] 비율 축소 */
.navy-card {
    padding: 20px 30px !important; /* 높이 줄임 */
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
}
.navy-card .txt-box h4 {
    font-size: 17px !important;
    margin-bottom: 4px !important;
}
.navy-card .txt-box p {
    display: block !important;     /* ★설명글 다시 보임★ */
    font-size: 13px !important;
    opacity: 0.8;
}
.navy-card .icon-box {
    font-size: 30px !important;    /* 아이콘 축소 */
}


/* =================================================================
   [최종 수정 v5] 미디어 섹션: 카드 크기 유지 + 내용물(글자/아이콘) 확대
   ================================================================= */

/* 1. [PC] 섹션 전체 폭 (이전과 동일하게 유지) */
.media-links { padding: 30px 0 !important; }
.media-links .inner {
    max-width: 900px !important; /* 글자가 커졌으니 폭을 아주 살짝만 여유 줌 (800->900) */
    margin: 0 auto !important;
    padding: 0 10px !important;
}

/* 2. [PC] 카드 스타일 */
.white-card {
    padding: 20px 5px !important; 
    border-radius: 12px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

/* ★수정포인트 1: 아이콘 크기 확대 */
.icon-circle {
    width: 60px !important;         /* 40px -> 60px (확대) */
    height: 60px !important;
    font-size: 26px !important;     /* 아이콘 그림도 확대 */
    margin-bottom: 12px !important;
}

/* ★수정포인트 2: 제목 텍스트 확대 */
.white-card h4 {
    font-size: 19px !important;     /* 15px -> 19px (확대) */
    margin-bottom: 6px !important;
    font-weight: 700;
    letter-spacing: -0.5px;
    width: 100%;
}

/* ★수정포인트 3: 설명글 확대 */
.white-card .desc {
    display: block !important;
    font-size: 14px !important;     /* 12px -> 14px (확대) */
    color: #666;                    /* 글자색 조금 더 진하게 */
    line-height: 1.3 !important;
    word-break: keep-all;
    padding: 0 5px !important;
}

/* 하단 네이비 카드 (글자 키움) */
.navy-card {
    padding: 15px 30px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.navy-card .txt-box h4 { font-size: 18px !important; margin-bottom: 2px !important; }
.navy-card .txt-box p { font-size: 14px !important; opacity: 0.9; margin: 0 !important; }
.navy-card .icon-box { font-size: 30px !important; } /* 아이콘 확대 */


/* =================================================================
   [모바일] 가로 3단 유지 + 내용물 최대로 키움
   ================================================================= */
@media screen and (max-width: 768px) {
    
    .media-links .inner { width: 100% !important; padding: 0 10px !important; }

    .media-top {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important; 
        gap: 6px !important;
        margin-bottom: 6px !important;
    }

    .white-card {
        flex: 1 !important;
        width: auto !important;
        padding: 12px 2px !important; /* 패딩 유지 */
        flex-direction: column !important;
    }

    /* 모바일 아이콘 확대 */
    .icon-circle {
        width: 40px !important;       /* 30px -> 40px */
        height: 40px !important;
        font-size: 18px !important;   /* 13px -> 18px */
        margin-bottom: 6px !important;
        margin-right: 0 !important;
    }

    /* 모바일 텍스트 확대 (공간 허용 한도 내에서) */
    .white-card h4 {
        font-size: 12px !important;   /* 10px -> 12px */
        margin-bottom: 3px !important;
        letter-spacing: -1px;
        white-space: nowrap;
    }

    .white-card .desc {
        font-size: 10px !important;   /* 9px -> 10px */
        line-height: 1.2 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

   .media-bottom { 
        display: flex !important;
        flex-direction: row !important;        /* ★ 가로 배치 핵심 ★ */
        gap: 8px !important;                   /* 사이 간격 */
        margin-top: 8px !important;
    }
    .navy-card {
        width: 50% !important;                 /* 너비 반반 */
        padding: 15px 10px !important;         /* 내부 여백 조절 */
        height: auto !important;               /* 높이 자동 */
        
        /* 좁은 공간 효율을 위해 아이콘과 텍스트 배치 변경 */
        flex-direction: column !important;     
        justify-content: space-between !important;
        align-items: flex-start !important;
        text-align: left !important;
        min-height: 100px;                     /* 최소 높이 확보 */
    }
    .navy-card .txt-box { width: 100%; }
    .navy-card .txt-box h4 { 
        font-size: 13px !important; 
        margin-bottom: 5px !important;
        word-break: keep-all;                  /* 단어 끊김 방지 */
        line-height: 1.3 !important;
    }

    .navy-card .txt-box p { 
        font-size: 10px !important; 
        line-height: 1.2 !important;
        opacity: 0.7;
        display: block !important;             /* 설명글 표시 */
    }

    .navy-card .icon-box { 
        align-self: flex-end;                  /* 아이콘을 오른쪽 아래로 보냄 */
        font-size: 20px !important;            /* 아이콘 크기 축소 */
        margin-top: 10px !important;
        margin-bottom: 0 !important;
        padding-left: 0 !important;
        border: none !important;
    }
}

/* =========================================
   [반응형 수정] 화면이 좁아질 때 메뉴 깨짐 방지
   ========================================= */

/* 1. 노트북/태블릿 구간 (1400px 이하) */
@media screen and (max-width: 1400px) {
    /* 양옆 간격을 줄여서 억지로 구겨 넣기 */
    .gnb > ul > li {
        padding: 0 10px !important; /* !important는 강제 적용을 위해 추가 */
    }
    
    /* 글자 크기 줄이기 */
    .gnb > ul > li > a {
        font-size: 15px !important;
    }

    /* 로고 크기 줄여서 공간 확보 */
    .logo img {
        width: 130px; 
    }
}

/* 2. 글자가 길어도 절대 두 줄로 떨어지지 않게 하기 (필수!) */
.gnb > ul > li > a {
    white-space: nowrap; 
}


/* [모바일 메뉴 스크롤 및 하단 잘림 해결 - 최종 수정판] */

/* 1. 메뉴가 열렸을 때 배경 스크롤 막기 (JS와 연동) */
body.no-scroll {
    overflow: hidden !important;
    position: fixed !important;
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 768px) {
    /* [상태 1] 평소에는 아예 화면에서 없애버림 (이게 빠져서 문제였음!) */
    .gnb {
        display: none !important; 
    }

    /* [상태 2] active 클래스가 붙으면(버튼 눌렀을 때) 그때 짠! 하고 나타남 */
    .gnb.active {
        display: block !important; 
        
        /* 위치 및 크기 고정 */
        position: fixed !important;
        top: 60px !important;    /* 헤더 높이 (필요시 수정) */
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;    /* 화면 끝까지 강제로 당김 */
        
        /* 높이 제한 해제 */
        height: auto !important; 
        max-height: none !important;
        
        /* 스크롤 설정 */
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch; 
        
        /* 디자인 */
        background: #fff !important;
        z-index: 99999 !important;
        
        /* 하단 바 가림 방지용 여백 */
        padding-bottom: 200px !important; 
    }
}

/* [모바일 메뉴 텍스트 줄바꿈 허용] */
@media screen and (max-width: 768px) {
    .gnb li a {
        /* 1. 글자가 길면 무조건 줄바꿈 허용 */
        white-space: normal !important; 
        
        /* 2. 줄바꿈 된 만큼 박스 높이도 자동으로 늘어남 */
        height: auto !important; 
        
        /* 3. 줄 간격을 넉넉하게 (너무 붙으면 읽기 힘듦) */
        line-height: 1.4 !important; 
        
        /* 4. 위아래 여백을 줘서 터치하기 편하게 만듦 */
        padding-top: 15px !important; 
        padding-bottom: 15px !important;
        
        /* 5. 텍스트 정렬 (왼쪽 정렬이 깔끔함) */
        text-align: left !important;
    }
    
    /* 혹시 화살표 아이콘이 있는 상위 메뉴라면 겹치지 않게 오른쪽 여백 추가 */
    .gnb > ul > li > a {
        padding-right: 40px !important; /* 화살표 공간 확보 */
    }
}
/* [헤더 고정 및 순서 정리] */
.header {
    /* 1. 다시 화면 상단에 꽉 박아둡니다 (스크롤 따라오게) */
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    
    /* 2. 메뉴판(99999)보다 더 위에 오게 합니다 */
    z-index: 100000 !important; 
    
    /* 3. 배경색이 없으면 내용이 비칠 수 있으니 흰색 지정 (필요 시) */
    background: #fff; 
}

/* (참고) 헤더가 고정되면 내용이 헤더 뒤로 숨을 수 있으니 */
/* 만약 본문 첫 부분이 가려진다면 body나 최상단 섹션에 padding-top을 줘야 할 수도 있습니다. */
/* 원래 잘 되던 거라면 이 부분은 신경 안 쓰셔도 됩니다. */
/* [언어 선택 드롭다운 최상위 노출] */
.lang-dropdown, 
.lang-list {
    /* 메뉴판(99999)이나 헤더(100000)보다 무조건 높게 설정 */
    z-index: 200000 !important; 
    position: absolute !important; /* 위치 고정 확실하게 */
}

/* (혹시 모를 대비) 모바일에서 드롭다운 배경이 투명해서 글씨가 겹칠까봐 배경색 지정 */
@media screen and (max-width: 768px) {
    .lang-list {
        background: #fff !important;
        border: 1px solid #ddd !important;
    }
}

/* [모바일 메인 버튼 사이즈 조절] */
@media screen and (max-width: 768px) {
    /* 1. 버튼을 감싸는 박스를 가운데 정렬 */
    .hero-btns {
        align-items: center !important; 
    }

    /* 2. 버튼 크기 줄이기 */
    .btn {
        /* 가로를 꽉 채우지 말고(100%), 글자 길이에 맞춤(auto) */
        width: auto !important; 
        
        /* 최소 너비 설정 (너무 작아지지 않게) */
        min-width: 200px !important; 
        
        /* 안쪽 여백 조절 (위아래 12px, 양옆 40px) */
        padding: 12px 40px !important; 
        
        /* 둥근 모서리 유지 */
        border-radius: 50px !important;
    }
}

/* 화면이 1400px보다 작아지면 글자 크기와 간격을 조금 줄임 */
@media screen and (max-width: 1400px) {
    header {
        padding: 0 20px; /* 양옆 여백 축소 */
    }
    nav ul li a {
        font-size: 14px; /* 글자 크기 축소 */
    }
    nav ul {
        gap: 15px; /* 메뉴 사이 간격 축소 */
    }
}


/* ==========================================================
   [긴급 수정] 맨 아래에 붙여넣으세요 (기존 설정 덮어쓰기)
   ========================================================== */

/* 1. [PC ~ 태블릿 구간] 화면이 조금 줄어들 때 (1600px ~ 1201px) */
/* -> 메뉴 글씨와 간격을 줄여서 겹치지 않게 '다이어트' 시킴 */
@media screen and (max-width: 1600px) {
    .inner { width: 100% !important; padding: 0 30px !important; }
    
    /* 메뉴 간격 좁히기 */
    .gnb .main-menu { gap: 15px !important; } 
    
    /* 글자 크기 줄이기 */
    .gnb .main-menu > li > a { 
        font-size: 14px !important; 
        padding: 0 5px !important; 
        white-space: nowrap !important; /* 줄바꿈 절대 금지 */
    }

    /* 로고와 언어 버튼 위치 살짝 조절 */
    .logo { left: 20px !important; }
    .lang-dropdown { right: 20px !important; }
}


/* 2. [모바일 전환 구간] 1200px 이하가 되면 즉시 모바일 모드 발동 */
@media screen and (max-width: 1200px) {

    /* --- [A] 상단 헤더 정리 --- */
    .header { height: 60px !important; }
    .header .inner { justify-content: space-between !important; padding: 0 20px !important; }
    
    /* PC 메뉴와 퀵바는 무조건 숨김 */
    .gnb { display: none; } 
    .quick-bar { display: none !important; }

    /* 햄버거 버튼(메뉴열기) 강제 표시 */
    .nav-toggle { 
        display: block !important;
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 2002 !important;
        border: none; background: none; font-size: 24px; color: #0a2b5e;
    }

    /* ★ [핵심] 언어 선택 버튼 위치 이동 (햄버거 버튼과 안 겹치게 왼쪽으로 밀기) ★ */
    .lang-dropdown {
        right: 70px !important; /* 오른쪽에서 70px 떨어뜨림 */
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 2001 !important;
    }

    /* 로고 위치 */
    .logo { left: 20px !important; position: absolute !important; transform: translateY(-50%) !important; }
    .logo img { height: 24px !important; width: auto !important; }


    /* --- [B] 모바일 메뉴가 열렸을 때 디자인 (.active) --- */
    .gnb.active {
        display: block !important;
        position: fixed !important;
        top: 60px !important; left: 0 !important; width: 100% !important; height: calc(100vh - 60px) !important;
        background: #fff !important; 
        z-index: 9999 !important;
        overflow-y: auto !important; /* 스크롤 가능 */
        border-top: 1px solid #eee !important;
        padding: 0 !important;
    }

    /* 모바일 메뉴 리스트 세로 정렬 */
    .gnb.active .main-menu { flex-direction: column !important; gap: 0 !important; height: auto !important; }
    .gnb.active .main-menu > li { width: 100% !important; border-bottom: 1px solid #f5f5f5 !important; }
    .gnb.active .main-menu > li > a {
        display: block !important; padding: 15px 20px !important;
        font-size: 16px !important; width: 100% !important; text-align: left !important;
        white-space: normal !important; /* 모바일은 줄바꿈 허용 */
        height: auto !important;
    }

    /* --- [C] 본문 레이아웃 한 줄로 펴기 --- */
    /* 섹션들 세로 배치 */
    .news-board .inner, .about-ceo .inner, .us-lawyer .inner, .loc-info {
        flex-direction: column !important;
    }
    .board-box, .ceo-img, .ceo-txt, .lawyer-txt, .lawyer-img, .info-col {
        width: 100% !important;
    }
    
    /* 순서 조정 (이미지 위로, 글자 아래로) */
    .ceo-img { order: 1 !important; margin-bottom: 20px !important; }
    .ceo-txt { order: 2 !important; }
    .lawyer-img { margin-top: 30px !important; }

    /* 여백 조정 */
    .news-board, .about-ceo, .us-lawyer, .programs, .citizenship, .reviews, .media-links, .location {
        padding: 40px 0 !important;
    }

    /* --- [D] 카드형 디자인 복구 (2열/3열) --- */
    /* 프로그램 & 시민권: 2열 */
    .prog-grid, .city-list { flex-direction: row !important; flex-wrap: wrap !important; gap: 10px !important; }
    .prog-card, .city-item { width: calc(50% - 5px) !important; margin: 0 !important; }
    .card-img { height: 120px !important; }
    .city-img { height: 100px !important; }
    
    /* 텍스트 줄임 처리 */
    .card-txt p, .city-txt p { 
        display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden !important; 
        font-size: 11px !important; line-height: 1.3 !important; height: 2.6em !important;
    }

    /* 하단 아이콘 링크: 3열 */
    .media-links .inner { padding: 0 10px !important; width: 100% !important; }
    .media-top { flex-direction: row !important; gap: 5px !important; }
    .white-card { width: 33.33% !important; padding: 10px 2px !important; }
    .icon-circle { width: 40px !important; height: 40px !important; font-size: 18px !important; margin-bottom: 5px !important; }
    .white-card h4 { font-size: 11px !important; white-space: nowrap !important; letter-spacing: -1px !important; }
    
    /* 하단 네이비 카드: 세로 */
    .media-bottom { flex-direction: column !important; gap: 10px !important; }
    .navy-card { width: 100% !important; padding: 15px !important; }

    /* 게시판 & 리뷰 가로 3단 강제 유지 */
    .news-board .inner { flex-direction: row !important; flex-wrap: nowrap !important; gap: 8px !important; align-items: flex-start !important; }
    .board-box { width: 48% !important; }
    .review-list { flex-direction: row !important; flex-wrap: nowrap !important; gap: 8px !important; overflow: hidden !important; }
    .review-item { width: 48% !important; flex-direction: column !important; height: auto !important; }
    .review-thumb { width: 100% !important; height: 60px !important; border-right: none !important; border-bottom: 1px solid #eee !important; }
    
    /* 오시는 길 교통편 가로 3단 */
    .trans-grid { flex-direction: row !important; gap: 5px !important; }
    .trans-item { width: 33.33% !important; padding: 10px 2px !important; flex-direction: column !important; text-align: center !important; }
    .trans-item .icon-circle { margin: 0 0 5px 0 !important; width: 30px !important; height: 30px !important; font-size: 14px !important; }
}

/* ==========================================================
   [버그 수정] 모바일 메뉴 스크롤 & 하단 잘림 방지
   ========================================================== */

/* 1. 메뉴가 열렸을 때 본문(body) 스크롤 아예 막아버리기 */
body.no-scroll {
    overflow: hidden !important; /* 스크롤바 없앰 */
    height: 100vh !important;    /* 화면 높이 고정 */
    touch-action: none;          /* 모바일 터치 스크롤 방지 */
}

/* 2. 모바일 메뉴영역 자체는 스크롤 되어야 함 */
.gnb.active {
    /* 기존 설정 유지하되, 스크롤은 확실하게 */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch; /* 아이폰 부드러운 스크롤 */
    
    /* ★ 하단 잘림 방지 핵심: 메뉴판 높이를 화면보다 조금 작게 잡고 여백 줌 */
    height: 100vh !important; /* 일단 꽉 채우고 */
    padding-bottom: 150px !important; /* ★ 맨 밑에 투명 쿠션(여백)을 빵빵하게 넣음 */
}

/* 3. 메뉴 리스트 끝부분 여백 확보 */
.gnb.active .main-menu {
    padding-bottom: 100px !important; /* 리스트 자체도 하단 여백 추가 */
}
/* =================================================================
   [긴급 수정] 모바일 UI 강제 정렬 (더보기 버튼 & 하단 카드)
   ================================================================= */

@media screen and (max-width: 768px) {

    /* 1. [게시판 헤더] 제목과 더보기 버튼을 양옆으로 찢기 */
    .board-head {
        display: flex !important;
        flex-direction: row !important;        /* 무조건 가로 배치 */
        justify-content: space-between !important; /* 양끝 정렬 */
        align-items: flex-end !important;      /* 아래쪽 라인 맞춤 */
        width: 100% !important;
        margin-bottom: 10px !important;
        padding-bottom: 5px !important;
        border-bottom: 2px solid #0a2b5e !important; /* 구분선 확실하게 */
    }

    .board-head h3 {
        margin: 0 !important;
        font-size: 14px !important;            /* 제목 크기 고정 */
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .btn-more { 
        display: inline-block !important; 
        font-size: 11px !important; 
        color: #999 !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }
    
    /* 2. [맨 하단 파란색 카드] 가로 2줄(반반) 만들기 */
    .media-bottom { 
        display: flex !important;
        flex-direction: row !important;        /* ★ 핵심: 가로 배치 ★ */
        gap: 8px !important;                   /* 사이 간격 */
        margin-top: 10px !important;
        width: 100% !important;
    }

    .navy-card {
        width: 50% !important;                 /* 너비 강제 반반 */
        flex: 1 !important;                    /* 남은 공간 채우기 */
        padding: 15px 10px !important;         /* 내부 여백 조절 */
        height: auto !important;               
        min-height: 100px !important;          /* 높이 최소값 확보 */
        
        /* 내용물 배치 (세로 정렬) */
        flex-direction: column !important;     
        justify-content: space-between !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .navy-card .txt-box { 
        width: 100% !important; 
        margin-bottom: 10px !important;
    }

    .navy-card .txt-box h4 { 
        font-size: 12px !important; 
        margin-bottom: 4px !important;
        line-height: 1.3 !important;
        word-break: keep-all !important;
    }

    .navy-card .txt-box p { 
        display: block !important;             /* 설명글 보이게 */
        font-size: 10px !important; 
        line-height: 1.2 !important;
        opacity: 0.7;
        margin: 0 !important;
    }

    .navy-card .icon-box { 
        align-self: flex-end !important;       /* 아이콘 오른쪽 아래 고정 */
        width: auto !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .navy-card .icon-box i {
        font-size: 20px !important;            /* 아이콘 크기 적절하게 */
    }
}
/* 스마트로그 로고 강제로 숨기기 */
#smtg_logo_div {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}