/* 기본 폰트 설정 */
@font-face {
    font-family: 'GmarketSansMedium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GmarketSansLight';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: 'GmarketSansMedium', sans-serif;
    background-color: #f8f9fa;
}

/* 네비게이션 바 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    padding: 0;
    margin-left: 0px;
}

.navbar-brand img {
    height: 35px;
    filter: brightness(0);
}

.nav-link {
    color: #666;
    font-weight: 300;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link:hover {
    color: #455a64;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #607d8b;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-item {
    margin: 0 60px;
    position: relative;
    transition: all 0.2s ease;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    background-color: #fff;
    border-radius: 8px;
    min-width: 220px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 400;
    font-family: 'GmarketSansMedium', sans-serif;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    color: #333;
    background-color: transparent;
    letter-spacing: -0.3px;
}

.dropdown-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 0;
    height: 1px;
    background-color: #e0e0e0;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #005baa;
    padding-left: 2rem;
    font-weight: 500;
}

.dropdown-item:active {
    background-color: #f0f0f0;
    color: #005baa;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav {
    margin: 0 auto;
}

/* 모바일 네비게이션 메뉴 스타일 */
@media (max-width: 1199.98px) {
    .navbar-collapse {
        margin-top: 0px;
        padding-top: 0px;
        border-top: 1px solid #eee;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .nav-item {
        margin: 0px 0px 10px 20px;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 20px;
    }

    .navbar-brand {
        padding: 0;
        margin-left: 0px;
    }

    .navbar-brand img {
        height: 28px;
    }

    .hero-caption {
        display: none;
    }
    
    .hero-image {
        height: 350px;
        object-fit: cover;
    }
}

/* sm, md 화면에서의 캐러셀 화살표 크기 조정 */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 28px;
    }

    .hero-image {
        height: 300px;
        object-fit: cover;
    }
}

/* Bootstrap 기본 */
@media (max-width: 575.98px) { /* xs */ }
@media (min-width: 576px) and (max-width: 767.98px) { /* sm */ }
@media (min-width: 768px) and (max-width: 991.98px) { /* md */ }
@media (min-width: 992px) and (max-width: 1199.98px) { /* lg */ }
@media (min-width: 1200px) and (max-width: 1399.98px) { /* xl */ }
@media (min-width: 1400px) { /* xxl */ }

/* 갤럭시탭 S8+, Ultra Portrait (세로: 약 800px ~ 960px) */
@media (min-width: 800px) and (max-width: 980px) {
    .content-section-2 .content-wrapper {
        padding: 0 15px;
    }
}

/* 푸터 스타일 */
.footer {
    background-color: #2a2a2a;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 40px;
    position: relative;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 40px;
}

.footer-info {
    text-align: left;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #fff;
}

.footer-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 10px;
    font-weight: 300;
    font-family: 'GmarketSansLight', sans-serif;
}

.footer-info .address {
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    position: relative;
    margin: 0 -15px;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}

.copyright {
    font-size: 0.9rem;
    color: #999;
    position: relative;
    z-index: 1;
}

/* 반응형 스타일 */
@media (max-width: 767.98px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-info h3 {
        font-size: 1.3rem;
    }

    .footer-info p {
        font-size: 0.9rem;
    }

    .copyright {
        font-size: 0.85rem;
    }
}

@media (min-width: 1200px) {
    .navbar-brand {
        margin-left: 50px;
    }
}

/* 히어로 섹션 */
.hero-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    margin-top: 75px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-caption {
    position: absolute;
    bottom: 140px;
    left: 80px;
    text-align: left;
    color: #fff;
    width: auto;
    max-width: 80%;
}

.hero-caption h1 {
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 2.0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'GmarketSansMedium', sans-serif;
    margin: 0;
}

/* 반응형 스타일 */
@media (max-width: 1199.98px) {
    .hero-caption {
        display: none;
    }

    .hero-image {
        height: 350px;
        object-fit: cover;
    }
}

@media (max-width: 991.98px) {
    .hero-image {
        height: 300px;
        object-fit: cover;
    }
}

@media (max-width: 767.98px) {
    .hero-image {
        height: 250px;
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    .hero-caption {
        bottom: 100px;
        left: 40px;
    }

    .hero-caption h2 {
        font-size: 1.1rem;
    }

    .hero-image {
        height: 250px;
        object-fit: cover;
    }
}

/* 탭 메뉴 스타일 */
.section-title {
    text-align: center;
    padding: 0.8rem 2rem;
    position: relative;
    max-width: 1800px;
    margin: 70px auto 50px;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #c7c1c1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.section-title::before {
    top: 0;
}

.section-title::after {
    bottom: 0;
}

.section-title h2 {
    font-size: 1.7rem;
    color: #2a2a2a;
    margin: 8px 0;
    padding: 0.3rem 0;
}

/* 반응형 스타일 */
@media (max-width: 991.98px) {
    .section-title h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .section-title h2 {
        font-size: 1.3rem;
    }
}

/* 컨텐츠 섹션 1 스타일 */
.content-section-1 {
    padding: 0 0 10px;
    background-color: #f8f9fa;
}

.content-wrapper {
    display: flex;
    gap: 100px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-text {
    flex: 1;
}

.content-text p {
    font-size: 1.0rem;
    line-height: 1.8;
    color: #000;
    margin-bottom: 20px;
    font-family: 'GmarketSansLight', sans-serif;
}

.content-text p span {
    font-family: 'GmarketSansMedium', sans-serif;
    font-weight: 400;
}

/* 반응형 스타일 */
@media (max-width: 991.98px) {
    .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .content-text p {
        font-size: 1rem;
    }
}

/* 컨텐츠 섹션 2 스타일 */
.content-section-2 {
    padding: 0 0 50px;
    background-color: #f8f9fa;
}

.content-section-2 .content-wrapper {
    display: flex;
    gap: 100px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-section-2 .content-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.content-section-2 .content-table {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.content-section-2 .content-text h4 {
    font-family: 'GmarketSansMedium', sans-serif;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 400;
    text-align: left;
    width: 100%;
}

.content-section-2 .content-text p {
    font-size: 1.0rem;
    line-height: 1.8;
    color: #000;
    margin-bottom: 20px;
    font-family: 'GmarketSansLight', sans-serif;
    text-align: left;
    width: 100%;
}

/* 반응형 스타일 */
@media (max-width: 991.98px) {
    .content-section-2 .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .content-section-2 .content-text,
    .content-section-2 .content-table {
        width: 100%;
    }

    .content-section-2 .content-text h4 {
        font-size: 1.1rem;
    }

    .content-section-2 .content-text p {
        font-size: 0.95rem;
    }
}

/* 테이블 스타일 */
.content-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: 'GmarketSansLight', sans-serif;
}

.content-table table th,
.content-table table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #666;
    color: #000;
}

.content-table table th {
    background-color: #b2dfdb;
    font-weight: 500;
    font-family: 'GmarketSansMedium', sans-serif;
}

.content-table table td {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 반응형 스타일 */
@media (max-width: 991.98px) {
    .content-table table {
        margin-top: 15px;
    }

    .content-table table th,
    .content-table table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .content-table table {
        display: block;
        overflow-x: auto;
        white-space: normal;
        -webkit-overflow-scrolling: touch;
        margin: 15px auto;
        max-width: 98%;
    }

    .content-table table th,
    .content-table table td {
        padding: 8px;
        font-size: 0.85rem;
        white-space: normal;
        word-break: break-word;
    }
}

/* 도면 확인 버튼 스타일 */
.drawing-button-container {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.drawing-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #b2dfdb;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.drawing-button:hover {
    background-color: #80cbc4;
    color: #000;
    text-decoration: none;
}

/* 반응형 스타일 */
@media (max-width: 767.98px) {
    .drawing-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 180px;
    }
}

/* 컨텐츠 섹션 3 스타일 */
.content-section-3 {
    padding: 0 0 50px;
    background-color: #f8f9fa;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 15px;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-caption {
    padding: 15px;
    text-align: center;
}

.card-caption p {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
    font-family: 'GmarketSansMedium', sans-serif;
}

/* 반응형 스타일 */
@media (max-width: 1199.98px) {
    .card-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .card-image {
        height: 250px;
    }
}

@media (max-width: 991.98px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .card-image {
        height: 220px;
    }

    .card-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .card-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card-image {
        height: 280px;
    }

    .card-caption p {
        font-size: 0.95rem;
    }
}

/* 팝업 스타일 */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    z-index: 1002;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.popup-nav:hover {
    background-color: rgba(255, 255, 255, 1);
}

.popup-prev {
    left: 10px;
}

.popup-next {
    right: 10px;
}

.popup-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    margin-bottom: 15px;
}

.popup-caption {
    font-size: 1.1rem;
    color: #333;
    text-align: center;
    margin: 0;
    font-family: 'GmarketSansMedium', sans-serif;
}

/* 데스크톱에서만 카드 클릭 효과 활성화 */
@media (min-width: 992px) {
    .card {
        cursor: pointer;
    }
}

@media (max-width: 991.98px) {
    .card {
        cursor: default;
    }
}

/* 모바일 팝업 스타일 조정 */
@media (max-width: 991.98px) {
    .popup-content {
        max-width: 95%;
        padding: 15px;
    }

    .popup-image {
        max-height: 60vh;
    }

    .popup-caption {
        font-size: 1rem;
    }

    .popup-close {
        font-size: 28px;
        top: 5px;
        right: 5px;
    }
}