/* NAVIGATION WRAPPER */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      font-size: 62.5%;
      overflow-x: hidden;
    }
.nav-container {
    display: flex;
    flex-wrap: wrap;
    /* რეალოკაცია მცირე ეკრანებზე */
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem;
    background-color: #f5f5f5;
    position: relative;
    z-index: 50;
    width: 100%;
}

/* LOGO */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-logo img {
    height: 6rem;
    transition: height 0.3s ease;
}

.nav-logo span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    /* არ გაიფანტოს */
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    /* მცირე ეკრანზე გადაინაცვლოს ახალი ხაზზე */
}

.nav-link {
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
    transition: 0.3s ease;
}

.nav-link:hover {
    background-color: #fe5411ff;
    color: #fff;
}

/* BUTTON GROUP DESKTOP */
.button-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    font-size: 1.2rem;
    font-weight: 400;
    text-decoration: none;
}

.header-button.long-text {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: max-width 0.3s ease, font-size 0.3s ease;
    background: #fe5411ff;
    font-size: 1rem;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.header-button.long-text:hover {
    max-width: 35rem;
    background: #fe5411ff;
    color: white;
}

/* BURGER */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 1.8rem;
    height: 1.4rem;
    cursor: pointer;
    margin-left: auto;
    z-index: 100;
}

.burger span {
    display: block;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.4s ease;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE */
.header-bar {
    display: none;
    background-color: #fff;
    padding: 1rem 1.5rem;
    flex-direction: column;
}

.button-group-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.header-button-mobile {
    padding: 0.75rem 1rem;
    background-color: #fe5411ff;
    color: white;
    border-radius: 0.375rem;
    font-size: 1rem;
    text-align: center;
}

.nav-links.show {
    display: flex !important;
}

/* container styling */
.header-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    /* მანძილი სახელსა და გასვლის ბმულს შორის */
    font-size: 1rem;
    /* ტექსტის ზომა */
    font-weight: 500;
    color: #333;
    /* ტექსტის ფერი */
}

/* სახელის ტექსტი */
.header-user-info span {
    color: #000;
    /* სურვილის მიხედვით ფერი */
}

/* გასვლის ბმული */
.header-user-info a {
    color: red;
    /* როგორც შენ გაქვს */
    text-decoration: none;
    font-weight: bold;
    padding: 4px 8px;
    border: 1px solid red;
    /* სურვილისამებრ */
    border-radius: 5px;
    transition: 0.3s;
}

.header-user-info a:hover {
    background-color: red;
    color: white;
}

/* =======================
   RESPONSIVE SETTINGS
========================*/

/* Tablet */
@media (max-width: 1024px) {
    .nav-logo img {
        height: 5.5rem;
    }

    .nav-logo span {
        font-size: 1.1rem;
    }

    .header-button.long-text {
        max-width: 18rem;
        font-size: 0.95rem;
    }
}

/* Small Tablet / Large Phone */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-links,
    .button-group {
        display: none;
    }

    .header-bar {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 1rem;
        width: 22rem;
        background-color: #f5f5f5;
        flex-direction: column;
        padding: 1rem;
        display: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 30;
    }

    .header-button.long-text {
        max-width: 14rem;
        font-size: 0.9rem;
    }

    .nav-logo img {
        height: 5rem;
    }

    .nav-logo span {
        font-size: 1rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .header-button.long-text {
        max-width: 10rem;
        font-size: 0.85rem;
    }

    .nav-logo img {
        height: 4.5rem;
    }

    .nav-logo span {
        font-size: 0.9rem;
    }

    .nav-links {
        width: 18rem;
        padding: 0.75rem;
    }
    .header-user-info {
        font-size: 0.9rem;
        gap: 6px;
    }
        
    .header-user-info a {
        padding: 3px 6px;
        font-size: 0.9rem;
    }
}
