body {
    font-family: "Noto Sans KR", serif;
}

.content-wrapper {
    padding-bottom: 50px;
}

.bx-wrapper {
    background-color: transparent;
}

.partner-events {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
    overflow-x: scroll; overflow-y: hidden; white-space: nowrap; padding-right: 20px; padding-bottom: 10px;
}

.partner-events::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
}

.my-info {
    background-color: #512772;
    padding-top: 15px;
    padding-bottom: 15px;
    border-radius: 10px;
    color: white;
    display: flex;
    font-size: 12px;
    align-items: center;
}

/* mobile */
.p {
    display: none;
}

.m {
    display: block;
}

.my-info-section {
    margin: 12px 12px 0;
}

.pending-flag {
    width: 30px; position: absolute; top: 0; right: 10px;
}

.middle-banner {
    margin-left: 12px;
    margin-right: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.middle-banner:not(:last-child) {
    margin-bottom: 10px;
}

.title-content-section {
    margin-top: 35px;
}

.section-title {
    margin-left: 20px; margin-bottom: 24px; font-size: 14px; font-weight: 500;
}

.partner-event-banner {
    display: inline-block; width: 160px;
    height: 190px; background-color: white; border-radius: 8px; margin-left: 20px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.partner-event-banner .logo-wrapper {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
    height: 70px;
}

.partner-event-banner .text-wrapper {
    display: flex;
    justify-content: space-between;
    padding: 14px;
    flex-direction: column;
    height: 121px;
    width: 100%;
}

.partner-event-banner .title {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
}

.partner-event-banner .content {
    font-size: 10px;
    font-weight: 400;
    white-space: break-spaces;
    word-break: keep-all;
    line-height: 17.38px;
}

.partner-event-banner:not(:first-child) {
    margin-left: 12px;
}

.partner-banners {
    max-width: 810px;
}

.partner-banners-row {
    display: flex; justify-content: space-between; height: 42px;
}

.partner-banners-row:not(:last-child) {
    margin-bottom: 4px;
}

.partner-banners-row .partner-banner-wrapper {
    flex: 1;
    min-width: 104px;
    min-height: 42px;
    background-color: white;
    border-radius: 8px;
    /*box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.12);*/
}

.partner-banners-row .partner-banner-wrapper:not(:last-child) {
    margin-right: 4px;
}

.goodlugg-pass-banner {
    position: relative;
    cursor: pointer;
    background: linear-gradient(90.06deg, #CEE9E4 2.03%, #CEE9E4 17.96%, #DAEEEC 34.15%, #CFECE6 94.72%);
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
}

.goodlugg-pass-banner .left-image {
    height: 36px;
}

.goodlugg-pass-banner .center-text {
    height: 40px;
}

.goodlugg-pass-banner .center-top-text {
    font-size: 8px;
    color: #6920C0;
    background-color: white;
    text-align: center;
    padding: 3px 11px;
    border-radius: 20px;
    margin: auto auto 5px;
    width: 136px;
}

.goodlugg-pass-banner .center-top-text span {
    font-size: 8px;
    font-weight: bold;
}

.goodlugg-pass-banner .center-image {
    height: 62px; position: absolute; bottom: -6px; right: -60px;
}

#navBackground {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #222222;
    opacity: 0.2;
    z-index: 7;
    display: none;
}
#searchNav {
    padding: 0 10px;
    position: relative;
    z-index: 0;
}
#searchNav .active {
    z-index: 8;
}
#searchNav div.inputWrapper {
    max-width: 810px;
    width: 100%;
    position: relative;
    margin: 0 auto;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #512972;
    background: #FFF;
    box-shadow: 1px 1px 6px 0px rgba(0, 0, 0, 0.16);
}
#searchNav div.inputWrapper div.inputArea {
    width: 100%;
    overflow: auto;
    display: flex;
    gap: 8px;
}
#searchNav div.inputWrapper div.inputArea img {
    width: 20px;
    height: 20px;
}
#searchNav div.inputWrapper div.inputArea input {
    width: 100%;
    border: 0px;
    border-radius: 10px;
    font-size: 14px;
    padding: 0;
    display: block;
    flex: 1;
}
#searchNav div.inputWrapper div.inputArea input::placeholder {
    font-size: 14px;
    color: #BEBEBE;
}
#searchNav div.inputWrapper div.inputArea input:focus {
    outline: none;
}
#searchNav div.inputWrapper div.resultWrapper {
    display: none;
    background-color: white;
    border: 1px solid #F2F2F2;
    border-radius: 10px;
    box-shadow: 2px 2px 4px 1px rgba(0, 0, 0, 0.2);
    max-width: 810px;
    max-height: 30vh;
    overflow-y: scroll;
    width: 100%;
    position: relative;
    margin: 10px auto 0 auto;
    z-index: 99999;
}
#searchNav div.inputWrapper div.resultWrapper .cityWrapper {
    overflow: auto;
    width: 100%;
    margin-bottom: 5px;
}
#searchNav div.inputWrapper div.resultWrapper .cityWrapper .countryTitle {
    padding: 10px 20px;
}
#searchNav div.inputWrapper div.resultWrapper .cityWrapper .cityTitle {
    padding: 0px 20px;
    font-size: 9pt;
    color: #BDBDBD;
}
#searchNav div.inputWrapper div.resultWrapper .cityWrapper .serviceWrapper {
    color: #7A7A7A;
    padding: 0 10px;
    font-size: 10pt;
    overflow: auto;
    min-height: 20px;
    margin-top: 10px;
}
#searchNav div.inputWrapper div.resultWrapper .cityWrapper .serviceWrapper .serviceBox {
    display: block;
    overflow:auto;
    width: 100%;
    text-align: right;
    min-height: 20px;
    border: 1px solid #EFEFEF;
    margin-bottom: 5px;
    border-radius: 5px !important;
    padding: 5px 10px;
    text-align: left;
}
#searchNav div.inputWrapper div.resultWrapper .cityWrapper .serviceWrapper .serviceBox .serviceTitleKr {
    display: block;
    padding: 0;
    height: 20px;
    line-height: 20px;
}
#searchNav div.inputWrapper div.resultWrapper .cityWrapper .serviceWrapper .serviceBox .serviceTitleEn {
    color: #472367;
    font-size: 8pt;
    height: 15px;
    line-height: 15px;
    margin-left: 10px;
}

.services-grid {
    display: grid;
    grid-template-rows: 108px 108px 84px 84px 10px 80px;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 12px 8px;
    margin: 25px 12px 20px;
}

.service-item {
    border-radius: 12px;
    box-shadow: 1px 1px 6px 0 #00000029;
    padding: 8px;
    position: relative;
    background-color: white;
}

.service-item:nth-child(1) {
    grid-column: span 6;
    padding: 16px;
}

.service-item:nth-child(2) {
    grid-column: 1 / -1;
    padding: 16px;
    grid-column: span 4;
}

.service-item:nth-child(3) {
    grid-column: span 2;
    padding: 16px;
}
.service-item:nth-child(4) {
    grid-column: span 3;
}

.service-item:nth-child(5)  {
    grid-column: span 3;
}

.service-item:nth-child(6) {
    grid-column: span 2;
}

.service-item:nth-child(7) {
    grid-column: span 4;
}
.service-item:nth-child(8), .service-item:nth-child(9), .service-item:nth-child(10), .service-item:nth-child(11) {
    grid-column: span 2;
}

.service-item img {
    position: absolute;
}

.service-name {
    color: black;
    font-weight: 500;
    font-size: 12px;
    line-height: normal;
    word-break: keep-all;
}

.service-item:first-child .service-name {
    font-size: 16px;
}

.service-item:nth-child(2) .service-name, .service-item:nth-child(3) .service-name, .service-item:nth-child(4) .service-name {
    font-size: 14px;
}

.service-ename {
    color: #512972;
    font-size: 10px;
    font-weight: 500;
    line-height: normal;
    word-break: keep-all;
    margin-top: 3px;
}

.service-item:first-child .service-ename {
    font-size: 12px;
}

.speech-bubble {
    display: inline-block;
    position: absolute;
    padding: 4px 8px;
    border-radius: 28px;
    background: #FF7706;
}
.speech-bubble.orange {
    background: #FF7706;
}
.speech-bubble.green {
    background: #9CC300;
}
.speech-bubble.blue {
    background: #4C89F7;
}
.speech-bubble.pink {
    background: hotpink;
}

.speech-bubble.left {
    left: 0;
}

.speech-bubble.right {
    right: 0;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 17px;
    transform: translateX(-50%);
    border-width: 6px 2px 0 2px;
    border-style: solid;
    border-color: #FF7706 transparent transparent transparent;
}
.speech-bubble.orange::after {
    border-color: #FF7706 transparent transparent transparent;
}
.speech-bubble.green::after {
    border-color: #9CC300 transparent transparent transparent;
}
.speech-bubble.blue::after {
    border-color: #4C89F7 transparent transparent transparent;
}

.speech-bubble-content {
    color: #FFF;
    font-size: 10px;
    font-weight: 700;
    line-height: normal;
}

.videos-container.m {
    margin-left: 12px;
    margin-right: 12px;
}

.videos-container.m > .video {
    display: none;
}
.videos-container.m > .video.active {
    display: block;
}
.videos-container iframe {
    aspect-ratio: 1.85;
}
.video-title-button {
    margin-bottom: 10px;
    font-size: 12px;
    display: inline-block;
    padding: 7px 12px;
    border-radius: 20px;
    background-color: #f3f3f3;
    color: #512972;
}
.video-title-button.active {
    border: 1px solid #512972;
    background-color: #512972;
    color: white;
}
.video-title-button div {
    display: flex;
    gap: 5px;
}
.video-title-button img {
    width: 12px;
    filter: invert(21%) sepia(33%) saturate(1706%) hue-rotate(238deg) brightness(93%) contrast(99%);
    margin-top: 1px;
}
.video-title-button.active img {
    filter: invert(100%) sepia(0%) saturate(7429%) hue-rotate(154deg) brightness(101%) contrast(94%);
}

/* tablet */
@media screen and (min-width: 576px) {
    .content-wrapper {
        padding-bottom: 74px;
    }

    .p {
        display: none;
    }

    .m {
        display: block;
    }

    .my-info-section {
        margin: 32px 32px 0;
    }

    .title-content-section {
        margin-top: 42px;
    }

    .section-title {
        margin-left: 32px;
        font-size: 22px;
    }

    .partner-event-banner {
        margin-left: 32px;
    }

    .partner-event-banner:not(:first-child) {
        margin-left: 20px;
    }

    .partner-events {
        padding-right: 32px;
    }

    .partner-banners-row {
        height: 64px;
    }

    .partner-banners-row:not(:last-child) {
        margin-bottom: 10px;
    }

    .partner-banners-row .partner-banner-wrapper {
        min-width: 164px;
        min-height: 64px;
        border-radius: 8px;
        box-shadow: 2px 2px 3px 2px rgba(0, 0, 0, 0.15);
    }

    .partner-banners-row .partner-banner-wrapper:not(:last-child) {
        margin-right: 11px;
    }

    .middle-banner {
        margin-left: 32px;
        margin-right: 32px;
    }

    .videos-container.m {
        margin-left: 32px;
        margin-right: 32px;
    }
}

/* pc */
@media screen and (min-width: 858px) {
    .content-wrapper {
        padding-bottom: 84px;
    }

    .p {
        display: block;
    }
    .m {
        display: none;
    }

    .pending-flag {
        width: 45px;
        position: absolute;
        top: -2px;
        right: 20px;
    }

    .middle-banner {
        margin-left: 0;
        margin-right: 0;
    }

    .middle-banner:not(:last-child) {
        margin-bottom: 16px;
    }

    .title-content-section {
        margin-top: 64px;
    }

    .section-title {
        margin-left: 0;
        font-size: 24px;
    }

    .partner-event-banner {
        margin-left: 4px;
    }

    .partner-event-banner:not(:first-child) {
        margin-left: 20px;
    }

    .partner-events {
        padding-right: 4px;
    }

    .partner-banners-row .partner-banner-wrapper {
        min-width: 180px;
        min-height: 72px;
        border-radius: 5px;
        box-shadow: 2.5px 2.5px 3.75px 0.625px rgba(0, 0, 0, 0.12);
    }

    .partner-banners-row:not(:last-child) {
        margin-bottom: 16px;
    }

    .partner-banners-row .partner-banner-wrapper:not(:last-child) {
        margin-right: 28px;
    }

    .goodlugg-pass-banner {
        height: 120px;
    }

    .goodlugg-pass-banner .left-image {
        height: 62px;
    }

    .goodlugg-pass-banner .center-text {
        height: 62px;
    }

    .goodlugg-pass-banner .center-top-text {
        font-size: 12px;
        padding: 5px 10px;
        width: 180px;
    }

    .goodlugg-pass-banner .center-top-text span {
        font-size: 14px;
    }

    .goodlugg-pass-banner .center-image {
        height: 80px; bottom: -10px; right: -80px;
    }

    #searchNav {
        padding: 20px 0;
    }

    .videos-container.p {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }
    .videos-container.p > .video {
        flex: 1;
    }
    .video-title {
        margin-bottom: 10px;
        font-size: 12px;
        display: flex;
        gap: 5px;
    }
    .video-title img {
        width: 12px;
        margin-top: 1px;
        filter: invert(0%) sepia(58%) saturate(52%) hue-rotate(289deg) brightness(90%) contrast(100%);
    }

    .services {
        background-color: #4D3866; padding: 42px 0;
    }

    .services-grid {
        display: grid;
        grid-template-rows: auto;
        grid-template-columns: repeat(6, 1fr);
        grid-gap: 20px 12px;
        flex: 1;
        margin: unset;
    }

    .service-item {
        height: 108px;
        box-shadow: 2px 2px 11px 0 #00000029;
        padding: 16px;
    }

    /*.service-item:nth-child(1) {*/
    /*    grid-column: span 6;*/
    /*}*/

    /*.service-item:nth-child(6) {*/
    /*    grid-column: span 4;*/
    /*}*/

    /*.service-item:nth-child(10) {*/
    /*    grid-column: span 2;*/
    /*}*/

    /*.service-item:last-child .service-ename {*/
    /*    font-size: 12px;*/
    /*}*/

    .service-name {
        font-size: 16px;
    }

    .service-ename {
        font-size: 12px;
    }

    .service-item.span-2 .service-name {
        font-size: 14px;
    }

    .service-item.span-2 .service-ename {
        font-size: 10px;
    }
}

/* 리뷰 캐러셀 */
.review-carousel-container {
    position: relative;
    margin: 0;
}

.review-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.review-carousel-btn:hover {
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    border-color: #512772;
    color: #512772;
}

.review-carousel-btn.prev {
    left: 4px;
}

.review-carousel-btn.next {
    right: 4px;
}

.review-carousel-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

@media screen and (max-width: 575px) {
    .review-carousel-btn {
        display: none;
    }
}

.review-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 12px;
    padding: 8px 20px 16px;
    cursor: grab;
}

.review-carousel::-webkit-scrollbar {
    display: none;
}

.review-carousel.active {
    cursor: grabbing;
}

.review-card {
    flex: 0 0 auto;
    width: 240px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-stars {
    color: #FFB800;
    font-size: 14px;
    letter-spacing: 1px;
}

.review-date {
    font-size: 11px;
    color: #999;
}

.review-service {
    font-size: 12px;
    color: #512972;
    font-weight: 600;
    margin-bottom: 8px;
}

.review-content {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 58px;
}

.review-customer {
    font-size: 12px;
    color: #666;
    text-align: right;
}

@media screen and (min-width: 576px) {
    .review-carousel {
        padding: 8px 32px 16px;
    }

    .review-card {
        width: 250px;
        padding: 20px;
    }

    .review-stars {
        font-size: 16px;
    }

    .review-content {
        font-size: 14px;
    }
}

@media screen and (min-width: 858px) {
    .review-carousel {
        padding: 8px 4px 16px;
    }

    .review-card {
        width: 252px;
    }
}
