* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb-home {
    color: #333;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

/* Page Banner */
.page-banner {
    background-image: url('/image/category_banner.png');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    width: 100%;
    aspect-ratio: 4.13 / 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 20px 40px;
    min-height: 300px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.page-banner .breadcrumb {
    background-color: transparent;
    padding: 0;
    font-size: 13px;
    color: #666;
    margin-bottom: 40px;
}

/* Admin Actions */
.admin-actions {
    background-color: #f8f9fa;
    padding: 20px 0;
}

.admin-actions .container {
    display: flex;
    justify-content: flex-end;
}

.btn-write {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1064D9;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-write:hover {
    background-color: #0d53b3;
}

/* Policy Section */
.policy-section {
    padding: 80px 0;
    background-color: #fff;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
}

.search-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
    white-space: nowrap;
}

.search-input-group {
    display: flex;
    gap: 15px;
    flex: 1;
}

.search-input {
    flex: 1;
    padding: 18px 25px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #4A90E2;
}

.search-button {
    padding: 18px 35px;
    background: linear-gradient(to bottom, #1064D9, #1C56A6);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.search-button:hover {
    opacity: 0.9;
}

.search-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Search Result */
.search-result {
    margin-bottom: 30px;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.search-result p {
    margin: 0;
    font-size: 15px;
    color: #666;
}

.search-result strong {
    color: #1064D9;
}

.btn-reset {
    margin-left: 15px;
    color: #666;
    text-decoration: underline;
    font-size: 14px;
}

.btn-reset:hover {
    color: #1064D9;
}

/* No Data */
.no-data {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 16px;
}

/* Policy List */
.policy-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

.policy-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.policy-item {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
}

.policy-item:hover {
    border-color: #4A90E2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.policy-link {
    display: block;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.policy-link::after {
    content: '›';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: #ccc;
    transition: all 0.3s;
}

.policy-item:hover .policy-link::after {
    color: #4A90E2;
    right: 25px;
}

.policy-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

.policy-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
}

.policy-date,
.policy-views {
    display: flex;
    align-items: center;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background-color: #f8f9fa;
    border-color: #4A90E2;
    color: #4A90E2;
}

.page-btn.active {
    background-color: #4A90E2;
    border-color: #4A90E2;
    color: white;
}

.page-btn.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

/* 청년포털 바로가기 섹션 */
.youth-portal-section {
    background-color: #f5f5f5;
    padding: 40px 0;
}

.portal-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.portal-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portal-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.portal-desc {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.btn-portal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(to bottom, #1064D9, #1C56A6);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.btn-portal:hover {
    opacity: 0.9;
}

.btn-portal svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1100px) {
    .page-title {
        font-size: 40px;
    }

    .page-banner {
        padding: 30px 20px 40px;
    }
}

@media (max-width: 900px) {
    .page-title {
        font-size: 38px;
    }

    .page-banner {
        padding: 25px 20px 40px;
    }
}

@media (max-width: 810px) {
    .page-title {
        font-size: 35px;
    }

    .page-banner {
        padding: 22px 20px 40px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        background-image: url('/image/m_category_banner.png');
        aspect-ratio: 4.13 / 1;
        min-height: 200px;
        padding: 30px 15px 30px;
    }

    .page-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .page-banner .breadcrumb {
        font-size: 12px;
        margin-bottom: 30px;
    }

    .banner-illustration img {
        max-height: 180px;
    }

    .search-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .search-title {
        font-size: 24px;
    }

    .search-input-group {
        width: 100%;
        /* flex-direction: column 제거 → 기본 row 유지 */
    }

    .search-button {
        padding: 18px 18px;
        gap: 0;
    }

    .search-button span {
        display: none;
    }

    .policy-row {
        grid-template-columns: 1fr;
    }

    .policy-link::after {
        font-size: 24px;
        right: 20px;
    }

    /* 청년포털 반응형 */
    .youth-portal-section {
        padding: 30px 0;
    }

    .portal-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 0;
    }

    .portal-text {
        align-items: center;
    }

    .portal-title {
        font-size: 18px;
    }

    .portal-desc {
        font-size: 13px;
    }

    .btn-portal {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Extra small screens (Z Fold outer screen, etc.) */
@media (max-width: 350px) {
    .container {
        padding: 0 15px;
    }

    .breadcrumb {
        font-size: 12px;
        padding: 12px 0;
    }

    .breadcrumb-separator {
        margin: 0 6px;
    }

    .page-banner {
        min-height: 150px;
        padding: 25px 10px 20px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .page-banner .breadcrumb {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .policy-section {
        padding: 50px 0;
    }

    .search-bar {
        gap: 15px;
        margin-bottom: 40px;
    }

    .search-title {
        font-size: 20px;
        margin-bottom: 0;
    }

    .search-input {
        padding: 14px 18px;
        font-size: 14px;
    }

    .search-button {
        padding: 14px 14px;
        font-size: 14px;
    }

    .search-icon {
        width: 18px;
        height: 18px;
    }

    .policy-list {
        gap: 15px;
        margin-bottom: 40px;
    }

    .policy-link {
        padding: 20px 15px;
    }

    .policy-category {
        padding: 5px 12px;
        font-size: 11px;
        margin-bottom: 12px;
    }

    .policy-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .policy-summary {
        font-size: 13px;
        line-height: 1.6;
    }

    .policy-link::after {
        font-size: 20px;
        right: 15px;
    }

    .pagination {
        gap: 8px;
    }

    .page-btn {
        min-width: 35px;
        height: 35px;
        padding: 0 10px;
        font-size: 13px;
    }
}
