/* University Grid */
.shc-university-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.shc-university-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.shc-university-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.shc-university-image {
    height: 200px;
    overflow: hidden;
}

.shc-university-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shc-university-card:hover .shc-university-image img {
    transform: scale(1.05);
}

.shc-university-content {
    padding: 20px;
}

.shc-university-content h3 {
    margin: 0 0 15px;
    font-size: 1.2em;
}

.shc-university-content h3 a {
    color: #333;
    text-decoration: none;
}

.shc-university-content h3 a:hover {
    color: #0066cc;
}

.shc-university-meta {
    margin-bottom: 15px;
}

.shc-meta-item {
    margin-bottom: 8px;
    display: flex;
}

.shc-meta-label {
    font-weight: bold;
    margin-right: 5px;
    min-width: 100px;
}

.shc-university-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.shc-view-button, .shc-apply-button {
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.shc-view-button {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.shc-view-button:hover {
    background: #e0e0e0;
}

.shc-apply-button {
    background: #0066cc;
    color: white;
    border: 1px solid #0055aa;
}

.shc-apply-button:hover {
    background: #0055aa;
}

/* Pagination */
.shc-pagination {
    margin: 30px 0;
    text-align: center;
}

.shc-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

.shc-pagination .page-numbers.current {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.shc-pagination .page-numbers:hover:not(.current) {
    background: #f0f0f0;
}

/* Featured Universities */
.shc-featured-universities {
    margin: 40px 0;
}

.shc-featured-universities h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0066cc;
    font-size: 2em;
}

/* Program Type List */
.shc-program-type-universities {
    margin: 40px 0;
}

.shc-program-type-universities h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0066cc;
    font-size: 2em;
}

/* Country Filter */
.shc-country-filter {
    margin: 40px 0;
}

.shc-country-filter h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0066cc;
    font-size: 2em;
}

.shc-country-search-form {
    max-width: 600px;
    margin: 0 auto 30px;
    display: flex;
    gap: 10px;
}

.shc-country-search-form .shc-form-group {
    flex: 1;
    margin: 0;
}

.shc-country-search-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.shc-search-button {
    padding: 10px 20px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shc-search-button:hover {
    background: #0055aa;
}

.shc-country-list {
    max-width: 800px;
    margin: 0 auto;
}

.shc-country-list h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #444;
}

.shc-country-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.shc-country-list li {
    margin: 0;
}

.shc-country-list a {
    display: block;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.shc-country-list a:hover {
    background: #0066cc;
    color: white;
}

/* Application Form */
.shc-application-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.shc-application-form-container h2 {
    margin-top: 0;
    color: #0066cc;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.shc-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.shc-form-section h3 {
    margin: 0 0 15px;
    color: #444;
}

.shc-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.shc-form-group {
    flex: 1;
    margin-bottom: 15px;
}

.shc-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.shc-form-group .required {
    color: #cc0000;
}

.shc-form-group input[type="text"],
.shc-form-group input[type="email"],
.shc-form-group input[type="tel"],
.shc-form-group input[type="date"],
.shc-form-group input[type="file"],
.shc-form-group select,
.shc-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.shc-form-group textarea {
    min-height: 100px;
}

.shc-form-submit {
    margin-top: 30px;
    text-align: center;
}

.shc-submit-button {
    padding: 12px 25px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shc-submit-button:hover {
    background: #0055aa;
}

/* Alerts */
.shc-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.shc-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.shc-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.shc-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Single University Template */
.shc-single-university {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.shc-university-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.shc-university-image {
    flex: 0 0 40%;
}

.shc-university-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.shc-university-info {
    flex: 1;
}

.shc-university-info h1 {
    margin-top: 0;
    color: #0066cc;
}

.shc-university-meta {
    margin-bottom: 20px;
}

.shc-meta-item {
    margin-bottom: 10px;
    display: flex;
}

.shc-meta-label {
    font-weight: bold;
    min-width: 150px;
    color: #555;
}

.shc-university-description {
    margin: 30px 0;
    line-height: 1.6;
}

.shc-university-courses h2 {
    color: #0066cc;
    border-bottom: 2px solid #.f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.shc-course-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.shc-course-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.shc-course-card h3 {
    margin-top: 0;
    color: #0066cc;
}

.shc-course-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.shc-course-meta-item {
    display: flex;
    flex-direction: column;
}

.shc-course-meta-label {
    font-weight: bold;
    font-size: 0.9em;
    color: #666;
}

.shc-course-description {
    margin: 15px 0;
    line-height: 1.6;
}

.shc-course-actions {
    text-align: right;
}

.shc-apply-now {
    display: inline-block;
    padding: 8px 15px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.shc-apply-now:hover {
    background: #0055aa;
}

.shc-application-form {
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .shc-university-header {
        flex-direction: column;
    }
    
    .shc-university-image {
        flex: 0 0 auto;
        margin-bottom: 20px;
    }
    
    .shc-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .shc-course-list {
        grid-template-columns: 1fr;
    }
    
    .shc-country-search-form {
        flex-direction: column;
    }
    
    .shc-country-list ul {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Status Badges */
.shc-status-pending {
    display: inline-block;
    padding: 3px 8px;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 3px;
    font-size: 0.9em;
}

.shc-status-approved {
    display: inline-block;
    padding: 3px 8px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 3px;
    font-size: 0.9em;
}

.shc-status-rejected {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Featured University Badge */
.shc-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #856404;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
}

/* Program Type Filters */
.shc-program-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.shc-program-filter {
    padding: 8px 15px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.shc-program-filter:hover, .shc-program-filter.active {
    background: #0066cc;
    color: white;
}

/* Country Search Results */
.shc-country-results {
    margin-top: 30px;
}

.shc-country-results h3 {
    color: #0066cc;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* No Results Message */
.shc-no-results {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 30px 0;
}

.shc-no-results p {
    margin: 0;
    color: #666;
    font-size: 1.1em;
}

/* Loading Animation */
.shc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,102,204,0.3);
    border-radius: 50%;
    border-top-color: #0066cc;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Admin Only Styles */
.shc-admin-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.shc-admin-actions a {
    display: inline-block;
    padding: 5px 10px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.8em;
    margin-right: 5px;
}

.shc-admin-actions a:hover {
    background: #e0e0e0;
}

/* Featured University Card */
.shc-university-card.featured {
    border: 2px solid #ffc107;
    position: relative;
}

/* Program Type Cards */
.shc-program-type-card {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.shc-program-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.shc-program-type-card h3 {
    margin-top: 0;
    color: #0066cc;
}

.shc-program-type-icon {
    font-size: 2.5em;
    color: #0066cc;
    margin-bottom: 15px;
}

/* Country Cards */
.shc-country-card {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.shc-country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.shc-country-card h3 {
    margin-top: 0;
    color: #0066cc;
}

.shc-country-flag {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* University Search */
.shc-university-search {
    max-width: 800px;
    margin: 0 auto 30px;
}

.shc-university-search-form {
    display: flex;
    gap: 10px;
}

.shc-university-search-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.shc-university-search-form button {
    padding: 12px 20px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shc-university-search-form button:hover {
    background: #0055aa;
}

/* University Filters */
.shc-university-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.shc-university-filter {
    padding: 8px 15px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.shc-university-filter:hover, .shc-university-filter.active {
    background: #0066cc;
    color: white;
}

/* Clear Filters */
.shc-clear-filters {
    display: inline-block;
    margin-left: 10px;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9em;
}

.shc-clear-filters:hover {
    text-decoration: underline;
}
