@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@300;400;600;700&display=swap');
 body {
     font-family: 'Inter', sans-serif;
     background-color: #f8fafc;
     color: #0f172a;
     overflow: hidden;
    /* 모바일에서 주소창 포함 100vh 문제 해결 */
     height: 100dvh;
}
 .font-future {
     font-family: 'Orbitron', sans-serif;
}
/* --- 초슬림 커스텀 스크롤바 --- */
 ::-webkit-scrollbar {
     width: 3px;
     height: 3px;
}
 ::-webkit-scrollbar-track {
     background: transparent;
}
 ::-webkit-scrollbar-thumb {
     background: rgba(0, 0, 0, 0.1);
     border-radius: 10px;
}
 .dark-scroll::-webkit-scrollbar-thumb {
     background: rgba(255, 255, 255, 0.1);
}
 .dark-scroll::-webkit-scrollbar-thumb:hover {
     background: rgba(6, 182, 212, 0.5);
}
 .grid-bg-light {
     background-image: linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
     background-size: 30px 30px;
}
/* 패널 공통 스타일 - 모바일에서 transform 성능 최적화 */
 .glass-dark {
     background: rgba(10, 15, 30, 0.98);
     backdrop-filter: blur(20px);
     border-left: 1px solid rgba(255, 255, 255, 0.05);
     transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     will-change: width, transform;
}
 .menu-item:hover .submenu {
     display: block;
}
 .submenu {
     display: none;
}

.tech-tag {
            background: rgba(241, 245, 249, 1);
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 700;
            color: #475569;
            border: 1px solid #e2e8f0;
        }
/* 카드 호버 애니메이션 */
        .category-card {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .category-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
            border-color: #06b6d4;
        }

/* 테두리 회전 애니메이션 정의 */
    @keyframes spin-slow {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
    .animate-spin-slow {
        animation: spin-slow 4s linear infinite;
    }

    /* 카드 기본 설정 */
    .category-card-wrapper {
        position: relative;
        overflow: hidden;
        padding: 2px; /* 테두리 두께 */
        border-radius: 1.5rem; /* rounded-3xl */
        transition: all 0.3s ease;
    }

    /* [비선택 상태] */
    .category-card-wrapper {
        background: #f1f5f9; /* 기본 연한 회색 테두리 */
    }

    /* [선택(Active) 상태] */
    .category-card-wrapper.active {
        background: transparent;
    }
    
    /* 선택된 상태에서 회전하는 배경 레이어 */
    .category-card-wrapper.active::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: conic-gradient(
            from 0deg,
            #3b82f6, /* blue-500 */
            #06b6d4, /* cyan-500 */
            #8b5cf6, /* violet-500 */
            #ec4899, /* pink-500 */
            #3b82f6
        );
        animation: spin-slow 4s linear infinite;
        z-index: 0;
    }

    /* 내부 컨텐츠 영역 */
    .category-card-content {
        position: relative;
        z-index: 10;
        background: white;
        border-radius: calc(1.5rem - 2px);
        height: 100%;
        width: 100%;
    }

/* 검색결과 색상 */
.sch_word {color:red;}

/* 페이징 */
/* 페이지네이션 컨테이너 */
.pg_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    font-family: 'Pretendard', sans-serif;
}

.pg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 기본 페이지 번호 및 버튼 공통 스타일 */
.pg_page, .pg_current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

/* 일반 페이지 번호 (링크) */
.pg_page {
    color: #64748b; /* slate-500 */
    background-color: #ffffff;
    border: 1px solid #e2e8f0; /* slate-200 */
}

/* 마우스 호버 시 */
.pg_page:hover {
    background-color: #f8fafc; /* slate-50 */
    border-color: #0891b2; /* cyan-600 */
    color: #0891b2; /* cyan-600 */
}

/* 현재 페이지 강조 */
.pg_current {
    color: #ffffff;
    background-color: #0891b2; /* cyan-600 */
    border: 1px solid #0891b2;
    box-shadow: 0 4px 6px -1px rgba(8, 145, 178, 0.2);
}

/* '맨끝', '처음', '이전', '다음' 등 특수 버튼 */
.pg_end, .pg_start, .pg_next, .pg_prev {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8; /* slate-400 */
    background-color: #f8fafc;
}

/* 스크린 리더용 텍스트 숨김 */
.sound_only {
    display: none !important;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .pg_page, .pg_current {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}