/* Top Universities Specific Styles */

/* Hero Section for Universities Page */
.universities-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding-top: 120px;
    overflow: hidden;
}

.universities-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23008080" stop-opacity="0.1"/><stop offset="100%" stop-color="%23008080" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.universities-hero .hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.universities-hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #2f2504 !important;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.universities-hero .hero-description {
    font-size: 1.2rem;
    color: #666666 !important;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.universities-hero .hero-stats {
    margin-top: 3rem;
}

.universities-hero .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Filters Section */
.filters-section {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filters-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
}

.search-filter {
    flex: 1;
    min-width: 300px;
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background-color: #ffffff !important;
    color: #0c0c0c !important;
}

.search-box input:focus {
    border-color: #008080;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.search-box input::placeholder {
    color: #666666 !important;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e9ecef;
    background: white;
    color: #666666 !important;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: #008080;
    border-color: #008080;
    color: white !important;
    transform: translateY(-2px);
}

.sort-filter select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    background-color: white;
    color: #666666 !important;
    min-width: 150px;
}

.sort-filter select:focus {
    border-color: #008080;
}

/* Featured Universities */
.featured-universities {
    padding: 4rem 0;
    background: #f8f9fa;
    margin-top: 40px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.featured-university {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.featured-university:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #008080;
}

.university-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #008080, #00b3b3);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-university .university-logo {
    width: 120px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-university:hover .university-logo {
    transform: scale(1.05);
}

.featured-university .university-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-university h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2f2504 !important;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.university-location {
    color: #666666 !important;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.university-location i {
    color: #008080 !important;
}

.university-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.university-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666666 !important;
    font-size: 0.9rem;
    font-weight: 600;
}

.university-stats i {
    color: #008080 !important;
}

/* All Universities Grid */
.all-universities {
    padding: 4rem 0;
    background: white;
}

.universities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.university-card {
    background: white;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.university-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #008080;
}

.university-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
}

.university-card .university-logo {
    width: 100px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.university-card .university-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.university-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2f2504 !important;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.university-subtitle {
    font-size: 0.9rem;
    color: #666666 !important;
    margin-bottom: 1rem;
}

.university-body {
    padding: 0 2rem 2rem;
}

.university-description {
    color: #666666 !important;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.university-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666666 !important;
}

.detail-item i {
    color: #008080 !important;
    width: 16px;
}

.university-specializations {
    margin-bottom: 1.5rem;
}

.university-specializations h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2f2504 !important;
    margin-bottom: 0.5rem;
}

.specializations-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.specializations-list li {
    background: rgba(0, 128, 128, 0.1);
    color: #008080 !important;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.university-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #008080, #00b3b3);
    color: white !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
    color: white !important;
}

.btn-compare {
    background: transparent;
    color: #008080 !important;
    border: 2px solid #008080;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-compare:hover {
    background: #008080;
    color: white !important;
    transform: scale(1.1);
}

.btn-compare.active {
    background: #008080;
    color: white !important;
}

/* Pagination */
.universities-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.pagination-btn {
    background: linear-gradient(135deg, #008080, #00b3b3);
    color: white !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

.pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-info {
    color: #666666 !important;
    font-weight: 600;
}

.pagination-info span {
    color: #008080 !important;
    font-weight: 700;
}

/* University Comparison */
.university-comparison {
    padding: 4rem 0;
    background: #f8f9fa;
}

.comparison-wrapper {
    position: relative;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.comparison-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #008080;
}

.comparison-card h3 {
    color: #2f2504 !important;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.comparison-details {
    display: grid;
    gap: 0.75rem;
}

.comparison-details .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.comparison-details .detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #666666 !important;
    font-size: 0.9rem;
}

.detail-value {
    color: #2f2504 !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.clear-comparison {
    position: absolute;
    top: -10px;
    right: 0;
    background: #dc3545;
    color: white !important;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-comparison:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* University Rankings Section */
.university-rankings {
    padding: 4rem 0;
    background: white;
}

.rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.ranking-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ranking-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #008080;
}

.ranking-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #008080, #00b3b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white !important;
    transition: transform 0.3s ease;
}

.ranking-card:hover .ranking-icon {
    transform: scale(1.1);
}

.ranking-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2f2504 !important;
    margin-bottom: 1rem;
}

.ranking-card p {
    color: #666666 !important;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Admission Process Section */
.admission-process {
    padding: 4rem 0;
    background: #f8f9fa;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #008080, #00b3b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white !important;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2f2504 !important;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #666666 !important;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    color: #2f2504 !important;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666666 !important;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #008080 !important;
}

.modal-body {
    padding: 2rem;
}

.counsellor-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #2f2504 !important;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: white;
    color: #0c0c0c !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #008080;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666666 !important;
}

.submit-btn {
    background: linear-gradient(135deg, #008080, #00b3b3);
    color: white !important;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

/* Loading and Empty States */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: #666666 !important;
}

.loading-state i {
    font-size: 3rem;
    color: #008080 !important;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666666 !important;
}

.empty-state i {
    font-size: 4rem;
    color: #008080 !important;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #2f2504 !important;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .universities-hero .hero-title {
        font-size: 2.2rem;
    }
    
    .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-filters {
        justify-content: center;
    }
    
    .universities-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .university-details {
        grid-template-columns: 1fr;
    }
    
    .university-actions {
        flex-direction: column;
    }
    
    .universities-pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .rankings-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .universities-hero .hero-title {
        font-size: 1.8rem;
    }
    
    .search-filter {
        min-width: auto;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .featured-university,
    .university-card {
        margin: 0 1rem;
    }
    
    .university-header,
    .university-body {
        padding: 1.5rem;
    }
    
    .ranking-card,
    .process-step {
        padding: 1.5rem;
    }
}