body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 40px;
    /*background: #eceefc;*/
    /*background: #C5D1FF;*/
    background: #f8f9fa;
    /*background-image: linear-gradient(to bottom, #C5D1FF,#f8f9fa);*/
    color: #333;
}

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

.search-box {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.directory-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
    margin-bottom: 30px;
}

.university-card {
    background: #ffffff;
    padding: 5px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #7e3e97;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #111;
    margin: 0;
}

.card-title a {
    color: #7e3e97;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #004a99;
    text-decoration: underline;
}

.card-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    gap: 15px;
}

.card-meta strong {
    color: #333;
}

.card-links {
    display: flex;
    gap: 15px;
    font-size: 14px;
    margin-top: 4px;
}

.card-links a {
    color: #004a99;
    text-decoration: none;
    font-weight: 500;
}

.card-links a:hover {
    text-decoration: underline;
}

.card-description {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin: 5px 0;
}

.truncated-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more-btn {
    background: none;
    border: none;
    color: #7e3e97;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    padding: 0;
    text-align: left;
    width: fit-content;
    display: none;
}

.card-actions {
    margin-top: 5px;
    border-top: 1px solid #eee;
    padding-top: 10px;
    display: flex;
    gap: 15px;
    font-size: 13px;
}

.btn-edit {
    color: #007bff;
    text-decoration: none;
}

.btn-delete {
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
}

.form-container {
    background: #E0E3F7;
    /*background: white;*/
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

input,
textarea,
select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #C5D1FF;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-add {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

.alert-banner {
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
    border-left: 5px solid;
}

.banner-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.banner-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.banner-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.banner-info {
    background: #e3f2fd;
    color: #0d47a1;
    border-left-color: #004a99;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 5px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #7e3e97;
    border-radius: 4px;
}

.pagination .active {
    background-color: #7e3e97;
    color: white;
    border-color: #7e3e97;
}

.pagination .disabled {
    color: #ccc;
    pointer-events: none;
    border-color: #eee;
}

.country-divider {
    background: #702fb4;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 3px;
    box-sizing: border-box;
    width: 100%;
}

.country-divider .flag-render {
    font-size: 20px;
    line-height: 1;
}

/* Primary category bar for Classifications page — same weight as country bar, blue variant */
.primary-category-divider {
    background: #360781;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 3px;
    box-sizing: border-box;
    width: 100%;
}

/* Subcategory strip for Classifications page — same style as org category-divider */
.classification-subcategory-divider {
    padding: 6px 12px;
    margin: 8px 0 4px 0;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: 3px solid #1a5fbf;
    background: #eef3fb;
}

.category-divider {
    padding: 6px 12px;
    margin: 8px 0 4px 0;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: 3px solid #004a99;
    background: #f0f4fa;
}

.university-card.card-society {
    border-left-color: #004a99;
}

.university-card.card-research {
    border-left-color: #1a7a6e;
}

#imkt-logo {
    width: 400px;
    height: auto;
    display: block;
    margin: 0px auto;
    padding: 0px auto;
    /*background-color: #0E001F;*/
    /*float: left;*/
    /*background-image: radial-gradient(#C5D1FF,#f8f9fa);*/
}