/* =========================================================
   USER STYLES — PUBLIC PART OF THE SITE
   Sections:
   1. Base
      LINKS
   2. Header
   3. Main navigation
   4. Layout
   5. Sidebar blocks
   6. Calendar
   7. Map
   8. News / content blocks
   9. Home page
   10. About page 
   11. Forms (public/basic)
   12. Social icons
   13. Responsive
   15. PUBLICATIONS PAGE
   16. STAFF PAGE   
   17. STAFF PERSON PAGE
   18. ACHIEVEMENTS CHART
   19. COURSES PAGE
========================================================= */


/* =========================================================
   1. BASE
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f0f0f0;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1 {
    color: #004080;
}

h2 {
    margin-top: 1.5em;
}

ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 0.5em;
}

address {
    font-style: normal;
    line-height: 1.5;
}

main {
    display: flex;
    justify-content: space-between;
    padding: 2em;
    flex: 1;
	gap: 20px;
}

.alert-message {
    margin: 20px 0;
    padding: 16px 20px;
    border-radius: 8px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffe69c;
    font-size: 1rem;
    line-height: 1.5;
}
/* =========================================================
   LINKS
========================================================= */

a,
a:visited {
    color: #004080;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #004080;
    text-decoration: underline;
}

a:active {
    color: #00264d;
}

/* =========================================================
   2. HEADER
========================================================= */

header {
    background-color: #004080;
    color: #fff;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 1em;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 40px;
    margin-right: 10px;
}

.department-info {
    display: flex;
    flex-direction: column;
}

.department-name {
    font-size: 1.5em;
    font-weight: bold;
}

.department-name a {
    font-weight: bold;
    text-decoration: none;
    color: #fff;
}

.department-name a:hover {
    text-decoration: underline;
}

.department-subtitle {
    font-size: 1em;
}

.header-right {
    display: flex;
    align-items: center;
}

.language-button,
.admin-button {
    background-color: #fff;
    color: #004080;
    padding: 0.5em 1em;
    margin-right: 10px;
    text-decoration: none;
    border-radius: 5px;
}

.language-button:hover,
.admin-button:hover {
    background-color: #ccc;
}

.disk-access img {
    height: 20px;
}

.disk-access.disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* =========================================================
   USER NAVIGATION SUBMENU
   Визуально близко к admin submenu, но открытие по клику
========================================================= */

.main-nav .has-submenu {
    position: relative;
}

.main-nav .submenu-toggle {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    line-height: inherit;
}

.main-nav .submenu-toggle::after {
    content: " ▾";
    font-size: 0.85em;
}

.main-nav .has-submenu.submenu-open > .submenu-toggle::after {
    content: " ▴";
}

.main-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.main-nav .has-submenu.submenu-open > .submenu {
    display: block;
}

.main-nav .submenu li {
    margin: 0;
}

.main-nav .submenu li a {
    display: block;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0;
}

.main-nav .submenu li a:hover,
.main-nav .submenu li a:focus {
    background: #f3f3f3;
    color: #333;
}

@media (max-width: 900px) {
    .main-nav .submenu {
        position: static;
        min-width: 100%;
        margin-top: 8px;
        box-shadow: none;
    }

    .main-nav .submenu li a {
        white-space: normal;
    }
}
/* =========================================================
   4. LAYOUT
========================================================= */

#content {
    width: 70%;
    background-color: #fff;
    padding: 1em;
    margin-right: 2%;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#sidebar {
    width: 25%;
}

footer {
    background-color: #004080;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    width: 100%;
    position: relative;
}


/* =========================================================
   5. SIDEBAR BLOCKS
========================================================= */

#sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#sidebar .sidebar-block,
#sidebar .news,
#sidebar .calendar {
    background: #fff;
    border: 1px solid #dddddd;
    border-radius: 10px;
    padding: 16px 16px 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

#sidebar .sidebar-block h2,
#sidebar .news h2,
#sidebar .calendar h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #004080;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-list-item {
    line-height: 1.4;
    padding-bottom: 8px;
    border-bottom: 1px solid #eeeeee;
}

.sidebar-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-item-link,
.sidebar-item-link:visited {
    color: #000;
    text-decoration: none;
}

.sidebar-item-link:hover,
.sidebar-item-link:focus {
    color: #004080;
    text-decoration: underline;
}

.sidebar-item-meta {
    margin-top: 2px;
    color: #666;
    font-size: 0.9em;
}

.sidebar-link,
.sidebar-link:visited {
    display: inline-block;
    margin-top: 10px;
    color: #004080;
    text-decoration: none;
    font-weight: 600;
}

.sidebar-link:hover,
.sidebar-link:focus {
    text-decoration: underline;
}

.mini-calendar {
    margin-bottom: 14px;
}

.mini-calendar-title {
    margin-bottom: 10px;
    font-weight: 700;
    color: #004080;
}

.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.mini-calendar-cell {
    text-align: center;
    padding: 6px 4px;
    font-size: 0.9em;
}

.mini-calendar-weekday {
    font-weight: 700;
    color: #666;
}

.mini-calendar-day {
    border: 1px solid #ddd;
    background: #fff;
}

.mini-calendar-day {
    border: none;
    background: transparent;
    border-radius: 8px;
}

.mini-calendar-day.has-event {
    background: #dbeafe;
    color: #004080;
    font-weight: 700;
}

.mini-calendar-day.is-today {
    background: #fde8e8;
    color: #800000;
    font-weight: 700;
}

.mini-calendar-day.has-event.is-today {
    background: #eadcf8;
    color: #6b1fa1;
    font-weight: 700;
}

.mini-calendar-empty {
    background: transparent;
    border: none;
}

.mini-events {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-event-item {
    line-height: 1.4;
    padding-bottom: 8px;
    border-bottom: 1px solid #eeeeee;
}

.mini-event-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mini-event-date {
    color: #666;
    font-size: 0.9em;
}
.mini-calendar-day.is-today {
    border: 2px solid #800000;
    font-weight: 700;
    color: #800000;
}

.mini-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.mini-calendar-title {
    margin-bottom: 0;
    font-weight: 700;
    color: #004080;
    text-align: center;
    flex: 1;
}

.mini-calendar-nav,
.mini-calendar-nav:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #004080;
    text-decoration: none;
    font-weight: 700;
    background: #f3f6fb;
}

.mini-calendar-nav:hover,
.mini-calendar-nav:focus {
    background: #e6eef9;
    text-decoration: none;
}
.mini-calendar-title-wrap {
    flex: 1;
    text-align: center;
}

.mini-calendar-today-link,
.mini-calendar-today-link:visited {
    display: inline-block;
    margin-top: 2px;
    font-size: 0.82em;
    color: #004080;
    text-decoration: none;
}

.mini-calendar-today-link:hover,
.mini-calendar-today-link:focus {
    text-decoration: underline;
}

#sidebar.sidebar-loading {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
/* =========================================================
   6. CALENDAR
========================================================= */

.calendar-page .calendar-intro {
    margin-bottom: 1.5em;
    color: #222;
    line-height: 1.6;
}

.calendar-search {
    margin-bottom: 1.2em;
}

.calendar-search form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: end;
}

.calendar-search-field {
    display: flex;
    flex-direction: column;
}

.calendar-search-field label {
    margin-bottom: 6px;
    color: #222;
    font-weight: 600;
}

.calendar-search-field input {
    min-width: 220px;
    padding: 8px 10px;
    border: 1px solid #aaa;
    background: #fff;
}

.calendar-search-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-search-actions button {
    padding: 8px 14px;
    border: 1px solid #888;
    background: #f2f2f2;
    cursor: pointer;
}

.calendar-search-actions button:hover {
    background: #e8e8e8;
}

.calendar-reset {
    display: inline-block;
    color: #004080;
    text-decoration: none;
}

.calendar-reset:hover,
.calendar-reset:focus {
    text-decoration: underline;
}

.calendar-events-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.calendar-events-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.calendar-events-table th,
.calendar-events-table td {
    padding: 12px 10px;
    border-top: 1px solid #d9d9d9;
    text-align: left;
    vertical-align: top;
}

.calendar-events-table thead th {
    border-top: none;
    border-bottom: 2px solid #004080;
    color: #004080;
    font-weight: 700;
    background: #f8fafc;
}

.calendar-event-title-cell {
    min-width: 320px;
}

.calendar-event-link,
.calendar-event-link:visited {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
}

.calendar-event-link:hover,
.calendar-event-link:focus {
    color: #004080;
    text-decoration: underline;
}

.calendar-event-preview {
    margin-top: 6px;
    color: #555;
    font-size: 0.95em;
    line-height: 1.45;
}

.calendar-pagination {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.calendar-pagination a,
.calendar-pagination span {
    min-width: 36px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    text-align: center;
    text-decoration: none;
    background: #fff;
    color: #004080;
    border-radius: 4px;
}

.calendar-pagination a:hover,
.calendar-pagination a:focus {
    background: #f3f6fb;
}

.calendar-pagination .active {
    background: #004080;
    color: #fff;
    border-color: #004080;
}

.calendar-empty {
    color: #666;
    padding: 8px 0;
}

/* мини-календарь в sidebar */

.mini-calendar {
    margin-bottom: 14px;
}

.mini-calendar-title {
    margin-bottom: 10px;
    font-weight: 700;
    color: #004080;
}

.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.mini-calendar-cell {
    text-align: center;
    padding: 6px 4px;
    font-size: 0.9em;
}

.mini-calendar-weekday {
    font-weight: 700;
    color: #666;
}

.mini-calendar-day {
    border: none;
    background: transparent;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mini-calendar-day.has-event {
    background: #eaf2ff;
    color: #004080;
    font-weight: 700;
}

.mini-calendar-day.is-today {
    background: #fde8e8;
    color: #800000;
    font-weight: 700;
}

.mini-calendar-day.has-event.is-today {
    background: #eadcf8;
    color: #6b1fa1;
    font-weight: 700;
}

.mini-calendar-empty {
    background: transparent;
}

.mini-events {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-event-item {
    line-height: 1.4;
    padding-bottom: 8px;
    border-bottom: 1px solid #eeeeee;
}

.mini-event-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mini-event-date {
    color: #666;
    font-size: 0.9em;
}

@media (max-width: 700px) {
    .calendar-search form {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-search-field input {
        width: 100%;
        min-width: 0;
    }

    .calendar-search-actions {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

/* =========================================================
   7. MAP
========================================================= */

.map-container {
    width: 100%;
    margin: 0 auto;
    padding: 1em 0;
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* =========================================================
   8. NEWS / PUBLIC CONTENT BLOCKS
========================================================= */

.news-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}

.news-item img {
    max-width: 100px;
    margin-right: 20px;
}

.news-item-content {
    flex: 1;
}

.news-item-content .title-date {
    margin-bottom: 0.5px;
}

.separator {
    border-top: 2px solid #ccc;
    margin: 10px 0;
    padding-top: 10px;
}

.content-container {
    width: 80%;
    margin: auto;
}

.content-block {
    padding: 20px;
    margin-bottom: 20px;
}

.content-block h2 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    color: #800000;
}

.date {
    color: #888;
    margin-bottom: 1em;
}

.content-details {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.content-image {
    max-width: 150px;
}

.description {
    flex: 1;
}

.additional-info {
    margin-top: 1em;
}

.home-publications {
    margin-top: 30px;
    padding-top: 10px;
    border-top: 2px solid #004080;
}

.home-publications h2 {
    margin-bottom: 16px;
}

.home-publications h2 a,
.home-publications h2 a:visited {
    color: #004080;
    text-decoration: none;
}

.home-publications h2 a:hover,
.home-publications h2 a:focus {
    text-decoration: underline;
}

.home-publications-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-publication-item {
    padding-bottom: 12px;
    border-bottom: 1px solid #dddddd;
}

.home-publication-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.home-publication-title {
    margin: 0 0 6px 0;
    font-size: 1.05em;
    line-height: 1.45;
}

.home-publication-title a,
.home-publication-title a:visited {
    color: #111;
    text-decoration: none;
}

.home-publication-title a:hover,
.home-publication-title a:focus {
    color: #004080;
    text-decoration: underline;
}

.home-publication-meta {
    color: #666;
    font-size: 0.94em;
    line-height: 1.45;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.home-publication-year {
    font-weight: 600;
    color: #800000;
}
/* =========================================================
   9. HOME PAGE
========================================================= */

.home-page .content-block {
    padding: 14px 0;
    margin: 0;
    border-top: 1px solid #d9d9d9;
}

.home-page .content-block:first-of-type {
    border-top: none;
    padding-top: 6px;
}

.home-page .content-title {
    margin: 0 0 8px 0;
    font-size: 1.35em;
    font-weight: 700;
    color: #004080;
    line-height: 1.2;
}

.home-page .content-meta {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.45;
}

.home-page .content-type {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85em;
    background: #f2f2f2;
    color: #333;
}

.home-page .content-details {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.home-page .content-image {
    max-width: 180px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    flex: 0 0 180px;
}

.home-page .content-text {
    flex: 1 1 320px;
    min-width: 260px;
    line-height: 1.55;
}

.home-page .content-preview {
    margin: 0;
}

.home-page .content-full-body {
    line-height: 1.6;
    margin-top: 4px;
}

.home-page .mini-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-page .mini-event-item {
    line-height: 1.35;
}

.home-page .mini-event-date {
    color: #555;
    font-size: 0.95em;
}

.home-page .sidebar-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
}

/* =========================================================
   10. ABOUT PAGE / ACHIEVEMENTS IN NUMBERS
========================================================= */

.about-page .content > p:first-of-type,
.about-page .about-lead {
    margin-bottom: 1.1em;
}

.about-page h2 {
    margin: 1.4em 0 0.7em;
    color: #004080;
    font-size: 1.55em;
    line-height: 1.25;
    position: relative;
}

.about-page h2:after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 8px;
    border-radius: 3px;
    background: #800000;
}

.about-section-link,
.about-section-link:visited {
    color: #004080;
    text-decoration: none;
}

.about-section-link:hover,
.about-section-link:focus {
    text-decoration: underline;
}

.about-stats {
    margin: 1.2em 0 2em;
    padding: 0;
}

.about-stats h2 {
    margin-top: 0;
    text-align: center;
}

.about-stats h2:after {
    margin-left: auto;
    margin-right: auto;
}

.stats-intro {
    margin: 0 0 1em;
    color: #555;
    line-height: 1.6;
    font-size: 0.96em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 14px;
}

.stat-card {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 18px 14px;
    text-align: center;
    border-top: 4px solid #800000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #800000;
}

.stat-label {
    margin-top: 8px;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #444;
}

.stats-note {
    margin-top: 10px;
    text-align: center;
    font-size: 0.95rem;
    color: #555;
}

.stats-note a,
.stats-note a:visited {
    color: #800000;
    text-decoration: none;
    font-weight: 600;
}

.stats-note a:hover,
.stats-note a:focus {
    text-decoration: underline;
}

.about-more-link {
    margin: 0.4em 0 1.8em;
}

.about-more-link a,
.about-more-link a:visited {
    color: #004080;
    text-decoration: none;
    font-weight: 600;
}

.about-more-link a:hover,
.about-more-link a:focus {
    text-decoration: underline;
}

.about-media {
    margin: 2em 0;
}

.about-media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.about-media-card {
    width: calc(33.333% - 12px);
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    padding: 20px;
}

.about-media-type {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f3e8e8;
    color: #800000;
    font-size: 0.85em;
    font-weight: 700;
}

.about-media-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.12em;
    line-height: 1.35;
}

.about-media-card h3 a,
.about-media-card h3 a:visited {
    color: #004080;
    text-decoration: none;
}

.about-media-card h3 a:hover,
.about-media-card h3 a:focus {
    text-decoration: underline;
}

.about-media-card p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

.about-idea-block {
    margin: 2em 0;
}

.about-idea-card {
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid #d7e4f2;
    border-radius: 12px;
    padding: 22px;
}

.about-idea-text {
    margin: 0 0 12px 0;
    font-size: 1.08em;
    line-height: 1.6;
    color: #1f2f46;
}

.about-idea-supervisor {
    margin: 0 0 16px 0;
    color: #333;
    line-height: 1.6;
}

.about-idea-link-inline,
.about-idea-link-inline:visited {
    color: #004080;
    text-decoration: none;
    font-weight: 600;
}

.about-idea-link-inline:hover,
.about-idea-link-inline:focus {
    text-decoration: underline;
}

.about-idea-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.about-idea-button,
.about-idea-button:visited {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #c7d8ea;
    border-radius: 7px;
    background: #ffffff;
    color: #004080;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
}

.about-idea-button:hover,
.about-idea-button:focus {
    background: #f3f8ff;
    text-decoration: none;
}

.about-collaboration-box {
    background: #f8fbff;
    border: 1px solid #d7e4f2;
    border-radius: 10px;
    padding: 18px 20px;
}

.about-collaboration-box p {
    margin: 0;
    line-height: 1.7;
}

@media (max-width: 1000px) {
    .about-media-card {
        width: 100%;
    }
}

.about-idea-card.about-idea-loading {
    opacity: 0.65;
    transition: opacity 0.2s ease;
}
/* =========================================================
   11. FORMS (PUBLIC / BASIC)
========================================================= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.form-group textarea {
    height: 150px;
}

.form-group button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
}

.form-group button:hover {
    background-color: #0056b3;
}

.div-form-group {
    margin-bottom: 20px;
}


/* =========================================================
   12. SOCIAL ICONS
========================================================= */

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    text-decoration: none;
}

.social-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.social-icon-link:hover .social-icon {
    opacity: 0.8;
}


/* =========================================================
   13. BURGER MENU
========================================================= */

.main-nav {
    background-color: #003060;
    padding: 0.5em 1em;
    position: relative;
}

.burger-button {
    display: none;
    background: none;
    border: none;
    padding: 6px 0;
    cursor: pointer;
}

.burger-line {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background-color: #fff;
    border-radius: 2px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu li {
    margin: 0 1em;
}

.nav-menu li a {
    display: inline-block;
    padding: 2px 12px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a:focus {
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    outline: none;
}

.nav-menu li a.active {
    font-weight: bold;
    text-decoration: underline;
}

/* =========================================================
   14. RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .top-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-left {
        min-width: 0;
        flex: 1 1 auto;
    }

    .department-info {
        min-width: 0;
    }

    .department-name {
        font-size: 1.2em;
    }

    .department-subtitle {
        font-size: 0.9em;
    }

    .header-right {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }

    .main-nav {
        padding: 0.75em 1em;
    }

    .main-nav:not(.admin-nav) .burger-button {
    display: block;
	}

	.main-nav:not(.admin-nav) .nav-menu {
		display: none;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		margin-top: 12px;
		padding-top: 8px;
		border-top: 1px solid rgba(255,255,255,0.2);
	}

	.main-nav:not(.admin-nav) .nav-menu.is-open {
		display: flex;
	}

    .main-nav:not(.admin-nav) .nav-menu li {
		margin: 0;
		width: 100%;
	}

	.main-nav:not(.admin-nav) .nav-menu li > a,
	.main-nav:not(.admin-nav) .nav-menu li > .submenu-toggle {
		display: block;
		width: 100%;
		padding: 10px 0;
		text-align: left;
		box-sizing: border-box;
	}

    main {
        flex-direction: column;
        padding: 1em;
    }

    #content,
    #sidebar {
        width: 100%;
        margin-right: 0;
    }

    .content-container {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .news-item {
        flex-direction: column;
    }

    .news-item img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .content-details,
    .home-page .content-details {
        flex-direction: column;
    }

    .home-page .content-image {
        flex: 0 0 auto;
        max-width: 100%;
    }
}
/* =========================================================
   15. PUBLICATIONS PAGE
========================================================= */

.publications-top,
.publications-list,
.publications-empty,
.pagination {
    width: 100%;
    box-sizing: border-box;
}

.publications-top {
    padding: 2em 2em 1em;
}

.publications-page h1 {
    margin-top: 0;
    margin-bottom: 1em;
    color: #004080;
}

.publications-intro {
    margin-bottom: 1.5em;
    color: #222;
    line-height: 1.6;
}

.publications-filters {
    margin-bottom: 1em;
}

.publications-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: end;
}

.publications-filters form > div {
    display: flex;
    flex-direction: column;
}

.publications-filters label {
    margin-bottom: 6px;
    color: #222;
}

.publications-filters input,
.publications-filters select {
    min-width: 180px;
    padding: 8px 10px;
    border: 1px solid #aaa;
    border-radius: 0;
    background: #fff;
}

.publications-filters button {
    padding: 8px 14px;
    border: 1px solid #888;
    background: #f2f2f2;
    cursor: pointer;
}

.publications-reset {
    margin-left: 8px;
}

.publications-count {
    margin-top: 0.5em;
    color: #111;
}

.publications-list {
    padding: 0 2em 2em;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.publication-card {
    padding: 1.2em 0 1.4em;
    border-top: 1px solid #d9d9d9;
    box-shadow: none;
    background: transparent;
}

.publication-card:first-child {
    border-top: none;
    padding-top: 0.5em;
}

.publication-year {
    margin-bottom: 0.45em;
    font-size: 0.95em;
    color: #444;
    background: none;
    padding: 0;
    border-radius: 0;
}

.publication-title {
    margin: 0 0 0.55em 0;
    font-size: 1.25em;
    line-height: 1.35;
    font-weight: 700;
}

.publication-title a,
.publication-title a:visited {
    color: #000;
    text-decoration: none;
}

.publication-title a:hover,
.publication-title a:focus {
    color: #004080;
    text-decoration: underline;
}

.publication-authors,
.publication-tags,
.publication-date {
    margin: 0.35em 0;
    color: #222;
    line-height: 1.5;
}

.publication-tags {
    color: #555;
}

.pagination {
    padding: 0 2em 2em;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination a,
.pagination span {
    min-width: 36px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    text-align: center;
    text-decoration: none;
    background: #fff;
    color: #004080;
    border-radius: 4px;
}

.pagination .active {
    background: #004080;
    color: #fff;
    border-color: #004080;
}

.publications-empty {
    padding: 0 2em 2em;
    color: #666;
}

@media (max-width: 700px) {
    .publications-top,
    .publications-list,
    .pagination,
    .publications-empty {
        padding-left: 1em;
        padding-right: 1em;
    }

    .publications-filters form {
        flex-direction: column;
        align-items: stretch;
    }

    .publications-filters input,
    .publications-filters select {
        width: 100%;
        min-width: 0;
    }

    .publications-reset {
        margin-left: 0;
        margin-top: 8px;
    }
}

.publications-list-header {
    margin: 1.2em 0 1em;
    padding: 1em 1.2em;
    background: #f8f8f8;
    border: 1px solid #dddddd;
    border-radius: 8px;
}

.publications-list-header h2 {
    margin: 0 0 0.4em 0;
    font-size: 1.15em;
    color: #004080;
}

.publications-list-header p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}
/* =========================================================
   16. STAFF PAGE
========================================================= */

.staff-page .staff-intro {
    margin-bottom: 1.5em;
    color: #222;
    line-height: 1.6;
}

.staff-search {
    margin-bottom: 1em;
}

.staff-search form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: end;
}

.staff-search-field {
    display: flex;
    flex-direction: column;
}

.staff-search-field label {
    margin-bottom: 6px;
    color: #222;
}

.staff-search-field input {
    min-width: 260px;
    padding: 8px 10px;
    border: 1px solid #aaa;
    background: #fff;
}

.staff-search-actions button {
    padding: 8px 14px;
    border: 1px solid #888;
    background: #f2f2f2;
    cursor: pointer;
}

.staff-reset {
    display: inline-block;
    margin-left: 8px;
}

.staff-count {
    margin: 0.5em 0 1.5em;
    color: #111;
}

.staff-block {
    padding: 14px 0;
    margin: 0;
    border-top: 1px solid #d9d9d9;
}

.staff-block:first-of-type {
    border-top: none;
    padding-top: 6px;
}

.staff-details {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: nowrap;
}

.staff-image {
    width: 96px;
    height: 96px;
    max-width: 96px;
    object-fit: cover;
    border-radius: 6px;
    background: #f3f3f3;
    flex: 0 0 96px;
}

.staff-text {
    flex: 1 1 auto;
    min-width: 0;
}

.staff-title {
    margin: 0 0 8px 0;
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1.3;
    color: #004080;
}

.staff-title a,
.staff-title a:visited {
    color: #000;
    text-decoration: none;
}

.staff-title a:hover,
.staff-title a:focus {
    color: #004080;
    text-decoration: underline;
}

.staff-position {
    margin: 0 0 8px 0;
    color: #444;
    line-height: 1.45;
}

.staff-links {
    margin-top: 4px;
}

.staff-profile-link,
.staff-profile-link:visited {
    color: #004080;
    text-decoration: none;
    font-weight: 600;
}

.staff-profile-link:hover,
.staff-profile-link:focus {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .staff-search form {
        flex-direction: column;
        align-items: stretch;
    }

    .staff-search-field input {
        width: 100%;
        min-width: 0;
    }

    .staff-reset {
        margin-left: 0;
        margin-top: 8px;
    }

    .staff-details {
        gap: 12px;
    }

    .staff-image {
        width: 78px;
        height: 78px;
        max-width: 78px;
        flex-basis: 78px;
    }

    .staff-title {
        font-size: 1.1em;
    }
}
/* =========================================================
   17. STAFF PERSON PAGE
========================================================= */

.staff-back-link {
    margin-bottom: 1.2em;
}

.staff-back-link a,
.staff-back-link a:visited {
    color: #004080;
    text-decoration: none;
}

.staff-back-link a:hover,
.staff-back-link a:focus {
    text-decoration: underline;
}

.staff-person-card {
    display: flex;
    flex-direction: row-reverse;
    gap: 24px;
    align-items: flex-start;
}

.staff-person-photo {
    flex: 0 0 180px;
    width: 180px;
    max-width: 180px;
}

.staff-person-photo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    background: #f3f3f3;
    display: block;
}

.staff-person-info {
    flex: 1 1 auto;
    min-width: 0;
}

.staff-person-info h1 {
    margin-top: 0;
    margin-bottom: 0.6em;
    color: #004080;
}

.staff-person-position {
    margin-bottom: 1em;
    font-size: 1.05em;
    color: #444;
    line-height: 1.5;
}

.staff-person-profile {
    margin-bottom: 1.2em;
}

.staff-person-profile a,
.staff-person-profile a:visited {
    color: #004080;
    text-decoration: none;
    font-weight: 600;
}

.staff-person-profile a:hover,
.staff-person-profile a:focus {
    text-decoration: underline;
}

.staff-person-block {
    margin-top: 1.2em;
}

.staff-person-block h2 {
    margin: 0 0 0.5em 0;
    font-size: 1.15em;
    color: #800000;
}

.staff-person-block p {
    margin: 0;
    line-height: 1.6;
    color: #222;
}

@media (max-width: 700px) {
    .staff-person-card {
        flex-direction: column;
    }

    .staff-person-photo {
        width: 160px;
        max-width: 100%;
        flex-basis: auto;
    }

    .staff-person-photo img {
        width: 100%;
        height: 200px;
    }
}

/* =========================================================
   18. ACHIEVEMENTS CHART
========================================================= */

.achievements-chart-section {
    margin-top: 2em;
}

.chart-controls {
    margin-bottom: 1.5em;
    padding: 1.2em;
    background: #f8f8f8;
    border: 1px solid #dddddd;
    border-radius: 8px;
}

.chart-controls-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 1em;
    flex-wrap: wrap;
}

.chart-controls-header h2 {
    margin: 0;
    font-size: 1.2em;
    color: #004080;
}

.chart-control-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chart-control-buttons button {
    padding: 8px 14px;
    border: 1px solid #888;
    background: #f2f2f2;
    cursor: pointer;
    border-radius: 4px;
}

.chart-control-buttons button:hover {
    background: #e8e8e8;
}

.chart-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px 16px;
}

.chart-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
    cursor: pointer;
}

.chart-checkbox-item input {
    margin-top: 3px;
    flex-shrink: 0;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    padding: 1em;
    background: #fff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .chart-checkboxes {
        grid-template-columns: 1fr;
    }

    .chart-wrapper {
        height: 380px;
        padding: 0.8em;
    }
}
/* =========================================================
   19. COURSES PAGE
========================================================= */

.courses-page .courses-intro {
    margin-bottom: 1.5em;
    color: #222;
    line-height: 1.6;
}

.courses-search {
    margin-bottom: 1em;
}

.courses-search form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: end;
}

.courses-search-field {
    display: flex;
    flex-direction: column;
}

.courses-search-field label {
    margin-bottom: 6px;
    color: #222;
}

.courses-search-field input,
.courses-search-field select {
    min-width: 220px;
    padding: 8px 10px;
    border: 1px solid #aaa;
    background: #fff;
}

.courses-search-actions button {
    padding: 8px 14px;
    border: 1px solid #888;
    background: #f2f2f2;
    cursor: pointer;
}

.courses-reset {
    display: inline-block;
    margin-left: 8px;
    color: #004080;
    text-decoration: none;
}

.courses-reset:hover {
    text-decoration: underline;
}

.courses-count {
    margin: 0.5em 0 1.5em;
    color: #111;
}

.courses-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.courses-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.courses-table th,
.courses-table td {
    padding: 12px 10px;
    border-top: 1px solid #d9d9d9;
    text-align: left;
    vertical-align: top;
}

.courses-table thead th {
    border-top: none;
    border-bottom: 2px solid #004080;
    color: #004080;
    font-weight: 700;
}

.course-title-cell {
    min-width: 300px;
}

.course-link,
.course-link:visited {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.course-link:hover,
.course-link:focus {
    color: #004080;
    text-decoration: underline;
}

.course-short-description {
    margin-top: 6px;
    color: #555;
    font-size: 0.95em;
    line-height: 1.45;
}

@media (max-width: 700px) {
    .courses-search form {
        flex-direction: column;
        align-items: stretch;
    }

    .courses-search-field input,
    .courses-search-field select {
        width: 100%;
        min-width: 0;
    }

    .courses-reset {
        margin-left: 0;
        margin-top: 8px;
    }
}

.course-teacher-link,
.course-teacher-link:visited {
    color: #004080;
    text-decoration: none;
}

.course-teacher-link:hover,
.course-teacher-link:focus {
    text-decoration: underline;
}

/* =========================================================
   20. COURSE PAGE
========================================================= */

.course-page .course-back-link {
    margin-bottom: 1.2em;
}

.course-page .course-back-link a,
.course-page .course-back-link a:visited {
    color: #004080;
    text-decoration: none;
}

.course-page .course-back-link a:hover,
.course-page .course-back-link a:focus {
    text-decoration: underline;
}

.course-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 16px;
    margin: 1.5em 0 2em;
}

.course-meta-item {
    padding: 12px 14px;
    border: 1px solid #d9d9d9;
    background: #fafafa;
}

.course-meta-label {
    margin-bottom: 6px;
    font-size: 0.92em;
    color: #666;
}

.course-meta-value {
    color: #222;
    line-height: 1.45;
    font-weight: 600;
}

.course-detail-block {
    margin-top: 1.5em;
}

.course-detail-block h2 {
    margin: 0 0 0.6em 0;
    color: #004080;
    font-size: 1.2em;
}

.course-detail-block p {
    margin: 0;
    line-height: 1.65;
    color: #222;
}

@media (max-width: 700px) {
    .course-meta-grid {
        grid-template-columns: 1fr;
    }
}
.course-detail-text {
    line-height: 1.65;
    color: #222;
}

.course-detail-text p:first-child {
    margin-top: 0;
}

.course-materials-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-material-item {
    padding: 12px 14px;
    border: 1px solid #d9d9d9;
    background: #fafafa;
    border-radius: 8px;
}

.course-material-link,
.course-material-link:visited {
    color: #004080;
    text-decoration: none;
    font-weight: 600;
}

.course-material-link:hover,
.course-material-link:focus {
    text-decoration: underline;
}

.course-material-type {
    margin-top: 4px;
    color: #666;
    font-size: 0.92em;
}

.course-material-description {
    margin-top: 6px;
    color: #444;
    line-height: 1.5;
}

.course-materials-extra-link {
    margin-top: 12px;
}

.course-materials-extra-link a,
.course-materials-extra-link a:visited {
    color: #004080;
    text-decoration: none;
    font-weight: 600;
}

.course-materials-extra-link a:hover,
.course-materials-extra-link a:focus {
    text-decoration: underline;
}
/* =========================================================
   21. SCHEDULE PAGE
========================================================= */

.schedule-page .schedule-intro {
    margin-bottom: 1.5em;
    color: #222;
    line-height: 1.6;
}

.schedule-search {
    margin-bottom: 1.2em;
}

.schedule-search form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: end;
}

.schedule-search-field {
    display: flex;
    flex-direction: column;
}

.schedule-search-field label {
    margin-bottom: 6px;
    color: #222;
}

.schedule-search-field input,
.schedule-search-field select {
    min-width: 220px;
    padding: 8px 10px;
    border: 1px solid #aaa;
    background: #fff;
}

.schedule-search-actions button {
    padding: 8px 14px;
    border: 1px solid #888;
    background: #f2f2f2;
    cursor: pointer;
}

.schedule-reset {
    display: inline-block;
    margin-left: 8px;
    color: #004080;
    text-decoration: none;
}

.schedule-reset:hover {
    text-decoration: underline;
}

.schedule-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    background: #fff;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #d9d9d9;
    vertical-align: top;
    text-align: left;
}

.schedule-table th {
    padding: 10px;
    background: #f6f8fb;
    color: #004080;
    font-weight: 700;
}

.schedule-pair-col {
    width: 110px;
}

.schedule-pair-cell {
    width: 110px;
    padding: 10px;
    background: #fafafa;
}

.schedule-pair-number {
    font-weight: 700;
    color: #004080;
}

.schedule-pair-time {
    margin-top: 4px;
    font-size: 0.92em;
    color: #666;
}

.schedule-day-cell {
    min-width: 150px;
    padding: 8px;
}

.schedule-item {
    padding: 8px 8px 10px;
    margin-bottom: 8px;
    background: #fcfcfc;
    border: 1px solid #ececec;
    border-radius: 6px;
}

.schedule-item:last-child {
    margin-bottom: 0;
}

.schedule-item-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.schedule-week-badge {
    display: inline-block;
    min-width: 30px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.82em;
    font-weight: 700;
    text-align: center;
    color: #fff;
    background: #888;
}

.schedule-week-badge-1 {
    background: #800000;
}

.schedule-week-badge-2 {
    background: #004080;
}

.schedule-week-badge-обе {
    background: #2e7d32;
}

.schedule-discipline {
    margin-bottom: 6px;
    font-weight: 700;
    line-height: 1.35;
}

.schedule-course-link,
.schedule-course-link:visited {
    color: #000;
    text-decoration: none;
}

.schedule-course-link:hover,
.schedule-course-link:focus {
    color: #004080;
    text-decoration: underline;
}

.schedule-meta {
    margin-top: 3px;
    font-size: 0.93em;
    line-height: 1.4;
    color: #444;
}

.schedule-empty {
    color: #999;
}

@media (max-width: 700px) {
    .schedule-search form {
        flex-direction: column;
        align-items: stretch;
    }

    .schedule-search-field input,
    .schedule-search-field select {
        width: 100%;
        min-width: 0;
    }

    .schedule-reset {
        margin-left: 0;
        margin-top: 8px;
    }
}
/* =========================================================
   23. EVENT PAGE
========================================================= */

.event-page .event-back-link {
    margin-bottom: 1.2em;
}

.event-page .event-back-link a,
.event-page .event-back-link a:visited {
    color: #004080;
    text-decoration: none;
}

.event-page .event-back-link a:hover,
.event-page .event-back-link a:focus {
    text-decoration: underline;
}

.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 16px;
    margin: 1.5em 0 1.8em;
}

.event-meta-item {
    padding: 12px 14px;
    border: 1px solid #d9d9d9;
    background: #fafafa;
    border-radius: 8px;
}

.event-meta-label {
    margin-bottom: 6px;
    font-size: 0.92em;
    color: #666;
}

.event-meta-value {
    color: #222;
    line-height: 1.45;
    font-weight: 600;
}

.event-image-wrap {
    margin: 0 0 1.5em;
    max-width: 720px;
    max-height: 420px;
    padding: 8px;
    border-radius: 10px;
    background: #f8f8f8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.event-image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 404px;
    object-fit: contain;
    border-radius: 6px;
    background: #f3f3f3;
}

.event-description {
    line-height: 1.7;
    color: #222;
}

.event-description p:first-child {
    margin-top: 0;
}

.event-description img {
    max-width: 100%;
    height: auto;
}

.event-empty-text {
    color: #666;
}

@media (max-width: 700px) {
    .event-meta-grid {
        grid-template-columns: 1fr;
    }

    .event-image {
        max-width: 100%;
        max-height: 280px;
    }
}
/* =========================================================
   24. schedule
========================================================= */

.schedule-teacher {
    font-weight: 500;
    color: #333;
}

.schedule-course-link-department,
.schedule-course-link-department:visited {
    color: #800000;
    text-decoration: none;
    font-weight: 700;
}

.schedule-course-link-department:hover,
.schedule-course-link-department:focus {
    color: #004080;
    text-decoration: underline;
}

.schedule-course-badge {
    display: inline-block;
    margin-top: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.8em;
    font-weight: 600;
    background: #f3e8e8;
    color: #800000;
}

.schedule-course-text {
    color: #222;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    margin-top: 30px;
    background: #0b3d78;
    color: #fff;
}

.site-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 54px;
    padding: 0 0 0 20px;
}

.site-footer-content p {
    margin: 0;
    font-size: 0.95em;
}

.site-footer-image {
    display: block;
    height: 54px;
    width: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
    opacity: 0.95;
}

@media (max-width: 700px) {
    .site-footer-content {
        justify-content: center;
        text-align: center;
        padding: 0 14px;
        min-height: 48px;
    }

    .site-footer-image {
        display: none;
    }
}

/* =========================================================
   24. GRADUATES PAGE
========================================================= */

.graduates-page .graduates-intro {
    margin-bottom: 1.5em;
    color: #222;
    line-height: 1.6;
}

.graduates-filters {
    margin-bottom: 1.4em;
}

.graduates-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: end;
}

.graduates-filter-field {
    display: flex;
    flex-direction: column;
}

.graduates-filter-field label {
    margin-bottom: 6px;
    color: #222;
    font-weight: 600;
}

.graduates-filter-field input,
.graduates-filter-field select {
    min-width: 220px;
    padding: 8px 10px;
    border: 1px solid #aaa;
    background: #fff;
}

.graduates-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.graduates-filter-actions button {
    padding: 8px 14px;
    border: 1px solid #888;
    background: #f2f2f2;
    cursor: pointer;
}

.graduates-filter-actions button:hover {
    background: #e8e8e8;
}

.graduates-reset {
    color: #004080;
    text-decoration: none;
}

.graduates-reset:hover,
.graduates-reset:focus {
    text-decoration: underline;
}

.graduates-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.graduates-year-group {
    border-top: 2px solid #004080;
    padding-top: 12px;
}

.graduates-year-title {
    margin: 0 0 14px 0;
    color: #004080;
}

.graduates-level-group {
    margin-top: 16px;
}

.graduates-level-title {
    display: inline-block;
    margin: 0 0 10px 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f3e8e8;
    color: #800000;
    font-size: 0.98em;
    font-weight: 700;
}

.graduate-item {
    padding: 12px 0;
    border-top: 1px solid #dddddd;
}

.graduate-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.graduate-main-line {
    margin-bottom: 6px;
    line-height: 1.5;
}

.graduate-student {
    color: #111;
    font-weight: 600;
}

.graduate-inline-level {
    margin-left: 6px;
    color: #777;
    font-size: 0.92em;
    font-weight: 400;
}

.graduate-meta {
    margin-top: 4px;
    color: #333;
    line-height: 1.5;
}

.graduate-link,
.graduate-link:visited {
    color: #004080;
    text-decoration: none;
}

.graduate-link:hover,
.graduate-link:focus {
    text-decoration: underline;
}

.graduates-empty {
    color: #666;
    padding: 8px 0;
}

@media (max-width: 700px) {
    .graduates-filters form {
        flex-direction: column;
        align-items: stretch;
    }

    .graduates-filter-field input,
    .graduates-filter-field select {
        width: 100%;
        min-width: 0;
    }

    .graduates-filter-actions {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

/* =========================================================
   25. ARCHIVE PAGE
========================================================= */

.home-archive-link-wrap {
    margin-top: 18px;
    text-align: right;
}

.home-archive-link,
.home-archive-link:visited {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #bfc9d8;
    border-radius: 20px;
    background: #f7f9fc;
    color: #004080;
    text-decoration: none;
    font-size: 0.95em;
}

.home-archive-link:hover,
.home-archive-link:focus {
    background: #edf3fb;
    text-decoration: none;
}

.archive-page .archive-intro {
    margin-bottom: 1.5em;
    color: #222;
    line-height: 1.6;
}

.archive-filters {
    margin-bottom: 1.5em;
}

.archive-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: end;
}

.archive-filter-field {
    display: flex;
    flex-direction: column;
}

.archive-filter-field label {
    margin-bottom: 6px;
    color: #222;
    font-weight: 600;
}

.archive-filter-field input,
.archive-filter-field select {
    min-width: 180px;
    padding: 8px 10px;
    border: 1px solid #aaa;
    background: #fff;
}

.archive-filter-search input {
    min-width: 260px;
}

.archive-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.archive-filter-actions button {
    padding: 8px 14px;
    border: 1px solid #888;
    background: #f2f2f2;
    cursor: pointer;
}

.archive-filter-actions button:hover {
    background: #e8e8e8;
}

.archive-reset {
    color: #004080;
    text-decoration: none;
}

.archive-reset:hover,
.archive-reset:focus {
    text-decoration: underline;
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.archive-empty {
    color: #666;
    padding: 8px 0;
}

@media (max-width: 700px) {
    .archive-filters form {
        flex-direction: column;
        align-items: stretch;
    }

    .archive-filter-field input,
    .archive-filter-field select,
    .archive-filter-search input {
        width: 100%;
        min-width: 0;
    }

    .archive-filter-actions {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .home-archive-link-wrap {
        text-align: left;
    }
}

/* =========================================================
   27. HISTORY PAGE
========================================================= */

.history-page {
    width: 100%;
}

.history-section {
    margin-bottom: 34px;
}

.history-section h2 {
    margin: 0 0 16px 0;
    color: #004080;
    font-size: 1.7em;
    line-height: 1.25;
}

.history-hero {
    position: relative;
    overflow: hidden;
    padding: 38px 30px;
    border-radius: 12px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(0,64,128,0.94), rgba(0,34,74,0.92));
    color: #fff;
}

.history-hero-inner {
    max-width: none;
    width: 100%;
    position: relative;
    z-index: 2;
}

.history-hero h1 {
    margin: 0 0 14px 0;
    color: #fff;
    font-size: 2.1em;
    line-height: 1.2;
}

.history-hero-subtitle {
    margin: 0;
    line-height: 1.7;
    font-size: 1.04em;
    max-width: none;
    width: 100%;
}

.history-hero-button,
.history-hero-button:visited {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 7px;
    background: #fff;
    color: #004080;
    text-decoration: none;
    font-weight: 700;
}

.history-hero-button:hover,
.history-hero-button:focus {
    background: #eef5ff;
    text-decoration: none;
}

.history-subnav {
    position: sticky;
    top: 12px;
    z-index: 20;
    margin-bottom: 26px;
    padding: 12px 16px;
    border: 1px solid #d6e0eb;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    backdrop-filter: blur(4px);
}

.history-subnav a,
.history-subnav a:visited {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 8px;
    color: #004080;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    line-height: 1.2;
    background: #f7faff;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.history-subnav a:hover,
.history-subnav a:focus {
    background: #eaf2ff;
    border-color: #cddced;
    text-decoration: none;
}

@media (max-width: 700px) {
    .history-subnav {
        position: static;
    }
}

#history-intro,
#history-timeline,
#history-leaders,
#history-directions,
#history-awards,
#history-international,
#history-gallery {
    scroll-margin-top: 120px;
}

.history-box,
.history-lead-box,
.history-awards-box {
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
}

.history-lead-box {
    background: #f8fbff;
    border-color: #d7e4f2;
}

.history-box p,
.history-lead-box p,
.history-awards-box p {
    line-height: 1.7;
}

.history-box p:first-child,
.history-lead-box p:first-child,
.history-awards-box p:first-child {
    margin-top: 0;
}

.history-box p:last-child,
.history-lead-box p:last-child,
.history-awards-box p:last-child {
    margin-bottom: 0;
}

.history-timeline {
    position: relative;
    padding-left: 34px;
}

.history-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 11px;
    bottom: 0;
    width: 3px;
    background: #d8e2ef;
    border-radius: 3px;
}

.history-timeline-item {
    position: relative;
    margin-bottom: 22px;
}

.history-timeline-marker {
    position: absolute;
    left: -34px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #004080;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #d8e2ef;
    z-index: 2;
}

.history-timeline-year {
    margin-bottom: 8px;
    color: #004080;
    font-weight: 700;
    font-size: 1.02em;
}

.history-timeline-card {
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    padding: 16px 18px;
}

.history-timeline-card h3 {
    margin: 0 0 8px 0;
    color: #004080;
    font-size: 1.12em;
    line-height: 1.35;
}

.history-timeline-card p {
    margin: 0;
    line-height: 1.65;
}

.history-leaders-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.history-leader-card {
    width: calc(50% - 9px);
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    overflow: hidden;
}

.history-leader-photo {
    width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #eef3f8;
    padding: 10px;
}

.history-leader-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6d7a88;
    font-weight: 600;
}

.history-leader-body {
    padding: 18px;
}

.history-leader-body h3 {
    margin: 0 0 10px 0;
    color: #004080;
    font-size: 1.18em;
    line-height: 1.35;
}

.history-leader-meta {
    margin-bottom: 12px;
    color: #555;
    font-size: 0.95em;
    line-height: 1.55;
}

.history-leader-meta div {
    margin-bottom: 4px;
}

.history-leader-body p {
    margin: 0;
    line-height: 1.65;
}

.history-directions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.history-direction-card {
    width: calc(33.333% - 11px);
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    padding: 18px;
}

.history-direction-card h3 {
    margin: 0 0 10px 0;
    color: #004080;
    font-size: 1.08em;
    line-height: 1.35;
}

.history-direction-card p {
    margin: 0;
    line-height: 1.65;
}

.history-awards-box {
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border-color: #d7e4f2;
}

.history-awards-list,
.history-partners-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.7;
}

.history-inline-links {
    margin-top: 14px;
}

.history-inline-links a,
.history-inline-links a:visited {
    color: #004080;
    text-decoration: none;
    font-weight: 600;
}

.history-inline-links a:hover,
.history-inline-links a:focus {
    text-decoration: underline;
}

.history-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.history-gallery-item {
    width: calc(33.333% - 11px);
    margin: 0;
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    overflow: hidden;
}

.history-gallery-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #eef3f8;
}

.history-gallery-item figcaption {
    padding: 12px 14px;
    line-height: 1.55;
    color: #333;
}

@media (max-width: 1000px) {
    .history-leader-card,
    .history-direction-card,
    .history-gallery-item {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .history-hero {
        padding: 28px 20px;
    }

    .history-hero h1 {
        font-size: 1.75em;
    }

    .history-subnav {
        position: static;
    }

    .history-timeline {
        padding-left: 28px;
    }

    .history-timeline:before {
        left: 9px;
    }

    .history-timeline-marker {
        left: -28px;
    }
}
.history-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.history-gallery-item {
    width: calc(33.333% - 11px);
    margin: 0;
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.history-gallery-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: #eef3f8;
}

.history-gallery-item figcaption {
    padding: 10px 12px;
    line-height: 1.5;
    color: #333;
    font-size: 0.95em;
}

@media (max-width: 1000px) {
    .history-gallery-item {
        width: calc(50% - 8px);
    }
}

@media (max-width: 700px) {
    .history-gallery-item {
        width: 100%;
    }
}

/* =========================================================
   29. PRACTICUM PAGE
========================================================= */

.practicum-page .practicum-intro {
    margin-bottom: 1.5em;
    color: #222;
    line-height: 1.6;
}

.practicum-page h2 {
    margin: 1.4em 0 0.7em;
    color: #004080;
    font-size: 1.5em;
    line-height: 1.25;
    position: relative;
}

.practicum-page h2:after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 8px;
    border-radius: 3px;
    background: #800000;
}

.practicum-settings {
    margin-bottom: 2em;
}

.practicum-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.practicum-settings-item {
    background: #fafafa;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 14px 16px;
}

.practicum-settings-label {
    margin-bottom: 6px;
    color: #666;
    font-size: 0.92em;
}

.practicum-settings-value {
    color: #222;
    line-height: 1.5;
    font-weight: 600;
}

.practicum-staff-link,
.practicum-staff-link:visited {
    color: #004080;
    text-decoration: none;
}

.practicum-staff-link:hover,
.practicum-staff-link:focus {
    text-decoration: underline;
}

.practicum-important-box,
.practicum-note-box {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid #d7e4f2;
    background: #f8fbff;
}

.practicum-important-title,
.practicum-note-title {
    margin-bottom: 8px;
    color: #004080;
    font-weight: 700;
}

.practicum-important-text,
.practicum-note-text {
    line-height: 1.65;
    color: #222;
}

.practicum-tasks-header {
    margin-bottom: 1.2em;
}

.practicum-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: end;
}

.practicum-filter-field {
    display: flex;
    flex-direction: column;
}

.practicum-filter-field label {
    margin-bottom: 6px;
    color: #222;
    font-weight: 600;
}

.practicum-filter-field input {
    min-width: 260px;
    padding: 8px 10px;
    border: 1px solid #aaa;
    background: #fff;
}

.practicum-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.practicum-filter-actions button {
    padding: 8px 14px;
    border: 1px solid #888;
    background: #f2f2f2;
    cursor: pointer;
}

.practicum-filter-actions button:hover {
    background: #e8e8e8;
}

.practicum-reset {
    color: #004080;
    text-decoration: none;
}

.practicum-reset:hover,
.practicum-reset:focus {
    text-decoration: underline;
}

.practicum-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.practicum-task-card {
    border: 1px solid #e1e7ef;
    border-radius: 12px;
    background: #fff;
    padding: 18px;
}

.practicum-task-main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.practicum-task-photo-wrap {
    flex: 0 0 240px;
    width: 240px;
    min-height: 170px;
    padding: 8px;
    border-radius: 10px;
    background: #f8f8f8;
    box-shadow: inset 0 0 0 1px #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.practicum-task-photo {
    width: 100%;
    height: 154px;
    object-fit: contain;
    object-position: center center;
    border-radius: 8px;
    background: #f3f3f3;
}

.practicum-task-content {
    flex: 1 1 auto;
    min-width: 0;
}

.practicum-task-title {
    margin: 0 0 10px 0;
    color: #004080;
    font-size: 1.25em;
    line-height: 1.3;
}

.practicum-task-description {
    line-height: 1.65;
    color: #222;
}

.practicum-task-block {
    margin-top: 14px;
}

.practicum-task-block-title {
    margin-bottom: 6px;
    color: #800000;
    font-weight: 700;
}

.practicum-exercises-list,
.practicum-materials-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.65;
}

.practicum-material-item {
    margin-bottom: 8px;
}

.practicum-material-link,
.practicum-material-link:visited {
    color: #004080;
    text-decoration: none;
    font-weight: 600;
}

.practicum-material-link:hover,
.practicum-material-link:focus {
    text-decoration: underline;
}

.practicum-material-type {
    color: #666;
    font-size: 0.92em;
}

.practicum-material-description {
    margin-top: 4px;
    color: #444;
    line-height: 1.5;
    font-size: 0.95em;
}

.practicum-empty {
    color: #666;
    padding: 8px 0;
}

@media (max-width: 800px) {
    .practicum-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .practicum-filter-field input {
        width: 100%;
        min-width: 0;
    }

    .practicum-filter-actions {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .practicum-task-main {
        flex-direction: column;
    }

    .practicum-task-photo-wrap {
        width: 100%;
        max-width: 220px;
        min-height: 0;
        flex-basis: auto;
    }

    .practicum-task-photo {
        width: 100%;
        height: 280px;
    }
}
/* =========================================================
   31. COURSEWORK PAGE
========================================================= */

.coursework-hero-centered {
    text-align: center;
    padding: 2rem 0;
}

.coursework-hero-text-centered {
    max-width: 700px;
    margin: 0 auto;
}

.coursework-page .motivation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.motivation-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.motivation-card:hover {
    transform: translateY(-3px);
}

.motivation-card i {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 0.75rem;
}

.motivation-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #004080;
}

.motivation-card p {
    font-size: 0.85rem;
    color: #334155;
    margin: 0;
}

.tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #1e3a8a;
    border-bottom-color: #1e3a8a;
    margin-bottom: -2px;
}

.coursework-filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.coursework-filter-field-wide {
    flex: 2;
}

.random-idea-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-left: 5px solid #1e3a8a;
    padding: 1.2rem;
    border-radius: 20px;
    margin: 1.5rem 0;
}

.coursework-random-note {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.coursework-random-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.7rem 0;
}

.coursework-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.topic-card {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.topic-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.topic-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #004080;
}

.topic-badge {
    display: inline-block;
    background: #eef2ff;
    color: #1e3a8a;
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.topic-year {
    font-size: 0.8rem;
    color: #64748b;
}

.coursework-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.coursework-staff-bridge {
    text-align: center;
    margin: 3rem 0;
}

.staff-mini {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.staff-mini-card {
    text-align: center;
    width: 120px;
}

.staff-mini-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.staff-mini-name,
.staff-mini-name:visited {
    text-decoration: none;
    font-weight: 600;
    color: #004080;
}

.staff-mini-position {
    font-size: 0.75rem;
    margin: 0.35rem 0 0 0;
}

.coursework-staff-more {
    margin-top: 1rem;
}

.coursework-faq-block {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.faq-item {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.faq-question {
    font-weight: 600;
    padding: 1rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    display: none;
    padding-bottom: 1rem;
    color: #475569;
}

@media (max-width: 640px) {
    .coursework-page .motivation-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .coursework-topics-grid {
        grid-template-columns: 1fr;
    }

    .staff-mini-card {
        width: 100px;
    }
}

.coursework-supervisor-note {
    display: inline;
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

/* Карточки тем — фиксированная высота, аккуратная обрезка */
.topic-card {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.topic-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #004080;
    line-height: 1.35;
}

.coursework-topic-supervisor {
    margin: 0 0 0.6rem 0;
    line-height: 1.5;
}

.topic-year {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 0.8rem 0;
}

.coursework-topic-meta {
    margin-top: auto;
    padding-top: 0.5rem;
}

.topic-description-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.topic-description-badge--yes {
    background: #e8f5e9;
    color: #2e7d32;
}

.topic-description-badge--no {
    background: #f3f4f6;
    color: #6b7280;
}

.topic-card-actions {
    margin-top: 0.8rem;
}

.topic-more-button {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #c7d8ea;
    border-radius: 8px;
    background: #ffffff;
    color: #004080;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.topic-more-button:hover,
.topic-more-button:focus {
    background: #f3f8ff;
}

.topic-no-description {
    color: #777;
    font-size: 0.9rem;
}

/* ===== MODAL ===== */

body.modal-open {
    overflow: hidden;
}

.coursework-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
}

.coursework-modal.is-open {
    display: block;
}

.coursework-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.coursework-modal-dialog {
    position: relative;
    z-index: 2;
    width: calc(100% - 32px);
    max-width: 760px;
    margin: 40px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.coursework-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.coursework-modal-content {
    padding: 24px;
}

.coursework-modal-type {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 0.82rem;
    font-weight: 700;
}

.coursework-modal-title {
    margin: 0 0 14px 0;
    color: #004080;
    line-height: 1.35;
}

.coursework-modal-meta {
    margin-bottom: 16px;
    color: #444;
    line-height: 1.6;
}

.coursework-modal-description {
    line-height: 1.7;
    color: #222;
}

@media (max-width: 700px) {
    .topic-card {
        min-height: 200px;
    }

    .coursework-modal-dialog {
        width: calc(100% - 20px);
        margin: 20px auto;
    }

    .coursework-modal-content {
        padding: 18px;
    }
}

/* =========================================================
   32. STUDENTS PAGE
========================================================= */

.students-page h1 {
    margin-bottom: 0.5rem;
}

.students-page h1 i {
    margin-right: 8px;
    color: #1e3a8a;
}

.students-subhead {
    color: #475569;
    margin-bottom: 2rem;
    border-left: 4px solid #1e3a8a;
    padding-left: 1rem;
    line-height: 1.6;
}

.students-nav-anchors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.students-nav-anchors a,
.students-nav-anchors a:visited {
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    text-decoration: none;
    color: #1e3a8a;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.students-nav-anchors a:hover,
.students-nav-anchors a:focus {
    background: #1e3a8a;
    color: #fff;
    text-decoration: none;
}

.students-course-card {
    background: #fff;
    border-radius: 24px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}

.students-course-header {
    background: #ffffff;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.students-course-header:hover {
    background: #f8fafc;
}

.students-course-title {
    font-size: 1.35rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1e293b;
}

.students-course-title i {
    color: #1e3a8a;
}

.students-toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #64748b;
}

.students-course-content {
    display: none;
    padding: 1.5rem;
    border-top: 1px solid #eef2ff;
}

.students-course-content.active {
    display: block;
}

.students-curator-block {
    background: #f1f5f9;
    border-radius: 20px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.students-curator-photo {
    width: 80px;
    height: 80px;
    background: #cbd5e1;
    border-radius: 50%;
    object-fit: cover;
}

.students-curator-info h3 {
    font-size: 1.15rem;
    margin: 0 0 0.25rem 0;
}

.students-curator-info p {
    margin: 0.2rem 0;
    color: #334155;
}

.students-announcement {
    background: #fff7e5;
    border-left: 4px solid #eab308;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    line-height: 1.6;
}

.students-important-info {
    background: #f8fbff;
    border-left: 4px solid #1e3a8a;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    line-height: 1.6;
    color: #334155;
}

.students-block-title {
    margin: 1rem 0 0.8rem;
    color: #004080;
    font-size: 1.15rem;
}

.students-course-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.students-course-links a,
.students-course-links a:visited {
    background: #eef2ff;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.92rem;
    color: #1e3a8a;
}

.students-course-links a:hover,
.students-course-links a:focus {
    background: #dfe7ff;
    text-decoration: none;
}

.students-search-box {
    margin: 1rem 0;
    width: 100%;
    max-width: 320px;
    border: 1px solid #cbd5e1;
    border-radius: 40px;
    padding: 0.55rem 1rem;
    background: #fff;
}

.students-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.students-table th,
.students-table td {
    text-align: left;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.students-table th {
    background: #f8fafc;
    font-weight: 600;
}

.students-empty,
.students-empty-inline {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .students-nav-anchors {
        gap: 0.5rem;
    }

    .students-course-title {
        font-size: 1.1rem;
    }

    .students-table th,
    .students-table td {
        font-size: 0.85rem;
    }

    .students-curator-block {
        align-items: flex-start;
    }
}
        /* Дополнительные стили для страницы исследовательских работ */
        .research-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 2rem;
            align-items: flex-end;
        }
        .filter-group {
            flex: 1;
            min-width: 180px;
        }
        .filter-group label {
            display: block;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 0.25rem;
            color: #2c3e66;
        }
        .filter-group select, .filter-group input {
            width: 100%;
            padding: 0.5rem;
            border: 1px solid #ccc;
            border-radius: 6px;
        }
        .filter-group button {
            background: #2c3e66;
            color: white;
            border: none;
            padding: 0.5rem 1.2rem;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
        }
        .filter-group button:hover {
            background: #1e2a46;
        }
        .research-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 1.5rem;
            margin: 1.5rem 0;
        }
        .research-card {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: transform 0.2s;
            display: flex;
            flex-direction: column;
        }
        .research-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 6px 14px rgba(0,0,0,0.12);
        }
        .card-header {
            padding: 1rem 1rem 0.5rem 1rem;
            border-bottom: 1px solid #eee;
        }
        .card-header .type-badge {
            display: inline-block;
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.2rem 0.7rem;
            border-radius: 20px;
            background: #eef2ff;
            color: #1e3a8a;
            margin-bottom: 0.5rem;
        }
        .card-header h3 {
            margin: 0.5rem 0 0.25rem;
            font-size: 1.2rem;
        }
        .card-body {
            padding: 1rem;
            flex-grow: 1;
        }
        .card-body p {
            margin: 0.5rem 0;
            font-size: 0.9rem;
            color: #333;
        }
        .card-body .description {
            font-size: 0.9rem;
            line-height: 1.4;
            color: #555;
            max-height: 100px;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .card-footer {
            padding: 0.75rem 1rem;
            background: #f9fafb;
            font-size: 0.85rem;
            border-top: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
        }
        .research-directions {
            font-size: 0.8rem;
            color: #2c3e66;
        }
        .pagination {
            margin: 2rem 0 1rem;
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        .pagination a, .pagination span {
            display: inline-block;
            padding: 0.4rem 0.8rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            text-decoration: none;
            color: #2c3e66;
        }
        .pagination a:hover {
            background: #eef2ff;
        }
        .pagination .current {
            background: #2c3e66;
            border-color: #2c3e66;
            color: white;
        }
        @media (max-width: 768px) {
            .research-grid { grid-template-columns: 1fr; }
        }
		
		        /* Дополнительные стили для страницы направлений */
        .directions-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 2rem;
            align-items: flex-end;
        }
        .filter-group {
            flex: 1;
            min-width: 200px;
        }
        .filter-group label {
            display: block;
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 0.25rem;
            color: #2c3e66;
        }
        .filter-group input {
            width: 100%;
            padding: 0.5rem;
            border: 1px solid #ccc;
            border-radius: 6px;
        }
        .filter-group button {
            background: #2c3e66;
            color: white;
            border: none;
            padding: 0.5rem 1.2rem;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
        }
        .filter-group button:hover {
            background: #1e2a46;
        }
        .directions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 1.5rem;
            margin: 1.5rem 0;
        }
        .direction-card {
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
            display: flex;
            flex-direction: column;
        }
        .direction-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.12);
        }
        .card-img {
            width: 100%;
            height: 160px;
            object-fit: cover;
            background: #eef2ff;
        }
        .card-content {
            padding: 1.2rem;
            flex-grow: 1;
        }
        .card-title {
            font-size: 1.25rem;
            margin: 0 0 0.5rem 0;
            font-weight: 600;
            color: #1e2a46;
        }
        .card-title a {
            text-decoration: none;
            color: inherit;
        }
        .card-title a:hover {
            text-decoration: underline;
        }
        .short-desc {
            font-size: 0.9rem;
            color: #444;
            line-height: 1.4;
            margin-bottom: 1rem;
        }
        .keywords {
            font-size: 0.8rem;
            color: #666;
            margin-bottom: 1rem;
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
        }
        .keyword {
            background: #eef2ff;
            padding: 0.2rem 0.7rem;
            border-radius: 20px;
        }
        .staff-list, .works-list {
            margin: 0.8rem 0 0;
            padding-left: 1rem;
            font-size: 0.85rem;
        }
        .staff-list li, .works-list li {
            margin-bottom: 0.2rem;
        }
        .works-list a {
            text-decoration: none;
        }
        .works-list a:hover {
            text-decoration: underline;
        }
        .card-footer {
            padding: 0.8rem 1.2rem;
            background: #f9fafb;
            border-top: 1px solid #eee;
            font-size: 0.8rem;
            text-align: right;
        }
        .btn-more {
            color: #2c3e66;
            font-weight: 600;
            text-decoration: none;
        }
        .btn-more:hover {
            text-decoration: underline;
        }
        .pagination {
            margin: 2rem 0 1rem;
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        .pagination a, .pagination span {
            display: inline-block;
            padding: 0.4rem 0.8rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            text-decoration: none;
            color: #2c3e66;
        }
        .pagination a:hover {
            background: #eef2ff;
        }
        .pagination .current {
            background: #2c3e66;
            border-color: #2c3e66;
            color: white;
        }
        @media (max-width: 768px) {
            .directions-grid { grid-template-columns: 1fr; }
        }

/* =========================================================
   33. RESEARCH PAGE
========================================================= */

.research-page .research-back-link {
    margin-bottom: 1.2em;
}

.research-page .research-back-link a,
.research-page .research-back-link a:visited {
    color: #004080;
    text-decoration: none;
}

.research-page .research-back-link a:hover,
.research-page .research-back-link a:focus {
    text-decoration: underline;
}

.research-card-placeholder {
    background: #d9e2ef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e66;
    text-align: center;
    padding: 1rem;
}

.research-detail-card {
    margin-top: 1em;
}

.research-detail-image-wrap {
    margin-bottom: 1.5em;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f3f3;
}

.research-detail-image {
    display: block;
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    object-position: center center;
}

.research-detail-header {
    margin-bottom: 1.5em;
}

.research-detail-header h1 {
    margin-bottom: 0.5em;
}

.research-detail-lead {
    font-size: 1.05em;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 1em;
}

.research-detail-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.research-keyword {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 0.9em;
}

.research-detail-block {
    margin: 1.8em 0;
    padding-top: 0.2em;
}

.research-detail-block h2 {
    margin-bottom: 0.8em;
    color: #004080;
}

.research-detail-text {
    line-height: 1.7;
    color: #222;
}

.research-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.research-staff-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.research-staff-image {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    background: #f3f3f3;
    flex: 0 0 72px;
}

.research-staff-text {
    min-width: 0;
    flex: 1 1 auto;
}

.research-staff-name {
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
}

.research-staff-name a,
.research-staff-name a:visited {
    color: #000;
    text-decoration: none;
}

.research-staff-name a:hover,
.research-staff-name a:focus {
    color: #004080;
    text-decoration: underline;
}

.research-staff-position {
    color: #555;
    line-height: 1.5;
    font-size: 0.95em;
}

.research-related-works {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.research-related-work-item {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.research-related-work-title {
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 4px;
}

.research-related-work-title a,
.research-related-work-title a:visited {
    color: #000;
    text-decoration: none;
}

.research-related-work-title a:hover,
.research-related-work-title a:focus {
    color: #004080;
    text-decoration: underline;
}

.research-related-work-meta {
    color: #475569;
    font-size: 0.95em;
    line-height: 1.5;
}

.research-related-work-note {
    margin-top: 4px;
    color: #444;
    font-size: 0.95em;
    line-height: 1.5;
}

.research-empty-note {
    color: #666;
}

@media (max-width: 700px) {
    .research-detail-image {
        max-height: 240px;
    }

    .research-staff-card {
        padding: 12px;
    }
}

/* =========================================================
   34. PROJECTS PAGE
========================================================= */

.projects-page .projects-back-link {
    margin-bottom: 1.2em;
}

.projects-page .projects-back-link a,
.projects-page .projects-back-link a:visited {
    color: #004080;
    text-decoration: none;
}

.projects-page .projects-back-link a:hover,
.projects-page .projects-back-link a:focus {
    text-decoration: underline;
}

.project-card-title-link,
.project-card-title-link:visited {
    color: inherit;
    text-decoration: none;
}

.project-card-title-link:hover,
.project-card-title-link:focus {
    color: #004080;
    text-decoration: underline;
}

.project-more-link,
.project-more-link:visited {
    color: #004080;
    text-decoration: none;
    font-weight: 600;
}

.project-more-link:hover,
.project-more-link:focus {
    text-decoration: underline;
}

.project-detail-card {
    margin-top: 1em;
}

.project-detail-header {
    margin-bottom: 1.4em;
}

.project-detail-badge {
    display: inline-block;
    margin-bottom: 0.8em;
    padding: 5px 12px;
    border-radius: 20px;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 0.9em;
    font-weight: 700;
}

.project-detail-header h1 {
    margin-bottom: 0;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 1.5em 0;
}

.project-meta-item {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.project-meta-label {
    margin-bottom: 6px;
    color: #555;
    font-size: 0.92em;
}

.project-meta-value {
    color: #111;
    line-height: 1.5;
    font-weight: 600;
}

.project-meta-value a,
.project-meta-value a:visited {
    color: #004080;
    text-decoration: none;
}

.project-meta-value a:hover,
.project-meta-value a:focus {
    text-decoration: underline;
}

.project-detail-block {
    margin: 1.8em 0;
}

.project-detail-block h2 {
    margin-bottom: 0.8em;
    color: #004080;
}

.project-detail-text {
    line-height: 1.7;
    color: #222;
}

.project-directions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-direction-item {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.project-direction-title {
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 4px;
}

.project-direction-title a,
.project-direction-title a:visited {
    color: #000;
    text-decoration: none;
}

.project-direction-title a:hover,
.project-direction-title a:focus {
    color: #004080;
    text-decoration: underline;
}

.project-direction-text {
    color: #475569;
    line-height: 1.55;
    font-size: 0.95em;
}

.projects-empty-note {
    color: #666;
}

/* =========================================================
   35. INSTALLATIONS PAGE
========================================================= */

.installation-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background: #eef2ff;
    color: #2c3e66;
}

.installation-card-title-link,
.installation-card-title-link:visited {
    color: inherit;
    text-decoration: none;
}

.installation-card-title-link:hover,
.installation-card-title-link:focus {
    color: #004080;
    text-decoration: underline;
}

.installation-more-link,
.installation-more-link:visited {
    color: #004080;
    text-decoration: none;
    font-weight: 600;
}

.installation-more-link:hover,
.installation-more-link:focus {
    text-decoration: underline;
}

.installations-back-link {
    margin-bottom: 1.2em;
}

.installations-back-link a,
.installations-back-link a:visited {
    color: #004080;
    text-decoration: none;
}

.installations-back-link a:hover,
.installations-back-link a:focus {
    text-decoration: underline;
}

.installation-detail-card {
    margin-top: 1em;
}

.installation-detail-image-wrap {
    margin-bottom: 1.5em;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f3f3;
}

.installation-detail-image {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    object-position: center center;
    background: #f7f7f7;
}

.installation-detail-header {
    margin-bottom: 1.4em;
}

.installation-detail-header h1 {
    margin-bottom: 0;
}

.installation-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin: 1.5em 0;
}

.installation-meta-item {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.installation-meta-label {
    margin-bottom: 6px;
    color: #555;
    font-size: 0.92em;
}

.installation-meta-value {
    color: #111;
    line-height: 1.5;
    font-weight: 600;
}

.installation-meta-value a,
.installation-meta-value a:visited {
    color: #004080;
    text-decoration: none;
}

.installation-meta-value a:hover,
.installation-meta-value a:focus {
    text-decoration: underline;
}

.installation-meta-note {
    margin-top: 4px;
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
}

.installation-detail-block {
    margin: 1.8em 0;
}

.installation-detail-block h2 {
    margin-bottom: 0.8em;
    color: #004080;
}

.installation-detail-text {
    line-height: 1.7;
    color: #222;
}

.installations-empty-note {
    color: #666;
}

@media (max-width: 700px) {
    .installation-detail-image {
        max-height: 260px;
    }
}
/* список установок */
.installations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 420px));
    gap: 1.5rem;
    margin: 1.5rem 0;
    justify-content: start;
}

.installation-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.installation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center center;
    background: #eef2ff;
    display: block;
}

@media (max-width: 768px) {
    .installations-grid {
        grid-template-columns: 1fr;
    }

    .installation-card {
        max-width: 100%;
    }

    .card-img {
        height: 200px;
    }
}

.about-callouts {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.about-callout {
    flex: 1;
    min-width: 260px;
    background: #f9fafc;
    border-radius: 28px;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.about-callout:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.1);
}
.callout-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e66;
}
.about-callout h3 {
    font-size: 1.4rem;
    margin: 0 0 0.75rem 0;
}
.about-callout p {
    color: #334155;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}
.callout-button,
.callout-button:visited {
    display: inline-block;
    background: #2c3e66;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.callout-button:hover,
.callout-button:focus {
    background: #1e2a46;
    color: #fff;
    text-decoration: none;
}

.callout-button:active {
    color: #fff;
}
@media (max-width: 680px) {
    .about-callouts {
        flex-direction: column;
    }
}

/* =========================================================
   36. ABOUT: HISTORY STRIP + COLLABORATIONS
========================================================= */

.about-history-strip {
    position: relative;
    margin: 1.4rem 0 1rem;
    padding: 1.4rem 0 0.4rem;
}

.about-history-line {
    position: absolute;
    top: 2rem;
    left: 0;
    right: 90px;
    height: 3px;
    background: linear-gradient(90deg, #9b0000 0%, #004080 100%);
    border-radius: 999px;
}

.about-history-strip {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.about-history-point {
    position: relative;
    min-width: 70px;
    text-align: center;
    padding-top: 1.2rem;
    flex: 0 0 auto;
}

.about-history-point:before {
    content: '';
    position: absolute;
    top: 0.7rem;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    background: #004080;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(0,64,128,0.15);
}

.about-history-year {
    display: inline-block;
    font-weight: 700;
    color: #004080;
    font-size: 0.95rem;
    white-space: nowrap;
}

.about-history-now {
    flex: 0 0 auto;
    padding-top: 1.05rem;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

.about-collaborations-preview {
    margin-top: 2rem;
}

.about-collab-intro {
    margin-bottom: 1rem;
}

.about-collab-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 1rem 0 1.4rem;
}

.about-collab-stat {
    min-width: 120px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #d9e4f2;
    text-align: center;
}

.about-collab-stat-number {
    font-size: 1.7rem;
    font-weight: 700;
    color: #004080;
    line-height: 1.1;
}

.about-collab-stat-label {
    margin-top: 4px;
    color: #555;
    font-size: 0.95rem;
}

.about-collab-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin-top: 1rem;
}

.about-collab-logo-card {
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e3e8ef;
    text-align: center;
}

.about-collab-logo {
    width: 100%;
    max-width: 120px;
    height: 72px;
    margin: 0 auto 10px;
    object-fit: contain;
    display: block;
}

.about-collab-logo-placeholder {
    width: 100%;
    max-width: 120px;
    height: 72px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #2c3e66;
    font-size: 0.85rem;
    border-radius: 10px;
    padding: 8px;
}

.about-collab-title {
    font-weight: 600;
    color: #111;
    line-height: 1.4;
}

.about-collab-city {
    margin-top: 4px;
    color: #666;
    font-size: 0.92rem;
}

@media (max-width: 700px) {
    .about-history-point {
        min-width: 64px;
    }

    .about-collab-stats {
        gap: 10px;
    }

    .about-collab-stat {
        min-width: 100px;
        flex: 1 1 100px;
    }
}

/* =========================================================
   37. COLLABORATIONS PAGE
========================================================= */

.collaborations-page .collaborations-lead {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #334155;
}

.collaborations-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: end;
    margin-bottom: 1.8rem;
}

.collaborations-filter-field {
    display: flex;
    flex-direction: column;
}

.collaborations-filter-field-wide {
    flex: 1 1 320px;
}

.collaborations-filter-field label {
    margin-bottom: 6px;
    color: #222;
    font-weight: 600;
}

.collaborations-filter-field select,
.collaborations-filter-field input {
    min-width: 220px;
    padding: 8px 10px;
    border: 1px solid #aaa;
    background: #fff;
}

.collaborations-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.collaborations-filter-actions button {
    padding: 8px 14px;
    border: 1px solid #888;
    background: #f2f2f2;
    cursor: pointer;
}

.collaborations-filter-actions button:hover {
    background: #e8e8e8;
}

.collaborations-reset-link,
.collaborations-reset-link:visited {
    color: #004080;
    text-decoration: none;
}

.collaborations-reset-link:hover,
.collaborations-reset-link:focus {
    text-decoration: underline;
}

.collaborations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.collaboration-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.collaboration-card-logo-wrap {
    padding: 18px 18px 8px;
    text-align: center;
    background: #fafcff;
}

.collaboration-card-logo {
    width: 100%;
    max-width: 150px;
    height: 84px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.collaboration-card-logo-placeholder {
    width: 100%;
    max-width: 150px;
    height: 84px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #2c3e66;
    border-radius: 12px;
    font-size: 0.9rem;
    text-align: center;
    padding: 10px;
}

.collaboration-card-body {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.collaboration-card-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.collaboration-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 0.85rem;
    font-weight: 700;
}

.collaboration-org-type {
    color: #666;
    font-size: 0.9rem;
}

.collaboration-card-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.35;
    color: #111827;
}

.collaboration-card-title a,
.collaboration-card-title a:visited {
    color: #004080;
    text-decoration: none;
}

.collaboration-card-title a:hover,
.collaboration-card-title a:focus {
    text-decoration: underline;
}

.collaboration-card-city {
    color: #475569;
    font-size: 0.95rem;
}

.collaboration-card-description {
    color: #222;
    line-height: 1.6;
}

.collaboration-card-research {
    color: #444;
    line-height: 1.55;
    font-size: 0.95rem;
}

.collaboration-card-link-row {
    margin-top: auto;
}

.collaboration-site-link,
.collaboration-site-link:visited {
    color: #004080;
    text-decoration: none;
    font-weight: 600;
}

.collaboration-site-link:hover,
.collaboration-site-link:focus {
    text-decoration: underline;
}

.collaborations-empty {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .collaborations-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .collaborations-filter-field select,
    .collaborations-filter-field input {
        width: 100%;
        min-width: 0;
    }

    .collaborations-filter-actions {
        flex-wrap: wrap;
    }
}