:root {
    --cm-dark-teal: rgb(0, 55, 66);
    --cm-lime-green: rgb(201, 245, 140);
    --cm-light-salmon: rgb(255, 193, 166);
    --bs-dark-rgb: 10, 15, 23;
}

html {
    font-size: 16px; /* bootstrap baseline */
}

body {
    font-size: 1.0625rem; /* 17px / 16px = 1.0625 */
    font-family: "Nunito", sans-serif;
}

body, html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    transition: 0.2s ease;
}

.bg-dark-teal {
    background-color: var(--cm-dark-teal);
}
.bg-lime-green {
    background-color: var(--cm-lime-green);
}
.bg-light-salmon {
    background-color: var(--cm-light-salmon);
}
.bg-opacity-85 {
    --bs-bg-opacity: 0.85;
}
.bg-opacity-90 {
    --bs-bg-opacity: 0.90;
}
.display-1 {
    font-size: clamp(2.875rem, 1.25rem + 4vw, 5.5rem);
    font-weight: 700;
}

.text-dark-teal {
     color: var(--cm-dark-teal);
}

#PageHeader {
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    backdrop-filter: blur(6px);
}

#MainNav {
    font-weight: 500;
}
#MainNav .nav-link {
    color: var(--bs-navbar-active-color);
}

.main-banner-background {
    position: relative;
}

.main-banner-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/images/maidan-nezaleznosti-1440.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 0;
}

.main-banner-background > * {
    position: relative;
    z-index: 1;
}


/* md and up */
@media (min-width: 768px) {
    .main-banner-background::before {
        background-image: url("/images/maidan-nezaleznosti-1440.jpg");
    }
}

.btn {
    transition: all .2s ease-in-out;
}
.bg-info-emphasis {
    background-color: var(--bs-info-text-emphasis) !important;
}
.bg-trapezoid, .btn-trapezoid {
    border: none;
    line-height: 1;

    -webkit-mask-image: url("/images/button-trapezoid.svg");
    -webkit-mask-position: 100% 0;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: auto 105%;

    mask-image: url("/images/button-trapezoid.svg");
    background-position: 100% 0;
    background-repeat: no-repeat;
    background-size: auto 105%;
}
.btn.bg-dark-teal:hover {
    background-color: rgb(var(--bs-dark-rgb)) !important;
}
.btn.bg-dark-teal.text-info-emphasis:hover {
    background-color: var(--bs-info-text-emphasis) !important;
    color: var(--cm-dark-teal) !important;
}

.card-fixed.h-400 {
    height: 400px;           /* limit the card height */
    overflow: hidden;        /* optional, to crop any overflow */
}

.card-fixed.h-400 .card-img {
    height: 100%;            /* image fills the card height */
    object-fit: cover;       /* keeps aspect ratio, crops if needed */
}

.border-switch {
    border: 0;
    border-bottom: 1px solid var(--bs-border-color);
}

@media (min-width: 768px) {
    .border-switch {
        border-bottom: 0;
        border-right: 1px solid var(--bs-border-color);
    }
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .content-grid {
        gap: 2rem;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "row1 image"
            "row2 image";
    }

    .grid-row-1 { grid-area: row1; }
    .grid-row-2 { grid-area: row2; }
    .grid-image { grid-area: image; }
}

/* Chevron rotation */
.rotate-icon {
    transition: transform 0.3s ease;
}
[aria-expanded="true"] .rotate-icon {
    transform: rotate(180deg);
}

#SectionMenu {
    background-color: rgb(var(--bs-light-rgb)) !important;
}
.bg-dark #SectionMenu {
    background-color: var(--cm-dark-teal) !important;
    color: white;
}

/* Desktop Defaults (md+) */
.section-nav-list {
    list-style: none;
    padding: 0;
    display: flex;
    transition: all 0.25s ease;
}
.section-nav-list a {
    text-decoration: none;
    color: inherit;
    transition: 0.25s ease;
}
.section-nav-list a:hover {
    background-color: var(--bs-dark-bg-subtle) !important;
}
.section-nav-list a.active {
    background-color: rgb(var(--bs-secondary-bg-rgb)) !important;
}
.bg-dark .section-nav-list a.active {
    background-color: rgb(var(--bs-dark-rgb)) !important;
    color: white;
}

@media (max-width: 767.98px) {
    /* 1. Force the menu list to a new row */
    .section-nav-list {
        width: 100%;
        order: 3; /* Positions it after Title (1) and Toggle (2) */
        flex-direction: column;

        /* Animation setup */
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        margin: 0 !important;
    }
    .section-nav-list a {
        background-color: rgb(var(--bs-secondary-bg-rgb)) !important;
    }

    /* 2. Toggle state controlled by a class on the PARENT (#SectionMenu) */
    .section-menu.open .section-nav-list {
        max-height: 20rem; /* Large enough for content */
        opacity: 1;
        padding-bottom: 0.75rem;
    }

    /* Rotate chevron when the parent wrapper has the .open class */
    .section-nav-toggle i {
        display: inline-block; /* Essential for transform to work */
        transition: transform 0.25s ease; /* Makes the rotation smooth */
    }
    .section-menu.open .section-nav-toggle i {
        transform: rotate(180deg);
    }

    .section-nav-toggle {
        background: none;
        border: 0;
        padding: 0.5rem;
    }
}

/* Answer styling */
.faq-answer {
    margin-bottom: 2rem;
    padding-right: 1.5rem;
    position: relative;
}
.faq-answer::after {
    content: '';
    display: block;
    width: 180px;
    height: 1px;
    background-color: black;
    margin-top: 0.5rem;
}
/*
.faq-question {
    cursor: pointer;
    user-select: none;
}
 */


footer a.nav-link {
    transition: all .25s ease-out;
}

.lang-btn {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
}

.lang-btn:focus,
.lang-btn:active {
    box-shadow: none;
    outline: none;
}
.lang-menu {
    border: 0;
    background: transparent;
    padding: 0.25rem 0 0;
    min-width: auto;
}

.lang-menu .dropdown-item {
    padding: 0.25rem 0;
    background: none;
}

.lang-menu .dropdown-item:hover,
.lang-menu .dropdown-item:active,
.lang-menu .dropdown-item:focus {
    background: none;
}

.lang-menu {
    display: block;              /* keep in flow */
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;

    transition:
            max-height 1s ease,
            opacity 0.4s ease;
}

/* open state */
.lang-switcher.open .lang-menu {
    max-height: 10rem;            /* must be > real height */
    opacity: 1;
    pointer-events: auto;
}



.max-h-400 {
    max-height: 400px!important;
}

/*
.bi {
    display: inline-block;
    width: 1rem;
    height: 1rem;
}

 * Sidebar

@media (min-width: 768px) {
    .sidebar .offcanvas-lg {
        position: -webkit-sticky;
        position: sticky;
        top: 48px;
    }
    .navbar-search {
        display: block;
    }
}

.sidebar .nav-link {
    font-size: 1rem;
    font-weight: 400;
}


.sidebar-heading {
    font-size: .75rem;
}


.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .form-control {
    padding: .75rem 1rem;
}


footer {
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
    color: white;
    text-align: center;
    padding-top: .75rem;
    padding-bottom: .75rem;
}
*/