/* 헤더 섹션 */
/* 헤더 섹션 */
.page-header {
    background-color: var(--primary);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('https://via.placeholder.com/1920x500?text=Place+SEO+Background') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header .lead {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.6;
}

/* 페이지 헤더 최소화 */
.page-header-minimal {
    background: var(--primary);
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-top: 80px;
    font-weight: bold;
}

.page-header-minimal .breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
}

.page-header-minimal .breadcrumb-item {
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: white;
    opacity: 0.8;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    opacity: 1;
}

.breadcrumb-item.active {
    color: white;
}

/* 블로그 카드 컴포넌트 */
.blog-card {
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-card-img {
    height: 200px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.blog-card-content {
    padding: 25px;
}

/* 후기 카드 컴포넌트 */
.testimonial-card {
    padding: 30px;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    margin: 15px;
}

/* FAQ 아코디언 컴포넌트 */
.accordion-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

/* FAQ 아코디언 */
.accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: var(--light-gray);
    font-weight: bold;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

/* 서비스 카드 스타일링 */
.services-section {
    background-color: white;
    padding: 60px 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;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card .card-body {
    padding: 20px;
}

.service-card .card-title {
    color: var(--secondary);
    margin-bottom: 10px;
}

.service-card img {
    object-fit: cover;
}

/* 반응형 조정 */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 20px;
    }

    .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%;
    }
}

/* 결과 카드 컴포넌트 */
.results-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.results-image {
    width: 100%;
    border-radius: 10px;
}

/* 버튼 그룹 컴포넌트 */
.btn-group-custom {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .btn-group-custom {
        flex-direction: column;
    }
}

/* 아이콘 박스 컴포넌트 */
.icon-box {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.icon-box .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.icon-box .content {
    flex-grow: 1;
}

/* 이미지 섹션 컴포넌트 */
.img-section {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 통계 아이템 컴포넌트 */
.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
}

/* 리뷰 카드 스타일링 */
.testimonials-section {
    background-color: var(--light-gray);
    padding: 60px 0;
}

.testimonial-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.testimonial-card .fas,
.testimonial-card .far,
.testimonial-card .fa-star-half-alt {
    color: var(--primary);
}

/* 반응형 조정 */
@media (max-width: 768px) {
    .testimonial-card {
        margin-bottom: 20px;
    }
}

/* 모달 z-index 문제 해결을 위한 CSS */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999; /* 매우 높은 z-index 값 설정 */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: fixed; /* 위치 고정 */
    top: 0;
    left: 0;
    z-index: 10000; /* 모달 오버레이보다 더 높게 설정 */
    pointer-events: none; /* 클릭 이벤트가 배경으로 전달되도록 설정 */
}

.modal-container {
    background-color: white;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh; /* 화면 높이의 90%로 제한 */
    overflow-y: auto; /* 내용이 많을 경우 스크롤 허용 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    pointer-events: auto; /* 컨테이너 내부는 클릭 이벤트 활성화 */
    position: relative; /* 상대 위치 설정 */
    z-index: 10001; /* 가장 높은 z-index */
}

.modal-header {
    background-color: var(--primary);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.modal-title {
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
}

/* 모달 활성화 클래스 */
.modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* 모달이 열렸을 때 페이지 스크롤 방지 */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* 폼 스타일 */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(252, 185, 19, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* 모바일 환경에서의 조정 */
@media (max-width: 576px) {
    .modal-container {
        max-width: 95%;
        margin: 0 2.5%;
    }
}

/* 컴팩트한 풋터 스타일 */
.mobile-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* 풋터 로고 & 소셜 */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ecf0f1;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #FCB913;
    color: #2c3e50;
    transform: translateY(-3px);
}

/* 풋터 섹션 공통 */
.footer-links h4,
.footer-info h4,
.footer-business h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FCB913;
}

.footer-links ul,
.footer-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-info li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #FCB913;
}

.footer-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-info i {
    color: #FCB913;
    width: 16px;
}

.footer-business p {
    color: #bdc3c7;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* 풋터 하단 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #95a5a6;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #FCB913;
}

/* 플로팅 CTA 버튼 */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background-color: #FCB913;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(252, 185, 19, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #f39c12;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(252, 185, 19, 0.4);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .mobile-footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .floating-cta {
        bottom: 20px;
        right: 20px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* 태블릿 반응형 */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 다크모드 대응 */
@media (prefers-color-scheme: dark) {
    .mobile-footer {
        background-color: #1a1d21;
        border-top: 1px solid #2c3e50;
    }

    .social-icons a {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .footer-bottom {
        border-top-color: rgba(255, 255, 255, 0.05);
    }
}