.ucm-wrap { max-width: 1200px; margin: auto; padding: 20px; }
.uni-header { display: flex; gap: 40px; margin-bottom: 50px; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-card { border: 1px solid #ddd; padding: 20px; border-radius: 10px; text-align: center; }
#compare-bucket { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); background: #222; color: #fff; padding: 15px 30px; border-radius: 10px 10px 0 0; display: flex; gap: 20px; align-items: center; z-index: 9999; }

.ucm-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.ucm-compare-table th, .ucm-compare-table td {
    padding: 20px;
    text-align: center;
    border: 1px solid #f1f5f9;
}

.ucm-compare-table th {
    background: #2563eb;
    color: #fff;
    font-size: 1.1rem;
}

.ucm-compare-table td:first-child {
    background: #f8fafc;
    font-weight: bold;
    text-align: left;
    color: #475569;
}

.ucm-compare-table tr:hover {
    background-color: #f1f5f9;
}

/* University List Grid */
.ucm-uni-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.ucm-uni-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ucm-uni-card:hover {
    transform: translateY(-5px);
}

.ucm-uni-thumb {
    position: relative;
    height: 180px;
}

.ucm-uni-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ucm-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2563eb;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ucm-uni-details {
    padding: 20px;
}

.ucm-uni-details h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #1e293b;
}

.ucm-loc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.ucm-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.ucm-view-btn, .ucm-comp-btn {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.ucm-view-btn {
    background: #f1f5f9;
    color: #1e293b;
}

.ucm-comp-btn {
    background: #2563eb;
    color: #fff;
    border: none;
}

.remove-uni {
    transition: background 0.2s ease;
    display: inline-block;
}

.remove-uni:hover {
    background: #dc2626 !important; /* Darker red on hover */
    transform: scale(1.1);
}

.ucm-compare-table th {
    min-width: 200px; /* Ensures enough space for title and X button */
}

/* 1. Layout Wrapper */
.ucm-search-filter-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: start;
}

/* 2. Sidebar Container */
.ucm-sidebar-filter {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
    font-weight: 700;
}

#ucm-reset-filters {
    background: transparent;
    border: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

/* 3. Filter Groups */
.filter-group {
    margin-bottom: 25px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #475569;
    margin-bottom: 12px;
}

/* Search Input Styling */
.search-input-wrap {
    position: relative;
}

.search-input-wrap input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-input-wrap input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input-wrap .dashicons {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* Custom Checkboxes */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ucm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    transition: color 0.2s;
}

.ucm-checkbox-label:hover {
    color: #2563eb;
}

.ucm-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

/* Dropdown/Select Styling */
#ucm-filter-location {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

/* 4. Results Section & Loader */
.ucm-results-container {
    min-height: 400px;
}

#ucm-uni-ajax-container {
    transition: opacity 0.3s ease;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 5. Mobile Responsiveness */
@media (max-width: 992px) {
    .ucm-search-filter-wrapper {
        grid-template-columns: 1fr;
    }
    
    .ucm-sidebar-filter {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
}

/* FIX: Standardized ID for the Global Footer Bucket */
#ucm-bucket-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #1e293b !important;
    color: #fff !important;
    padding: 15px 30px !important;
    border-radius: 12px 12px 0 0 !important;
    display: none; /* Initially hidden until JS fadeIn() is triggered */
    gap: 20px;
    align-items: center;
    z-index: 99999 !important; /* Extremely high to stay above all themes */
    box-shadow: 0 -5px 25px rgba(0,0,0,0.3);
    min-width: 500px;
}

/* Force show when JS adds 'active' class */
#ucm-bucket-bar.active {
    display: flex !important;
}