@font-face {
    font-family: 'UAFSans Regular';
    font-display: swap;
    src: url('../fonts/UAFSans-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'UAFSans Medium';
    font-display: swap;
    src: url('../fonts/UAFSans-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'UAFSans SemiBold';
    font-display: swap;
    src: url('../fonts/UAFSans-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'UAFSans Bold';
    font-display: swap;
    src: url('../fonts/UAFSans-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'UAFSans OnBoard Stencil';
    font-display: swap;
    src: url('../fonts/UAFSans-OnBoardStencil.woff2') format('woff2');
}
@font-face {
    font-family: 'UAFSans OnBoard';
    font-display: swap;
    src: url('../fonts/UAFSans-OnBoard.woff2') format('woff2');
}

@font-face {
    font-family: 'Volja Regular';
    font-display: swap;
    src: url('../fonts/Volja-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Volja Black';
    font-display: swap;
    src: url('../fonts/Volja-Black.woff2') format('woff2');
}

@font-face {
    font-family: 'UAFMemory-Regular';
    font-display: swap;
    src: url('../fonts/UAFMemory/UAFMemory-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'UAFMemory-Medium';
    font-display: swap;
    src: url('../fonts/UAFMemory/UAFMemory-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'UAFMemory-Black';
    font-display: swap;
    src: url('../fonts/UAFMemory/UAFMemory-Black.woff2') format('woff2');
}

/*body {*/
/*    font-family: Arial, sans-serif;*/
/*    margin: 0;*/
/*    padding: 0;*/
/*}*/

.navbar {
    --mil-header-bg-start: #2f2a1f;
    --mil-header-bg-mid: #4d4634;
    --mil-header-bg-end: #3b3528;
    --mil-header-text: #f6f2e8;
    --mil-header-muted: #d0c7b2;
    --mil-header-accent: #978a6c;
    --mil-header-panel: rgba(49, 44, 33, 0.9);
    --mil-header-border: rgba(151, 138, 108, 0.45);
    background: #4D4634 !important;
    font-family: 'UAFSans SemiBold', sans-serif;
    padding: 0.06rem 0 !important;
    position: relative;
    isolation: isolate;
    border-bottom: 0;
    box-shadow: none;
    overflow: hidden;
}

.navbar::before {
    content: none;
}

.navbar.fixed-top {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: var(--navbar-h);
    z-index: 2000;
}

.navbar.fixed-top > .container-fluid {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.16rem 1rem !important;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    overflow: visible;
}

.navbar.fixed-top > .container-fluid > * {
    position: relative;
    z-index: 1;
}

.navbar-brand {
    color: var(--mil-header-text) !important;
    font-family: 'UAFSans OnBoard Stencil', 'UAFSans SemiBold', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1;
    padding: 0.14rem 0.78rem;
    border: 0;
    border-left: 0;
    border-radius: 0;
    background: none;
    transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.navbar-brand:hover,
.navbar-brand:focus-visible {
    color: var(--mil-header-accent) !important;
    box-shadow: none;
    transform: none;
    letter-spacing: 0.1em;
}

.navbar-brand img {
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(151, 138, 108, 0.66), 0 3px 10px rgba(0, 0, 0, 0.45);
}

.navbar-nav .nav-link {
    position: relative;
    color: var(--mil-header-text);
    font-family: 'UAFSans Medium', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
    border-radius: 0;
    padding: 0.4rem 0.72rem !important;
    transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(151, 138, 108, 0), rgba(151, 138, 108, 0.96), rgba(151, 138, 108, 0));
    transform: scaleX(0.35);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff;
    text-decoration: none;
    background-color: transparent;
    box-shadow: none;
    transform: none;
    letter-spacing: 0.075em;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.navbar-nav .nav-link:focus-visible {
    outline: none;
    color: #fff;
    background-color: transparent;
    box-shadow: none;
}

.navbar-nav .nav-link[style*="F39200"],
.navbar-nav .nav-link[style*="f39200"] {
    color: #F39200 !important;
    background: transparent !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    letter-spacing: 0.075em;
    font-weight: 700;
}

.navbar-nav .nav-link[style*="F39200"]::after,
.navbar-nav .nav-link[style*="f39200"]::after {
    opacity: 1;
    transform: scaleX(1);
    background: linear-gradient(90deg, rgba(243, 146, 0, 0), rgba(243, 146, 0, 0.95), rgba(243, 146, 0, 0));
}

.navbar-brand[style*="F39200"],
.navbar-brand[style*="f39200"] {
    color: #F39200 !important;
}

.navbar .btn-outline-light {
    --bs-btn-color: var(--mil-header-text);
    --bs-btn-border-color: rgba(151, 138, 108, 0.66);
    --bs-btn-hover-color: #201c15;
    --bs-btn-hover-bg: #8f8367;
    --bs-btn-hover-border-color: #8f8367;
    --bs-btn-active-color: #f6f2e8;
    --bs-btn-active-bg: #655d49;
    --bs-btn-active-border-color: #655d49;
    --bs-btn-focus-shadow-rgb: 151, 138, 108;
    font-family: 'UAFSans Medium', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.66rem !important;
    border-radius: 0;
    border-width: 1px;
    padding: 0.2rem 0.56rem;
    background-color: rgba(41, 36, 28, 0.2);
    box-shadow: inset 0 -2px 0 rgba(151, 138, 108, 0.45);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 3.05rem;
    padding: 0.24rem 0.58rem;
    border: 1px solid rgba(151, 138, 108, 0.66);
    border-radius: 2px;
    background: rgba(34, 30, 23, 0.42);
    color: #f2ecdf;
    font-family: 'UAFSans Medium', sans-serif;
    font-size: 0.68rem;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: inset 0 -2px 0 rgba(151, 138, 108, 0.42);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.lang-switch::after {
    content: "›";
    font-size: 0.8rem;
    line-height: 1;
    opacity: 0.82;
}

.lang-switch:hover,
.lang-switch:focus-visible {
    color: #F39200;
    border-color: rgba(243, 146, 0, 0.75);
    background: rgba(243, 146, 0, 0.08);
    text-decoration: none;
}

.lang-switch:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(243, 146, 0, 0.3);
}

/* Змінюємо колір іконки бургер-меню */
.navbar-dark .navbar-toggler-icon {
    display: block;
    position: relative;
    width: 1.5rem;
    height: 1.15rem;
    background-image: linear-gradient(#b4a88b, #b4a88b);
    background-repeat: no-repeat;
    background-position: center 50%;
    background-size: 100% 2px;
    transition: background-size 0.22s ease;
}

.navbar-dark .navbar-toggler-icon::before,
.navbar-dark .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: #b4a88b;
    transform-origin: center;
    transition: top 0.24s ease, transform 0.24s ease, opacity 0.2s ease;
}

.navbar-dark .navbar-toggler-icon::before {
    top: 0.08rem;
}

.navbar-dark .navbar-toggler-icon::after {
    top: 0.95rem;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-size: 0 2px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 0.51rem;
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    top: 0.51rem;
    transform: rotate(-45deg);
}

.navbar-toggler {
    border-color: rgba(151, 138, 108, 0.72);
    background: rgba(33, 30, 23, 0.48);
    border-radius: 2px;
    padding: 0.4rem 0.52rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(151, 138, 108, 0.34);
}

.navbar-toggler:hover {
    border-color: rgba(176, 162, 131, 0.9);
    background: rgba(33, 30, 23, 0.62);
}


:root { --navbar-h: 66px; --section-nav-h: 38px; }
body { padding-top: calc(var(--navbar-h) + var(--section-nav-h, 0px)); }

.section-nav {
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    z-index: 1999;
    height: var(--section-nav-h);
    background: #fff;
    border-bottom: 1px solid rgba(106, 101, 58, 0.15);
    overflow: hidden;
}

.section-nav__track {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.section-nav__track::-webkit-scrollbar { display: none; }

.section-nav__title {
    flex: 0 0 auto;
    padding: 0.35rem 0.75rem;
    color: rgba(106, 101, 58, 0.45);
    font-family: 'UAFSans SemiBold', sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    border-right: 1px solid rgba(106, 101, 58, 0.25);
    margin-right: 0.25rem;
}

.section-nav__link {
    flex: 0 0 auto;
    padding: 0.35rem 0.75rem;
    color: #6A653A;
    font-family: 'UAFSans Medium', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.section-nav__link:hover {
    color: #4a4628;
    text-decoration: none;
}

.section-nav__link.active {
    color: #4a4628;
    border-bottom-color: #6A653A;
    font-family: 'UAFSans SemiBold', sans-serif;
}
@media (min-width: 992px){
    :root{ --navbar-h: 58px; }
    .navbar {
        padding: 0 !important;
    }
    .navbar.fixed-top > .container-fluid {
        padding: 0.08rem 1rem !important;
    }
    .navbar-brand {
        padding: 0.1rem 0.72rem;
    }
    .navbar-nav .nav-link {
        padding: 0.34rem 0.68rem !important;
    }
    .navbar .d-flex.ms-lg-3 {
        margin-top: 0 !important;
    }
    .lang-switch {
        min-width: 2.9rem;
        padding: 0.16rem 0.5rem;
        font-size: 0.63rem;
    }
    .navbar-collapse {
        align-items: center;
    }
    .navbar-nav .nav-item + .nav-item {
        margin-left: 0.15rem;
    }
}

@media (max-width: 991.98px) {
    :root { --navbar-h: 66px; }

    .navbar {
        padding: 0.1rem 0 !important;
    }

    .navbar.fixed-top {
        align-items: flex-start !important;
    }

    .navbar.fixed-top > .container-fluid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand toggler"
            "collapse collapse";
        grid-template-rows: var(--navbar-h) auto;
        row-gap: 0;
        align-items: center;
        width: 100%;
        padding: 0 0.8rem !important;
    }

    .navbar-brand {
        grid-area: brand;
        justify-self: start;
        align-self: center;
        font-size: 0.95rem;
        padding: 0.18rem 0.52rem;
    }

    .navbar-toggler {
        grid-area: toggler;
        justify-self: end;
        align-self: center;
        position: static !important;
        transform: none !important;
        margin: 0;
        padding: 0.28rem 0.42rem;
    }

    .navbar-collapse {
        grid-area: collapse;
        width: 100%;
        margin-top: 0;
        padding: 0.36rem;
        border-radius: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .navbar-nav .nav-link {
        border-radius: 0;
        text-align: left;
        padding: 0.46rem 0.66rem !important;
    }

    .navbar .d-flex.ms-lg-3 {
        margin-top: 0.75rem !important;
        justify-content: flex-start !important;
    }

    .lang-switch {
        padding: 0.24rem 0.56rem;
        min-width: 3rem;
        font-size: 0.68rem;
    }
}

.text-justify {
    text-align: justify;
}

.btn-custom {
    background-color: #ffffff;  /* будь-який колір */
    color: #4d4634;
    border: 1px solid #4d4634;
    transition: background-color 0.3s, color 0.3s;
    font-family: 'UAFSans Regular', sans-serif;
}
.btn-custom:hover {
    background-color: #ffffff;
    color: #F39200;
    border: 1px solid #F39200;
}

/* Ensure consistent image dimensions inside the carousel */
.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 4rem;                /* однакова ширина та висота */
    height: 4rem;
    top: 50%;                   /* вирівняти по центру каруселі */
    transform: translateY(-50%);
    background-color: #4D4634;
    border-radius: 50%;
}
.carousel-control-prev {
    /* трохи відступити від лівого краю */
    left: 1rem;
}

.carousel-control-next {
    /* трохи відступити від правого краю */
    right: 1rem;
}

.image-card {
    margin: 5px 5px;
    position: relative;
    /*border-radius: 15px;*/
    overflow: hidden;
    box-shadow: 0 4px 6px rgb(77, 70, 52);
    display: inline-block;
    height: 450px;
    width: 300px;

}
.image-card img {

    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-card .top-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: #6A653A;
    color: #ffffff;
    text-align: center;
    font-family: 'UAFSans SemiBold', sans-serif;
    /*font-size: small;*/
    padding: 4px 0;
}
.image-card .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #6A653A;
    color: #ffffff;
    text-align: center;
    font-family: 'UAFSans SemiBold', sans-serif;
    /*font-size: small;*/
    padding: 4px 0;
}

.bachelor{
    color: white;
    background: #F39200;
    font-family: 'UAFSans Medium', sans-serif;
}
.live_card:hover {
    transform: translateY(-4px);
    transition: 0.25s ease;
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.15);
}

.magister{
    color: white;
    background:  #671318;
    font-family: 'UAFSans Medium', sans-serif;
}

.pdf-border {
    border: 1px solid #F39200;
    box-shadow: 0 4px 12px #F39200;
    /*border-radius: 6px;*/
}

.pdf-border-green {
    box-shadow: 0 4px 12px #4D4634;
    /*border-radius: 6px;*/
}

.iframe-container {
    position: relative;
    overflow: hidden;
    width: 50%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

/* Then style the iframe to fit in the container div with full height and width */
.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.special-card{
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    transition: .25s ease;
    font-size: 0.95rem;
}

.special-card:hover{
    background:#6A653A;
    transform: translateY(-4px);
    box-shadow:0 8px 22px rgba(0,0,0,.35);
    border-color:#F39200;
}

div.scroll_list {
    overflow: auto;
    white-space: nowrap;
}

header {
    background-color: transparent;
    padding: 0;
}

[id] {
    scroll-margin-top: calc(var(--navbar-h) + var(--section-nav-h, 0px) + 16px);
}

@media (prefers-reduced-motion: reduce) {
    .section-nav__link,
    html { scroll-behavior: auto; }
}

main { padding: 0; }




figcaption {
    font-family: 'UAFSans Regular', sans-serif;
}

h1 {
    font-family: 'Volja Regular', sans-serif;
    color: white;
}

h2 {
    font-family: 'UAFSans SemiBold', sans-serif;

}
h3 {
    font-family: 'UAFSans Medium', sans-serif;

}
h4 {
    font-family: 'UAFSans Regular', sans-serif;

}
h5 {
    font-family: 'UAFSans Regular', sans-serif;

}
h6 {
    font-family: 'UAFSans Regular', sans-serif;

}

p {
    font-family: 'UAFSans Regular', sans-serif;

}

ul:not(.navbar-nav) li {
    font-family: 'UAFSans Regular', sans-serif;
}

ol li {
    font-family: 'UAFSans Regular', sans-serif;
}

a{
    color: #F39200;
}

table,
th,
td{
    border: 1px solid white;
    color: white;
    padding: 5px;
}
#flipbook{
    width: 400px;
    height: 300px;
    background-color: #4d4634;
}


@media (max-width: 767px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: block;
    }
}

.loading-text {
    place-self: center;
    background: linear-gradient(90deg, #000000, #F39200, #000000) -100%/ 200%;
    /* being excessively careful with compat,
     * though this has been supported unprefixed and
     * in the shorthand across major browsers for a while */
    -webkit-background-clip: text;
    background-clip: text;
    /* use color, don't use -webkit-text-fill-color anymore,
     * was meant to solve a problem we haven't had in years */
    color: transparent;
    /*font: 900 clamp(2em, 10vw, 10em) exo, sans-serif;*/
    animation: shimmer 3s linear infinite
}

.book-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.4142;
    background-color: white;
    border: 2px solid #6A653A;
    /*box-shadow: 5px 5px 15px rgba(0,0,0,0.3);*/
    font-family: "UAFSans Regular", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box; /* дуже важливо! рамка враховується у розмір */
    padding: 15px; /* додаємо внутрішній відступ */
}

a.book-link {
    text-decoration: none; /* прибирає підкреслення */
}
.book-cover::before {
    content: "";
    position: absolute;
    inset: 15px; /* внутрішня рамка */
    border: 1px solid #6A653A;
    pointer-events: none;
    box-sizing: border-box;

}
.book-author {
    position: absolute;
    top: 25px;
    width: 100%;
    text-align: center;
    /*font-size: 1rem;*/
    font-weight: 500;
    color: #6A653A;
    letter-spacing: 0.5px;
    padding: 15px;
}
.book-title {
    color: #6A653A;
    /*background-color: #0dcaf0;*/
    font-family: "UAFSans Medium", sans-serif;
    text-align: center;
    padding: 15px;
    margin: 0
}

.best-cadets-section {
    color: #ffffff;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #4d4634;
    background-image:
            radial-gradient(circle at 14% 14%, rgba(191, 170, 126, 0.24) 0, rgba(191, 170, 126, 0) 36%),
            radial-gradient(circle at 84% 76%, rgba(126, 110, 82, 0.24) 0, rgba(126, 110, 82, 0) 42%),
            linear-gradient(128deg, rgba(32, 28, 22, 0.93) 0%, rgba(77, 70, 52, 0.91) 52%, rgba(41, 35, 26, 0.94) 100%);
    background-size: auto, auto, auto;
    background-position: center;
}

.best-cadets-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
            repeating-linear-gradient(28deg, rgba(229, 212, 150, 0.08) 0, rgba(229, 212, 150, 0.08) 2px, transparent 2px, transparent 20px),
            repeating-linear-gradient(-32deg, rgba(0, 0, 0, 0.17) 0, rgba(0, 0, 0, 0.17) 4px, transparent 4px, transparent 24px);
    mix-blend-mode: soft-light;
}

.best-cadets-section > .container {
    position: relative;
    z-index: 1;
}

.best-cadets-section h2 {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.best-cadets-section #bestCadetsCarousel .carousel-item {
    background: transparent;
    border: none;
    border-radius: 16px;
    box-shadow: none;
}

.best-cadets-section #bestCadetsCarousel .carousel-item .d-flex > div:last-child {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0.85rem 1rem;
    backdrop-filter: none;
}

.best-cadets-section .carousel-indicators [data-bs-target] {
    background-color: #f0dbad;
    opacity: 0.55;
}

.best-cadets-section .carousel-indicators .active {
    opacity: 1;
}

.best-cadets-section .carousel-control-prev,
.best-cadets-section .carousel-control-next {
    background-color: rgba(30, 26, 20, 0.82);
    border: 1px solid rgba(176, 168, 118, 0.48);
}

#bestCadetsCarousel .carousel-item {
    height: 400px; /* 50% of viewport height */
}
#bestCadetsCarousel .carousel-item img {
    height: 100%;
    object-fit: cover;
}



/* Для малих екранів (мобільних, <768px) */
@media (max-width: 767.98px) {
    #bestCadetsCarousel .carousel-item {
        height: 670px;
    }

    .best-cadets-section #bestCadetsCarousel .carousel-item .d-flex > div:last-child {
        margin-top: 0.7rem;
    }
}

/* Для дуже малих (до 576px) */
@media (max-width: 575.98px) {
    #bestCadetsCarousel .carousel-item {
        height: 715px;
    }
}


@media (max-width: 500px) {
    #bestCadetsCarousel .carousel-item {
        height: 780px;
    }
}

@keyframes shimmer { to { background-position: 100% } }

[data-bs-theme="marine"] {
    --bs-body-color: var(--bs-white);
    --bs-body-color-rgb: #{to-rgb($white)};
    --bs-body-bg: #295D6A;
    --bs-body-bg-rgb: #295D6A;
    --bs-tertiary-bg: #{$blue-600};

    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");


    .dropdown-menu {
        --bs-dropdown-bg: #{mix($blue-500, $blue-600)};
        --bs-dropdown-link-active-bg: #{$blue-700};
    }

    .btn-secondary {
        --bs-btn-bg: #{mix($gray-600, $blue-400, .5)};
        --bs-btn-border-color: #{rgba($white, .25)};
        --bs-btn-hover-bg: #{darken(mix($gray-600, $blue-400, .5), 5%)};
        --bs-btn-hover-border-color: #{rgba($white, .25)};
        --bs-btn-active-bg: #{darken(mix($gray-600, $blue-400, .5), 10%)};
        --bs-btn-active-border-color: #{rgba($white, .5)};
        --bs-btn-focus-border-color: #{rgba($white, .5)};
        --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .2);
    }
}

[data-bs-theme="sky"] {
    --bs-body-color: var(--bs-white);
    --bs-body-color-rgb: #{to-rgb($white)};
    --bs-body-bg: #234390;
    --bs-body-bg-rgb: #234390;
    --bs-tertiary-bg: #{$blue-600};

    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");

    .dropdown-menu {
        --bs-dropdown-bg: #{mix($blue-500, $blue-600)};
        --bs-dropdown-link-active-bg: #{$blue-700};
    }

    .btn-secondary {
        --bs-btn-bg: #{mix($gray-600, $blue-400, .5)};
        --bs-btn-border-color: #{rgba($white, .25)};
        --bs-btn-hover-bg: #{darken(mix($gray-600, $blue-400, .5), 5%)};
        --bs-btn-hover-border-color: #{rgba($white, .25)};
        --bs-btn-active-bg: #{darken(mix($gray-600, $blue-400, .5), 10%)};
        --bs-btn-active-border-color: #{rgba($white, .5)};
        --bs-btn-focus-border-color: #{rgba($white, .5)};
        --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .2);
    }
}

[data-bs-theme="olive"] {
    --bs-body-color: var(--bs-white);
    --bs-body-color-rgb: #{to-rgb($white)};
    --bs-body-bg: #444C35;
    --bs-body-bg-rgb: #444C35;
    --bs-tertiary-bg: #{$blue-600};

    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");


    .dropdown-menu {
        --bs-dropdown-bg: #{mix($blue-500, $blue-600)};
        --bs-dropdown-link-active-bg: #{$blue-700};
    }

    .btn-secondary {
        --bs-btn-bg: #{mix($gray-600, $blue-400, .5)};
        --bs-btn-border-color: #{rgba($white, .25)};
        --bs-btn-hover-bg: #{darken(mix($gray-600, $blue-400, .5), 5%)};
        --bs-btn-hover-border-color: #{rgba($white, .25)};
        --bs-btn-active-bg: #{darken(mix($gray-600, $blue-400, .5), 10%)};
        --bs-btn-active-border-color: #{rgba($white, .5)};
        --bs-btn-focus-border-color: #{rgba($white, .5)};
        --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .2);
    }
}

[data-bs-theme="sso"] {
    --bs-body-color: var(--bs-white);
    --bs-body-color-rgb: #{to-rgb($white)};
    --bs-body-bg: #737479;
    --bs-body-bg-rgb: #737479;
    --bs-tertiary-bg: #{$blue-600};


    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");


    .dropdown-menu {
        --bs-dropdown-bg: #{mix($blue-500, $blue-600)};
        --bs-dropdown-link-active-bg: #{$blue-700};
    }

    .btn-secondary {
        --bs-btn-bg: #{mix($gray-600, $blue-400, .5)};
        --bs-btn-border-color: #{rgba($white, .25)};
        --bs-btn-hover-bg: #{darken(mix($gray-600, $blue-400, .5), 5%)};
        --bs-btn-hover-border-color: #{rgba($white, .25)};
        --bs-btn-active-bg: #{darken(mix($gray-600, $blue-400, .5), 10%)};
        --bs-btn-active-border-color: #{rgba($white, .5)};
        --bs-btn-focus-border-color: #{rgba($white, .5)};
        --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .2);
    }
}

[data-bs-theme="white-step"] {
    --bs-body-color: #6a653a;
    --bs-body-color-rgb: #6a653a;
    --bs-body-bg: #ffffff;
    --bs-body-bg-rgb: #ffffff;
    --bs-tertiary-bg: #{$blue-600};


    .dropdown-menu {
        --bs-dropdown-bg: #{mix($blue-500, $blue-600)};
        --bs-dropdown-link-active-bg: #{$blue-700};
    }

    .btn-secondary {
        --bs-btn-bg: #{mix($gray-600, $blue-400, .5)};
        --bs-btn-border-color: #{rgba($white, .25)};
        --bs-btn-hover-bg: #{darken(mix($gray-600, $blue-400, .5), 5%)};
        --bs-btn-hover-border-color: #{rgba($white, .25)};
        --bs-btn-active-bg: #{darken(mix($gray-600, $blue-400, .5), 10%)};
        --bs-btn-active-border-color: #{rgba($white, .5)};
        --bs-btn-focus-border-color: #{rgba($white, .5)};
        --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .2);
    }
}


[data-bs-theme="step"] {
    --bs-body-color: var(--bs-white);
    --bs-body-color-rgb: #{to-rgb($white)};
    --bs-body-bg: #6A653A;
    --bs-body-bg-rgb: #6A653A;
    --bs-tertiary-bg: #{$blue-600};

    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");


    .dropdown-menu {
        --bs-dropdown-bg: #{mix($blue-500, $blue-600)};
        --bs-dropdown-link-active-bg: #{$blue-700};
    }

    .btn-secondary {
        --bs-btn-bg: #{mix($gray-600, $blue-400, .5)};
        --bs-btn-border-color: #{rgba($white, .25)};
        --bs-btn-hover-bg: #{darken(mix($gray-600, $blue-400, .5), 5%)};
        --bs-btn-hover-border-color: #{rgba($white, .25)};
        --bs-btn-active-bg: #{darken(mix($gray-600, $blue-400, .5), 10%)};
        --bs-btn-active-border-color: #{rgba($white, .5)};
        --bs-btn-focus-border-color: #{rgba($white, .5)};
        --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .2);
    }
}

[data-bs-theme="white-step"] {
    --bs-body-color: var(#6A653A);
    --bs-body-color-rgb: #6A653A;
    --bs-body-bg: #ffffff;
    --bs-body-bg-rgb: #ffffff;
    --bs-tertiary-bg: #{$blue-600};

    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236A653A'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");


    .dropdown-menu {
        --bs-dropdown-bg: #{mix($blue-500, $blue-600)};
        --bs-dropdown-link-active-bg: #{$blue-700};
    }

    .btn-secondary {
        --bs-btn-bg: #{mix($gray-600, $blue-400, .5)};
        --bs-btn-border-color: #{rgba($white, .25)};
        --bs-btn-hover-bg: #{darken(mix($gray-600, $blue-400, .5), 5%)};
        --bs-btn-hover-border-color: #{rgba($white, .25)};
        --bs-btn-active-bg: #{darken(mix($gray-600, $blue-400, .5), 10%)};
        --bs-btn-active-border-color: #{rgba($white, .5)};
        --bs-btn-focus-border-color: #{rgba($white, .5)};
        --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .2);
    }
}



[data-bs-theme="uniform"] {
    --bs-body-color: var(--bs-white);
    --bs-body-color-rgb: #{to-rgb($white)};
    --bs-body-bg: #4D4634;
    --bs-body-bg-rgb: #4D4634;
    --bs-tertiary-bg: #{$blue-600};

    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");


    .dropdown-menu {
        --bs-dropdown-bg: #{mix($blue-500, $blue-600)};
        --bs-dropdown-link-active-bg: #{$blue-700};
    }

    .btn-secondary {
        --bs-btn-bg: #{mix($gray-600, $blue-400, .5)};
        --bs-btn-border-color: #{rgba($white, .25)};
        --bs-btn-hover-bg: #{darken(mix($gray-600, $blue-400, .5), 5%)};
        --bs-btn-hover-border-color: #{rgba($white, .25)};
        --bs-btn-active-bg: #{darken(mix($gray-600, $blue-400, .5), 10%)};
        --bs-btn-active-border-color: #{rgba($white, .5)};
        --bs-btn-focus-border-color: #{rgba($white, .5)};
        --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .2);
    }
}

[data-bs-theme="maroon"] {
    --bs-body-color: var(--bs-white);
    --bs-body-color-rgb: #{to-rgb($white)};
    --bs-body-bg: #671318;
    --bs-body-bg-rgb: #671318;
    --bs-tertiary-bg: #{$blue-600};

    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");


    .dropdown-menu {
        --bs-dropdown-bg: #{mix($blue-500, $blue-600)};
        --bs-dropdown-link-active-bg: #{$blue-700};
    }

    .btn-secondary {
        --bs-btn-bg: #{mix($gray-600, $blue-400, .5)};
        --bs-btn-border-color: #{rgba($white, .25)};
        --bs-btn-hover-bg: #{darken(mix($gray-600, $blue-400, .5), 5%)};
        --bs-btn-hover-border-color: #{rgba($white, .25)};
        --bs-btn-active-bg: #{darken(mix($gray-600, $blue-400, .5), 10%)};
        --bs-btn-active-border-color: #{rgba($white, .5)};
        --bs-btn-focus-border-color: #{rgba($white, .5)};
        --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .2);
    }
}

.mil-footer {
    position: relative;
    color: #f3efe4;
    background-color: #2f2a1f;
    overflow: hidden;
}

.mil-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(132deg, rgba(26, 23, 18, 0.95) 0%, rgba(77, 70, 52, 0.9) 53%, rgba(39, 33, 24, 0.94) 100%),
            radial-gradient(circle at 14% 16%, rgba(243, 146, 0, 0.16) 0, rgba(243, 146, 0, 0) 38%),
            radial-gradient(circle at 88% 78%, rgba(170, 154, 112, 0.2) 0, rgba(170, 154, 112, 0) 42%),
            url("../pic/footer_bg.webp");
    background-size: cover;
    background-position: center top;
    background-blend-mode: normal, screen, screen, multiply;
    z-index: 0;
}

.mil-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
            repeating-linear-gradient(30deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 18px),
            repeating-linear-gradient(-34deg, rgba(0, 0, 0, 0.18) 0, rgba(0, 0, 0, 0.18) 3px, transparent 3px, transparent 22px);
    mix-blend-mode: soft-light;
    z-index: 0;
}

.mil-footer__inner {
    position: relative;
    z-index: 1;
    padding-top: 3rem;
    padding-bottom: 1.25rem;
}

.mil-footer__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
    font-family: 'UAFSans Medium', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.78rem;
    color: #f1dfb8;
}

.mil-footer__eyebrow span {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    display: inline-block;
    overflow: hidden;
    text-indent: -9999px;
    background: url("../pic/logos/viknu_logo_64x64.webp") center / contain no-repeat;
}

.mil-footer__title {
    margin-bottom: 0.45rem;
    font-family: 'Volja Regular', sans-serif;
    font-size: clamp(1.12rem, 1.9vw, 1.5rem);
    line-height: 1.25;
    color: #ffffff;
}

.mil-footer__motto {
    margin-bottom: 0;
    font-family: 'UAFSans OnBoard Stencil', sans-serif;
    font-size: 0.84rem;
    letter-spacing: 0.13em;
    color: #d8c9aa;
}

.mil-footer__label {
    margin-bottom: 0.72rem;
    font-family: 'UAFSans SemiBold', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: #f1dfb8;
}

.mil-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mil-footer__list li {
    margin-bottom: 0.45rem;
    color: #f3efe4;
    line-height: 1.45;
}

.mil-footer__list span {
    color: #dbc79f;
    font-family: 'UAFSans Medium', sans-serif;
}

.mil-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 0.85rem;
    margin-bottom: 0.95rem;
}

.mil-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.7rem;
}

.mil-footer__social a {
    padding: 0.24rem 0.58rem;
    border: 1px solid rgba(222, 203, 164, 0.35);
    border-radius: 999px;
    background-color: rgba(20, 17, 12, 0.35);
    text-decoration: none;
}

.mil-footer__list a,
.mil-footer__links a,
.mil-footer__bottom a {
    color: #fff0cb;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 240, 203, 0.38);
}

.mil-footer__links a {
    border-bottom: none;
    display: inline-block;
}

.mil-footer__list a:hover,
.mil-footer__links a:hover,
.mil-footer__social a:hover,
.mil-footer__bottom a:hover {
    color: #f39200;
    border-color: rgba(243, 146, 0, 0.55);
}

.mil-footer__bottom {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(241, 223, 184, 0.28);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.52rem 1.5rem;
}

.mil-footer__bottom p {
    margin-bottom: 0;
    font-size: 0.82rem;
    color: #e6dcc8;
}

.recruit-focus-card {
    transition: background-color .6s ease, box-shadow .6s ease, transform .6s ease;
}

.recruit-focus-card h3,
.recruit-focus-card p,
.recruit-focus-card small,
.recruit-focus-card a,
.recruit-focus-card .btn {
    transition: color .6s ease, border-color .6s ease;
}

.recruit-card-highlight {
    background-color: #F39200 !important;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .35) !important;
    transform: scale(1.015);
}

.recruit-card-highlight h3,
.recruit-card-highlight p,
.recruit-card-highlight small,
.recruit-card-highlight a {
    color: #1b1b1b !important;
}

.recruit-card-highlight .btn {
    border-color: #1b1b1b !important;
}

.recruit-guidebook-card {
    background: linear-gradient(120deg, #17140f 0%, #3d3526 48%, #6a653a 100%);
    color: #fff;
    border: 1px solid rgba(243, 146, 0, .3);
}

.recruit-guidebook-badge {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #f7ddaa;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    padding: .25rem .75rem;
    margin-bottom: .75rem;
}

@media (max-width: 991.98px) {
    .mil-footer__title {
        max-width: 32rem;
    }
}

@media (max-width: 767.98px) {
    .mil-footer__inner {
        padding-top: 2.25rem;
        padding-bottom: 1rem;
    }

    .mil-footer__links {
        grid-template-columns: 1fr;
    }

    .mil-footer__bottom {
        margin-top: 1.1rem;
        padding-top: 0.85rem;
        gap: 0.65rem;
    }
}

.contacts-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #ffffff;
    background-color: #6a653a;
}

.contacts-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
            linear-gradient(148deg, #3f3b22 0%, #575132 24%, #6a653a 52%, #7a7446 75%, #4a4528 100%),
            radial-gradient(circle at 18% 24%, rgba(200, 193, 148, 0.24) 0, rgba(200, 193, 148, 0) 44%),
            radial-gradient(circle at 82% 78%, rgba(126, 119, 73, 0.36) 0, rgba(126, 119, 73, 0) 46%),
            radial-gradient(circle at 50% 100%, rgba(38, 34, 17, 0.5) 0, rgba(38, 34, 17, 0) 55%);
    background-size: cover, auto, auto, auto;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: normal, screen, multiply, multiply;
}

.contacts-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
            repeating-linear-gradient(35deg, rgba(255, 255, 255, 0.045) 0, rgba(255, 255, 255, 0.045) 2px, transparent 2px, transparent 18px),
            linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 34%, rgba(0, 0, 0, 0.24) 100%);
    mix-blend-mode: soft-light;
    opacity: 0.9;
}

.contacts-section h2 {
    font-family: 'Volja Regular', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f9f4e7;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.contacts-section .card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(246, 241, 226, 0.94) 100%);
    border: 1px solid rgba(106, 101, 58, 0.25) !important;
    box-shadow: 0 12px 26px rgba(14, 12, 8, 0.25);
}

@media (max-width: 767.98px) {
    .contacts-section h2 {
        letter-spacing: 0.05em;
    }
}

/* Docs tabs (Подача документів) */
#docsTab {
    gap: 0.5rem;
}

#docsTab .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-family: 'UAFSans Medium', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    transition: all 0.25s ease;
}

#docsTab .nav-link:hover {
    color: #fff;
    border-color: rgba(243, 146, 0, 0.5);
}

#docsTab .nav-link.active {
    color: #4D4634;
    background-color: #F39200;
    border-color: #F39200;
}

/* Glass benefit cards */
.glass-card {
    color: white;
    background: rgba(106, 101, 58, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
    overflow: hidden;
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.06),
        transparent
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

.glass-card:hover::before {
    left: 125%;
}

.glass-card:hover {
    transform: translateY(-6px);
    background: rgba(106, 101, 58, 0.5);
    border-color: rgba(243, 146, 0, 0.4);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(243, 146, 0, 0.08);
}

.glass-card .card-title {
    font-family: 'UAFSans Medium', sans-serif;
    transition: letter-spacing 0.3s ease;
}

.glass-card:hover .card-title {
    letter-spacing: 0.3px;
}

.glass-card .card-title i {
    color: #F39200;
    font-size: 1.3rem;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.glass-card:hover .card-title i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 6px rgba(243, 146, 0, 0.5));
}
