* {
    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;
}

/* Programs Section */
.programs-section {
    padding: 80px 0;
    background-color: #fff;
}

/* Search Bar */
.search-bar {
    margin-bottom: 60px;
}

.search-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.search-input-group {
    display: flex;
    gap: 15px;
    max-width: 800px;
}

.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 50px;
    background-color: #4A90E2;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #357ABD;
}

/* Program Grid */
.program-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.program-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.program-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    width: 100%;
    height: 200px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
}

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-badge.active {
    background-color: #333;
    color: white;
}

.status-badge.recruiting {
    background-color: #ff9800;
    color: white;
}

.card-content {
    padding: 25px 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-info {
    list-style: none;
    margin-bottom: 20px;
}

.card-info li {
    display: flex;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.card-info li:last-child {
    border-bottom: none;
}

.info-label {
    min-width: 80px;
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #333;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-apply,
.btn-detail {
    padding: 12px 0;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-apply {
    background-color: #4A90E2;
    color: white;
}

.btn-apply:hover {
    background-color: #357ABD;
}

.btn-apply.recruiting {
    background-color: #ff9800;
}

.btn-apply.recruiting:hover {
    background-color: #e68900;
}

.btn-detail {
    background-color: #333;
    color: white;
}

.btn-detail:hover {
    background-color: #1a1a1a;
}

/* Status Buttons */
.btn-status {
    padding: 12px 0;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.btn-status.pending {
    background-color: #ff9800;
    color: white;
}

.btn-status.approved {
    background-color: #28a745;
    color: white;
}

.btn-status.rejected {
    background-color: #dc3545;
    color: white;
}

.btn-status.cancelled {
    background-color: #6c757d;
    color: white;
}

.btn-cancel {
    padding: 12px 0;
    border: 1px solid #dc3545;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background-color: white;
    color: #dc3545;
}

.btn-cancel:hover {
    background-color: #dc3545;
    color: white;
}

.btn-closed {
    padding: 12px 0;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    background-color: #6c757d;
    color: white;
    grid-column: span 2;
}

.btn-login-required {
    text-decoration: none;
    text-align: center;
    display: block;
    grid-column: span 2;
}

.status-badge.closed {
    background-color: #6c757d;
    color: white;
}

.status-badge.completed {
    background-color: #1976d2;
    color: white;
}

.btn-completed {
    padding: 12px 0;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    background-color: #1976d2;
    color: white;
    grid-column: span 2;
}

/* Search Result */
.search-result {
    margin-bottom: 30px;
    font-size: 15px;
    color: #666;
}

/* Empty Message */
.empty-message {
    text-align: center;
    padding: 100px 20px;
    color: #666;
    font-size: 16px;
}

/* Program Image */
.program-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 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;
}

.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;
}

a.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .program-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@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-title {
        font-size: 24px;
    }

    .search-input-group {
        flex-direction: column;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .card-actions {
        grid-template-columns: 1fr;
    }
}

/* 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;
    }

    .programs-section {
        padding: 50px 0;
    }

    .search-bar {
        margin-bottom: 40px;
    }

    .search-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .search-input {
        padding: 14px 18px;
        font-size: 14px;
    }

    .search-button {
        padding: 14px 35px;
        font-size: 14px;
    }

    .program-grid {
        gap: 20px;
        margin-bottom: 40px;
    }

    .program-card {
        border-radius: 10px;
    }

    .card-image {
        height: 180px;
    }

    .status-badge {
        top: 12px;
        right: 12px;
        padding: 6px 15px;
        font-size: 12px;
    }

    .card-content {
        padding: 20px 15px;
    }

    .card-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .card-info li {
        padding: 8px 0;
        font-size: 13px;
    }

    .info-label {
        min-width: 70px;
        font-size: 12px;
    }

    .info-value {
        font-size: 13px;
    }

    .btn-apply,
    .btn-detail {
        padding: 10px 0;
        font-size: 13px;
    }

    .page-btn {
        min-width: 35px;
        height: 35px;
        padding: 0 10px;
        font-size: 13px;
    }
}
