
/* ==============================
   Pagrindinis popup overlay
   ============================== */
.hidden {
  display: none !important;
}

#vub_popup {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* ✅ vietoj center */
    padding: 1rem; /* ✅ kad neklijuotųsi prie krašto */
    overflow-y: auto; /* ✅ scroll, jei per aukštas */
    z-index: 999;
}

/* ==============================
   Vidinis popup turinys
   ============================== */
#vub_popupContent {
    position: relative;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.3);
    padding: 3.6rem 2rem 2rem;
    width: 100%;
    max-width: 64rem;
    margin-top: 2rem; /* ✅ vietoj -130px */
}

/* ==============================
   Close mygtukas
   ============================== */
#closePopup {
    position: absolute;
    top: 1rem;   /* top-4 */
    right: 1rem; /* right-4 */
    color: #4b5563; /* text-gray-600 */
    font-size: 1.25rem; /* text-xl */
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

#closePopup:hover {
    color: #1f2937; /* hover:text-gray-800 */
}

/* ==============================
   Grid meniu
   ============================== */
#menuContainer.grid {
    display: grid;
    grid-template-columns: 1fr; /* grid-cols-1 */
    gap: 1.5rem; /* gap-6 */
}

@media screen and (min-width: 768px) {
    #menuContainer.grid {
        grid-template-columns: repeat(2, 1fr); /* md:grid-cols-2 */
    }
}

/* ==============================
   Popup vidiniai elementai
   ============================== */
#vub_popup .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid rgb(207, 202, 202);
    border-radius: 0.375rem; 
    padding: 1rem;
    height: 4.8rem;
    background-color: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
}

/*a:hover {
    background-color: #f3f3f3;
}*/

a.item:hover, a.item:focus, a.item:active {
  text-decoration: none !important;
}

a.item::after {
  text-decoration: none !important;
  content: none !important;
}


#vub_popup .item-name {
    flex: 1;
    flex-wrap: wrap;
    font-size: 20px;
    color: #78003f;
    margin-right: 10px;
    font-size: 1.3rem;
}

/* ==============================
   Animacijos klasės
   ============================== */
#vub_popup .popup-enter {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

#vub_popup .popup-enter-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#vub_popup .popup-exit {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#vub_popup .popup-exit-active {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ==============================
   Pagrindinis popup z-index
   ============================== */
#vub_popup,
#vub_popupContent {
    z-index: 999 !important;
}

/* ==============================
   Hover ant linkų
   ============================== */
#menuContainer a {
    font-size: 2.2rem;
}

#menuContainer a:hover {
    text-decoration: none !important;
}

/* ==============================
   Mygtukas hover
   ============================== */
#vubMenuButton:hover {
    cursor: pointer;
}

/* ==============================
   Responsive
   ============================== */
/* Responsive pataisymai */
@media screen and (max-width: 810px) {
    #vub_popup {
        align-items: flex-start; /* ✅ išlaikome */
        padding: 1rem;
    }

    #vub_popupContent {
        margin-top: 1rem; 
        padding: 3.5rem 1.5rem 1.5rem;
    }
}
