/* ===== CSS Variables ===== */
:root {
    --primary-color: #0052A5;
    --secondary-color: #FFD700;
    --accent-color: #E63946;
    --dark-blue: #003366;
    --light-blue: #4A90E2;
    --success-green: #28A745;
    --warning-orange: #FF8C00;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.erasmus-badge {
    background: var(--secondary-color);
    color: var(--dark-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    padding: 10px 0;
    margin-top: 5px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: var(--text-dark);
    padding: 12px 20px;
    display: block;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
}

.btn-apply {
    background: var(--accent-color) !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0052A5, #003366, #1a5490);
    color: var(--white);
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn {
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ===== Quick Info Section ===== */
.quick-info {
    padding: 80px 20px;
    background: var(--bg-light);
}

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

.info-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.icon-wrapper.blue { background: linear-gradient(135deg, #4A90E2, var(--primary-color)); }
.icon-wrapper.green { background: linear-gradient(135deg, #28A745, #20c997); }
.icon-wrapper.purple { background: linear-gradient(135deg, #6f42c1, #9b59b6); }
.icon-wrapper.orange { background: linear-gradient(135deg, #FF8C00, #FFA500); }

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.info-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.learn-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.learn-more:hover {
    color: var(--light-blue);
    gap: 12px;
}

/* ===== Announcements Section ===== */
.announcements {
    padding: 80px 20px;
    background: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.view-all:hover {
    gap: 12px;
}

.announcement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.announcement-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    position: relative;
}

.announcement-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.announcement-card.urgent {
    border-left: 4px solid var(--accent-color);
}

.announcement-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.announcement-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-blue);
}

.announcement-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    transition: var(--transition);
}

.announcement-link:hover {
    gap: 12px;
}

/* ===== About Erasmus Section ===== */
.about-erasmus {
    padding: 80px 20px;
    background: var(--bg-light);
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
}

.program-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.program-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.program-card h3 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    color: var(--white);
    padding: 80px 20px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== Partners Section ===== */
.partners-section {
    padding: 40px 20px 80px;
    background: var(--bg-light);
}

.programme-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tab-button {
    background: var(--white);
    border: 2px solid #e0e0e0;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.tab-button.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.tab-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.tab-button.active .tab-count {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== Search and Filter Bar ===== */
.search-filter-bar {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 55px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.clear-search {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.clear-search:hover {
    color: var(--accent-color);
}

.filter-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-reset-filters {
    background: var(--text-light);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reset-filters:hover {
    background: var(--accent-color);
}

/* ===== View Toggle ===== */
.view-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.view-btn {
    background: var(--white);
    border: 2px solid #e0e0e0;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.view-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ===== Results Info ===== */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: 8px;
}

.results-info p {
    font-weight: 600;
    color: var(--text-dark);
}

.results-info span {
    color: var(--primary-color);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-weight: 600;
}

.sort-options select {
    padding: 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.sort-options select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ===== Map View ===== */
.partners-view {
    display: none;
}

.partners-view.active {
    display: block;
}

.map-view.active {
    display: flex;
    gap: 20px;
}

.map-container {
    flex: 1;
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

#partnersMap {
    height: 700px;
    width: 100%;
    border-radius: var(--border-radius);
}

.map-legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.map-legend h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.legend-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--white);
}

.legend-marker.ka131 { background: #4A90E2; }
.legend-marker.ka171 { background: #28A745; }
.legend-marker.mou { background: #FF8C00; }
.legend-marker.multiple { background: linear-gradient(135deg, #4A90E2, #28A745, #FF8C00); }

/* ===== University Details Panel ===== */
.university-details-panel {
    width: 400px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    max-height: 700px;
    position: relative;
}

.close-panel {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: var(--transition);
}

.close-panel:hover {
    background: #c62828;
    transform: rotate(90deg);
}

.details-content {
    padding: 20px;
}

.university-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--light-blue));
    color: var(--white);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin: -20px -20px 20px;
}

.university-logo {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.university-logo img {
    max-width: 80%;
    max-height: 80%;
}

.university-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.university-location {
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.programme-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.programme-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.programme-badge.ka131 {
    background: #4A90E2;
    color: var(--white);
}

.programme-badge.ka171 {
    background: #28A745;
    color: var(--white);
}

.programme-badge.mou {
    background: #FF8C00;
    color: var(--white);
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h3 {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section ul {
    list-style: none;
}

.detail-section li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: start;
    gap: 10px;
}

.detail-section li:last-child {
    border-bottom: none;
}

.detail-section li i {
    color: var(--primary-color);
    margin-top: 3px;
}

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

.university-actions .btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 0.9rem;
}

/* ===== List View ===== */
.partners-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.partner-list-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    display: flex;
    gap: 25px;
    align-items: start;
    transition: var(--transition);
    cursor: pointer;
}

.partner-list-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.partner-logo-small {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.partner-logo-small img {
    max-width: 90%;
    max-height: 90%;
}

.partner-info {
    flex: 1;
}

.partner-info h3 {
    font-size: 1.3rem;
    color: var(--dark-blue);
    margin-bottom: 8px;
}

.partner-location {
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.partner-programmes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.partner-faculties {
    color: var(--text-light);
    font-size: 0.9rem;
}

.partner-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-icon {
    padding: 10px;
    border-radius: 8px;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-color);
}

.btn-icon:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== Grid View ===== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.partner-grid-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.partner-grid-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.partner-grid-header {
    background: linear-gradient(135deg, var(--primary-color), var(--light-blue));
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

.partner-grid-logo {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.partner-grid-logo img {
    max-width: 80%;
    max-height: 80%;
}

.partner-grid-header h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.partner-grid-body {
    padding: 20px;
}

.partner-grid-location {
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

/* ===== Loading and No Results ===== */
.loading-spinner {
    text-align: center;
    padding: 80px 20px;
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.pagination button:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination button.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Partner Statistics ===== */
.partner-statistics {
    padding: 80px 20px;
    background: var(--white);
}

.partner-statistics h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-box {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 auto 20px;
}

.stat-icon.blue { background: linear-gradient(135deg, #4A90E2, var(--primary-color)); }
.stat-icon.green { background: linear-gradient(135deg, #28A745, #20c997); }
.stat-icon.purple { background: linear-gradient(135deg, #6f42c1, #9b59b6); }
.stat-icon.orange { background: linear-gradient(135deg, #FF8C00, #FFA500); }

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, var(--dark-blue), #001a33);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--dark-blue);
    transform: translateY(-3px);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: start;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--secondary-color);
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    margin-bottom: 10px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

.fade-in-delay {
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .university-details-panel {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        transition: var(--transition);
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        color: var(--text-dark);
        padding: 15px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        margin-top: 10px;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .map-view.active {
        flex-direction: column;
    }
    
    .university-details-panel {
        width: 100%;
    }
    
    .filter-controls {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .results-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .programme-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .partner-list-item {
        flex-direction: column;
    }
    
    #partnersMap {
        height: 500px;
    }
}

/* ===== Leaflet Popup Customization ===== */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 250px;
}

.popup-content {
    padding: 15px;
}

.popup-header {
    background: linear-gradient(135deg, var(--primary-color), var(--light-blue));
    color: var(--white);
    padding: 15px;
    margin: -0px -0px 10px;
    border-radius: 10px 10px 0 0;
}

.popup-header h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.popup-info {
    margin-bottom: 15px;
}

.popup-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.popup-programmes {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.popup-btn {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.popup-btn:hover {
    background: var(--light-blue);
}

/* Print Styles */
@media print {
    .navbar,
    .hero,
    .footer,
    .search-filter-bar,
    .view-toggle,
    .map-legend {
        display: none;
    }
    
    .partners-view {
        display: block !important;
    }
    
    .partner-list-item,
    .partner-grid-item {
        page-break-inside: avoid;
    }
}

/* ==========================================
   ERASMUS AGREEMENTS TABLE STYLES
   ========================================== */

.erasmus-container {
    width: 100%;
    padding: 20px 0;
}

.search-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.search-box-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.search-input-field {
    flex: 1;
    min-width: 250px;
    padding: 12px 18px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
}

.search-input-field:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.btn-erasmus-search {
    padding: 12px 30px;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-erasmus-search:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

.btn-erasmus-clear {
    padding: 12px 25px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

.search-results-info {
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

.faculty-accordion {
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faculty-accordion:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.faculty-header-btn {
    width: 100%;
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
    color: white;
    padding: 18px 25px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: left;
}

.faculty-header-btn:hover {
    background: linear-gradient(135deg, #138496 0%, #002f66 100%);
}

.faculty-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.faculty-title {
    font-size: 17px;
}

.faculty-badge {
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
}

.faculty-toggle-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faculty-header-btn.active .faculty-toggle-icon {
    transform: rotate(180deg);
}

.faculty-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faculty-body.active {
    max-height: 10000px;
}

.filters-row {
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.filter-column {
    display: flex;
    flex-direction: column;
}

.filter-label-text {
    margin-bottom: 6px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.filter-dropdown {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.3s;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #17a2b8;
}

.table-wrapper {
    padding: 25px;
    overflow-x: auto;
}

.agreements-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.agreements-table thead th {
    background: #f8f9fa;
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agreements-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #e9ecef;
    color: #212529;
}

.agreements-table tbody tr:hover {
    background: #f8f9fa;
}

.country-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-flag-img {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.empty-message {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
    font-size: 16px;
}

.quota-tag {
    display: inline-block;
    background: #e7f3ff;
    color: #17a2b8;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin: 2px;
    white-space: nowrap;
}

.quota-tag.zero-value {
    background: #f1f3f5;
    color: #868e96;
}

.date-display {
    white-space: nowrap;
    font-size: 13px;
}

.email-link {
    color: #17a2b8;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .search-box-wrapper {
        flex-direction: column;
    }

    .search-input-field {
        width: 100%;
    }

    .filters-row {
        grid-template-columns: 1fr;
    }

    .faculty-title {
        font-size: 15px;
    }

    .agreements-table {
        font-size: 13px;
    }

    .agreements-table thead th,
    .agreements-table tbody td {
        padding: 10px 8px;
    }
}

