/* Page Wrapper */
.uni-page {
    padding: 2rem;
    font-family: "Inter", sans-serif;
    color: #333;
}

/* Filter Section */
.uni-filter-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.uni-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.uni-filter-field label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    font-size: 0.9rem;
}

.uni-input,
.uni-select {
    width: 100%;
    padding: 0.6rem;
    border: none;
    border-bottom: 2px solid #ddd;
}

.uni-filter-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.uni-btn-clear {
    background: #f3f3f3;
    border: 1px solid #ccc;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    text-decoration: none;
}

.uni-btn-apply {
    background: #4f46e5;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Cards Grid */
.uni-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.uni-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.uni-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.uni-card-header {
    text-align: center;
    padding: 1rem;
}

.uni-logo {
    max-width: 80px;
    height: auto;
    border-radius: 6px;
}

.uni-card-body {
    padding: 1rem;
    flex-grow: 1;
}

.uni-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.uni-card-title a {
    color: #1a0262 !important;
    text-decoration: none;
}
.uni-card-subtitle {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
}
.uni-card-subtitle a {
    color: #820b5c !important;
    text-decoration: none;
}
.uni-card-location {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.uni-web-link {
    color: #2563eb;
    text-decoration: none;
}

.uni-web-link:hover {
    text-decoration: underline;
}

.uni-card-footer {
    padding: 1rem;
    text-align: center;
}

.uni-btn-toggle {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.uni-btn-toggle:hover {
    background: #3730a3;
}

/* Modal */
.uni-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.5);
}

.uni-modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 1rem;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    position: relative;
}

.uni-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Course Table */
.uni-inner-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.uni-inner-table th,
.uni-inner-table td {
    padding: 0.8rem;
    border: 1px solid #ddd;
    font-size: 0.85rem;
}

.uni-inner-table th {
    background: #4f46e5;
    color: #fff;
    text-align: left;
}

.uni-inner-table tr:nth-child(even) {
    background: #f3f4f6;
}

/* No Data */
.uni-no-data {
    padding: 1rem;
    background: #fef2f2;
    border-radius: 8px;
    color: #991b1b;
    text-align: center;
}

/* Pagination */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination .page-item .page-link {
    color: #0d6efd; /* Primary color */
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    margin: 0 3px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.pagination .page-item:hover .page-link {
    background-color: #e7f1ff;
}
