@charset "UTF-8";

/* Portfolio Page */
.portfolio-wrap {
    background: #fff;
}

.portfolio-toolbar {
	width:100%;
}

.portfolio-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-chip {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #374151;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.filter-chip:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.filter-chip.active {
    background: #015e18;
    border-color: #015e18;
    color: #fff;
}

/* Search Wrap */
.search_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: nowrap;
}

.search_wrap form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 800px;
    flex-wrap: nowrap;
    justify-content: center;
}

.s_select {
    min-width: 120px;
}

.s_select select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.s_select select:focus {
    outline: none;
    border-color: #02733E;
    box-shadow: 0 0 0 3px rgba(2, 115, 62, 0.1);
}

.s_input {
    flex: 1;
    max-width: 400px;
}

.s_input input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.s_input input:focus {
    outline: none;
    border-color: #02733E;
    box-shadow: 0 0 0 3px rgba(2, 115, 62, 0.1);
}

.s_btn button {
    padding: 10px 30px;
    background: linear-gradient(135deg, #02733E 0%, #078C03 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.s_btn button:hover {
    background: linear-gradient(135deg, #078C03 0%, #02733E 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 115, 62, 0.3);
}

.s_btn button:active {
    transform: translateY(0);
}

.s_btn {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.portfolio-card {
    border: 1px solid #eef2f7;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: #dbeafe;
    box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

.portfolio-thumb {
    display: block;
    position: relative;
    height: 190px;
    background: linear-gradient(135deg, rgba(1,94,24,0.10), rgba(0,123,255,0.08));
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(1, 94, 24, 0.9);
    font-weight: 800;
    letter-spacing: 1px;
}

.portfolio-thumb-fallback i {
    font-size: 28px;
}

.portfolio-body {
    padding: 14px 14px 16px;
}

.portfolio-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.portfolio-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(0, 123, 255, 0.12);
    color: #0b5ed7;
}

.portfolio-badge.badge-ai {
    background: rgba(111, 66, 193, 0.12);
    color: #6f42c1;
}

.portfolio-badge.badge-app {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.portfolio-date {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.portfolio-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 8px;
}

.portfolio-title a {
    text-decoration: none;
    color: #111827;
}

.portfolio-title a:hover {
    color: #015e18;
}

.portfolio-desc {
    font-size: 13px;
    color: #4b5563;
    margin: 0 0 10px;
    min-height: 40px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tag {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
}

.portfolio-links {
    display: flex;
    gap: 10px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    color: #111827;
    text-decoration: none;
    background: #fff;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.link-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.portfolio-pagination {
    margin-top: 18px;
}

.portfolio-pagination .page-link {
    color: #111827;
    border-color: #e5e7eb;
}

.page-link:hover:not(.active):not(.disabled) {
    background: #37a13e;
    color: white;
    border-color: #37a13e;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(55, 161, 62, 0.2);
}

.portfolio-pagination .page-item.active .page-link {
    background: #015e18;
    border-color: #015e18;
    color:#fff;
}

/* Pagination Styles */
.notice-pagination-wrapper {
    margin-top: 40px;
}

.pagination {
    gap: 8px;
}

.pagination .page-item {
    margin: 0 2px;
}

.pagination .page-link {
    color: #02733E;
    border: 1px solid #dee2e6;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination .page-link.active {
    background: linear-gradient(135deg, #02733E 0%, #078C03 100%);
    border-color: #02733E;
    color: white;
    box-shadow: 0 2px 8px rgba(2, 115, 62, 0.3);
}
.pagination .page-link:hover {
    background-color: #02733E;
    color: white;
    border-color: #02733E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(2, 115, 62, 0.2);
}


.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
    background-color: #fff;
    color: #6c757d;
}


@media (max-width: 991.98px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 검색 영역: 태블릿·모바일에서 셀렉트·입력·버튼이 잘리지 않도록 세로 배치 */
@media (max-width: 767.98px) {
    .search_wrap {
        flex-wrap: wrap;
        padding: 14px 12px;
        margin-bottom: 28px;
        align-items: stretch;
    }

    .search_wrap form {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        max-width: none;
        width: 100%;
        gap: 12px;
    }

    .s_select {
        width: 100%;
        min-width: 0;
    }

    .s_select select {
        width: 100%;
        font-size: 16px;
        min-height: 44px;
        box-sizing: border-box;
    }

    .s_input {
        flex: 0 0 auto;
        max-width: none;
        width: 100%;
        min-width: 0;
    }

    .s_input input {
        width: 100%;
        font-size: 16px;
        min-height: 44px;
        box-sizing: border-box;
    }

    .s_btn {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .s_btn button {
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        padding: 12px 16px;
    }
}

@media (max-width: 576px) {
    .portfolio-wrap {
        padding: 16px;
        border-radius: 12px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-thumb {
        height: 180px;
    }

    .search_wrap {
        padding: 12px 10px;
        margin-bottom: 20px;
    }

    .search_wrap form {
        gap: 10px;
    }

    .s_btn button {
        font-size: 13px;
        padding: 12px 14px;
    }

    .portfolio-search {
        max-width: 100%;
        margin-left: 0;
        min-width: 0;
    }
}

