/* ============================================
   NineSoft Custom Styles
   ============================================ */

/* --- Logo --- */
#logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
#logo .logo-emblem {
    height: 40px;
    width: auto;
    transition: height 0.3s;
}
#logo .logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
    transition: font-size 0.3s;
}

/* 서브페이지/스크롤 시 작아짐 */
.fix_on #logo .logo-emblem,
#hd.on #logo .logo-emblem {
    height: 28px;
}
.fix_on #logo .logo-text,
#hd.on #logo .logo-text {
    font-size: 16px;
}

/* --- Hero Slide Backgrounds --- */
.mvisual .s-ninesoft .bg {
    background: url('/images/main_bg.jpg') no-repeat center center;
    background-size: cover;
}
.mvisual .s-mining .bg {
    background: url('/images/main_box2_img1over.jpg') no-repeat center center;
    background-size: cover;
}
.mvisual .s-websolution .bg {
    background: url('/images/bg_websolution.jpg') no-repeat center center;
    background-size: cover;
}
.mvisual .s-purchase .bg {
    background: url('/images/landing/main_bg1.jpg') no-repeat center center;
    background-size: cover;
}

/* --- Purchase Service Section --- */
.ns-purchase {
    background: #17181e;
    padding: 120px 0;
}
.ns-purchase .inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}
.ns-purchase .stit {
    margin-bottom: 60px;
}
.ns-purchase .stit span {
    display: block;
    font-size: 14px;
    letter-spacing: 3px;
    color: #2051a2;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.ns-purchase .stit h2 {
    font-size: 22px;
    font-weight: 300;
    line-height: 1.7;
    color: #fff;
}
.ns-purchase-cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.ns-purchase-card {
    flex: 1;
    min-width: 280px;
    background: #1e2029;
    border-radius: 12px;
    padding: 40px 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}
.ns-purchase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.ns-purchase-card .card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}
.ns-purchase-card .card-icon img {
    width: 100%;
    height: auto;
}
.ns-purchase-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}
.ns-purchase-card .card-desc {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.65);
    margin-bottom: 25px;
}
.ns-purchase-card .card-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #2051a2;
    color: #2051a2;
    font-size: 13px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
}
.ns-purchase-card .card-btn:hover {
    background: #2051a2;
    color: #fff;
}

/* --- Purchase Modal --- */
.ns-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.ns-modal-overlay.open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
}
.ns-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    padding: 40px;
    position: relative;
    color: #333;
}
.ns-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
}
.ns-modal .modal-close:hover {
    color: #333;
}
.ns-modal h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #222;
}
.ns-modal .modal-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 25px;
}
.ns-modal .modal-tabs button {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}
.ns-modal .modal-tabs button.on {
    color: #2051a2;
    border-bottom-color: #2051a2;
}
.ns-modal .modal-tab-content {
    display: none;
}
.ns-modal .modal-tab-content.on {
    display: block;
}
.ns-modal .tab-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}
.ns-modal .step-list {
    margin-bottom: 30px;
}
.ns-modal .step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.ns-modal .step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2051a2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-right: 15px;
}
.ns-modal .step-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #222;
}
.ns-modal .step-info p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}
.ns-modal .step-arrow {
    text-align: center;
    color: #ccc;
    margin-bottom: 15px;
    font-size: 18px;
}
.ns-modal .addr-box {
    background: #f7f8fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}
.ns-modal .addr-box h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}
.ns-modal .addr-box p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}
.ns-modal .addr-box .map-link {
    display: inline-block;
    margin-top: 8px;
    color: #2051a2;
    font-size: 13px;
}
.ns-modal .phone-box {
    text-align: center;
    padding: 20px;
    margin-bottom: 25px;
}
.ns-modal .phone-box img {
    width: 40px;
    margin-bottom: 10px;
}
.ns-modal .phone-box a {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #2051a2;
    margin-bottom: 8px;
}
.ns-modal .phone-box p {
    font-size: 13px;
    color: #666;
}
.ns-modal .modal-form .form-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}
.ns-modal .modal-form .form-row > label {
    width: 80px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    padding-top: 10px;
    color: #333;
}
.ns-modal .modal-form .form-row select,
.ns-modal .modal-form .form-row input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.ns-modal .modal-form .form-row textarea {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
}
.ns-modal .modal-form .form-row label input[type="radio"],
.ns-modal .modal-form .form-row label input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    margin-right: 4px;
    vertical-align: middle;
}
.ns-modal .modal-form .form-row div > label {
    width: auto;
    font-weight: 400;
    padding-top: 0;
    cursor: pointer;
}
.ns-modal .modal-form .form-row textarea {
    height: 80px;
    resize: vertical;
}
.ns-modal .modal-form .privacy-box {
    margin: 15px 0;
    font-size: 12px;
    color: #888;
}
.ns-modal .modal-form .privacy-box .arrow {
    cursor: pointer;
    color: #2051a2;
}
.ns-modal .modal-form .privacy-box textarea {
    width: 100%;
    height: 80px;
    font-size: 11px;
    margin-top: 8px;
    display: none;
    border: 1px solid #eee;
    padding: 10px;
    background: #f9f9f9;
    resize: none;
}
.ns-modal .modal-form .privacy-box.open textarea {
    display: block;
}
.ns-modal .modal-form .submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #2051a2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.ns-modal .modal-form .submit-btn:hover {
    background: #183f85;
}

/* --- Timeline --- */
.ns-timeline {
    background: #f7f8fa;
    padding: 100px 0;
}
.ns-timeline .inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}
.ns-timeline .section-title {
    text-align: center;
    margin-bottom: 60px;
}
.ns-timeline .section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}
.ns-timeline .section-title p {
    font-size: 15px;
    color: #888;
}
.timeline-list {
    position: relative;
    padding-left: 60px;
}
.timeline-list::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
}
.timeline-item {
    position: relative;
    margin-bottom: 50px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -48px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2051a2;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #2051a2;
}
.timeline-item .year {
    font-size: 24px;
    font-weight: 700;
    color: #2051a2;
    margin-bottom: 10px;
}
.timeline-item .timeline-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.timeline-item .timeline-img {
    flex-shrink: 0;
    width: 200px;
    border-radius: 8px;
    overflow: hidden;
}
.timeline-item .timeline-img img {
    width: 100%;
    height: auto;
    display: block;
}
.timeline-item .timeline-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}
.timeline-item .timeline-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* --- Company Info Grid --- */
.ns-company-info {
    background: #1b1c24;
    padding: 80px 0;
}
.ns-company-info .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}
.ns-company-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.ns-company-item {
    text-align: center;
    padding: 30px 20px;
}
.ns-company-item .item-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
}
.ns-company-item .item-icon img {
    width: 100%;
    height: auto;
}
.ns-company-item h4 {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}
.ns-company-item p {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    line-height: 1.5;
}

/* --- Mining Section --- */
.ns-mining-services {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.ns-mining-card {
    flex: 1;
    min-width: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}
.ns-mining-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.ns-mining-card:hover img {
    transform: scale(1.08);
}
.ns-mining-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}
.ns-mining-card .card-overlay h3 {
    font-size: 18px;
    font-weight: 600;
}
.ns-mining-card .card-overlay p {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 5px;
}

/* --- Mining Advantages --- */
.ns-advantages {
    background: #1b1c24;
    padding: 80px 0;
}
.ns-advantages .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}
.ns-adv-list {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.ns-adv-item {
    flex: 1;
    min-width: 280px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
}
.ns-adv-item .adv-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2051a2;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}
.ns-adv-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}
.ns-adv-item .check-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}
.ns-adv-item .check-item .fa {
    color: #2051a2;
    margin-right: 8px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* --- Factory Detail Sections --- */
.ns-factory-section {
    padding: 80px 0;
}
.ns-factory-section .inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}
.ns-factory-section .section-title {
    text-align: center;
    margin-bottom: 30px;
}
.ns-factory-section .section-title h2 {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}
.ns-factory-section .section-title p {
    font-size: 14px;
    color: #888;
    line-height: 1.7;
}
.ns-factory-section .section-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
}
.ns-factory-section .section-img {
    text-align: center;
    margin-bottom: 30px;
}
.ns-factory-section .section-img img {
    max-width: 100%;
    border-radius: 8px;
}
.ns-factory-section .section-text {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}
.ns-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}
.ns-service-grid .service-item {
    text-align: center;
    padding: 20px 15px;
    background: #f7f8fa;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.ns-map-section {
    background: #f7f8fa;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}
.ns-map-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}
.ns-map-section p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}
.ns-map-section a {
    color: #2051a2;
}
.ns-map-section img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}
.ns-tel-box {
    text-align: center;
    padding: 40px;
    background: #17181e;
    border-radius: 12px;
    margin: 40px 0;
}
.ns-tel-box .t1 {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 5px;
}
.ns-tel-box .t1 span {
    font-size: 24px;
    font-weight: 700;
    color: #2051a2;
}
.ns-tel-box .t2 {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 15px;
}
.ns-tel-box .t3 a {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #2051a2;
    color: #2051a2;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s;
}
.ns-tel-box .t3 a:hover {
    background: #2051a2;
    color: #fff;
}

/* --- Contact Form (NineSoft) --- */
.ns-contact-form {
    padding: 80px 0;
    background: #17181e;
}
.ns-contact-form .inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
}
.ns-contact-form .section-title {
    text-align: center;
    margin-bottom: 40px;
}
.ns-contact-form .section-title h2 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}
.ns-contact-form .section-title p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* --- IT Solution Process --- */
.ns-process {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.ns-process-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 30px 20px;
    background: #f7f8fa;
    border-radius: 12px;
    position: relative;
}
.ns-process-item .proc-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}
.ns-process-item .proc-icon img {
    width: 100%;
    height: auto;
}
.ns-process-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}
.ns-process-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}
.ns-process-arrow {
    display: flex;
    align-items: center;
    color: #ccc;
    font-size: 20px;
    flex-shrink: 0;
}

/* --- Platform Showcase (ab-biz override) --- */
.ab-biz .ab-conbox {
    display: block;
}
.ab-biz .ns-platform-slider {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

/* --- Platform Showcase --- */
.ns-platform-slider {
    margin-top: 50px;
    overflow: hidden;
}
.ns-platform-slider .platform-swiper {
    overflow: visible;
}
.ns-platform-slider .swiper-slide {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
    width: 620px;
    opacity: 0.45;
}
.ns-platform-slider .swiper-slide-active {
    opacity: 1;
    transform: scale(1.03);
    box-shadow: 0 16px 50px rgba(0,0,0,0.3);
}
.ns-platform-slider .swiper-slide-prev,
.ns-platform-slider .swiper-slide-next {
    opacity: 0.7;
}
.ns-platform-slider .swiper-slide:hover {
    opacity: 1;
}
.ns-platform-slider .swiper-slide img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}
.ns-platform-slider .swiper-slide:hover img {
    transform: scale(1.03);
}
.ns-platform-slider .slide-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px 22px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* --- Sub Page Header --- */
.ns-page-header {
    padding: 120px 0 60px;
    background: #17181e;
}
.ns-page-header .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}
.ns-page-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}
.ns-page-header p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

/* --- Privacy Page --- */
.ns-privacy {
    padding: 120px 0 80px;
}
.ns-privacy .inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}
.ns-privacy h1 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 30px;
}
.ns-privacy .privacy-content {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    white-space: pre-line;
}
.ns-privacy .privacy-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 25px 0 10px;
}

/* --- Responsive --- */
@media screen and (max-width: 1024px) {
    .ns-purchase-cards {
        gap: 20px;
    }
    .ns-company-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .timeline-item .timeline-content {
        flex-direction: column;
    }
    .timeline-item .timeline-img {
        width: 100%;
    }
    .ns-process {
        flex-wrap: wrap;
    }
    .ns-process-arrow {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    #logo .logo-emblem {
        height: 28px;
    }
    #logo .logo-text {
        font-size: 16px;
    }
    .ns-purchase {
        padding: 60px 0;
    }
    .ns-purchase-cards {
        flex-direction: column;
    }
    .ns-company-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .ns-adv-list {
        flex-direction: column;
    }
    .ns-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ns-modal {
        padding: 25px;
    }
    .ns-modal .step-item {
        flex-direction: column;
        text-align: center;
    }
    .ns-modal .step-num {
        margin: 0 auto 10px;
    }
    .timeline-list {
        padding-left: 40px;
    }
    .timeline-list::before {
        left: 10px;
    }
    .timeline-item::before {
        left: -36px;
    }
    .ns-page-header {
        padding: 90px 0 40px;
    }
    .ns-page-header h2 {
        font-size: 24px;
    }
    .ns-mining-services {
        flex-direction: column;
    }
    .ns-platform-slider .swiper-slide {
        width: 80vw;
    }
    .ns-platform-slider .swiper-slide img {
        height: 350px;
    }
    .ab-biz .ns-platform-slider {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
}

@media screen and (max-width: 500px) {
    .ns-company-grid {
        grid-template-columns: 1fr;
    }
    .ns-service-grid {
        grid-template-columns: 1fr;
    }
    .ns-platform-slider .swiper-slide {
        width: 88vw;
    }
    .ns-platform-slider .swiper-slide img {
        height: 260px;
    }
}
