/*
==========================================================================
  GB7 Service Detail
==========================================================================
*/


/* ======================================================================
   1. 상세페이지 상단 헤더
====================================================================== */

.service-detail-header {
    min-height: 330px;
}

.service-detail-header-eyebrow {
    margin-bottom: 14px;

    color: #ffffff;

    font-family: var(--title-font-family);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
}

.service-detail-header-summary {
    max-width: 760px;
    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.9);

    font-size: 18px;
    line-height: 1.8;
}


/* ======================================================================
   2. 상세페이지 전체 영역
====================================================================== */

.service-detail-page {
    min-height: 700px;
}

.service-detail-top-actions {
    display: flex;
    justify-content: flex-start;

    margin-bottom: 20px;
}


/* ======================================================================
   3. 목록으로 버튼
====================================================================== */

.service-detail-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 120px;

    padding: 9px 18px;

    border: 1px solid #d5e3ec;
    border-radius: 999px;

    background-color: #ffffff;
    color: #13547a;

    font-size: 14px;
    font-weight: 700;

    box-shadow:
            0 8px 20px rgba(21, 101, 192, 0.08);

    transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            color 0.2s ease;
}

.service-detail-back-btn:hover,
.service-detail-back-btn:focus {
    border-color: var(--custom-btn-bg-color);

    background-color: var(--custom-btn-bg-color);
    color: #ffffff;
}


/* ======================================================================
   4. 상세페이지 카드
====================================================================== */

.service-detail-shell {
    overflow: hidden;

    border: 0;
    border-radius: 24px;

    background-color: #ffffff;

    box-shadow:
            0 24px 70px rgba(21, 101, 192, 0.18),
            0 2px 8px rgba(21, 101, 192, 0.08);
}

.service-detail-shell > .row {
    align-items: stretch;
}


/* ======================================================================
   5. 왼쪽 상세정보 영역
====================================================================== */

.service-detail-data-area {
    background-color: #ffffff;
}

.service-detail-data-inner {
    padding: 42px;
}


/* 카테고리 */

.service-detail-category {
    display: inline-flex;
    align-items: center;

    min-height: 32px;

    margin-bottom: 18px;
    padding: 6px 14px;

    border-radius: 999px;

    background-color: var(--secondary-color);
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}


/* 제목 */

.service-detail-title {
    margin-bottom: 18px;

    color: #13547a;

    font-size: 32px;
    font-weight: 700;
    line-height: 1.45;

    word-break: keep-all;
    overflow-wrap: break-word;
}


/* 요약 */

.service-detail-summary {
    margin-bottom: 28px;

    color: #717275;

    font-size: 16px;
    line-height: 1.9;

    word-break: keep-all;
    overflow-wrap: break-word;
}


/* ======================================================================
   6. 작업 메타 정보
====================================================================== */

.service-detail-meta-box {
    margin-bottom: 32px;
    padding: 20px;

    border: 1px solid #edf3f7;
    border-radius: 16px;

    background-color: #f8fbfd;
}

.service-detail-meta-row {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    margin-bottom: 14px;
}

.service-detail-meta-row:last-child {
    margin-bottom: 0;
}

.service-detail-meta-label {
    flex: 0 0 88px;

    padding-top: 5px;

    color: #6c757d;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.service-detail-meta-value {
    flex: 1;

    min-width: 0;

    color: #333333;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;

    word-break: break-word;
}

.service-detail-period {
    color: #1565c0;
}

.service-detail-price {
    color: #149650;
}


/* ======================================================================
   7. 기술 및 분류 칩
====================================================================== */

.service-detail-chip-list {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}

.service-detail-chip {
    display: inline-flex;
    align-items: center;

    min-height: 29px;

    padding: 5px 10px;

    border: 1px solid #b9e6ff;
    border-radius: 999px;

    background-color: #ffffff;
    color: #1565c0;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.service-detail-chip-gray {
    border-color: #d5e3ec;
    color: #555555;
}


/* ======================================================================
   8. 작업 내용
====================================================================== */

.service-detail-content-section {
    margin-top: 30px;
}

.service-detail-section-title {
    margin-bottom: 14px;

    color: #13547a;

    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.service-detail-content-text {
    color: #444444;

    font-size: 15px;
    line-height: 1.95;

    white-space: pre-wrap;

    word-break: keep-all;
    overflow-wrap: break-word;
}

.service-detail-note {
    padding: 18px;

    border-left: 4px solid var(--custom-btn-bg-color);
    border-radius: 12px;

    background-color: #eef7ff;
    color: #444444;

    font-size: 15px;
    line-height: 1.85;

    white-space: pre-wrap;

    word-break: keep-all;
    overflow-wrap: break-word;
}


/* ======================================================================
   9. 태그
====================================================================== */

.service-detail-tag-section {
    margin-top: 32px;
    padding-top: 26px;

    border-top: 1px solid #edf3f7;
}

.service-detail-tag-list {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.service-detail-tag {
    display: inline-flex;
    align-items: center;

    min-height: 31px;

    padding: 6px 12px;

    border-radius: 999px;

    background-color: #eef7ff;
    color: #1565c0;

    font-size: 13px;
    font-weight: 700;

    transition:
            background-color 0.2s ease,
            color 0.2s ease;
}

.service-detail-tag:hover,
.service-detail-tag:focus {
    background-color: var(--custom-btn-bg-hover-color);
    color: #ffffff;
}


/* ======================================================================
   10. 문의 버튼
====================================================================== */

.service-detail-bottom-actions {
    display: flex;
    justify-content: center;

    margin-top: 36px;
    padding-top: 28px;

    border-top: 1px solid #edf3f7;
}

.service-detail-contact-btn {
    min-width: 190px;

    text-align: center;
    font-size: 16px;
}


/* ======================================================================
   11. 오른쪽 이미지 영역
====================================================================== */

.service-detail-image-area {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 720px;

    padding: 78px 40px;

    background:
            radial-gradient(
                    circle at 85% 15%,
                    rgba(255, 255, 255, 0.8) 0,
                    rgba(255, 255, 255, 0) 28%
            ),
            linear-gradient(
                    145deg,
                    #eaf6ff 0%,
                    #d7efff 45%,
                    #f7fbff 100%
            );
}


/*
 * 슬라이더 위 안내 문구
 */
.service-detail-image-area::before {
    content: "PROJECT PREVIEW";

    position: absolute;
    top: 28px;
    right: 0;
    left: 0;

    width: 100%;

    color: rgba(19, 84, 122, 0.55);

    font-family: var(--title-font-family);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
}


/*
 * 슬라이더 아래 안내 문구
 */
.service-detail-image-area::after {
    content: "이미지를 좌우로 넘겨 확인하세요";

    position: absolute;
    right: 0;
    bottom: 28px;
    left: 0;

    width: 100%;

    color: rgba(19, 84, 122, 0.55);

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
}


/* ======================================================================
   12. 이미지 슬라이더
====================================================================== */

.service-detail-carousel {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 760px;
    height: 560px;

    overflow: hidden;

    border: 1px solid rgba(185, 230, 255, 0.7);
    border-radius: 22px;

    background-color: #ffffff;

    box-shadow:
            0 18px 45px rgba(21, 84, 122, 0.15),
            0 3px 10px rgba(21, 84, 122, 0.08);
}


/* 슬라이더 내부 */

.service-detail-carousel-inner {
    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: inherit;
}


/*
 * carousel-fade를 제거하면
 * Bootstrap 기본 좌우 transform 방식으로 이동한다.
 */
.service-detail-carousel .carousel-item {
    width: 100%;
    height: 100%;

    border-radius: inherit;

    backface-visibility: hidden;

    transition: transform 0.55s ease-in-out;
}


/* 실제 이미지 */

.service-detail-carousel-image {
    display: block;

    width: 100%;
    height: 100%;

    border-radius: inherit;

    background-color: #ffffff;

    object-fit: contain;
    object-position: center;
}


/* ======================================================================
   13. 좌우 화살표
====================================================================== */

.service-detail-carousel
.carousel-control-prev,
.service-detail-carousel
.carousel-control-next {
    top: 50%;
    bottom: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    padding: 0;

    border-radius: 50%;

    opacity: 0.88;
    z-index: 6;

    transform: translateY(-50%);

    transition:
            opacity 0.2s ease,
            transform 0.2s ease;
}

.service-detail-carousel
.carousel-control-prev {
    left: 14px;
}

.service-detail-carousel
.carousel-control-next {
    right: 14px;
}

.service-detail-carousel
.carousel-control-prev:hover,
.service-detail-carousel
.carousel-control-next:hover {
    opacity: 1;

    transform:
            translateY(-50%)
            scale(1.05);
}


/* 화살표 아이콘 */

.service-detail-carousel
.carousel-control-prev-icon,
.service-detail-carousel
.carousel-control-next-icon {
    width: 44px;
    height: 44px;

    border-radius: 50%;

    background-color: rgba(21, 84, 122, 0.72);
    background-size: 45%;
    background-position: center;
    background-repeat: no-repeat;

    box-shadow:
            0 6px 18px rgba(21, 84, 122, 0.22);
}


/* ======================================================================
   14. 슬라이드 하단 인디케이터
====================================================================== */

.service-detail-carousel
.carousel-indicators {
    right: 0;
    bottom: 18px;
    left: 0;

    z-index: 7;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin: 0;
    padding: 0;
}

.service-detail-carousel
.carousel-indicators [data-bs-target] {
    box-sizing: border-box;

    flex: 0 0 auto;

    width: 10px;
    height: 10px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background-color: #1565c0;

    opacity: 0.35;

    transition:
            opacity 0.2s ease,
            transform 0.2s ease;
}

.service-detail-carousel
.carousel-indicators .active {
    opacity: 1;

    transform: scale(1.3);
}


/* ======================================================================
   15. 이미지 개수
====================================================================== */

.service-detail-image-count {
    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 8;

    padding: 7px 12px;

    border-radius: 999px;

    background-color: rgba(255, 255, 255, 0.92);
    color: #13547a;

    font-size: 12px;
    font-weight: 800;

    box-shadow:
            0 6px 18px rgba(21, 84, 122, 0.12);
}


/* ======================================================================
   16. 태블릿
====================================================================== */

@media screen and (max-width: 991px) {

    .service-detail-header {
        min-height: auto;
    }

    .service-detail-header-eyebrow {
        font-size: 30px;
    }

    .service-detail-data-inner {
        padding: 34px;
    }

    .service-detail-image-area {
        min-height: 540px;

        padding: 66px 28px;
    }

    .service-detail-image-area::before {
        top: 23px;
    }

    .service-detail-image-area::after {
        bottom: 23px;
    }

    .service-detail-carousel {
        max-width: 700px;
        height: 430px;

        border-radius: 20px;
    }

    .service-detail-carousel
    .carousel-control-prev {
        left: 12px;
    }

    .service-detail-carousel
    .carousel-control-next {
        right: 12px;
    }

    .service-detail-carousel
    .carousel-indicators {
        bottom: 16px;
    }
}


/* ======================================================================
   17. 모바일
====================================================================== */

@media screen and (max-width: 575px) {

    .service-detail-page {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .service-detail-header-eyebrow {
        font-size: 25px;
    }

    .service-detail-header-summary {
        font-size: 15px;
        line-height: 1.7;
    }

    .service-detail-top-actions {
        margin-bottom: 14px;
    }

    .service-detail-back-btn {
        min-width: 105px;

        padding: 8px 15px;

        font-size: 13px;
    }

    .service-detail-shell {
        border-radius: 18px;
    }

    .service-detail-data-inner {
        padding: 26px 20px 30px;
    }

    .service-detail-category {
        margin-bottom: 14px;

        font-size: 12px;
    }

    .service-detail-title {
        margin-bottom: 14px;

        font-size: 25px;
        line-height: 1.4;
    }

    .service-detail-summary {
        margin-bottom: 22px;

        font-size: 14px;
        line-height: 1.8;
    }

    .service-detail-meta-box {
        padding: 17px;
    }

    .service-detail-meta-row {
        display: block;

        margin-bottom: 16px;
    }

    .service-detail-meta-label {
        display: block;

        margin-bottom: 5px;
        padding-top: 0;

        font-size: 12px;
    }

    .service-detail-meta-value {
        display: block;

        font-size: 14px;
    }

    .service-detail-section-title {
        font-size: 17px;
    }

    .service-detail-content-text,
    .service-detail-note {
        font-size: 14px;
        line-height: 1.85;
    }

    .service-detail-contact-btn {
        width: 100%;
        min-width: 0;
    }


    /* 모바일 이미지 영역 */

    .service-detail-image-area {
        min-height: auto;

        padding: 18px;
    }

    /*
     * 모바일에서는 장식 문구를 숨겨
     * 이미지 공간을 최대한 확보한다.
     */
    .service-detail-image-area::before,
    .service-detail-image-area::after {
        display: none;
    }

    .service-detail-carousel {
        width: 100%;
        height: 300px;

        border-radius: 16px;
    }

    .service-detail-carousel
    .carousel-control-prev,
    .service-detail-carousel
    .carousel-control-next {
        width: 42px;
        height: 42px;
    }

    .service-detail-carousel
    .carousel-control-prev {
        left: 8px;
    }

    .service-detail-carousel
    .carousel-control-next {
        right: 8px;
    }

    .service-detail-carousel
    .carousel-control-prev-icon,
    .service-detail-carousel
    .carousel-control-next-icon {
        width: 34px;
        height: 34px;
    }

    .service-detail-carousel
    .carousel-indicators {
        bottom: 12px;

        gap: 6px;
    }

    .service-detail-carousel
    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
    }

    .service-detail-image-count {
        top: 12px;
        right: 12px;

        padding: 6px 10px;

        font-size: 11px;
    }
}