body {
    font-family: "Pretendard", sans-serif;
    word-break: keep-all;
}

body.loading {
    overflow: hidden; /* 로딩 중에만 스크롤 방지 */
}

/* Loading Screen Styles */
#loading-screen {
    opacity: 1;
    transition: opacity 0.5s ease-out;
}
.animation-container {
    width: 200%;
}

.loading-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* External Arrow Icon Styles */
.external-arrow {
    width: 12px;
    height: 12px;
    background-size: 300% 300%;
    background-position: 100% 0%;
    transition: background-image 0.3s ease;
}

.external-arrow-white {
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/external_arrow_w.png');
    transition: background-position 0.4s;
}

.external-arrow-yellow {
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/external_arrow_y.png');
    transition: background-position 0.4s;
}

.external-arrow-red {
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/external_arrow_r.png');
    transition: background-position 0.4s;
}

.external-arrow-gray {
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/external_arrow_g.png');
    transition: background-position 0.4s;
}

.external-arrow-black {
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/external_arrow_k.png');
    transition: background-position 0.4s;
}

/* Internal Arrow Icon Styles */
.internal-arrow {
    width: 14px;
    height: 12px;
    background-size: contain;
    background-position: center;
    transition: background-image 0.3s ease;
}
.header-solution-container:hover .internal-arrow {
    background-position: 42px;
}
.internal-arrow-white {
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/internal_arrow_w.png');
    transition: background-position 0.4s;
}

.internal-arrow-yellow {
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/internal_arrow_y.png');
}

/* External Link Button Style */
.external-link-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 40px;
    height: 34px;
    border: 0.5px solid white;
    background: transparent;
    color: white;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: "Pretendard", sans-serif;
}

.external-link-button:hover {
    opacity: 1;
    border-color: #FFD65A;
}

/* Hover effect for buttons with external arrow */
.external-link-button:hover .external-arrow-white {
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/external_arrow_y.png');
    background-position: 0% 100%;
}

.external-link-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #FFD65A;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.external-link-button:hover::before {
    opacity: 0.05;
}

/* Internal Link Button Style */
.internal-link-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 40px;
    height: 34px;
    border: 0.5px solid white;
    background: transparent;
    color: white;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: "Pretendard", sans-serif;
}

.internal-link-button:hover {
    opacity: 1;
    border-color: #FFD65A;
}

/* Hover effect for buttons with internal arrow */
.internal-link-button:hover .internal-arrow-white,
.solution-image-container:hover .internal-arrow-white {
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/internal_arrow_y.png');
    background-position: 42px;
}
.internal-link-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #FFD65A;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.internal-link-button:hover::before {
    opacity: 0.05;
}

/* Solution Image Hover Effects */
.solution-image-container {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    font-size: 14px;
    cursor: pointer;
}

.solution-image {
    transition: transform 0.5s ease;
}

.solution-image-container:hover .solution-image {
    transform: scale(1.03);
}

.dim.solution-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.solution-image-container:hover::before {
    opacity: 1;
}

.solution-image-button {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: #F6F6F9;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 2;
}

.solution-image-container:hover .solution-image-button {
    opacity: 1;
    color: white;
}

.solution-image-container:hover .solution-image-button .internal-arrow-white {
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/internal_arrow_y.png');
}

/* Header Submenu Image Container */
.header-solution-container {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.6;
}

.header-solution-container:hover {
    opacity: 1;
}

.header-solution-container .solution-image {
    transition: transform 0.7s ease;
}

.header-solution-container:hover .solution-image {
    transform: scale(1.07);
}

.header-solution-container:hover .internal-arrow-white {
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/internal_arrow_y.png');
}

/* Solution Divider */
.solution-divider {
    width: 100%;
    height: 1px;
    background-color: #0D0D0E;
    opacity: 0.2;
}

/* Difference Section Styles */
.feature-item {
    position: relative;
}

.feature-item:hover {
    opacity: 0.8;
}

/* Feature Content Container */
.feature-content-container {
    transition: all 0.3s ease;
}

/* Feature Subtitle Animation */
.feature-subtitle {
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-bottom 0.4s ease;
}

.feature-item.active .feature-subtitle {
    /* max-height: 200px !important; */
    /* opacity: 0.7 !important; */
    margin-bottom: 20px;
    margin-top: 10px;
}

.feature-item:not(.active) .feature-subtitle {
    max-height: 0 !important;
    opacity: 0 !important;
    margin-bottom: 0;
}

/* Progress Line Styles */
.feature-progress-container {
    position: relative;
}

.feature-progress-fill {
    position: absolute;
    top: -1px; /* Center the 3px line on the 1px background */
    left: 0;
    transition: width 0.1s linear, opacity 0.3s ease;
}

/* Video Container */
#difference-video {
    transition: opacity 0.3s ease;
}


.thumbnail-mask {
    --notch-height: 13px;
    --_notch-height: var(--notch-height, 13px);
    --_notch-position-x: var(--notch-position-x, 75%);
    position: relative;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - var(--_notch-height)),
        calc(var(--_notch-position-x) + var(--_notch-height)) calc(100% - var(--_notch-height)),
        var(--_notch-position-x) calc(100% - var(--_notch-height)),
        calc(var(--_notch-position-x) - var(--_notch-height)) 100%,
        0 100%
    );
}
.thumbnail-mask-top {
    --notch-height: 12px;
    --_notch-height: var(--notch-height, 12px);
    position: relative;
    clip-path: polygon(
        0 var(--_notch-height),
        calc(75% - var(--_notch-height)) var(--_notch-height),
        75% 0,
        100% 0%,
        100% 100%,
        0 100%
    );
}
.thumbnail-mask-top2 {
    --notch-height: 12px;
    --_notch-height: var(--notch-height, 12px);
    position: relative;
    clip-path: polygon(
        0 var(--_notch-height),
        calc(75% - var(--_notch-height)) var(--_notch-height),
        75% 0,
        100% 0%,
        100% 100%,
        0 100%
    );
}


.header-thumbnail-mask {
    --notch-height: 5px;
    --_notch-height: var(--notch-height, 5px);
    --_notch-position-x: var(--notch-position-x, 75%);
    position: relative;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - var(--_notch-height)),
        calc(var(--_notch-position-x) + var(--_notch-height)) calc(100% - var(--_notch-height)),
        var(--_notch-position-x) calc(100% - var(--_notch-height)),
        calc(var(--_notch-position-x) - var(--_notch-height)) 100%,
        0 100%
    );
}

/* Newsroom Button Styles */
.newsroom-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 40px;
    height: 34px;
    border: 0.5px solid black;
    background: transparent;
    color: black;
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: "Pretendard", sans-serif;
    text-decoration: none;
}

.newsroom-button:hover {
    opacity: 1;
    border-color: #FC4E10;
    color: black;
    background: white;
}

.newsroom-button .newsroom-arrow {
    width: 14px;
    height: 12px;
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/internal_arrow_k.png');
    background-size: contain;
    background-position: center;
    transition: background-image 0.4s ease, background-position 0.4s ease;
}

.newsroom-button:hover .newsroom-arrow {
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/internal_arrow_r.png');
    background-position: 42px;
}

/* Custom Checkbox Styles */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    border: 1px solid rgba(255, 214, 90, 1);
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.custom-checkbox:hover {
    border-color: rgba(255, 238, 90, 0.8);
}

.custom-checkbox:checked {
    background: rgba(255, 214, 90, 1);
    border-color: rgba(255, 214, 90, 1);
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0D0D0E;
    font-size: 10px;
    font-weight: bold;
}

/* Form Validation Styles */
.form-input {
    transition: border-color 0.3s ease;
}

.form-input.error {
    border-color: rgba(255, 214, 90, 1) !important;
}

.form-input:focus {
    border-color: rgba(255, 214, 90, 1) !important;
}

.error-message {
    color: rgba(255, 214, 90, 1);
    font-size: 12px;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}


.solution-image-container2 {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    font-size: 14px;
}

.solution-image-container2:hover .solution-image {
    transform: scale(1.03);
}

.solution-image-container2:hover::before {
    opacity: 1;
}

/* Feature Toggle Animation Improvements */
.feature-subtitle {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, margin-top 0.3s ease-in-out, margin-bottom 0.3s ease-in-out;
}

.chevron-icon {
    transition: transform 0.3s ease-in-out;
}

/* Line Graphic Styles */
.line {
    height: 9.5px;
    width: 100%;
    display: flex;
    align-items: stretch;
    color: black;
    position: relative;
    opacity: 0.5;
}

.seg {
    flex-basis: 0;
    position: relative;
}

.seg-left {
    flex: 2.5 1 0;
}

.seg-right {
    flex: 1 1 0;
}

.bottom-line {
    width: 100%;
    height: 1px;
    background: #000;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.top-line {
    width: 100%;
    height: 1px;
            background: #000;
            position: absolute;
            left: 0;
            right: 0;
            top: -1px;
            margin-left: -0.5px;;
        }

        .seg-mid {
            width: 14px;
            position: relative;
            flex: 0 0 auto;
        }

        .diag {
            position: absolute;
            left: 0;
            bottom: 0;
            width: 17.20465053px;
            height: 1px;
            background: #000;
            transform-origin: left bottom;
            transform: rotate(-35.53767779deg) scaleY(0.95);
            will-change: transform;
        }

/* News Card Hover Effects */
.news-card {
    cursor: pointer;
}

.news-card:hover .read-more-btn span {
    color: #000 !important;
}

.news-card:hover .read-more-btn .external-arrow {
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/external_arrow_r.png') !important;
    background-position: 0% 100%;
}

.news-card:hover .solution-image {
    transform: scale(1.08);
}

/* Financial Toggle Styles */
.financial-content {
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, overflow 0.5s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.financial-content:not(.collapsed) {
    max-height: 1000px;
    opacity: 1;
    overflow: visible;
}

.financial-toggle-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.financial-toggle-btn svg,
.financial-toggle-btn .chevron-icon {
    transition: transform 0.5s ease-in-out;
    transform: rotate(90deg); /* 기본 상태: 아래쪽을 향함 */
}

/* Position Item Hover Effects */
.position-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.position-item h3 {
    transition: all 0.3s ease;
}
.position-item:hover h3 {
    opacity: 0.5;
}
.position-item:hover .external-arrow-black {
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/external_arrow_r.png');
    background-position: 0% 100%;
}

.position-item:hover .internal-arrow-black {
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/internal_arrow_y.png');
    background-position: 42px;
}

.internal-arrow-black {
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/internal_arrow_k.png');
}

/* How We Work Styles */
.how-we-work-swiper {
    overflow: hidden;
}

.how-we-work-swiper .swiper-slide {
    width: auto;
    display: flex;
    justify-content: center;
}

/* FAQ Styles */
.faq-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-question:hover {
    color: #fc4e10 !important;
}

.faq-chevron {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

/* Benefits Grid Hover Effects */
.benefits-grid .benefit-item {
    transition: all 0.3s ease;
}

.benefits-grid .benefit-item:hover {
    transform: translateY(-5px);
    background-color: #373745;
}

/* Custom Select Styles */
select.form-input {
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23b3b2b9' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0 center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

select.form-input option {
    background-color: #19191C;
    color: #b3b2b9;
}

/* Disclosure and Notice Link Hover Effects */
.disclosure-link:hover .external-arrow,
.notice-link:hover .external-arrow {
    background-image: url('/wp-content/themes/seoulrobotics-v2/img/external_arrow_r.png') !important;
    background-position: 0% 100%;
}
.notice-link h3,
.disclosure-link h3 {
    transition: all 0.3s ease;
}
.notice-link:hover h3,
.disclosure-link:hover h3 {
    opacity: 0.5;
}
.notice-link:hover h3 {
    opacity: 0.5;
}

/* ATS Use Cases Swiper Styles */
.ats-use-cases-swiper {
    overflow: hidden;
}

.ats-use-cases-swiper .swiper-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.ats-use-cases-swiper .swiper-slide {
    width: auto;
    display: flex;
    justify-content: center;
}

.ats-use-case-card {
    width: 320px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


/* Figma 디자인에 맞는 폰트 설정 */
.ats-use-case-card {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
}

.ats-use-case-card .number {
    opacity: 0.6;
    font-size: 14px;
    line-height: 1;
}

.ats-use-case-card .title {
    color: #0d0d0e;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -0.72px;
}

.ats-use-case-card .description {
    color: #252527;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -0.64px;
    opacity: 0.7;
}


/* Hamburger Menu Styles */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 60;
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
    position: absolute;
}

.hamburger-line:nth-child(1) {
    top: 3px;
}

.hamburger-line:nth-child(2) {
    top: 9px;
}

.hamburger-line:nth-child(3) {
    top: 15px;
}

/* Hamburger to X Animation */
.hamburger-icon.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger-icon.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    display: none;
}

/* Mobile Menu Button - Hidden by default */
#mobile-menu-button {
    display: none;
    position: relative;
    z-index: 60;
}

/* Logo z-index */
.logo-container {
    position: relative;
    z-index: 70;
}

/* EN Button z-index */
.en-button {
    position: relative;
    z-index: 70;
}

/* Mobile menu text animation */
.mobile-menu-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.mobile-menu-text.animate {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1023px) {
    #mobile-menu-overlay {
        display: block;
    }
    
    /* Show mobile menu button on mobile */
    #mobile-menu-button {
        display: block !important;
    }
    

    /* Mobile typography adjustments */
    .mobile-text-responsive {
        font-size: 16px !important;
        line-height: 1.6 !important;
        tracking: -0.64px !important;
    }

    /* Mobile spacing adjustments */
    .mobile-spacing-responsive {
        gap: 30px !important;
    }

    /* Mobile padding adjustments */
    .mobile-padding-responsive {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Mobile width adjustments */
    .mobile-width-responsive {
        width: 100% !important;
    }

    /* Mobile feature item adjustments */
    .feature-item .chevron-container {
        height: 29px !important;
    }

    .feature-item .feature-content {
        font-size: 22px !important;
        line-height: 1.3 !important;
        tracking: -0.66px !important;
    }

    .feature-item .feature-subtitle {
        font-size: 16px !important;
        line-height: 1.6 !important;
        tracking: -0.64px !important;
    }
}


.text-animation>span {
    display: inline-block;
    margin-top: -2px;
}

.text-animation>span .ta-viewport {
    position: relative;
    display: inline-block;
    height: 1em;
    /* visible window = one line */
    line-height: 1em;
    overflow: hidden;
    /* crop to one line */
    vertical-align: middle;
}

/* Stack that moves as a single unit */
.text-animation>span .ta-viewport .ta-stack {
    display: block;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    /* show top line initially */
    transition: transform .4s cubic-bezier(.33, 1, .68, 1);
}

/* Each line has identical height; no stagger */
.text-animation>span .ta-viewport .ta-line {
    display: block;
    white-space: nowrap;
    height: 1em;
    line-height: 1em;
}

/* Hover: slide the stack up by two line-heights so bottom line shows */
.text-animation:hover>span .ta-viewport .ta-stack {
    transform: translate3d(0, -70%, 0);
}

.solution-image-container:hover .ta-viewport .ta-stack,
.news-card:hover .ta-viewport .ta-stack,
.position-item:hover .ta-viewport .ta-stack {
    transform: translate3d(0, -70%, 0);
}

@media (prefers-reduced-motion: reduce) {
    .text-animation:hover>span .ta-viewport .ta-stack {
        transition: none;
        transform: translate3d(0, 0, 0);
    }
}