/* style-website-success.css - 웹사이트 성공사례 페이지 전용 스타일 */

/* 페이지 헤더 */
.page-header {
    background-color: var(--primary);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    margin-top: 56px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('/theme/drsoft-new/img/website-success-header-bg.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    z-index: 0;
}

/* 성과 하이라이트 섹션 */
.highlights-section {
    padding: 60px 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.highlight-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(252, 185, 19, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.highlight-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.highlight-label {
    color: #666;
    font-size: 0.95rem;
}

/* 대표 성공사례 섹션 */
.featured-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.case-study-block {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.case-header {
    margin-bottom: 30px;
}

.case-badge {
    background-color: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.case-badge.b2b {
    background-color: #3498db;
}

.case-badge.medical {
    background-color: #e74c3c;
}

.case-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.case-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.case-challenge,
.case-solution,
.case-results {
    margin-bottom: 25px;
}

.case-challenge h5,
.case-solution h5,
.case-results h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.case-challenge h5 i {
    color: #e74c3c;
    margin-right: 8px;
}

.case-solution h5 i {
    color: #3498db;
    margin-right: 8px;
}

.case-results h5 i {
    color: #2ecc71;
    margin-right: 8px;
}

.case-solution ul {
    list-style: none;
    padding: 0;
}

.case-solution li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.case-solution li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-item {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.result-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.result-label {
    font-size: 0.9rem;
    color: #666;
}

/* 케이스 비주얼 */
.case-visual {
    position: relative;
}

.case-visual img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.before-after-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px 30px;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
}

.before-after-badge .before {
    color: #e74c3c;
    font-weight: 700;
}

.before-after-badge .vs {
    color: #666;
    font-size: 0.9rem;
}

.before-after-badge .after {
    color: #2ecc71;
    font-weight: 700;
}

.traffic-growth-chart {
    position: absolute;
    bottom: -30px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 200px;
}

.ranking-showcase {
    position: absolute;
    top: 20px;
    right: 20px;
}

.ranking-item {
    background: white;
    padding: 10px 20px;
    border-radius: 25px;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.ranking-item .rank {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.ranking-item .keyword {
    font-size: 0.95rem;
    color: #333;
}

/* 업종별 갤러리 섹션 */
.industry-gallery {
    padding: 80px 0;
}

.industry-tabs .nav-tabs {
    border: none;
    margin-bottom: 40px;
}

.industry-tabs .nav-link {
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 10px 30px;
    margin: 0 5px;
    color: var(--dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.industry-tabs .nav-link:hover {
    border-color: var(--primary);
}

.industry-tabs .nav-link.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.industry-card {
    height: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-10px);
}

.industry-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.industry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.industry-card:hover .industry-image img {
    transform: scale(1.05);
}

.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(252, 185, 19, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.industry-card:hover .industry-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.overlay-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.stats-preview {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.stats-preview .stat {
    text-align: center;
}

.stats-preview .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stats-preview .label {
    font-size: 0.9rem;
}

.btn-detail {
    background: white;
    color: var(--primary);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-detail:hover {
    transform: scale(1.05);
}

.industry-info {
    padding: 20px;
}

.industry-info .category {
    background-color: #f0f0f0;
    color: #666;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 10px;
}

.industry-info h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.industry-info p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* SEO 타임라인 섹션 */
.timeline-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.seo-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.seo-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary);
}

.timeline-item {
    position: relative;
    width: 100%;
    padding: 40px 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    padding-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    padding-left: 50px;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timeline-marker .month {
    font-weight: 700;
    font-size: 1.1rem;
}

.timeline-content h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.timeline-content li {
    padding: 5px 0;
    color: #666;
}

.timeline-result {
    margin-top: 15px;
}

/* 고객 후기 섹션 */
.testimonials-section {
    padding: 80px 0;
}

.testimonial-item {
    background: white;
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.client-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
}

.client-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.stars {
    color: #ffc107;
}

.testimonial-content p {
    line-height: 1.8;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-result {
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: var(--primary);
    font-weight: 600;
}

.testimonial-result i {
    margin-right: 8px;
}

/* 비교 분석 섹션 */
.comparison-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.comparison-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table .table {
    margin-bottom: 0;
}

.comparison-table th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    padding: 20px;
}

.comparison-table td {
    padding: 20px;
    vertical-align: middle;
}

.comparison-table .badge {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.comparison-graph {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* CTA 섹션 */
.cta-section {
    background-color: var(--primary);
    color: white;
    padding: 80px 0;
}

/* 반응형 디자인 */
@media (max-width: 992px) {
    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .highlight-card {
        flex-direction: column;
        text-align: center;
    }

    .case-study-block {
        padding: 25px;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-timeline::before {
        left: 30px;
    }

    .timeline-item .timeline-content {
        margin-left: 80px !important;
        margin-right: 0 !important;
        padding-left: 20px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-marker {
        left: 30px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }

    .highlights-section,
    .featured-section,
    .industry-gallery,
    .timeline-section,
    .testimonials-section,
    .comparison-section {
        padding: 60px 0;
    }

    .highlight-number {
        font-size: 1.5rem;
    }

    .case-title {
        font-size: 1.5rem;
    }

    .result-value {
        font-size: 1.3rem;
    }

    .traffic-growth-chart {
        position: static;
        margin-top: 20px;
    }

    .ranking-showcase {
        position: static;
        margin-top: 20px;
    }

    .industry-tabs .nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table {
        overflow-x: auto;
    }
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight-card,
.case-study-block,
.industry-card,
.timeline-item,
.testimonial-item {
    animation: fadeInUp 0.8s ease-out;
}

/* 이미지 플레이스홀더 */
.case-visual img:not([src]),
.industry-image:not(:has(img)),
.client-photo:not([src]) {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.case-visual img:not([src])::before,
.industry-image:not(:has(img))::before {
    content: '\f03e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 3rem;
}

.client-photo:not([src]) {
    background: #e0e0e0;
}

/* 호버 효과 */
.highlight-card,
.industry-card,
.testimonial-item {
    transition: all 0.3s ease;
}

.highlight-card:hover,
.industry-card:hover,
.testimonial-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* 스크롤 애니메이션 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 모달 커스터마이징 */
.modal-content {
    border-radius: 15px;
}

.modal-header {
    background-color: var(--primary);
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.modal-title {
    font-weight: 700;
}

/* 추가 유틸리티 클래스 */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}