/* 플레이스 최적화 SEO 페이지 전용 스타일 */




/* 타임라인 섹션 */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    margin-left: -1.5px;
    content: '';
    background-color: #e9ecef;
}

.timeline > li {
    position: relative;
    min-height: 50px;
    margin-bottom: 50px;
    list-style-type: none;
}

.timeline > li:after, .timeline > li:before {
    display: table;
    content: ' ';
}

.timeline > li:after {
    clear: both;
}

.timeline > li .timeline-panel {
    position: relative;
    float: right;
    width: calc(100% - 90px);
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.timeline > li .timeline-panel:before {
    right: auto;
    left: -15px;
    border-right-width: 15px;
    border-left-width: 0;
}

.timeline > li .timeline-image {
    position: absolute;
    z-index: 10;
    left: 0;
    width: 80px;
    height: 80px;
    margin-left: 0;
    text-align: center;
    color: white;
    border-radius: 100%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.timeline > li:last-child {
    margin-bottom: 0;
}

.timeline .timeline-heading h4 {
    margin-top: 0;
    color: inherit;
}

.timeline .timeline-heading h4.subheading {
    text-transform: none;
}

.timeline .timeline-body > ul,
.timeline .timeline-body > p {
    margin-bottom: 0;
}

/* 서비스 카드 스타일 */
.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card .card-body {
    padding: 25px;
}

.service-card .card-title {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-card img {
    object-fit: cover;
}

/* 패키지 카드 스타일 */
.price-tag {
    padding: 10px 0;
    margin-bottom: 20px;
}

/* 성공 사례 카드 스타일 */
.case-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.case-badge {
    display: inline-block;
    margin-bottom: 10px;
    background-color: #FCB913 !important;
}

.case-stats {
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.stat-item {
    text-align: center;
}

.stat-item span {
    font-size: 1.2rem;
    color: #28a745 !important;
}


/* 커스텀 알림 스타일 */
.custom-alert {
    border-radius: 10px;
    background-color: #f8f9fa;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.alert-info {
    background-color: rgba(252, 185, 19, 0.1);
}

.alert-icon {
    flex-shrink: 0;
}

/* FAQ 섹션 스타일 */
.faq-section .accordion-item {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.faq-section .accordion-button {
    padding: 20px;
    font-weight: 600;
    font-size: 1.05rem;
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: white;
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.faq-section .accordion-body {
    padding: 20px;
    background-color: #f8f9fa;
}

/* CTA 섹션 스타일 */
.cta-section {
    background-color: var(--primary);
    color: white;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('https://via.placeholder.com/1920x500?text=CTA+Background') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.contact-form {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(252, 185, 19, 0.25);
}

/* 애니메이션 효과 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* 반응형 조정 */
@media (max-width: 992px) {
    .timeline > li .timeline-panel {
        width: calc(100% - 70px);
        padding: 15px;
    }

    .timeline > li .timeline-image {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .case-stats {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-item {
        margin-bottom: 10px;
        text-align: left;
    }

    .service-card .row {
        flex-direction: column;
    }

    .service-card .col-md-4 {
        width: 100%;
    }

    .service-card .col-md-8 {
        width: 100%;
    }

    .service-card img {
        height: 200px;
        width: 100%;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-header .lead {
        font-size: 1.2rem;
    }

    .timeline:before {
        left: 30px;
    }

    .timeline > li .timeline-image {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .timeline > li .timeline-panel {
        width: calc(100% - 65px);
    }

    .contact-form {
        padding: 20px !important;
    }
}

@media (max-width: 576px) {
    .service-card {
        margin-bottom: 20px;
    }

    .package-features li {
        font-size: 0.9rem;
    }

    .case-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .stat-item {
        text-align: center;
    }

    .stat-item span {
        font-size: 1rem;
    }

    .stat-item small {
        font-size: 0.7rem;
    }
}

/* 고정 상담 버튼 */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.floating-cta a {
    display: inline-block;
    background-color: #FFFFFF;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.floating-cta a:hover {
    transform: translateY(-3px);
}

.text-success {
    color: #28a745 !important;
}

/* 성공 사례 카드 동일한 높이 적용 CSS */
.success-cases-section .case-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 450px; /* 최소 높이 설정 */
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.success-cases-section .case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.success-cases-section .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

/* 카드 내용 부분이 동일한 공간을 차지하도록 설정 */
.success-cases-section .case-description {
    flex: 1;
    min-height: 72px; /* 최소 2줄 높이 확보 (36px × 2) */
    max-height: 108px; /* 최대 3줄까지 (36px × 3) */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 최대 3줄까지만 표시 */
    -webkit-box-orient: vertical;
}

/* 통계 영역이 하단에 고정되도록 설정 */
.success-cases-section .case-stats {
    margin-top: auto;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* 각 통계 항목의 크기를 일정하게 유지 */
.success-cases-section .stat-item {
    flex: 1;
    text-align: center;
    padding: 0 5px;
}

/* Owl Carousel 관련 스타일 */
.success-carousel .item {
    padding: 10px;
    height: 100%;
}

.owl-carousel .owl-stage {
    display: flex;
}

.owl-carousel .owl-item {
    display: flex;
    flex: 1 0 auto;
}

/* 커스텀 네비게이션 버튼 */
.carousel-controls .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-controls .btn:hover {
    background-color: var(--primary, #FCB913);
    color: white;
}

/* Owl Carousel 도트 스타일 수정 */
.owl-dots {
    margin-top: 20px !important;
}

.owl-dot span {
    background-color: #e0e0e0 !important;
    transition: all 0.3s ease !important;
}

.owl-dot.active span {
    background-color: var(--primary, #FCB913) !important;
    width: 25px !important;
}

/* 선택적 추가: 텍스트 크기 일관성 보장 */
.success-cases-section .h4 {
    height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.success-cases-section .location {
    height: 1.5em;
    overflow: hidden;
}

/* 숫자 영역 높이 통일 */
.success-cases-section .stat-item span.fw-bold {
    height: 1.5em;
    display: block;
}

.success-cases-section .stat-item small {
    height: 1.5em;
    display: block;
}

/* 반응형 조정 */
@media (max-width: 992px) {
    .success-cases-section .case-card {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .success-cases-section .case-card {
        min-height: 350px;
    }

    .success-cases-section .case-description {
        min-height: auto;
    }

    .success-cases-section .case-stats {
        flex-direction: column;
        align-items: flex-start;
    }

    .success-cases-section .stat-item {
        margin-bottom: 10px;
        text-align: left;
    }
}
