/* tmj.css - 턱관절치료 페이지 */

/* m_implant 스타일 공유 */
/* ============================================
   M Implant Page Styles
   ============================================ */

/* Header Banner */
#m_implant_header .container {
    padding: 0;
    max-width: 100%;
}

#m_implant_header .container .wrapper {
    width: 100%;
}

#m_implant_header .main-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#m_implant_header .main-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

#m_implant_header .main-banner .txt {
    position: absolute;
    width: 100%;
    z-index: 10;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #333;
}

#m_implant_header .main-banner .txt h3 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: #666;
    text-transform: uppercase;
}

#m_implant_header .main-banner .txt h1 {
    font-family: "BMDOHYEON";
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

#m_implant_header .main-banner .txt h1 .highlight {
    color: #00d9b6;
}

/* Tab Navigation */
#m_implant_tabnav {
    background-color: #2a2a2a;
    width: 100%;
    border-top: none;
}

#m_implant_tabnav .container {
    padding: 0;
    max-width: 100%;
}

#m_implant_tabnav .tab-wrapper {
    width: 100%;
}

#m_implant_tabnav .tab-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

#m_implant_tabnav .tab-item {
    flex: 1;
    min-width: 0;
    border: none;
}

#m_implant_tabnav .tab-link {
    display: block;
    padding: 15px 20px;
    text-align: center;
    text-decoration: none;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background-color: transparent;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
}

#m_implant_tabnav .tab-item.active .tab-link {
    background-color: #e0e0e0;
    color: #000;
    border: 1px solid #999;
}

#m_implant_tabnav .tab-item:not(.active) .tab-link {
    color: #666;
}

#m_implant_tabnav .tab-item:not(.active) .tab-link:hover {
    color: #999;
}

/* Main Content Sections */
#m_implant_main {
    padding-top: 0;
}

.m-implant-section {
    padding: 80px 0;
}

.m-implant-section:nth-child(even) {
    background-color: #f7f7f7;
}

/* Section 1: 한 번의 임플란트, 평생의 약속 */
#m_implant_section_1 .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 30px;
    width: 100%;
    max-width: 1540px;
    margin: 0 auto 60px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

#m_implant_section_1 .section-header h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 0px 20px;
    width: 100%;
    max-width: 1540px;
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 50px;
    text-align: center;
    color: #000000;
    margin: 0;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

#m_implant_section_1 .section-header p {
    width: 100%;
    max-width: 1128px;
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    color: #292929;
    margin: 0;
    flex: none;
    order: 1;
    flex-grow: 0;
}

#m_implant_section_1 .section-image {
    max-width: 1200px;
    margin: 0 auto;
}

#m_implant_section_1 .section-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

/* Section 2: 대표원장의 1:1 진료 */
#m_implant_section_2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 190px 50px;
    background: #EAEAEA;
}

#m_implant_section_2 .container {
    padding: 0;
    width: 100%;
    max-width: 1540px;
}

#m_implant_section_2 .container .wrapper {
    padding: 0;
}

#m_implant_section_2 .split-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 90px 60px;
    gap: 10px;
    isolation: isolate;
    width: 100%;
    max-width: 1540px;
    background: url("../../../assets/images/tooth-bg.jpg"), #019982;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

#m_implant_section_2 .text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 30px;
    width: 770px;
    z-index: 1;
    background: transparent;
}

#m_implant_section_2 .text-content h2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 20px;
    width: 100%;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 50px;
    line-height: 60px;
    color: #FFFFFF;
    margin: 0;
}

#m_implant_section_2 .text-content p {
    width: 689px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 45px;
    color: #FFFFFF;
    margin: 0;
}

#m_implant_section_2 .image-content {
    position: absolute;
    width: 660px;
    height: 593px;
    right: 0;
    top: -13px;
    z-index: 1;
}

#m_implant_section_2 .image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scaleX(-1);
}

/* Section 3: 완벽한 결과를 위한 세밀한 고민 */
#m_implant_section_3 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 50px 190px;
    background: #EAEAEA;
}

#m_implant_section_3 .container {
    padding: 0;
    width: 100%;
    max-width: 1540px;
}

#m_implant_section_3 .container .wrapper {
    padding: 0;
}

#m_implant_section_3 .split-content {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 90px 60px;
    gap: 10px;
    isolation: isolate;
    width: 100%;
    max-width: 1540px;
    background: #FFFFFF;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

#m_implant_section_3 .image-content {
    position: absolute;
    width: 660px;
    height: 593px;
    left: 0;
    top: -13px;
    z-index: 0;
}

#m_implant_section_3 .image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#m_implant_section_3 .text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 30px;
    width: 770px;
    z-index: 1;
    background: transparent;
}

#m_implant_section_3 .text-content h2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 20px;
    width: 100%;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 50px;
    line-height: 60px;
    color: #393838;
    margin: 0;
}

#m_implant_section_3 .text-content p {
    width: 712px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 45px;
    color: #393838;
    margin: 0;
}

/* Section 4: 검증된 정품, 신뢰할 수 있는 재료만 */
#m_implant_section_4 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 50px 190px;
    background: #EAEAEA;
}

#m_implant_section_4 .container {
    padding: 0;
    width: 100%;
    max-width: 1540px;
}

#m_implant_section_4 .container .wrapper {
    padding: 0;
}

#m_implant_section_4 .split-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 90px 60px;
    gap: 10px;
    isolation: isolate;
    width: 100%;
    max-width: 1540px;
    background: url("../../../assets/images/tooth-bg.jpg");
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

#m_implant_section_4 .text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 30px;
    width: 770px;
    z-index: 1;
    background: transparent;
}

#m_implant_section_4 .text-content h2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 20px;
    width: 100%;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 50px;
    line-height: 60px;
    color: #FFFFFF;
    margin: 0;
}

#m_implant_section_4 .text-content p {
    width: 685px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 45px;
    color: #FFFFFF;
    margin: 0;
}

#m_implant_section_4 .image-content {
    position: absolute;
    width: 710px;
    height: 902px;
    right: 1px;
    top: -183px;
    z-index: 1;
}

#m_implant_section_4 .image-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Section 5: 시술이 끝나도, 관리의 시작은 엠치과에서 */
#m_implant_section_5 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 50px 190px 90px;
    background: #EAEAEA;
}

#m_implant_section_5 .container {
    padding: 0;
    width: 100%;
    max-width: 1540px;
}

#m_implant_section_5 .container .wrapper {
    padding: 0;
}

#m_implant_section_5 .split-content {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 90px 60px;
    gap: 10px;
    isolation: isolate;
    width: 100%;
    max-width: 1540px;
    background: #FFFFFF;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

#m_implant_section_5 .image-content {
    position: absolute;
    width: 972px;
    height: 530px;
    left: -277px;
    top: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
}

#m_implant_section_5 .image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#m_implant_section_5 .text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 30px;
    width: 770px;
    z-index: 1;
    background: transparent;
}

#m_implant_section_5 .text-content h2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 20px;
    width: 100%;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 50px;
    line-height: 60px;
    color: #393838;
    margin: 0;
}

#m_implant_section_5 .text-content p {
    width: 657px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 45px;
    color: #393838;
    margin: 0;
}

/* Section 6: 언제든 확인 가능한, 나만의 진료 관리 시스템 */
#m_implant_section_6 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 90px 190px;
    gap: 30px;
    background: #FFFFFF;
}

#m_implant_section_6 .container {
    padding: 0;
    width: 100%;
    max-width: 1540px;
}

#m_implant_section_6 .container .wrapper {
    padding: 0;
}

#m_implant_section_6 .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 30px;
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
}

#m_implant_section_6 .section-header h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0 20px;
    width: 100%;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 50px;
    line-height: 60px;
    text-align: center;
    color: #000000;
    margin: 0;
}

#m_implant_section_6 .section-header p {
    width: 100%;
    max-width: 1148px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 45px;
    text-align: center;
    color: #292929;
    margin: 0;
}

#m_implant_section_6 .section-image {
    width: 100%;
    max-width: 1359px;
    margin: 0 auto;
    position: relative;
}

#m_implant_section_6 .section-image img {
    width: 100%;
    height: auto;
    padding-top: 50px;
    display: block;
}

/* Section 7: 당신의 안전을 지키는 깨끗한 약속 */
#m_implant_section_7 {
    background: #d8f2ef;
}

#m_implant_section_7 .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 20px;
    width: 100%;
    max-width: 1540px;
    margin: 0 auto 60px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

#m_implant_section_7 .section-header h2 {
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 50px;
    text-align: center;
    color: #000000;
    margin: 0;
    padding: 0;
}

#m_implant_section_7 .section-header h3 {
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 28px;
    line-height: 36px;
    text-align: center;
    color: #333333;
    margin: 0;
    padding: 0;
}

#m_implant_section_7 .section-header p {
    width: 100%;
    max-width: 1128px;
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    color: #292929;
    margin: 0;
}

#m_implant_section_7 .section-image {
    max-width: 1200px;
    margin: 0 auto;
}

#m_implant_section_7 .section-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
}

/* Section 8: 임플란트만이 아니라, 구강 전체의 균형을 봅니다 */
#m_implant_section_8 {
    background: #f5f3f0;
}

#m_implant_section_8 .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 30px;
    width: 100%;
    max-width: 1540px;
    margin: 0 auto 60px;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

#m_implant_section_8 .section-header h2 {
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 50px;
    text-align: center;
    color: #000000;
    margin: 0;
    padding: 0;
}

#m_implant_section_8 .section-header p {
    width: 100%;
    max-width: 1128px;
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    color: #292929;
    margin: 0;
}

#m_implant_section_8 .section-image {
    max-width: 1200px;
    margin: 0 auto;
}

#m_implant_section_8 .section-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
}

/* Section 9: 결과로 증명하는 엠치과의 자신감 */
#m_implant_section_9 {
    background-image: url('../../../assets/images/m_implant /image copy 9.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#m_implant_section_9 .banner-overlay {
    position: relative;
    width: 100%;
    /* background: rgba(0, 0, 0, 0.4); */
    padding: 80px 20px;
}

#m_implant_section_9 .banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

#m_implant_section_9 .banner-content h2 {
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 50px;
    text-align: center;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

#m_implant_section_9 .banner-content p {
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    color: #ffffff;
    margin: 0;
    max-width: 1128px;
}

.m-implant-section .container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.m-implant-subsection {
    margin-bottom: 100px;
}

.m-implant-subsection:last-child {
    margin-bottom: 0;
}

.m-implant-content-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

.m-implant-content-wrapper.reverse {
    flex-direction: row-reverse;
}

.m-implant-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.m-implant-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.m-implant-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 50px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    border-radius: 0 0 8px 8px;
}

.m-implant-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.m-implant-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #fff;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.m-implant-text ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.m-implant-text ul li {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.m-implant-text ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #00d9b6;
    font-weight: 700;
    font-size: 24px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    #m_implant_header .main-banner .txt h1 {
        font-size: 42px;
    }

    #m_implant_tabnav .tab-link {
        padding: 12px 15px;
        font-size: 14px;
    }

    .m-implant-text {
        padding: 30px 40px;
    }

    .m-implant-text h2 {
        font-size: 28px;
    }

    .m-implant-text p {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    #m_implant_header .main-banner .txt h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    #m_implant_header .main-banner .txt h1 {
        font-size: 32px;
    }

    #m_implant_tabnav .tab-list {
        flex-wrap: wrap;
    }

    #m_implant_tabnav .tab-item {
        flex: 1 1 50%;
        min-width: 120px;
    }

    #m_implant_tabnav .tab-link {
        padding: 10px 12px;
        font-size: 13px;
    }

    .m-implant-section {
        padding: 60px 0;
    }

    .m-implant-subsection {
        margin-bottom: 60px;
    }

    .m-implant-text {
        padding: 25px 30px;
    }

    .m-implant-text h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .m-implant-text p {
        font-size: 15px;
    }

    .m-implant-text ul li {
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    #m_implant_header .main-banner .txt h1 {
        font-size: 24px;
    }

    #m_implant_tabnav .tab-item {
        flex: 1 1 100%;
    }

    #m_implant_tabnav .tab-link {
        padding: 8px 10px;
        font-size: 12px;
    }

    .m-implant-section {
        padding: 40px 0;
    }

    .m-implant-subsection {
        margin-bottom: 40px;
    }

    .m-implant-text h2 {
        font-size: 20px;
    }
}

