/* PC 기본 스타일 */
.branch-section {
    height: 440px;
    width: 100%;
    background: #fff;
}

.branch-section .inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 80px 0;
}

.branch-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.branch-item {
    width: 450px;
    height: 283px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.branch-item-large {
    width: 568px;
}

.branch-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.branch-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 18px;
    align-items: center;
}

.branch-content h3 {
    color: #fff;
    font-size: 16.8px;
    margin-bottom: 20px;
}

.branch-button {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* PC 호버 효과 */
.branch-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.branch-item:hover img {
    transform: scale(1.05);
}

.branch-item:hover .branch-button {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

/* 모바일 스타일 */
@media screen and (max-width: 768px) {
    .branch-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 15px;
        margin-bottom: 20px;
    }

    .branch-item {
        width: 100% !important;
        max-width: none;
        height: 130px;
        border-radius: 0;
        overflow: hidden;
        position: relative;
        display: flex;
        box-shadow: none;
        transform: none !important;
    }

    .branch-item-large {
        width: 100% !important;
        max-width: none;
        height: 130px;
    }

    .branch-link {
        display: flex;
        width: 100%;
        height: 100%;
        text-decoration: none;
    }

    .branch-image-container {
        width: 60%;
        height: 130px;
        overflow: hidden;
        display: flex;
        align-items: center;
    }

    .branch-image-container img,
    .branch-image-container .mobile-image {
        width: 100%;
        height: 130px;
        object-fit: cover;
        max-height: none;
    }

    .branch-content {
        position: relative;
        width: 40%;
        height: 100%;
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: none;
    }

    .branch-content h3 {
        font-size: 9px;
        margin-bottom: 8px;
        text-align: center;
        word-break: keep-all;
        line-height: 1.4;
        color: #fff;
        text-shadow: none;
    }

    .branch-button {
        align-self: center;
        padding: 4px 8px;
        font-size: 10px;
        font-weight: 500;
        border: 1px solid #fff;
        color: #fff;
        background: transparent;
        text-shadow: none;
        border-radius: 0;
    }

    /* 모바일에서 호버 효과 제거 */
    .branch-item:hover {
        transform: none !important;
        box-shadow: none;
    }

    .branch-item:hover img {
        transform: none;
    }

    /* 각 아이템별 배경색 */
    .branch-item:nth-child(1),
    .branch-item:nth-child(1) .branch-link,
    .branch-item:nth-child(1) .branch-content {
        background: #102e39;
    }

    .branch-item:nth-child(2),
    .branch-item:nth-child(2) .branch-link,
    .branch-item:nth-child(2) .branch-content {
        background: #111c49;
    }

    .branch-item:nth-child(3),
    .branch-item:nth-child(3) .branch-link,
    .branch-item:nth-child(3) .branch-content {
        background: #293949;
    }

    /* branch-section 하단 여백 추가 */
    .branch-section {
        background: #fff;
        padding-bottom: 50px;
        margin-bottom: 150px;
    }

    /* 진료철학 영역 */
    #t045 {
        height: auto !important;
        padding: 50px 0;
    }

    #t045 .inner {
        padding: 50px 15px 0 !important;
    }

    /* 이미지 영역 세로 배치 */
    #t045 .inner>div {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 15px;
    }

    #t045 .philosophy-item {
        width: 100% !important;
        height: 140px !important;
    }

    /* 이미지 컨테이너 스타일 */
    #t045 .philosophy-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* PC/모바일 이미지 전환 */
    #t045 .pc-image {
        display: none;
    }

    #t045 .mobile-image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* 도트 그리드 스타일 */
.dots-grid {
    display: grid;
    grid-template-columns: repeat(3, 2px);
    grid-gap: 2px;
    width: 8px;
    height: 12px;
    margin-top: 4px;
}

.dots-grid::before {
    content: '';
    width: 2px;
    height: 2px;
    background: #feffff;
    border-radius: 50%;
    box-shadow: 4px 0 0 #feffff, 8px 0 0 #feffff,
        0 4px 0 #feffff, 4px 4px 0 #feffff, 8px 4px 0 #feffff,
        0 8px 0 #feffff, 4px 8px 0 #feffff, 8px 8px 0 #feffff;
}

/* 비디오 컨테이너 스타일 */
.visual_slider {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.main_video {
    position: relative;
    width: 100%;
    height: 100vh;
    /* 기본 데스크톱 높이 */
}

.main_video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PC/모바일 이미지 전환 스타일 */
.pc-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 섹션 기본 스타일 */
.section {
    width: 100%;
    background: #e8ecf7;
    padding: 100px 0 0 0;
}

#bt03-02.section {
    width: 100%;
    background: #e8ecf7;
    padding: 50px 0 130px 0;
}

/* 섹션 내부 스타일 */
.section_inner {
    max-width: 1600px;
    margin: 0px auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    position: relative;
}

/* 좌측 섹션 스타일 */
.left-section {
    width: 250px;
    min-width: 250px;
    padding: 40px 20px;
    background: #37A5E4;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.left-section-02 {
    width: 250px;
    min-width: 250px;
    padding: 10px 20px 40px;
    background: #34aa76;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 메뉴 스타일 */
.list-menu {
    position: absolute;
    bottom: 30px;
    left: 220px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.list-menu a {
    display: inline-block;
    color: #feffff;
    font-size: 14px;
    text-decoration: none;
}

/* bt03-02 섹션의 list-menu 위치 조정 */
#bt03-02 .list-menu {
    position: absolute;
    bottom: -36px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.list-menu2 {
    position: absolute;
    bottom: -50px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.list-menu2 a {
    display: inline-block;
    color: #feffff;
    font-size: 14px;
    text-decoration: none;
}

/* 섹션 5 스타일 */
.section-5 {
    display: inline-flex;
    height: 102.5rem;
    padding-top: 21.463414%;
    padding-top: 22rem;
    background: url('/img/bg-section-5-visual.jpg') no-repeat 0 0 / cover;
    text-align: center;
}

.section-sub {
    padding-top: 0%;
    padding-bottom: 0%;
    background: url('../img/bg-section-5-visual.jpg') no-repeat 0 0 / cover;
    text-align: center;
}

/* 모바일 스타일 */
@media screen and (max-width: 768px) {

    /* 비디오 컨테이너 모바일 스타일 */
    .main_video {
        height: 70vh;
    }

    .main_video video {
        width: auto;
        height: 100%;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        object-fit: cover;
    }

    /* PC/모바일 이미지 전환 */
    .pc-image {
        display: none;
    }

    .mobile-image {
        display: block;
    }

    /* 진료철학 영역 */
    #t045 {
        height: auto !important;
        padding: 50px 0;
    }

    #t045 .inner {
        padding: 50px 15px 0 !important;
    }

    /* 이미지 영역 세로 배치 */
    #t045 .inner>div {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 15px;
    }

    #t045 .philosophy-item {
        width: 100% !important;
        height: 140px !important;
    }

    /* 이미지 컨테이너 스타일 */
    #t045 .philosophy-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* PC/모바일 이미지 전환 */
    #t045 .pc-image {
        display: none;
    }

    #t045 .mobile-image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 타이틀 영역 크기 조정 */
    #t045 .title-area {
        margin-bottom: 30px !important;
    }

    #t045 .title-area>div {
        width: 54px !important;
        height: 8.4px !important;
        margin: 0 auto 10px !important;
    }

    #t045 .title-area span {
        font-size: 24px !important;
    }

    /* 섹션 여백 조정 */
    #t05 .clearfix {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    .tl_business_area_wrap ul li .img {
        height: 250px !important;
    }

    .section-07 .inner {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    .board-x-tl_gallery {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    /* 메뉴 위치 정렬 */
    .list-menu,
    .list-menu2 {
        position: fixed !important;
        bottom: 60px !important;
        right: 15px !important;
        z-index: 99;
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
    }

    .list-menu a,
    .list-menu2 a {
        display: inline-block !important;
        color: #feffff !important;
        font-size: 14px !important;
        text-decoration: none !important;
    }
}