html.i18n-pending body {
    visibility: hidden;
}

:root {
            --primary: #1a5276;
            --primary-dark: #113c59;
            --secondary: #2471a3;
            --accent-red: #9b1c31;
            --accent-red-dark: #741322;
            --accent-red-soft: #fae9ed;
            --background: #f5f7f9;
            --surface: #ffffff;
            --text: #2c3e50;
            --muted: #74808b;
            --border: #e1e7eb;
            --success: #237a57;
            --warning: #a66500;
            --danger: #b03a2e;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            background-color: var(--background);
            color: var(--text);
            font-family:
                "Segoe UI",
                Tahoma,
                Geneva,
                Verdana,
                sans-serif;
            line-height: 1.6;
        }

        button,
        input,
        textarea {
            font: inherit;
        }

        [hidden] {
            display: none !important;
        }

        /* HEADER */

        header {
            margin-bottom: 45px;
            padding: 22px 0;
            border-top: 4px solid var(--accent-red);
            background-color: var(--surface);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

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

        .logo-title-wrapper {
            display: flex;
            margin-bottom: 24px;
            align-items: center;
            justify-content: center;
            gap: 20px;
        }

        .site-logo {
            display: block;
            width: 90px;
            height: 90px;
            flex-shrink: 0;
            object-fit: contain;
        }

        .lab-title h1 {
            margin: 0;
            color: var(--primary);
            font-size: 1.9rem;
            line-height: 1.25;
        }

        .lab-title h2 {
            margin: 7px 0 0;
            color: var(--muted);
            font-size: 1.05rem;
            font-weight: 400;
        }

        /* NAVIGATION */

        .nav-links {
            display: flex;
            margin: 0;
            padding: 0;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            list-style: none;
        }

        .nav-links a {
            display: block;
            padding: 10px 17px;
            border-radius: 5px;
            background-color: #edf1f3;
            color: var(--text);
            text-decoration: none;
            font-weight: 600;
            transition:
                background-color 0.2s ease,
                color 0.2s ease,
                transform 0.2s ease;
        }

        .nav-links a:hover,
        .nav-links a.active {
            background-color: var(--primary);
            color: white;
            transform: translateY(-1px);
            box-shadow: inset 0 -3px 0 var(--accent-red);
        }

        /* GENERAL */

        .content-container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 20px 55px;
        }

        .content-section {
            margin-bottom: 70px;
            scroll-margin-top: 25px;
        }

        .section-header {
            margin: 0 0 30px;
            padding-bottom: 11px;
            border-bottom: 3px solid var(--accent-red);
            color: var(--text);
            font-size: 1.8rem;
        }

        .status-message {
            margin: 0;
            padding: 25px;
            border-radius: 8px;
            background-color: var(--surface);
            color: var(--muted);
            text-align: center;
            box-shadow: var(--shadow);
        }

        .status-message.error {
            background-color: #fdf2f2;
            color: var(--danger);
        }

        .external-link {
            display: inline-block;
            color: var(--secondary);
            font-weight: 600;
            text-decoration: none;
            overflow-wrap: anywhere;
        }

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

        .toggle-button {
            align-self: flex-start;
            margin-top: 15px;
            padding: 9px 15px;
            border: none;
            border-radius: 5px;
            background-color: var(--primary);
            color: white;
            cursor: pointer;
            font-weight: 700;
        }

        .toggle-button:hover {
            background-color: var(--primary-dark);
        }

        .featured-badge {
            display: inline-block;
            padding: 4px 9px;
            border-radius: 20px;
            background-color: var(--accent-red-soft);
            color: var(--accent-red-dark);
            font-size: 0.75rem;
            font-weight: 700;
        }

        .details-text {
            margin: 12px 0 0;
            color: #46515a;
            white-space: pre-line;
        }

        /* STUDENTS */

        .student-grid {
            display: grid;
            grid-template-columns:
                repeat(auto-fit, minmax(240px, 1fr));
            gap: 24px;
        }

        .student-grid .status-message {
            grid-column: 1 / -1;
        }

        .student-card {
            overflow: hidden;
            border-radius: 10px;
            background-color: var(--surface);
            box-shadow: var(--shadow);
            cursor: pointer;
            transition:
                transform 0.2s ease,
                box-shadow 0.2s ease;
        }

        .student-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 9px 20px rgba(0, 0, 0, 0.12);
        }

        .student-photo-container {
            width: 100%;
            height: 230px;
            overflow: hidden;
            background-color: #e7edf1;
        }

        .student-photo {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .student-photo-placeholder {
            display: flex;
            width: 100%;
            height: 100%;
            align-items: center;
            justify-content: center;
            background-color: var(--primary);
            color: white;
            font-size: 3rem;
            font-weight: 700;
            letter-spacing: 3px;
        }

        .student-info {
            padding: 20px;
        }

        .student-name {
            margin: 0 0 8px;
            color: var(--primary);
            font-size: 1.25rem;
        }

        .member-card-top-row {
            display: flex;
            margin-bottom: 8px;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
        }

        .member-card-top-row .student-name {
            margin-bottom: 0;
        }

        .member-type-badge {
            display: inline-flex;
            flex: 0 0 auto;
            padding: 4px 9px;
            align-items: center;
            border-radius: 999px;
            background: #e8f1fa;
            color: var(--primary);
            font-size: 0.7rem;
            font-weight: 800;
            line-height: 1.2;
        }

        .member-type-badge.academician {
            background: var(--accent-red-soft);
            color: var(--accent-red-dark);
        }

        .student-department {
            margin: 0 0 12px;
            color: var(--muted);
            font-size: 0.9rem;
        }

        .student-task {
            margin: 0 0 14px;
            color: #454f57;
        }

        .student-email {
            color: var(--secondary);
            font-size: 0.9rem;
            text-decoration: none;
            overflow-wrap: anywhere;
        }

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

        .student-photo-link,
        .student-name-link {
            color: inherit;
            text-decoration: none;
        }

        .student-photo-link {
            display: block;
        }

        .student-name-link:hover .student-name {
            text-decoration: underline;
        }

        /* PROJECTS */

        .project-grid {
            display: grid;
            grid-template-columns:
                repeat(auto-fit, minmax(min(100%, 480px), 1fr));
            gap: 25px;
        }

        .project-grid .status-message {
            grid-column: 1 / -1;
        }

        .project-card {
            display: flex;
            overflow: hidden;
            border-radius: 10px;
            background-color: var(--surface);
            box-shadow: var(--shadow);
            flex-direction: column;
            transition:
                transform 0.2s ease,
                box-shadow 0.2s ease;
        }

        .project-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 9px 20px rgba(0, 0, 0, 0.12);
        }

        .project-image-container {
            width: 100%;
            height: 220px;
            overflow: hidden;
            background-color: #e7edf1;
        }

        .project-image {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .project-image-placeholder {
            display: flex;
            width: 100%;
            height: 100%;
            padding: 25px;
            align-items: center;
            justify-content: center;
            background:
                linear-gradient(
                    135deg,
                    var(--primary),
                    var(--secondary)
                );
            color: white;
            text-align: center;
            font-size: 1.2rem;
            font-weight: 700;
        }

        .project-body {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 165px;
            flex: 1;
        }

        .project-content {
            display: flex;
            min-width: 0;
            padding: 22px;
            flex-direction: column;
        }

        .project-contributors {
            padding: 22px 17px;
            border-left: 1px solid var(--border);
            background-color: #f8fafb;
        }

        .project-contributors-title {
            margin: 0 0 14px;
            color: var(--text);
            font-size: 0.82rem;
            line-height: 1.35;
            text-align: center;
        }

        .contributor-group + .contributor-group {
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px solid var(--border);
        }

        .contributor-group-title {
            margin: 0 0 9px;
            color: var(--muted);
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-align: center;
            text-transform: uppercase;
        }

        .contributor-group-academician .contributor-group-title {
            color: var(--accent-red-dark);
        }

        .contributor-list {
            display: flex;
            margin: 0;
            padding: 0;
            align-items: flex-start;
            justify-content: center;
            flex-wrap: wrap;
            gap: 13px 9px;
            list-style: none;
        }

        .contributor-link {
            display: flex;
            width: 52px;
            align-items: center;
            flex-direction: column;
            color: var(--text);
            text-align: center;
            text-decoration: none;
        }

        .contributor-avatar {
            display: flex;
            width: 44px;
            height: 44px;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border: 2px solid white;
            border-radius: 50%;
            background-color: var(--primary);
            color: white;
            font-size: 0.85rem;
            font-weight: 800;
            box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
            transition: transform 0.2s ease;
        }

        .contributor-link.academician .contributor-avatar {
            outline: 2px solid var(--accent-red);
            outline-offset: 2px;
        }

        .contributor-avatar img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .contributor-link:hover .contributor-avatar {
            transform: translateY(-2px) scale(1.05);
        }

        .contributor-name {
            display: block;
            width: 100%;
            margin-top: 5px;
            overflow: hidden;
            font-size: 0.68rem;
            font-weight: 700;
            line-height: 1.2;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .contributors-empty {
            margin: 0;
            color: var(--muted);
            font-size: 0.75rem;
            line-height: 1.4;
            text-align: center;
        }

        .project-top-row {
            display: flex;
            margin-bottom: 12px;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
        }

        .status-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 20px;
            background-color: #e8eff4;
            color: var(--primary);
            font-size: 0.78rem;
            font-weight: 700;
        }

        .status-badge.completed {
            background-color: #e5f5ed;
            color: var(--success);
        }

        .status-badge.in-progress {
            background-color: #e8f1fa;
            color: #1f618d;
        }

        .status-badge.planned {
            background-color: #fff2cc;
            color: var(--warning);
        }

        .status-badge.cancelled {
            background-color: #fbe9e7;
            color: var(--danger);
        }

        .project-title {
            margin: 0 0 10px;
            color: var(--primary);
            font-size: 1.35rem;
        }

        .project-summary {
            margin: 0 0 14px;
            color: #4b555d;
        }

        .project-dates {
            margin: 0 0 14px;
            color: var(--muted);
            font-size: 0.88rem;
        }

        .technology-list {
            display: flex;
            margin: 0 0 16px;
            padding: 0;
            flex-wrap: wrap;
            gap: 7px;
            list-style: none;
        }

        .technology-tag {
            padding: 5px 9px;
            border-radius: 4px;
            background-color: #edf3f7;
            color: var(--primary);
            font-size: 0.78rem;
            font-weight: 600;
        }

        .project-link-container {
            margin-top: auto;
            padding-top: 18px;
        }

        /* PUBLICATIONS */

        .publication-list {
            display: grid;
            gap: 20px;
        }

        .publication-card {
            padding: 24px;
            border-left: 5px solid var(--accent-red);
            border-radius: 8px;
            background-color: var(--surface);
            box-shadow: var(--shadow);
            transition:
                transform 0.2s ease,
                box-shadow 0.2s ease;
        }

        .publication-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.11);
        }

        .publication-header-row {
            display: flex;
            margin-bottom: 11px;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
        }

        .publication-type {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 20px;
            background-color: #e8eff4;
            color: var(--primary);
            font-size: 0.78rem;
            font-weight: 700;
        }

        .publication-title {
            margin: 0 0 11px;
            color: var(--primary);
            font-size: 1.3rem;
        }

        .publication-authors {
            margin: 0 0 9px;
            color: #3f4951;
            font-weight: 600;
        }

        .publication-venue {
            margin: 0 0 14px;
            color: var(--muted);
        }

        .publication-links {
            display: flex;
            margin-top: 15px;
            flex-wrap: wrap;
            gap: 16px;
        }

        /* NEWS */

        .news-list {
            display: grid;
            gap: 28px;
        }

        .news-card {
            display: flex;
            min-height: 250px;
            overflow: hidden;
            border-radius: 9px;
            background-color: var(--surface);
            box-shadow: var(--shadow);
            transition:
                transform 0.2s ease,
                box-shadow 0.2s ease;
        }

        .news-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 9px 20px rgba(0, 0, 0, 0.12);
        }

        .news-image-container {
            display: flex;
            flex: 0 0 285px;
            min-height: 250px;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background-color: #e7edf1;
        }

        .news-image {
            display: block;
            width: 100%;
            height: 100%;
            min-height: 250px;
            object-fit: cover;
        }

        .news-image-placeholder {
            display: flex;
            width: 100%;
            height: 100%;
            min-height: 250px;
            padding: 25px;
            align-items: center;
            justify-content: center;
            background-color: var(--primary);
            color: white;
            text-align: center;
            font-size: 1.15rem;
            font-weight: 700;
        }

        .news-content {
            display: flex;
            min-width: 0;
            padding: 25px;
            flex: 1;
            flex-direction: column;
        }

        .news-meta {
            margin: 0 0 9px;
            color: var(--muted);
            font-size: 0.85rem;
        }

        .news-title {
            margin: 0 0 12px;
            color: var(--primary);
            font-size: 1.4rem;
        }

        .news-summary {
            margin: 0;
            color: #4b555d;
        }

        /* CONTACT */

        .contact-layout {
            display: grid;
            grid-template-columns:
                minmax(0, 0.85fr)
                minmax(320px, 1.15fr);
            gap: 35px;
            align-items: start;
        }

        .contact-description,
        .contact-form {
            border-radius: 10px;
            background-color: var(--surface);
            box-shadow: var(--shadow);
        }

        .contact-description {
            padding: 30px;
        }

        .contact-description h3 {
            margin: 0 0 15px;
            color: var(--primary);
            font-size: 1.4rem;
        }

        .contact-description p {
            margin: 0 0 24px;
            color: #4b555d;
        }

        .contact-info-box {
            display: flex;
            padding: 20px;
            border-left: 4px solid var(--accent-red);
            border-radius: 5px;
            background-color: #edf3f7;
            flex-direction: column;
            gap: 5px;
        }

        .contact-info-box strong {
            color: var(--primary);
        }

        .contact-info-box span {
            color: var(--muted);
            font-size: 0.92rem;
        }

        .contact-form {
            padding: 30px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 7px;
            color: var(--text);
            font-weight: 700;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 12px 13px;
            border: 1px solid #cfd8de;
            border-radius: 6px;
            background-color: white;
            color: var(--text);
            outline: none;
            transition:
                border-color 0.2s ease,
                box-shadow 0.2s ease;
        }

        .form-group textarea {
            min-height: 150px;
            resize: vertical;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--secondary);
            box-shadow:
                0 0 0 3px
                rgba(36, 113, 163, 0.14);
        }

        .character-information {
            display: block;
            margin-top: 5px;
            color: var(--muted);
            font-size: 0.8rem;
            text-align: right;
        }

        .contact-submit-button {
            width: 100%;
            padding: 13px 20px;
            border: none;
            border-radius: 6px;
            background-color: var(--primary);
            color: white;
            cursor: pointer;
            font-weight: 700;
            transition:
                background-color 0.2s ease,
                opacity 0.2s ease;
        }

        .contact-submit-button:hover {
            background-color: var(--primary-dark);
        }

        .contact-submit-button:disabled {
            cursor: not-allowed;
            opacity: 0.65;
        }

        .contact-feedback {
            margin-top: 18px;
            padding: 13px 15px;
            border-radius: 6px;
            font-size: 0.92rem;
        }

        .contact-feedback.success {
            border: 1px solid #a9dfbf;
            background-color: #eafaf1;
            color: var(--success);
        }

        .contact-feedback.error {
            border: 1px solid #f1b0aa;
            background-color: #fdf2f2;
            color: var(--danger);
        }

        /* FOOTER */

        footer {
            margin-top: 20px;
            padding: 28px 20px;
            border-top: 4px solid var(--accent-red);
            background-color: #1a2b36;
            color: #dce6eb;
            text-align: center;
        }

        footer p {
            margin: 4px 0;
        }

        /* MOBILE */

        @media (max-width: 780px) {
            .logo-title-wrapper {
                flex-direction: column;
                text-align: center;
            }

            .lab-title h1 {
                font-size: 1.5rem;
            }

            .lab-title h2 {
                font-size: 1rem;
            }

            .nav-links a {
                padding: 9px 12px;
                font-size: 0.88rem;
            }

            .content-container {
                padding-right: 15px;
                padding-left: 15px;
            }

            .section-header {
                font-size: 1.5rem;
            }

            .news-card {
                flex-direction: column;
            }

            .news-image-container {
                width: 100%;
                height: 220px;
                min-height: 220px;
                flex-basis: auto;
            }

            .news-image,
            .news-image-placeholder {
                min-height: 220px;
            }

            .contact-layout {
                grid-template-columns: 1fr;
            }

            .contact-description,
            .contact-form {
                padding: 22px;
            }
        }

        @media (max-width: 600px) {
            .project-body {
                grid-template-columns: 1fr;
            }

            .project-contributors {
                border-top: 1px solid var(--border);
                border-left: none;
            }
        }
    
        /* FILTERING, PAGINATION AND CARD SAFETY */

        .collection-tools {
            display: grid;
            grid-template-columns:
                minmax(220px, 1fr)
                minmax(180px, 260px)
                auto;
            margin: -12px 0 24px;
            align-items: center;
            gap: 12px;
        }

        .collection-tools.team-tools {
            grid-template-columns:
                minmax(220px, 1fr)
                minmax(150px, 210px)
                minmax(180px, 260px)
                auto;
        }

        .collection-search,
        .collection-filter {
            width: 100%;
            min-width: 0;
            padding: 11px 13px;
            border: 1px solid var(--border);
            border-radius: 7px;
            background: var(--surface);
            color: var(--text);
        }

        .collection-search:focus,
        .collection-filter:focus {
            border-color: var(--secondary);
            outline: 3px solid rgba(36, 113, 163, 0.14);
        }

        .result-count {
            color: var(--muted);
            font-size: 0.9rem;
            white-space: nowrap;
        }

        .pagination {
            display: flex;
            min-height: 42px;
            margin-top: 24px;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 7px;
        }

        .pagination button {
            min-width: 40px;
            min-height: 40px;
            padding: 7px 11px;
            border: 1px solid var(--border);
            border-radius: 6px;
            background: var(--surface);
            color: var(--text);
            cursor: pointer;
            font-weight: 700;
        }

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

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

        .student-card,
        .project-card,
        .publication-card,
        .news-card {
            position: relative;
            min-width: 0;
            padding-bottom: 48px;
        }

        .card-timestamp {
            position: absolute;
            z-index: 4;
            right: 12px;
            bottom: 12px;
            max-width: calc(100% - 24px);
            padding: 5px 8px;
            border: 1px solid rgba(255, 255, 255, 0.82);
            border-radius: 6px;
            background: rgba(17, 60, 89, 0.92);
            color: white;
            font-size: 0.72rem;
            font-weight: 700;
            line-height: 1.2;
            text-align: right;
            white-space: nowrap;
            box-shadow: 0 2px 7px rgba(0, 0, 0, 0.16);
        }

        .student-name,
        .project-title,
        .publication-title,
        .news-title,
        .student-department,
        .student-email,
        .external-link {
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        .student-task,
        .project-summary,
        .publication-authors,
        .publication-venue,
        .publication-summary,
        .news-summary {
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
            overflow-wrap: anywhere;
        }

        @media (max-width: 720px) {
            .collection-tools,
            .collection-tools.team-tools {
                grid-template-columns: 1fr;
            }

            .result-count {
                white-space: normal;
            }
        }

        /* MULTI-PAGE PUBLIC SITE */

        .page-intro,
        .home-hero {
            padding: clamp(28px, 5vw, 52px);
            border-radius: 14px;
            background:
                linear-gradient(
                    135deg,
                    rgba(26, 82, 118, 0.98),
                    rgba(36, 113, 163, 0.92)
                );
            color: white;
            box-shadow: var(--shadow);
        }

        .home-hero {
            display: grid;
            grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
            gap: 30px;
            align-items: center;
        }

        .home-hero h2,
        .page-intro h2 {
            margin: 0 0 14px;
            color: white;
            font-size: clamp(1.8rem, 4vw, 2.8rem);
            line-height: 1.18;
        }

        .home-hero p,
        .page-intro p {
            max-width: 820px;
            margin: 0;
            color: rgba(255, 255, 255, 0.92);
            font-size: 1.02rem;
        }

        .hero-statistics {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .hero-statistic {
            padding: 18px 14px;
            border: 1px solid rgba(255, 255, 255, 0.28);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.12);
            text-align: center;
            backdrop-filter: blur(4px);
        }

        .hero-statistic strong {
            display: block;
            font-size: 1.45rem;
        }

        .hero-statistic span {
            display: block;
            margin-top: 4px;
            font-size: 0.78rem;
            font-weight: 700;
        }

        .section-heading-row {
            display: flex;
            margin-bottom: 24px;
            align-items: end;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 14px;
        }

        .section-heading-row .section-header {
            margin-bottom: 0;
        }

        .view-all-link {
            display: inline-flex;
            min-height: 42px;
            padding: 9px 15px;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--accent-red);
            border-radius: 7px;
            color: var(--accent-red);
            font-weight: 800;
            text-decoration: none;
        }

        .view-all-link:hover {
            background: var(--accent-red);
            color: white;
        }

        .page-intro {
            margin-bottom: 42px;
        }

        .nav-links a[aria-current="page"] {
            background-color: var(--primary);
            color: white;
            box-shadow: inset 0 -3px 0 var(--accent-red);
        }

        .content-container > .content-section:first-child {
            margin-top: 0;
        }

        @media (max-width: 820px) {
            .home-hero {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 560px) {
            .hero-statistics {
                grid-template-columns: 1fr 1fr;
            }

            .section-heading-row {
                align-items: stretch;
                flex-direction: column;
            }

            .view-all-link {
                align-self: flex-start;
            }
        }


/* LOCALIZATION */
.global-language-switcher {
    position: fixed;
    z-index: 10000;
    top: 12px;
    right: 12px;
    display: flex;
    min-height: 38px;
    padding: 5px 8px;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(7px);
}

.language-switcher-icon {
    line-height: 1;
}

.language-select {
    max-width: 145px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 600px) {
    .global-language-switcher {
        top: 8px;
        right: 8px;
    }

    .language-select {
        max-width: 118px;
        font-size: 0.78rem;
    }
}

/* HERO STATISTIC CARDS - LONG TITLE FIX */
.hero-statistics {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hero-statistic {
    display: flex;
    min-width: 0;
    min-height: 138px;
    padding: 18px 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    text-align: center;
    backdrop-filter: blur(4px);
}

.hero-statistic strong {
    display: block;
    width: 100%;
    margin: 0;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: normal;
}

.hero-statistic span {
    display: block;
    width: 100%;
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (max-width: 820px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .hero-statistic strong {
        font-size: 1.25rem;
    }
}

@media (max-width: 560px) {
    .hero-statistics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hero-statistic {
        min-height: 125px;
        padding: 14px 8px;
    }

    .hero-statistic strong {
        font-size: 1rem;
    }

    .hero-statistic span {
        font-size: 0.7rem;
    }
}

@media (max-width: 380px) {
    .hero-statistics {
        grid-template-columns: 1fr;
    }
}
/* END HERO STATISTIC CARDS - LONG TITLE FIX */

/* HOME HERO LOGO PANEL PATCH */
.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: clamp(24px, 4vw, 42px);
    align-items: center;
}

.hero-copy {
    min-width: 0;
}

.hero-logo-panel {
    display: flex;
    min-height: clamp(240px, 28vw, 340px);
    padding: clamp(18px, 3vw, 28px);
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
}

.hero-omu-logo {
    display: block;
    width: min(100%, 290px);
    max-height: 290px;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.18));
}

@media (max-width: 820px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .hero-logo-panel {
        width: min(100%, 360px);
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .hero-logo-panel {
        min-height: 200px;
        padding: 18px;
    }

    .hero-omu-logo {
        width: min(100%, 220px);
        max-height: 220px;
    }
}
/* END HOME HERO LOGO PANEL PATCH */

/* Public content cards that open dedicated detail pages. */
.content-detail-card {
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.content-detail-card:hover {
    transform: translateY(-2px);
}

.content-detail-card:focus-visible {
    outline: 3px solid rgba(36, 113, 163, 0.35);
    outline-offset: 4px;
}

.content-detail-card a,
.content-detail-card button {
    cursor: pointer;
}

/* Embedded news media previews shown on directory and home cards. */
.news-media-preview-strip {
    display: grid;
    margin-top: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.news-media-preview-tile {
    position: relative;
    min-height: 76px;
    overflow: hidden;
    border: 1px solid #dce5ea;
    border-radius: 10px;
    background: #edf3f7;
}

.news-media-preview-tile img,
.news-media-preview-tile video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 76px;
    max-height: 110px;
    object-fit: cover;
}

.news-media-preview-tile.video::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.25));
    content: "";
    pointer-events: none;
}

.news-media-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    color: #1a5276;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 620px) {
    .news-media-preview-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-media-preview-tile:nth-child(n + 3) {
        display: none;
    }
}
