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

/* 네비게이션 바 */
.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: #1a56ff;
    font-weight: 500;
}

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

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

.nav-item {
    margin: 0 40px;
    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: 300;
    font-family: 'GmarketSansLight', sans-serif;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.2s ease;
    color: #000;
}

.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: #edf2ff;
    color: #1a56ff;
    font-weight: 500;
}

.dropdown-item:active {
    background-color: #dbe4ff;
    color: #1a56ff;
}

.navbar-toggler {
    border: none;
}

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

.navbar-nav {
    margin: 0 auto;
}

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

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: brightness(0.9);
}

.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: 30%;
    bottom: 20%;
    left: 10%;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff;
    text-align: left;
}

.carousel-caption h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: #e0e0e0;
}

.carousel-caption p {
    font-size: 1.5rem;
    font-family: 'GmarketSansLight', sans-serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* 섹션 타이틀 공통 스타일 */
.section-title-1,
.section-title-2,
.section-title-3 {
    text-align: center;
    padding: 0.8rem 2rem;
    position: relative;
    max-width: 1800px;
    margin: 50px auto;
}

.section-title-1::before,
.section-title-1::after,
.section-title-2::before,
.section-title-2::after,
.section-title-3::before,
.section-title-3::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-1 h2,
.section-title-2 h2,
.section-title-3 h2 {
    font-size: 1.7rem;
    color: #2a2a2a;
    margin: 10px 0;
    padding: 0.5rem 0;
}

/* 모바일 네비게이션 메뉴 스타일 */
@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;
    }

    .carousel-container {
        margin-top: 65px;
        padding: 0 15px;
    }

    .carousel {
        max-width: 100%;
    }

    .carousel-caption {
        display: none;
    }
}

/* sm, md 화면에서의 캐러셀 화살표 크기 조정 */
@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: 250px;
        object-fit: cover;
    }

    .section-title-1 h2,
    .section-title-2 h2,
    .section-title-3 h2 {
        font-size: 1.5rem;
    }

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

/* 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-device-width: 800px) and (max-device-width: 980px) and (orientation: portrait) {
    /* 세로 모드 전용 스타일 */
}

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

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

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

.section-1 .container,
.section-2 .container,
.section-3 .container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 카드 그리드 */
.card-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* 섹션 1의 카드 그리드 */
.section-1 .card-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* 섹션 2의 카드 그리드 */
.section-2 .card-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
}

/* 섹션 3의 카드 그리드 */
.section-3 .card-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
}

/* 카드 스타일 */
.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;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 320px;
    margin: 0 auto;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(26, 86, 255, 0.2);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.card-img-top {
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    background-color: #fff;
}

.card-img-top img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
}

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

.card-body {
    padding: 0 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #1a56ff;
    transition: width 0.2s ease;
}

.card:hover .card-title {
    color: #1a56ff;
    font-weight: 500;
}

.card:hover .card-title::after {
    width: 100%;
}

.card-text {
    font-size: 0.95rem;
    color: #666;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.card:hover .card-text {
    color: #444;
}

.card-btn {
    display: none;
}

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

    .section-3 .card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 800px;
    }
    
    .card {
        max-width: 280px;
    }
}

@media (max-width: 767.98px) {
    .section-1,
    .section-2,
    .section-3 {
        padding: 40px 0;
        margin: 30px 0;
    }
    
    .section-1 .card-grid,
    .section-2 .card-grid,
    .section-3 .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 320px;
    }
    
    .card {
        max-width: 100%;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }

    .carousel-item img {
        height: 400px;
        object-fit: cover;
    }

    .section-title-1 h2,
    .section-title-2 h2,
    .section-title-3 h2 {
        font-size: 1.3rem;
    }
}

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

/* 영문 링크 스타일 */
.english-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #1a56ff;
    margin-left: 20px;
    transition: all 0.3s ease;
    position: relative;
    right: 60px;
}

.english-link:hover {
    color: #ff3333;
}

.english-link i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.english-link span {
    font-size: 0.8rem;
    font-weight: 300;
}

@media (max-width: 1199.98px) {
    .english-link {
        margin: 10px 20px;
        right: 0;
    }
}