/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
}

/* Section Styles */
.section-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0d6efd;
}

/* Hero Section */
.hero-section {
    background-color: #f0f7ff;
    border-radius: 10px;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

/* Stats Section */
.stats-section {
    padding: 3rem 0;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0d6efd;
}

.stats-label {
    font-size: 1.1rem;
    color: #6c757d;
}

.stats-icon {
    color: #0d6efd;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.card-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 4px;
    height: 50%;
    background-color: var(--bs-primary);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Navigation Tabs */

.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #495057;
    border-bottom-color: #dee2e6;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    background-color: transparent;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 4px;
}

.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-light {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border: 1px solid #dee2e6;
}

/* University Card */
.university-logo-placeholder {
    background-color: #f8f9fa;
    color: #6c757d;
    border-radius: 5px;
}

/* Filter Sidebar */
.filter-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}



.pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Search Box */
.search-section {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-radius: 10px;
}

/* Social media buttons */
.btn-sm.btn-outline-primary.rounded-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
}

/* Footer */
footer {
    border-top: 5px solid #0d6efd;
}

footer a {
    text-decoration: none;
    transition: all 0.2s ease;
}

footer a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* List item styles */
.list-unstyled li {
    margin-bottom: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
        margin-right: 0.5rem;
    }
}


.nav-tabs .nav-link.active {
    color: var(--bs-primary);
    border-bottom: 2px solid var(--bs-primary);
    background-color: transparent;
}

/* Example: add a subtle shadow only while stuck */
#universityTabs{
    transition: padding background-color 0.3s ease;
}
#universityTabs.is-stuck {
    background-color: #fff;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
}

.nav-tabs, .nav-tabs .nav-link {
    border-radius: 0px;
}

.expandable {
    overflow: hidden;                 /* keep content inside while sliding   */
    transition: max-height 0.35s ease, opacity 0.35s ease;
    max-height: var(--preview-h, 8.4em);  /* ≈ 4 text lines @1.2em line‑height */
    opacity: 1;
  }
  
  .expandable.is-collapsed {
    max-height: var(--preview-h, 8.4em);
    opacity: 1;
  }
  
  .expandable.is-expanded {
    max-height: 9999px;               /* big enough to cover any length      */
    opacity: 1;
  }

  .expandable {
    transition: opacity 0.25s ease;
  }
  
  .expandable.is-collapsed { opacity: 1; }
  .expandable.is-expanded  { opacity: 1; }
  

  .btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-focus-shadow-rgb: 93, 135, 255;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--bs-primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--bs-primary);
    --bs-gradient: none;
  }

  .btn-outline-secondary {
    --bs-btn-color: var(--bs-secondary);
    --bs-btn-border-color: var(--bs-secondary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-secondary);
    --bs-btn-hover-border-color: var(--bs-secondary);
    --bs-btn-focus-shadow-rgb: 73, 190, 255;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-secondary);
    --bs-btn-active-border-color: var(--bs-secondary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--bs-secondary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--bs-secondary);
    --bs-gradient: none;
  }