/* ===============================
   State Colleges Page Styles
================================ */

/* Header */
.state-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 60px 100px;
    text-align: center;
    color: white;
}

.state-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.state-header p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* State Selector */
.state-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.state-selector select {
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    min-width: 200px;
    background: white;
    cursor: pointer;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.state-selector select:focus {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.filter-apply-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    background: #f97316;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-apply-btn:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

.filter-clear-btn {
    padding: 14px 25px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    background: transparent;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-clear-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Colleges Container */
.colleges-container {
    padding: 50px 80px;
    background: #f8fafc;
    min-height: 60vh;
}

/* Colleges Grid */
.colleges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
}

/* College Card */
.state-college-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.state-college-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.college-name {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.college-type {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.college-type.government,
.college-type.govt {
    background: #dcfce7;
    color: #166534;
}

.college-type.private {
    background: #fef3c7;
    color: #92400e;
}

.college-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
}

.location-icon {
    font-size: 14px;
}

/* Course Tags */
.college-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.course-tag {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Stats */
.college-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.stat {
    background: #f8fafc;
    padding: 12px;
    border-radius: 10px;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

/* View Details Button */
.view-details-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 10px;
}

.no-results p {
    color: #64748b;
}

/* ===============================
   College Modal
================================ */

.college-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.college-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.college-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

#modalContent {
    padding: 30px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-right: 40px;
}

.modal-header h2 {
    font-size: 22px;
    color: #1e293b;
    line-height: 1.3;
}

.modal-type {
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.modal-type.government,
.modal-type.govt {
    background: #dcfce7;
    color: #166534;
}

.modal-type.private {
    background: #fef3c7;
    color: #92400e;
}

.modal-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 15px;
    margin-bottom: 25px;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h4 {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 600;
}

.modal-courses {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-course-tag {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
}

.modal-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.detail-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-icon {
    font-size: 24px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.detail-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 3px;
}

.detail-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .state-header {
        padding: 40px 20px;
    }
    
    .state-header h1 {
        font-size: 28px;
    }
    
    .colleges-container {
        padding: 30px 20px;
    }
    
    .colleges-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-details-grid {
        grid-template-columns: 1fr;
    }
    
    .state-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .state-selector select,
    .filter-apply-btn,
    .filter-clear-btn {
        width: 100%;
        max-width: 300px;
    }
}
