/* 전체 width 관리 클래스 */
.bendit-container {
    max-width: 1440px;
    margin: 0 auto;
}

.service-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f9f9f9;
}

/* 상단 헤더 영역 */
.service-card .card-top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 24px 0px 24px;
    /* border-bottom: 1px solid #e9ecef; */
    /* 경계선 제거 */
    background-color: #f9f9f9;
    flex-shrink: 0;
    /* 높이가 줄어들지 않도록 고정 */
}

.service-card .card-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    /* 자식 요소가 부모 너비를 넘어가지 않도록 */
}

.service-card .card-logo {
    font-size: 1.5rem;
    color: #000;
    flex-shrink: 0;
    /* 로고 이미지와 아이콘 둘 다를 위한 스타일 */
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.service-card .card-text-info {
    min-width: 0;
}

.service-card .card-title,
.service-card .card-category {
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
}

.service-card .card-category {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.service-card .card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* SAVE 버튼 스타일 */
.service-card .btn-save {
    color: #6c757d;
    background-color: transparent;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card .btn-save:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.service-card .btn-save.active {
    color: #fff;
    background: #000;
    border-color: transparent;
    transform: translateY(-2px);
}

.service-card .btn-save.active:hover {
    transform: translateY(-3px);
}

/* 비회원 SAVE 버튼 스타일 */
.service-card .btn-save:not(.active) {
    color: #000;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.service-card .btn-save:not(.active):hover {
    color: #000;
    background-color: #e9ecef;
    border-color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-card .btn-save i {
    transition: all 0.3s ease;
}

.service-card .btn-save.active i {
    transform: scale(1.1);
}

/* SAVE 버튼 애니메이션 */
@keyframes savePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.service-card .btn-save.saving {
    animation: savePulse 0.6s ease-in-out;
}

.service-card .card-actions .btn-icon {
    color: #495057;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    line-height: 1;
}

.service-card .card-actions .btn-icon:hover {
    background-color: #f1f3f5;
}

/* 하단 이미지 갤러리 영역 */
.service-card .card-gallery-link {
    text-decoration: none;
    background-color: #f9f9f9;
    /* 갤러리 배경색을 흰색으로 통일 */
}

/* 카드 갤러리 링크 호버 효과 제거 */
.service-card .card-gallery-link:hover {
    text-decoration: none;
    color: inherit;
    background-color: #f9f9f9;
}

.service-card .card-img-gallery {
    display: flex;
    gap: 16px;
    padding: 24px 24px 55px 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.service-card .card-img-gallery::-webkit-scrollbar {
    display: none;
}

/* 반응형 이미지 크기 설정 (모바일 우선) */
.service-card .gallery-item {
    width: 200px;
    height: 350px;
    border-radius: 15px;
    object-fit: cover;
    flex-shrink: 0;
}

/* 태블릿 (768px 이상) */
@media (min-width: 768px) {
    .service-card .gallery-item {
        width: 220px;
        height: 440px;
    }
}

/* PC (992px 이상) */
@media (min-width: 992px) {
    .service-card .gallery-item {
        width: 300px;
        height: 520px;
    }
}

/* UI/UX 서비스 페이지 스타일 */

/* 검색 및 필터 영역 */
.search-filter-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 30px;
    border: 1px solid #e9ecef;
}

.search-container .input-group {
    max-width: 500px;
}

.search-container .form-control {
    border-radius: 8px 0 0 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.search-container .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.search-container .btn {
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* 카테고리 필터 버튼 */
.category-filters {
    margin-top: 1rem;
}

.category-filter-btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid #e9ecef;
    background: white;
    color: #6c757d;
    transition: all 0.2s ease;
}

.category-filter-btn:hover {
    border-color: #0d6efd;
    color: #0d6efd;
    background: #f8f9ff;
}

.category-filter-btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.category-filter-btn.active:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
}

/* 서비스 카드 스타일 */
.service-card {
    display: flex;
    flex-direction: column;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f0f2f5;
    position: relative;
}

/* 텍스트/버튼 오버레이 영역 */
.card-overlay {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    color: #fff;
    z-index: 2;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 60%);
}

.card-overlay .card-body {
    padding: 0;
}

.card-overlay .card-category {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.card-overlay .card-title {
    font-weight: 600;
}

.card-overlay .card-text {
    color: rgba(255, 255, 255, 0.9);
}

/* 배경 이미지 갤러리 */
.card-img-gallery {
    display: flex;
    gap: 16px;
    padding: 24px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow-x: auto;
    align-items: center;
    scrollbar-width: none;
}

.card-img-gallery::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    width: 160px;
    height: 320px;
    border-radius: 30px;
    object-fit: cover;
    flex-shrink: 0;
}

/* 서비스 상세 페이지 스타일 */
.service-image-container {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.service-image-container .image-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-image-container:hover .image-overlay {
    opacity: 1;
}

.service-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.service-info {
    padding: 1rem 0;
}

.service-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
}

.site-meta {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.service-description h5,
.service-features h5 {
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
}

.service-actions {
    margin-top: 2rem;
}

.service-actions .btn {
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 8px;
}

.analysis-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 30px;
    border: 1px solid #e9ecef;
    height: 100%;
}

.analysis-card h5 {
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
}

.analysis-card ul li {
    margin-bottom: 0.5rem;
}

.ux-analysis h3 {
    font-weight: 700;
    color: #212529;
    margin-bottom: 2rem;
}

/* 로딩 스피너 */
.spinner-border {
    color: #0d6efd;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .search-filter-container {
        padding: 1rem;
    }

    .search-container .input-group {
        max-width: 100%;
    }

    .category-filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .service-title {
        font-size: 2rem;
    }

    .service-actions .btn {
        /*width: 100%;*/
        margin-bottom: 0.5rem;
    }
}

/* 애니메이션 제거 */
/* @keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
} */

.service-card {
    /* animation: fadeIn 0.5s ease-out; */
    /* AOS 효과 완전 제거 */
}

/* 검색 결과 없음 메시지 */
.text-muted {
    font-size: 1.1rem;
    padding: 2rem 0;
}

/* uiux/services.php 전용 커스텀 스타일 */

/* service_list.css의 스타일 오버라이드를 방지하고 레이아웃을 조정 */
.search-category-container .categorySwiper {
    margin-bottom: 2rem !important;
}

/* 반응형 그리드 레이아웃 */
#service-list-container .row {
    margin: 0;
}

#service-list-container .col-6 {
    padding: 0.75rem;
}

/* 모바일 (2.5장 - 2장씩 배치) */
@media (max-width: 767.98px) {
    #service-list-container .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* 태블릿 (3장) */
@media (min-width: 768px) and (max-width: 991.98px) {
    #service-list-container .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* PC (4장) */
@media (min-width: 992px) {
    #service-list-container .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* uiux 페이지의 서비스 카드(.card)에 적용될 스타일 */
#service-list-container .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
}

#service-list-container .card:hover {
    transform: none !important;
}

.card-title a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

.card-title a:hover {
    color: #0d6efd;
}

/* 태그 스타일 */
.ux-features-tags .badge {
    font-size: 0.8em;
    padding: 0.4em 0.6em;
    margin-right: 4px;
    margin-bottom: 4px;
}

/* 이미지 컨테이너 */
.img-container {
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

/* Swiper 버튼 스타일 오버라이드 (필요시) */
.swiper-button-next,
.swiper-button-prev {
    color: #007bff;
}

/* 카드 내부 Swiper 스타일 */
.swiper-container {
    position: relative;
    width: 100%;
    height: 200px;
}

.swiper-container .swiper {
    width: 100%;
    height: 100%;
}

.swiper-container .swiper-slide {
    width: auto;
    height: 200px;
}

.swiper-container .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

/* Swiper 네비게이션 버튼 크기 조정 */
.swiper-container .swiper-button-next,
.swiper-container .swiper-button-prev {
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: #333;
}

.swiper-container .swiper-button-next:after,
.swiper-container .swiper-button-prev:after {
    font-size: 14px;
}

/* Swiper 페이지네이션 스타일 */
.swiper-container .swiper-pagination {
    bottom: 10px;
}

.swiper-container .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.8);
    opacity: 0.5;
}

.swiper-container .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #007bff;
}

/* 활성화된 카테고리 버튼 스타일 
.category-filter.active {
    background-color: #0d6efd !important;
    color: white !important;
    font-weight: bold;
}
*/
/* 가로형 카드 스타일 */
.service-card.horizontal {
    flex-direction: row;
    height: auto;
    min-height: 120px;
}

.service-card.horizontal .card-img-container {
    width: 100%;
    height: 100%;
    padding-top: 0;
    min-height: 120px;
    border-radius: 16px 0 0 16px;
}

.service-card.horizontal .card-img-top {
    border-radius: 16px 0 0 16px;
}

.service-card.horizontal .card-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 이미지가 없을 때의 플레이스홀더 */
.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 350px;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    color: #6c757d;
    flex-shrink: 0;
}

.no-image-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.no-image-placeholder span {
    font-size: 0.9rem;
    text-align: center;
}

/* 반응형 플레이스홀더 크기 */
@media (min-width: 768px) {
    .no-image-placeholder {
        width: 220px;
        height: 440px;
    }
}

@media (min-width: 992px) {
    .no-image-placeholder {
        width: 300px;
        height: 520px;
    }
}

/* Sticky 카테고리 컨테이너 */
.sticky-category {
    position: sticky;
    z-index: 1000;
    /*background: white;*/
    backdrop-filter: blur(10px);
    border-radius: 20px 20px 20px 20px;
    padding: 16px 0 16px 0;
    /* 상하 패딩 증가 */
    /*border-bottom: 1px solid #eee;*/
    margin-bottom: 20px;
    margin-top: 20px;
    /* 상단 여백 추가 */
    transition: top 0.3s ease;
}

/* 네비게이션이 sticky일 때 카테고리 위치 조정 */
.custom-bendit-nav.sticky-top+.container .sticky-category {
    top: 100px;
    /* 네비게이션 높이 + 추가 여백 증가 */
    /* 네비게이션 높이 + 추가 여백 */
}

/* 스크롤 시 네비게이션과 카테고리가 함께 고정되는 효과 */
@media (min-width: 768px) {
    .sticky-category {
        top: 100px;
        /* PC에서 네비게이션 높이 + 추가 여백 증가 */
        /* PC에서 네비게이션 높이 + 추가 여백 */
    }
}

@media (max-width: 767px) {
    .sticky-category {
        top: 100px;
        /* 모바일에서 네비게이션 높이 + 추가 여백 증가 */
        /* 모바일에서 네비게이션 높이 + 추가 여백 */
    }
}

/* 검색 필터 버튼 */
.search-filter-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    background-color: white;
    color: #6c757d;
    transition: all 0.2s ease;
}

.search-filter-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-filter-btn i {
    font-size: 16px;
}

/* 태그 스타일 */
.service-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.service-card .tag-badge {
    border: 2px solid #000;
    border-radius: 5px;
    background-color: transparent !important;
    color: #000 !important;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    display: inline-block;
    transition: all 0.2s ease;
}

.service-card .tag-badge:hover {
    background-color: #000 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* 전역 태그 뱃지 스타일 - 부트스트랩 badge 스타일 덮어쓰기 */
.tag-badge,
.badge.tag-badge {
    border: 2px solid #e1e1e1 !important;
    border-radius: 5px !important;
    background-color: transparent !important;
    color: #000 !important;
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    margin-right: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
    font-weight: normal !important;
    line-height: 1.2 !important;
}

.tag-badge:hover,
.badge.tag-badge:hover {
    background-color: #000 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* rounded-pill 클래스가 있는 경우에도 동일한 스타일 적용 */
.rounded-pill.tag-badge,
.badge.rounded-pill.tag-badge {
    border-radius: 5px !important;
}

/* 검색어 하이라이트 스타일 */
.search-highlight {
    background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
    color: white;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    animation: highlightPulse 2s ease-in-out infinite;
}

@keyframes highlightPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* 서비스 카드 설명 스타일 */
.service-card .card-description {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}



a:active {
    transform: none !important;
}

/* 카드 클릭 시 작아지는 효과 제거 */
.card:active {
    transform: none !important;
}

/* 이미지 클릭 시 작아지는 효과 제거 */
img:active {
    transform: none !important;
}

.service-card:hover {
    transform: none !important;
}

.service-card .card-img-gallery:hover {
    transform: none !important;
}

.service-card .gallery-item:hover {
    transform: none !important;
}

/* 컬렉션 버튼 스타일 */
/* services.php에서 사용하는 컬렉션 버튼 - 상대 위치 */
.service-card .card-actions .main-collection-btn {
    position: relative;
    top: auto;
    right: auto;
}

.service-card .main-collection-btn {
    position: absolute;
    top: 16px;
    right: 16px;
}

.main-collection-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-collection-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.main-collection-btn.active {
    background: #000;
    color: #fff;
}

.main-collection-btn.active:hover {
    background: #333;
}

.main-collection-btn i {
    font-size: 1rem;
}

.main-collection-btn span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .main-collection-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .main-collection-btn i {
        font-size: 0.9rem;
    }

    .main-collection-btn span {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .main-collection-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .main-collection-btn i {
        font-size: 0.85rem;
    }

    .main-collection-btn span {
        font-size: 0.75rem;
    }
}

/* 토스트 메시지 애니메이션 */
@keyframes slideInCenter {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes slideOutCenter {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}