/*
 * Small PHP-template bridge for the Nasani demo CSS.
 * Keep this file narrow: customv2.css already owns the Nasani layout.
 */

.wrap-main,
.wrap-main.wrap-home {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

#nina-wrapper a:hover {
    color: inherit;
}

/* Dropdown markup generated by Hcode's showMenu() needs only positioning polish. */
ul.nina-menu>li>ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: .25s ease;
    z-index: 99;
}

ul.nina-menu>li:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

ul.nina-menu>li>ul a {
    display: block;
    padding: 9px 16px;
    color: #374151;
    text-transform: none;
    font-size: 14px;
}

ul.nina-menu>li>ul a:hover {
    color: var(--mainColor);
    padding-left: 22px;
}

.nina-footer-links a {
    color: inherit;
    transition: .25s ease;
}

.nina-footer-links a:hover {
    color: var(--mainColor);
    padding-left: 6px;
}

.mangxahoift img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

/* Extra cards not present in the original demo homepage. */
.nina-card-project,
.nina-card-news {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.nina-card-project img,
.nina-card-news img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: .3s ease;
}

.nina-card-project:hover img,
.nina-card-news:hover img {
    transform: scale(1.05);
}

.nina-card-project h3,
.nina-card-news h3 {
    color: #111827;
    font-family: var(--font-Poppins-SemiBold);
    font-size: 18px;
    line-height: 1.45;
}

.nina-card-project h3 {
    padding: 16px;
}

.nina-card-news div {
    padding: 16px;
}

.nina-card-news h3 {
    margin: 8px 0;
}

.nina-card-news span {
    color: var(--mainColor);
    font-size: 13px;
}

.nina-card-news p {
    color: #6b7280;
    line-height: 1.6;
}

/* Mobile menu open state controlled by assets/js/nasani-clone.js. */
.menu-mobile-fixed {
    transform: translateX(-105%);
    transition: .3s ease;
}

.menu-mobile-fixed.is-open {
    transform: translateX(0);
}

.menu-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 1999;
    display: none;
    background: rgba(0, 0, 0, .45);
}

.menu-mobile-overlay.is-open {
    display: block;
}
