/**
 * 랜딩 전용 보조 스타일 (Bootstrap 4.6 유틸·컴포넌트 보완)
 * 적용 범위: body.gt-landing-page
 * 브레이크포인트: 768px 단일 기준
 */

body.gt-landing-page .topbar {
    display: none !important;
}

body.gt-landing-page footer.footer6 {
    display: none !important;
}

/* sticky 상단 띠가 스크롤에 붙도록 (테마 #main-wrapper overflow 해제) */
body.gt-landing-page #main-wrapper {
    overflow: visible;
}

body.gt-landing-page .gt-landing-wrap {
    max-width: 100%;
}

/* 상단 프로모션 띠: 테마 .btn-primary(#316ce8)와 동일·스크롤 시 상단 고정 */
body.gt-landing-page .gt-landing-top-promo {
    position: sticky;
    top: 0;
    z-index: 1035;
    color: #fff;
    background-color: #316ce8;
    border-color: #316ce8;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

body.gt-landing-page .gt-landing-navbar .navbar-brand img {
    max-height: 40px;
    width: auto;
}

body.gt-landing-page .gt-landing-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.35;
}

body.gt-landing-page .gt-landing-hero-visual img {
    width: 100%;
    height: auto;
    display: block;
}

body.gt-landing-page .gt-landing-carousel .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    object-position: top center;
    background-color: #f8f9fa;
}

body.gt-landing-page .gt-landing-carousel .carousel-indicators li {
    background-color: #6c757d;
}

body.gt-landing-page .gt-landing-carousel .carousel-indicators .active {
    background-color: #007bff;
}

body.gt-landing-page .gt-landing-carousel .carousel-caption {
    position: static;
    padding-top: 1rem;
    padding-bottom: 0;
    color: #212529;
    text-align: left;
}

body.gt-landing-page .gt-landing-trust-pill {
    font-size: 0.875rem;
}

body.gt-landing-page .gt-landing-section-title {
    font-size: 1.75rem;
    font-weight: 700;
}

body.gt-landing-page section[aria-labelledby="gt-feature4-heading"] .card-body {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

body.gt-landing-page section[aria-labelledby="gt-feature4-heading"] .card-body p.small.text-gray {
    margin-bottom: 0;
}

/* 사용 시나리오(SCENE 01~03): 배지·제목·본문 약 2배 */
body.gt-landing-page section[aria-label="사용 시나리오"] .card-body .badge.badge-primary {
    font-size: 1.5rem;
    padding: 0.4rem 0.65rem;
}

body.gt-landing-page section[aria-label="사용 시나리오"] .card-body h3.h5 {
    font-size: 2.5rem;
    line-height: 1.2;
}

body.gt-landing-page section[aria-label="사용 시나리오"] .card-body p.small {
    font-size: 1.75rem;
    line-height: 1.4;
}

body.gt-landing-page .gt-landing-school-visual img {
    width: 100%;
    height: auto;
    display: block;
}

body.gt-landing-page .gt-landing-footer {
    border-top: 1px solid #dee2e6;
}

/* 고티처 기능 캐러셀: 인디케이터 양옆 화살표, 짙은 회색·아이콘만 */
body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-nav {
    flex-wrap: nowrap;
}

body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-nav .carousel-indicators {
    position: static;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

body.gt-landing-page #gtFeatureCarousel .carousel-indicators li {
    background-color: #495057;
}

body.gt-landing-page #gtFeatureCarousel .carousel-indicators li.active {
    background-color: #343a40;
}

body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-arrow.carousel-control-prev,
body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-arrow.carousel-control-next {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 2rem;
    height: 2rem;
    padding: 0;
    opacity: 1;
    flex-shrink: 0;
}

body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-arrow.carousel-control-prev:hover,
body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-arrow.carousel-control-next:hover,
body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-arrow.carousel-control-prev:focus,
body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-arrow.carousel-control-next:focus {
    opacity: 1;
}

body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-arrow .carousel-control-prev-icon,
body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-arrow .carousel-control-next-icon {
    width: 1.25rem;
    height: 1.25rem;
    background-color: transparent;
    background-size: 1.25rem 1.25rem;
}

body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-arrow .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23495057' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e");
}

body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-arrow .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23495057' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e");
}

/* 기능 캐러셀: 3초 자동 전환용 진행 바(캡처 이미지 호버 시 일시정지·타이머 이펙트) */
body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-timer {
    width: 50%;
    max-width: 50%;
}

body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-timer-track {
    height: 4px;
    background-color: #dee2e6;
    border-radius: 2px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, height 0.2s ease, border-radius 0.2s ease;
}

body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-timer-fill {
    display: block;
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background-color: var(--danger, #dc3545);
}

body.gt-landing-page #gtFeatureCarousel .carousel-item.active .gt-feature-carousel-timer-fill {
    animation: gt-feature-carousel-timer 3s linear forwards;
}

body.gt-landing-page #gtFeatureCarousel.gt-feature-carousel-paused .carousel-item.active .gt-feature-carousel-timer-fill {
    animation-play-state: paused;
}

body.gt-landing-page #gtFeatureCarousel.gt-feature-carousel-paused .carousel-item.active .gt-feature-carousel-timer-track {
    height: 6px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.35), 0 0 14px rgba(220, 53, 69, 0.45);
}

@keyframes gt-feature-carousel-timer {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.text-gray {
    color: #666 !important;
}

@media (max-width: 768px) {
    body.gt-landing-page .gt-landing-hero-title {
        font-size: 1.5rem;
    }

    body.gt-landing-page .gt-landing-navbar .btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    body.gt-landing-page .gt-landing-navbar .navbar-collapse .d-flex {
        flex-direction: column;
        align-items: stretch !important;
        width: 100%;
    }

    body.gt-landing-page .gt-landing-carousel .carousel-item img {
        max-height: 240px;
    }

    /* 기능 캐러셀: 모바일에서 화살표·인디케이터 한 줄 (Bootstrap 인디케이터 여백·세로 hit 영역 축소) */
    body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-nav .carousel-indicators {
        position: static !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        flex: 0 1 auto;
        align-items: center;
        justify-content: center;
        width: auto;
        max-width: calc(100% - 4.5rem);
        margin-left: 0.25rem !important;
        margin-right: 0.25rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.gt-landing-page #gtFeatureCarousel .carousel-indicators li {
        flex: 0 0 auto !important;
        width: 14px !important;
        height: 3px !important;
        margin-left: 2px !important;
        margin-right: 2px !important;
        border-top-width: 0 !important;
        border-bottom-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-arrow.carousel-control-prev,
    body.gt-landing-page #gtFeatureCarousel .gt-feature-carousel-arrow.carousel-control-next {
        flex: 0 0 auto;
    }
}

@media (min-width: 769px) {
    body.gt-landing-page .gt-landing-top-promo {
        font-size: 1.1875rem;
        padding-top: 0.875rem !important;
        padding-bottom: 0.875rem !important;
    }

    body.gt-landing-page .gt-landing-hero-title {
        font-size: 2.25rem;
    }

    body.gt-landing-page .gt-landing-section-title {
        font-size: 2rem;
    }
}
