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

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

.carousel-item {
    transition: transform 0.8s ease-in-out;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: brightness(0.9);
    transition: transform 0.8s ease-in-out;
}

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

.carousel-caption h3 {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-family: 'GmarketSansMedium', sans-serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    color: #b0b0b0;
    line-height: 1.4;
}

/* 섹션 타이틀 공통 스타일 */
.section-title-1,
.section-title-2 {
    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 {
    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::before,
.section-title-2::before {
    top: 0;
}

.section-title-1::after,
.section-title-2::after {
    bottom: 0;
}

.section-title-1 h2,
.section-title-2 h2 {
    font-size: 1.7rem;
    color: #2a2a2a;
    margin: 15px 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 {
        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;
}

.section-1 .container,
.section-2 .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(3, 1fr);
    max-width: 1300px;
}

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

/* 카드 스타일 */
.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;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    position: relative;
    transform: perspective(1000px) rotateX(0deg);
}

.card:hover {
    transform: perspective(1000px) rotateX(2deg) translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    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: 5px;
    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: #fff;
    transition: transform 0.3s ease;
    padding: 20px;
}

.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: 400;
    margin-bottom: 15px;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    font-family: 'GmarketSansMedium', sans-serif;
}

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

.card:hover .card-title {
    color: #006064;
    font-weight: 400;
}

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

.card:hover .card-text {
    color: #546e7a;
}

.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;
    }

    .card {
        max-width: 320px;
    }
}

@media (max-width: 767.98px) {
    .section-1,
    .section-2 {
        padding: 10px 0;
        margin: 5px 0;
    }
    
    .section-1 .card-grid,
    .section-2 .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: 250px;
        object-fit: cover;
    }

    .section-title-1 h2,
    .section-title-2 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;
    }
}

.carousel-inner {
    transition: transform 0.8s ease-in-out;
}

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

/* 로그인 모달 스타일 */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
}

.modal-title {
    font-family: 'GmarketSansMedium', sans-serif;
    color: #333;
    font-size: 1.2rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 1.5rem;
}

.form-label {
    font-family: 'GmarketSansMedium', sans-serif;
    color: #666;
    font-size: 0.95rem;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: #607d8b;
    box-shadow: 0 0 0 0.2rem rgba(96, 125, 139, 0.25);
}

.btn-primary {
    background-color: #607d8b;
    border-color: #607d8b;
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background-color: #455a64;
    border-color: #455a64;
}

.btn-secondary {
    background-color: #f8f9fa;
    border-color: #ddd;
    color: #666;
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #ddd;
    color: #333;
}

.alert-danger {
    background-color: #fff3f3;
    border-color: #ffcdd2;
    color: #d32f2f;
    font-size: 0.9rem;
    padding: 0.75rem;
    border-radius: 6px;
}