/* Font faces */
@font-face {
    font-family: "SF UI Display";
    src: url("/static/fonts/SFUIDisplay-Regular.ttf");
    font-weight: 400;
}

@font-face {
    font-family: "SF UI Display";
    src: url("/static/fonts/SFUIDisplay-Medium.ttf");
    font-weight: 500;
}

@font-face {
    font-family: "SF UI Display";
    src: url("/static/fonts/SFUIDisplay-Semibold.ttf");
    font-weight: 600;
}

/* Color variables */
:root {
    --nadiyno-yellow: #FFC70A;
    --nadiyno-blue: #0F48E8;
    --shadow: 0px 5px 20px rgba(0, 0, 81, 0.06);
    --text-color: #221F1F;
    --secondary-text: #5f6368;
    --soft-blue-bg: rgba(15, 72, 232, 0.1);
    --border-radius: 10px;
    --soft-grey-bg: #f8f9fa;
    --sharp-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Text selection */
::selection {
    background: var(--nadiyno-yellow);
    color: black;
}

::-moz-selection {
    background: var(--nadiyno-yellow);
    color: black;
}

::-webkit-selection {
    background: var(--nadiyno-yellow);
    color: black;
}

/* Base styles */
html, body {
    height: 100%;
    font-family: "SF UI Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-style: normal;
    color: var(--text-color);
    margin: 0;
}

.layout-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Links */
a {
    color: var(--nadiyno-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--nadiyno-yellow);
}

/* Header and footer */
header {
    background-color: #fff;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    height: 80px;
}

main {
    flex: 1 1 auto;
}

footer {
    color: var(--secondary-text);
    padding: 20px 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Navigation */
.navbar__title {
    font-size: 36px;
    font-weight: 400;
}

.navbar__logo img {
    width: auto;
}

.navbar_links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.navbar__lnk {
    display: block;
    margin: 0;
    margin: 0 15px;
    color: inherit;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    background-color: transparent;
}

.navbar__lnk:hover {
    color: inherit;
}

.navbar__lnk::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    position: relative;
    top: 2px;
    background: var(--nadiyno-blue);
    transition: all 0.2s ease;
}

.navbar__lnk:hover::after {
    background: var(--nadiyno-yellow);
}

/* Common text colors */
.nadiyno-yellow {
    color: var(--nadiyno-yellow);
    font-weight: 600;
}

.nadiyno-blue {
    color: var(--nadiyno-blue);
    font-weight: 600;
}

/* Footer logo styles */
.footer-logo {
    width: 150px;
    height: auto;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Media Queries */
@media screen and (max-width: 900px) {
    header {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        height: auto;
        padding: 15px;
    }

    .navbar__title {
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    .navbar__title {
        font-size: 18px;
    }

    .footer-logo {
        width: 100px;
    }

    footer {
        font-size: 12px;
        height: 100px;
    }
}
