.college-listings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.college-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.college-filters input[type="text"],
.college-filters select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    flex: 1;
    min-width: 180px;
}

.college-filters .button {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-apply {
    background: #0070FF;
    color: white;
}

.btn-apply:hover {
    background: #0056CC;
}

.btn-clear {
    background: white;
    color: #0070FF;
    border: 1px solid #0070FF;
}

.btn-clear:hover {
    background: #f0f7ff;
}

.colleges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.college-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.college-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,112,255,0.15);
}

.college-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0070FF 0%, #0056CC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
    overflow: hidden;
}

.college-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.college-content {
    padding: 20px;
}

.college-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.college-city {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.college-city::before {
    content: "📍";
    margin-right: 5px;
}

.college-type {
    display: inline-block;
    background: #f0f7ff;
    color: #0070FF;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.college-courses {
    margin: 15px 0;
}

.college-courses-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.course-tag {
    background: #f0f7ff;
    color: #0070FF;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.college-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s;
}

.btn-view {
    background: #0070FF;
    color: white;
    font-size: 20px;
    padding: 12px;
}

.btn-view:hover {
    background: #0056CC;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    text-decoration: none;
    font-size: 20px;
}

.btn-whatsapp:hover {
    background: #1da851;
}

.btn-contact {
    background: #0070FF;
    color: white;
}

.btn-contact:hover {
    background: #0056CC;
}

.btn-edit {
    background: #ffb900;
    color: white;
}

.btn-edit:hover {
    background: #e6a800;
}

.btn-delete {
    background: #dc3232;
    color: white;
}

.btn-delete:hover {
    background: #c22929;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination button {
    padding: 8px 15px;
    border: 1px solid #0070FF;
    background: white;
    color: #0070FF;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.pagination button:hover {
    background: #0070FF;
    color: white;
}

.pagination button.active {
    background: #0070FF;
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #ddd;
    color: #999;
}

.pagination button:disabled:hover {
    background: white;
    color: #999;
}

.college-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-content {
    background: white;
    border-radius: 10px;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 0;
    width: 100%;
}

.close-popup,
.close-edit {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    background: white;
    z-index: 10;
}

.close-popup:hover,
.close-edit:hover {
    background: #f0f0f0;
    color: #333;
}

.popup-header {
    background: #0070FF;
    color: white;
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: start;
}

.popup-college-image {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: #0070FF;
}

.popup-college-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-header-info {
    flex: 1;
}

.popup-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.popup-location {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 15px;
}

.popup-type-mgmt {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.popup-badge {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.popup-body {
    padding: 30px;
}

.popup-courses {
    margin-bottom: 0;
}

.courses-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0070FF;
}

.courses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.courses-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.course-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #0070FF;
}

.course-item strong {
    color: #0070FF;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.popup-footer {
    display: flex;
    gap: 15px;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.popup-footer-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
    color: white;
}

.btn-whatsapp {
    background: #25D366;
}

.btn-whatsapp:hover {
    background: #1da851;
}

.btn-contact-footer {
    background: #0070FF;
    color: white;
}

.btn-contact-footer:hover {
    background: #0056CC;
}

.btn-more-info {
    background: #6c757d;
    color: white;
}

.btn-more-info:hover {
    background: #545b62;
}

.edit-popup-content {
    max-width: 700px;
    padding: 30px;
}

#edit-college-form {
    display: grid;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

#edit-college-form label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

#edit-college-form input[type="text"],
#edit-college-form textarea,
#edit-college-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

#edit-college-form textarea {
    min-height: 80px;
    resize: vertical;
}

.field-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

.image-upload-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

.image-upload-wrapper input[type="text"] {
    flex: 1;
}

.upload-image-btn {
    background: #0070FF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.upload-image-btn:hover {
    background: #0056CC;
}

#edit-college-form button[type="submit"] {
    background: #0070FF;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    margin-top: 10px;
}

#edit-college-form button[type="submit"]:hover {
    background: #0056CC;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

.add-college-form-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.add-college-form-container h2 {
    color: #0070FF;
    margin-bottom: 25px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .button {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
}

.button-primary {
    background: #0070FF;
    color: white;
}

.button-primary:hover {
    background: #0056CC;
}

.button-secondary {
    background: #6c757d;
    color: white;
}

.button-secondary:hover {
    background: #545b62;
}

#frontend-form-message {
    margin-top: 20px;
}

.success-message {
    padding: 12px 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 5px;
}

.error-message {
    padding: 12px 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .college-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .college-filters input[type="text"],
    .college-filters select {
        width: 100%;
        min-width: auto;
    }
    
    .colleges-grid {
        grid-template-columns: 1fr;
    }
    
    .popup-content {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .popup-header {
        flex-direction: column;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .popup-footer {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}