/* WordPress Widget Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.widget-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.widget-header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #0052A5 0%, #003d7a 100%);
    color: white;
}

.university-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    background: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.university-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

/* Quick Filters */
.quick-filters {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #0052A5;
    background: white;
    color: #0052A5;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #0052A5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 82, 165, 0.3);
}

.filter-btn.active {
    background: #0052A5;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 82, 165, 0.3);
}

/* Search Box */
.search-box {
    padding: 20px;
    background: white;
    position: relative;
}

#program-search {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#program-search:focus {
    outline: none;
    border-color: #0052A5;
}

.search-icon {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #999;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    padding: 0 20px 20px;
}

.programs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.programs-table thead {
    background: #0052A5;
    color: white;
}

.programs-table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.programs-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.programs-table tbody tr:hover {
    background-color: #f8f9fa;
}

.programs-table tbody tr.hidden {
    display: none;
}

.programs-table td {
    padding: 15px 10px;
    font-size: 14px;
}

/* Logo Column */
.td-logo {
    width: 60px;
}

.table-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}

.logo-placeholder-small {
    width: 40px;
    height: 40px;
    background: #0052A5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* University Column */
.td-university {
    color: #0052A5;
    font-weight: 500;
}

/* Program Column */
.td-program {
    font-weight: 500;
    color: #333;
}

/* Level & Language */
.td-level,
.td-language {
    color: #666;
}

/* Price Columns */
.td-price {
    text-align: right;
}

.price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 13px;
}

.td-discounted {
    text-align: right;
}

.price-discounted {
    color: #0052A5;
    font-weight: 700;
    font-size: 16px;
}

/* Apply Button */
.td-apply {
    text-align: center;
}

.btn-apply {
    display: inline-block;
    padding: 8px 20px;
    background: #0052A5;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    background: #003d7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 82, 165, 0.3);
}

/* Results Info */
.results-info {
    padding: 15px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

#results-count {
    font-weight: 700;
    color: #0052A5;
}

/* Responsive */
@media (max-width: 768px) {
    .university-title {
        font-size: 20px;
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .programs-table {
        font-size: 12px;
    }

    .programs-table th,
    .programs-table td {
        padding: 10px 5px;
    }

    .table-logo {
        width: 30px;
        height: 30px;
    }

    .btn-apply {
        padding: 6px 12px;
        font-size: 12px;
    }
}