@media (max-width: 768px) { /* 모바일 */
/* 기본 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans KR", "맑은 고딕", "malgun", "sans-serif";
    background-color: #000000;
    color:#fff;
}

div {
    display: block;
    unicode-bidi: isolate;
}

.logo img {
    height: 100%; /* 로고 이미지 높이 조정 */
    width: 120px;
    width: 120px; /* 모바일 기본 로고 크기 */
}

/* 네비게이션 바 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f39c12; /* 계란 노른자 색상 */
    text-decoration: none;
}

.nav-links .btn {
    text-decoration: none;
    color: #333;
    margin-left: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-links .btn:hover {
    background-color: #f0f0f0;
}

.nav-links .btn-primary {
    background-color: #f39c12;
    color: white;
}

.nav-links .btn-primary:hover {
    background-color: #e67e22;
}

/* 이미지 슬라이더 */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-slide {
    display: flex;
    width: 100%;
    transition: transform 1s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    height: 300px; /* 슬라이더 높이 고정 */
    object-fit: cover;
    flex-shrink: 0;
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 150px;
}

.content_img1 {
    width: 475px;
    height: 379px;
}

.content_img2 {
    width: 595px;
    height: 445px;
}

.mban_wrap {
    background-color: #f9f8ee;
}

.mban {
    width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
}
.mban:after {
    content: "";
    display: block;
    clear: both;
}
.mtitle {
    margin: 30px 0;
    color: #ff6600;
    font-size: 30px;
    text-align: center;
}

.mtitle2 {
    margin: 0 0 0;
    color: #663300;
    font-size: 14px;
    text-align: center;
}
.mb_latest {
    clear: both;
    position: relative;
    margin-top: 50px;
    margin-left: -30px;
}
.mb_latest .main_link {
    margin: 0 0 30px 0;
    min-height: 354px;
    text-align: center;
    width: calc(25% - 20px);
    margin-left: 20px;
    float: left;
    padding: 30px 0;
    border-top: 3px solid #e95516;
    background: #fff;
    border-radius: 30px;
}

.main_link .desc {
    padding: 0 20px;
    position: relative;
    font-size: 13px;
    text-align: left;
}
.main_link h4 {
    padding: 0 0 0 0;
    position: relative;
    margin: 30px 0;
    color: #ff6600;
    font-size: 18px;
}

ul.top_section {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

ul.top_section li:after {
    content: "";
    display: block;
    position: absolute;
    background: #a4a2ac;
    top: 3px;
    right: 0;
    width: 1px;
    height: 11px;
}
ul.top_section li {
    display: inline-block;
    padding: 0 10px;
    line-height: 1.0em;
    position: relative;
}

ul.top_section li a {
  text-decoration: none; /* 링크의 밑줄 제거 */  
  color: inherit; /* 링크의 색상 제거 */
}

/* 슬라이더 도트 네비게이션 */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

.nav2 {
    text-align: center;
    margin-top: 53px;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    list-style: none;
}

.nav2 li {
    width: 20%;
    padding: 0;
    min-height: 100px;
    position: relative;
    text-align: center;
}

.nav2 li:hover ul {
    display: block;
}

.nav2 li ul li {
    display: block;
    min-height: 26px;
    line-height: 26px;
    margin: 5px 0;
    padding: 0;
    width: 100%;
}

.nav2 li ul {
    display: none;
    width: 160px;
    padding: 10px 0;
    text-align: left;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    z-index: 11;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav2 li a {
    font-size: 22px;
    text-decoration: none;
    color: #333;
    display: block;
}

.nav2 li ul li a {
    display: block;
    line-height: 26px;
    text-align: left;
    padding-left: 20px;
    font-size: 14px;
}

.nav2 li a img {
    display: block;
    margin: 0 auto 10px;
}

section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.service-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.service-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}
section p {
    color: #cccccc;
    line-height: 1.6;
}
.button {
    display: inline-block;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    background-color: #353535;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top:30px;
}

.description {
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 20px;
    text-align: left;
}

.description h1 {
    margin-bottom: 30px;
}

.award{
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 20px;
    text-align: center;
}

.team{
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 20px;
    text-align: center;
}

.team a {
    text-decoration: none; /* 밑줄 제거 */
    color: inherit; /* 부모 요소의 글자색 상속 (또는 #000 등) */
}

/* 모바일에서 수상경력, 부서구성 이미지가 세로로 보이도록 수정 */
.award-img, .team-img {
    display: flex;
    flex-direction: column; /* 아이템을 세로로 정렬 */
    align-items: center;
    gap: 30px; /* 이미지 사이 간격 조정 */
    padding: 2rem 1rem; /* 좌우 여백 확보 */
}

/* 이미지에 그림자 효과와 둥근 모서리 추가 */
.award-img img, .team-img img {
    width: 80%;
    max-width: 350px; /* 이미지가 너무 커지지 않도록 제한 */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    background-color: #000000;
    padding: 10px 0;
    border-top: 1px solid #000000;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    z-index: 500;
    padding-bottom: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    color: #fff; /* 기본 아이콘/텍스트 색상 */
    font-size: 12px;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary-color);
    color: #5912f3; /* 활성화 시 색상 */
}
.gogo a {
    text-decoration: none; /* 링크의 밑줄 제거 */  
    color: inherit; /* 링크의 색상 제거 */
}
}
/* PC (데스크탑) 화면용 스타일 */

@media (min-width: 769px) { /* PC */
    /* 기본 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans KR", "맑은 고딕", "malgun", "sans-serif";
    background-color: #000000;
    color:#fff;
}

div {
    display: block;
    unicode-bidi: isolate;
}

.logo img {
    height: 100%; /* 로고 이미지 높이 조정 */
    width: 230px;
}

/* 네비게이션 바 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f39c12; /* 계란 노른자 색상 */
    text-decoration: none;
}

.nav-links .btn {
    text-decoration: none;
    color: #333;
    margin-left: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-links .btn:hover {
    background-color: #f0f0f0;
}

.nav-links .btn-primary {
    background-color: #f39c12;
    color: white;
}

.nav-links .btn-primary:hover {
    background-color: #e67e22;
}

/* 이미지 슬라이더 */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-slide {
    display: flex;
    width: 100%;
    transition: transform 1s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    height: 500px; /* 슬라이더 높이 고정 */
    object-fit: cover;
    flex-shrink: 0;
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 150px;
}

.content_img1 {
    width: 475px;
    height: 379px;
}

.content_img2 {
    width: 595px;
    height: 445px;
}

.mban_wrap {
    background-color: #f9f8ee;
}

.mban {
    width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
}
.mban:after {
    content: "";
    display: block;
    clear: both;
}
.mtitle {
    margin: 30px 0;
    color: #ff6600;
    font-size: 30px;
    text-align: center;
}

.mtitle2 {
    margin: 0 0 0;
    color: #663300;
    font-size: 14px;
    text-align: center;
}
.mb_latest {
    clear: both;
    position: relative;
    margin-top: 50px;
    margin-left: -30px;
}
.mb_latest .main_link {
    margin: 0 0 30px 0;
    min-height: 354px;
    text-align: center;
    width: calc(25% - 20px);
    margin-left: 20px;
    float: left;
    padding: 30px 0;
    border-top: 3px solid #e95516;
    background: #fff;
    border-radius: 30px;
}

.main_link .desc {
    padding: 0 20px;
    position: relative;
    font-size: 13px;
    text-align: left;
}
.main_link h4 {
    padding: 0 0 0 0;
    position: relative;
    margin: 30px 0;
    color: #ff6600;
    font-size: 18px;
}

ul.top_section {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

ul.top_section li:after {
    content: "";
    display: block;
    position: absolute;
    background: #a4a2ac;
    top: 3px;
    right: 0;
    width: 1px;
    height: 11px;
}
ul.top_section li {
    display: inline-block;
    padding: 0 10px;
    line-height: 1.0em;
    position: relative;
}

ul.top_section li a {
  text-decoration: none; /* 링크의 밑줄 제거 */  
  color: inherit; /* 링크의 색상 제거 */
}

/* 슬라이더 도트 네비게이션 */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

.nav2 {
    text-align: center;
    margin-top: 53px;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    list-style: none;
}

.nav2 li {
    width: 20%;
    padding: 0;
    min-height: 100px;
    position: relative;
    text-align: center;
}

.nav2 li:hover ul {
    display: block;
}

.nav2 li ul li {
    display: block;
    min-height: 26px;
    line-height: 26px;
    margin: 5px 0;
    padding: 0;
    width: 100%;
}

.nav2 li ul {
    display: none;
    width: 160px;
    padding: 10px 0;
    text-align: left;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    z-index: 11;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav2 li a {
    font-size: 22px;
    text-decoration: none;
    color: #333;
    display: block;
}

.nav2 li ul li a {
    display: block;
    line-height: 26px;
    text-align: left;
    padding-left: 20px;
    font-size: 14px;
}

.nav2 li a img {
    display: block;
    margin: 0 auto 10px;
}

section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.service-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.service-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}
section p {
    color: #cccccc;
    line-height: 1.6;
}
.button {
    display: inline-block;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    background-color: #353535;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top:30px;
}

.description {
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 20px;
    text-align: left;
}

.description h1 {
    margin-bottom: 30px;
}

.award{
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 20px;
    text-align: center;
}
.award-img {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 100px;
}

.team{
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 20px;
    text-align: center;
}

.team a {
    text-decoration: none; /* 밑줄 제거 */
    color: inherit; /* 부모 요소의 글자색 상속 (또는 #000 등) */
}

.team-img {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 100px;
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    background-color: #000000;
    padding: 10px 0;
    border-top: 1px solid #000000;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    z-index: 500;
    padding-bottom: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 12px;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: #5912f3;
}
.gogo a {
    text-decoration: none; /* 링크의 밑줄 제거 */  
    color: inherit; /* 링크의 색상 제거 */
}
}

.modal-overlay {
    display: none; /* 기본적으로 숨김 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 배경 어둡게 */
    backdrop-filter: blur(5px); /* 배경 흐리게 처리 */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1f1f1f;
    color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: modalFadeIn 0.3s ease-out;
    text-align: left;
}

.modal-content h2 {
    margin-top: 0;
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}
.close-btn:hover { color: #ffffff; }

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}