/* ===================================
   BUSINESS PAGE - 통합 CSS
   =================================== */

/* 기본 컨테이너 스타일 */
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

.page-container {
    width: 100%;
    max-width: 100vw;
    margin-top: 280px;
}

.content-section {
    width: 100%;
    max-width: 100vw;
    padding: 0;
}

.section-wrapper {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 40px;
}

.section-side {
    width: 400px;
    flex-shrink: 0;
    min-width: 0;
}

.section-content {
    flex: 1;
    position: relative;
    min-width: 0;
    width: 100%;
}

/* 모든 이미지 반응형 처리 */
img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   TYPOGRAPHY & COMMON ELEMENTS
   =================================== */

.side-title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.history-number {
    font-size: 18px;
    color: #ffcd3c;
    display: block;
}

.header-title-2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
}

.space-20 {
    margin: 20px 0;
}

.history-intro {
    position: sticky;
    top: 100px;
}

/* ===================================
   LAB CONSULTING SWIPER STYLES
   =================================== */

.swiper-container {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 5px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.2);
}

/* ===================================
   LAB CONSULTING EXAMPLE LINKS
   =================================== */

.lab-consulting-example {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    padding: 20px 0;
}

/* 인터랙티브 이미지 컨테이너 */
.interactive-lab-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.interactive-lab-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 클릭 가능한 영역들 컨테이너 */
.clickable-areas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 개별 클릭 영역 */
.click-area {
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 179, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    pointer-events: all;
    z-index: 5;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(255, 179, 0, 0.4);
}

.area-indicator {
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 각 영역별 위치 (우측에 세로로 배치) */
.area-1 {
    top: 20%;
    right: 6%;
}

.area-2 {
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
}

.area-3 {
    top: 80%;
    right: 6%;
    transform: translateY(-100%);
}

/* 기존 링크들 컨테이너 */
.traditional-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.lab-consulting-example-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #f8f9fa;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lab-consulting-example-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 179, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.lab-consulting-example-item:hover::before {
    left: 100%;
}

.lab-consulting-example-item:hover {
    background: #fff;
    color: #333;
    border-color: #FFB300;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.15);
}

.lab-consulting-example-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 179, 0, 0.2);
}

/* ===================================
   ANIMATED LINK STYLES
   =================================== */


.animated-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 5px 0;
    overflow: hidden;
    padding-bottom: 2px;
}

.link-text {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.link-arrow {
    margin-left: 8px;
    font-size: 14px;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.animated-link:hover .link-text {
    transform: translateY(-150%);
}

.animated-link::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 100%;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.animated-link:hover::after {
    transform: translateY(-120%);
}

.animated-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #333;
    transition: width 0.3s ease;
}

.animated-link:hover::before {
    width: 80%;
}

/* ===================================
   PARTNER GRID STYLES
   =================================== */

.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.partner-logo {
    width: 120px;
    height: 120px;
    border: 2px solid #f7de8e;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.partner-logo i {
    font-size: 40px;
    color: #eca600;
    transition: all 0.3s ease;
}

.partner-name {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
    font-weight: 500;
}

.partner-logo:hover {
    background-color: #f7de8e;
}

.partner-logo:hover i {
    color: #fff;
}

.partners-showcase {
    margin-top: 40px;
    border-radius: 10px;
}

.partners-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ===================================
   BRAND GRID STYLES
   =================================== */

.grid-brand {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.brand-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px;
}

.brand-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.brand-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.brand-item-name {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    align-self: flex-start;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.brand-item-desc {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    align-self: flex-start;
    margin-top: auto;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
    max-height: 70%;
    overflow-y: auto;
}

.brand-item-desc::-webkit-scrollbar {
    width: 4px;
}

.brand-item-desc::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.brand-item-desc::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.brand-item:hover .brand-overlay {
    opacity: 1;
    visibility: visible;
}

.brand-item:hover .brand-item-name {
    transform: translateY(0);
    opacity: 1;
}

.brand-item:hover .brand-item-desc {
    transform: translateY(0);
    opacity: 1;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    background-color: #f8f8f8;
}

.no-image i {
    font-size: 32px;
    margin-bottom: 8px;
}

.no-image span {
    font-size: 12px;
}

.no-brands {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-brands p {
    font-size: 16px;
    margin: 0;
}

/* ===================================
   MANUFACTURING PLATFORM SWIPER
   =================================== */

.manufacturing-platform-swiper-section {
    padding: 40px 0;
    width: 100%;
    box-sizing: border-box;
}

.manufacturing-platform-swiper-main {
    width: 100% !important;
    height: 400px !important;
    padding-bottom: 50px !important;
    overflow: hidden !important;
    position: relative !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

.manufacturing-platform-swiper-main .swiper-wrapper {
    display: flex !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}

.manufacturing-platform-swiper-main .swiper-slide {
    flex-shrink: 0 !important;
    width: calc(50% - 15px) !important;
    height: auto !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.manufacturing-platform-card {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    background: transparent !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    cursor: grab !important;
    box-sizing: border-box !important;
}

.manufacturing-platform-card:active {
    cursor: grabbing !important;
}

.manufacturing-platform-image {
    width: 100% !important;
    height: 280px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.manufacturing-platform-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.manufacturing-platform-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 10px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

.manufacturing-swiper-pagination {
    bottom: 0 !important;
    text-align: center !important;
    position: absolute !important;
    width: 100% !important;
    height: auto !important;
    z-index: 10 !important;
}

.manufacturing-swiper-pagination .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: #ddd !important;
    opacity: 1 !important;
    margin: 0 6px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.manufacturing-swiper-pagination .swiper-pagination-bullet-active {
    background: #333 !important;
    transform: scale(1.2) !important;
}

/* ===================================
   NAVIGATION ARROWS
   =================================== */


.lab-swiper-next,
.lab-swiper-prev {
    position: absolute !important;
    top: 50% !important;
    width: 44px !important;
    height: 44px !important;
    margin-top: -22px !important;
    z-index: 10 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #333 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}


.manufacturing-swiper-next,
.manufacturing-swiper-prev{
    position: absolute !important;
    top: 43% !important;
    width: 44px !important;
    height: 44px !important;
    margin-top: -22px !important;
    z-index: 10 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #333 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}



.manufacturing-swiper-next:hover,
.manufacturing-swiper-prev:hover,
.lab-swiper-next:hover,
.lab-swiper-prev:hover {
    background: #333 !important;
    color: white !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.manufacturing-swiper-next,
.lab-swiper-next {
    right: 10px !important;
}

.manufacturing-swiper-prev,
.lab-swiper-prev {
    left: 10px !important;
}

.manufacturing-swiper-next::after,
.manufacturing-swiper-prev::after,
.lab-swiper-next::after,
.lab-swiper-prev::after {
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* ===================================
   LAB YOUTUBE STYLES
   =================================== */

.lab-youtube-container {
    margin: 40px 0;
    width: 100%;
}

.lab-youtube-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.lab-youtube-iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.lab-youtube-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: default;
}

.lab-youtube-info {
    margin-top: 15px;
    text-align: center;
}

.lab-youtube-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* 태블릿 */
@media (max-width: 1024px) {
    .section-wrapper {
        flex-direction: column;
        padding: 50px 20px;
        max-width: 100%;
    }

    .section-side {
        width: 100%;
    }

    .swiper-container {
        width: 100%;
        height: 400px;
    }

    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .partner-logo {
        width: 100px;
        height: 100px;
    }

    .partner-logo i {
        font-size: 32px;
    }

    .partner-name {
        font-size: 14px;
    }

    .manufacturing-platform-swiper-main {
        height: 350px !important;
        max-width: 600px !important;
    }
    
    .manufacturing-platform-swiper-main .swiper-slide {
        width: calc(50% - 12px) !important;
    }
    
    .manufacturing-platform-image {
        height: 220px !important;
        margin-bottom: 15px !important;
    }
    
    .manufacturing-platform-title {
        font-size: 16px !important;
    }

    .manufacturing-swiper-next,
    .manufacturing-swiper-prev,
    .lab-swiper-next,
    .lab-swiper-prev {
        display: none !important;
    }
}

/* 모바일 */
@media (max-width: 768px) {



    .mobile-logo{
        background: white;
    }

    .page-container {
        margin-top: 300px;
    }

    .section-wrapper {
        padding: 30px 15px;
        max-width: 100%;
    }

    .section-side {
        margin-bottom: 10px;
    }

    .side-title {
        font-size: 2rem;
        word-break: keep-all;
    }

    .history-number {
        font-size: 16px;
    }

    .swiper-container {
        height: 300px;
    }

    .swiper-pagination {
        bottom: 10px;
    }

    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }

    /* 설치사례 링크 모바일 스타일 */
    .lab-consulting-example {
        gap: 25px;
        margin-top: 25px;
        padding: 15px 0;
    }

    .interactive-lab-image {
        max-width: 100%;
        margin: 0 10px;
    }

    /* 모바일에서 클릭 영역 크기 조정 */
    .click-area {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }

    .area-indicator {
        font-size: 14px;
    }

    /* 모바일에서 위치 미세 조정 */
    .area-1 {
        top: 18%;
        right: 6%;
    }

    .area-2 {
        top: 50%;
        right: 6%;
    }

    .area-3 {
        top: 82%;
        right: 6%;
    }

    .traditional-links {
        flex-direction: column;
        gap: 12px;
    }

    .lab-consulting-example-item {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 15px;
        min-width: unset;
    }

    .animated-link {
        font-size: 14px;
    }

    .link-arrow {
        font-size: 12px;
    }

    .partner-grid {
        gap: 15px;
    }

    .partner-logo {
        width: 80px;
        height: 80px;
    }

    .partner-logo i {
        font-size: 28px;
    }

    .grid-brand {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .brand-item {
        padding: 15px;
    }

    .brand-overlay {
        padding: 15px;
    }

    .brand-item-name {
        font-size: 14px;
    }

    .brand-item-desc {
        font-size: 12px;
        line-height: 1.4;
        max-height: 65%;
    }

    .manufacturing-platform-swiper-section {
        padding: 20px 0 !important;
    }
    
    .manufacturing-platform-swiper-main {
        height: 320px !important;
        max-width: 400px !important;
    }
    
    .manufacturing-platform-swiper-main .swiper-slide {
        width: 100% !important;
    }
    
    .manufacturing-platform-image {
        height: 200px !important;
        margin-bottom: 15px !important;
    }
    
    .manufacturing-platform-title {
        font-size: 14px !important;
    }
    
    .manufacturing-platform-card {
        max-width: 280px !important;
    }

    .lab-youtube-wrapper {
        height: 250px;
    }
}

/* 작은 모바일 */
@media (max-width: 480px) {
    .page-container {
        margin-top: 200px;
    }

    .section-wrapper {
        padding: 20px 10px;
    }

    .side-title {
        font-size: 1.5rem;
    }

    .swiper-container {
        height: 250px;
    }

    /* 설치사례 링크 작은 모바일 스타일 */
    .lab-consulting-example {
        gap: 20px;
        margin-top: 20px;
        padding: 10px 0;
    }

    .interactive-lab-image {
        margin: 0 5px;
    }

    /* 작은 모바일에서 클릭 영역 더 작게 */
    .click-area {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }

    .area-indicator {
        font-size: 12px;
    }

    /* 작은 모바일에서 위치 조정 */
    .area-1 {
        top: 16%;
        right: 4%;
    }

    .area-2 {
        top: 50%;
        right: 4%;
    }

    .area-3 {
        top: 84%;
        right: 4%;
    }

    .lab-consulting-example-item {
        max-width: 250px;
        padding: 12px 16px;
        font-size: 14px;
    }

    .grid-brand {
        gap: 10px;
        margin-top: 0;
    }

    .manufacturing-platform-swiper-main .swiper-slide {
        width: 100% !important;
    }
    
    .manufacturing-platform-card {
        max-width: 250px !important;
    }
    
    .manufacturing-platform-image {
        height: 180px !important;
    }
    
    .manufacturing-platform-title {
        font-size: 13px !important;
    }

    .lab-youtube-wrapper {
        height: 200px;
    }

    .header-title-2{
        margin-bottom: 0;
    }
} 