/* 기본 폰트 설정 */
@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;
    }
}

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

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

/* 캐러셀 공통 스타일 */
.carousel-container {
    max-width: 1800px;
    margin: 75px auto 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    transition: transform .6s ease-in-out;
}

.carousel-item.active {
    position: relative;
    display: block;
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
    transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
    transform: translateX(-100%);
}

.carousel-item-next.carousel-item-start,
.active.carousel-item-end {
    transform: translateX(0);
}

.carousel-item-prev.carousel-item-end,
.active.carousel-item-start {
    transform: translateX(0);
}

.carousel-item img {
    width: 100%;
    height: 700px;
    object-fit: contain;
    filter: brightness(0.9);
    background-color: #fff;
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 30px;
    height: 4px;
    border-radius: 0;
    margin: 0 3px;
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-indicators button.active {
    background-color: #fff;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-size: 2.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 1.5rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

/* 캐러셀 텍스트 스타일 */
.carousel-caption {
    position: absolute;
    right: 25%;
    bottom: 3%;
    left: 25%;
    padding: 0.3rem;
    color: #fff;
    text-align: center;
}

.carousel-caption h3 {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0;
    font-family: 'GmarketSansMedium', sans-serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    color: #b0b0b0;
    line-height: 1.2;
}

/* 반응형 스타일 */
@media (max-width: 1199.98px) {
    .carousel-container {
        margin-top: 65px;
        padding: 0 15px;
    }

    .carousel {
        max-width: 100%;
    }

    .carousel-item img {
        height: 600px;
    }
}

@media (max-width: 991.98px) {
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
        background-size: 1.5rem;
        padding: 1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }

    .carousel-indicators {
        bottom: 10px;
    }

    .carousel-indicators button {
        width: 20px;
        height: 3px;
        margin: 0 2px;
    }

    .carousel-item img {
        height: 600px;
    }

    .carousel-caption {
        right: 20%;
        left: 20%;
        bottom: 2%;
    }

    .carousel-caption h3 {
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    .carousel-item img {
        height: 500px;
    }

    .carousel-caption {
        right: 15%;
        left: 15%;
        bottom: 1%;
    }

    .carousel-caption h3 {
        font-size: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .carousel-item img {
        height: 250px;
    }
}

/* 푸터 스타일 */
.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;
    }
}

/* 섹션 타이틀 */
.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;
}

.section-title h2 span {
    font-size: 0.6em;
    font-weight: normal;
    color: #666;
    margin-left: 10px;
}

/* 반응형 스타일 */
@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 30px;
    background-color: #f8f9fa;
}

.content-section-1 .content-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 120px;
    margin-top: 30px;
}

.content-section-1 .content-text {
    flex: 1;
}

.content-section-1 .content-text h5 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
}

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

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

    .content-section-1 .content-text h5 {
        font-size: 1.1rem;
    }

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

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

.content-section-2 .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-section-2 .subtitle {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: left;
    padding-left: 15px;
}

.content-section-2 .image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.content-section-2 .image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.content-section-2 .image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .content-section-2 .container {
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .content-section-2 .image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin: 30px auto 0;
    }
    
    .content-section-2 .subtitle {
        text-align: center;
    }

    .content-section-2 .image-item {
        aspect-ratio: 4/3;
    }

    .content-section-2 .image-item img {
        object-fit: contain;
    }
}

/* 팝업 스타일 */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

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

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.popup-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.popup-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.popup-prev {
    left: -70px;
}

.popup-next {
    right: -70px;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .popup-content {
        max-width: 95%;
        padding: 15px;
    }

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

    .popup-close {
        font-size: 50px;
        top: 10px;
        right: 10px;
        width: 65px;
        height: 65px;
    }

    .popup-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .popup-prev {
        left: -50px;
    }

    .popup-next {
        right: -50px;
    }
}

/* 위로 가기 버튼 스타일 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}

/* 컨텐츠 섹션 3 스타일 */
.content-section-3 {
    padding: 10px 0 20px;
}

.layout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.layout-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.layout-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.layout-item:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .layout-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .layout-item {
        margin-bottom: 15px;
    }
}

.carousel-caption {
    position: absolute;
    right: 15px;
    bottom: 15px;
    left: auto;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 5px;
    font-size: 14px;
    margin: 0;
    width: auto;
    text-align: right;
}

@media (max-width: 768px) {
    .carousel-caption {
        display: none;
    }
}

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

.content-wrapper-2 {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    padding-left: 100px;
}

.content-text-2 {
    flex: 1;
}

.content-text-2 h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}

.content-text-2 h5 {
    font-size: 18px;
    font-weight: 500;
    margin: 20px 0 15px 20px;
    color: #444;
}

.content-text-2 p {
    font-size: 16px;
    margin-bottom: 10px;
    padding-left: 10px;
    line-height: 1.6;
    color: #000;
    font-family: 'GmarketSansLight', sans-serif;
}

@media (max-width: 768px) {
    .content-wrapper-2 {
        padding-left: 20px;
        flex-direction: column;
        gap: 30px;
    }

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

    .content-text-2 h4 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .content-text-2 h5 {
        font-size: 17px;
        margin: 15px 0 12px 15px;
    }

    .content-text-2 p {
        font-size: 15px;
        margin: 8px 0 8px 30px;
    }
}

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

.content-section-5 .image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.content-section-5 .image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.content-section-5 .image-item:hover {
    transform: translateY(-5px);
}

.content-section-5 .image-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .content-section-5 .image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.content-section-3 .layout-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.content-section-5 .image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* 섹션 6 스타일 */
.section-6 {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.section-6 .container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-6 .sub-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 30px;
    text-align: left;
    font-family: 'GmarketSansMedium', sans-serif;
}

.section-6 .card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.section-6 .card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #fff;
}

.section-6 .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.section-6 .card-img-top {
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    position: relative;
    overflow: hidden;
}

.section-6 .card-img-top img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.section-6 .card:hover .card-img-top img {
    transform: scale(1.05);
}

.section-6 .card-body {
    padding: 15px;
    text-align: center;
}

.section-6 .card-text {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    font-family: 'GmarketSansMedium', sans-serif;
}

/* 이미지 모달 스타일 */
.modal-content {
    background-color: #fff;
    border: none;
    max-width: 90vw;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.modal-header {
    border: none;
    padding: 15px;
    position: relative;
    background-color: #fff;
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    background-color: #fff;
    opacity: 0.8;
    padding: 0.5rem;
    margin: 0;
}

.modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 0 0 15px 15px;
}

.modal-body img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
}

/* 반응형 스타일 */
@media (max-width: 767.98px) {
    .modal-content {
        max-width: 95vw;
    }

    .modal-body img {
        max-height: 70vh;
        padding: 15px;
    }
}

/* 반응형 스타일 */
@media (max-width: 1199.98px) {
    .section-6 .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767.98px) {
    .section-6 .card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .section-6 .sub-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
}

.table-responsive {
    margin: 20px 0;
}

.table {
    width: 100%;
    margin-bottom: 0;
}

.table td {
    font-family: 'GmarketSansLight', sans-serif;
    padding: 12px;
    color: #000000;
}

.table td:first-child {
    width: 30%;
}

.table td:last-child {
    width: 70%;
}

@media (max-width: 767.98px) {
    .table td {
        font-size: 0.8rem;
        padding: 8px;
    }
}

.table td[colspan="2"] {
    text-align: center;
}