/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0 !important;
    padding: 0 !important;
}

.main-con{
    padding: 0;
    margin: 0;
}

.nav-con{
    width: 100%;
    height: 85px;
    padding: 20px;
    margin: 0;
    gap:  20px;
    background-color: white;
    display: flex;
    flex-direction: row;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-con{
    width: 50%;
    height: auto;
    float: left;
    display: flex;
    flex-direction: row;
}

.logo-img{
    float: left;
    margin: 0;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px;
}

.logo-con img{
    height: 45px;
    width: 80px;
}

.logo-txt{
    width: 435px !important;
    height: 50px;
}

.logo-txt h1{
    font-size: 2rem;
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: rgb(137, 117, 2);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: right;
}
.action-card-con{
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    justify-content: center;
}

.action-cards{
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    width: 150px;
    height: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.action-cards i{
    color: #e67e22;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.action-cards p{
    color: #e67e22;
    text-align: center;
    font-size: 1.17rem;
    font-weight: 500px;
    padding-bottom: 15px;
}

.nav-lnk-con{
    width: 50%;
    height: auto;
    display: flex;
    flex-direction: row;
    margin-left: 170px;
}

.nv-txt-hm{
    padding: 10px;
    margin-left: 40px;
    padding-top: 5px;
    margin-top: 10px;
}

.nv-txt-hm p{
    text-align: right;
    font-weight: 400;
    font-size: 16px;
    
}

#home-nv-txt{
    margin-right: -20px;
    color: #333333 !important;
}

#prop-nv-txt{
    margin-right: -20px;
}

#abt-nv-txt{
    margin-right: -20px;
}

#contact-nv-txt{
    margin-right: -20px;
}

.login-btn-nv{
    padding: 8px 20px;
    background: #e67e22;
    color: white !important;
    border-radius: 4px;
    transition: background 0.3s;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: -10px;
    width: 80px;
    height: 38px;
    text-align: center;
}

.hero-sec-con{
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 99.5vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),url('https://villanova.ng/images/hd-bg.jpg');
    background-size: cover;
    position: center !important;
    margin-top: -170px;
}


.hero-hd-txt{
    margin-top: 390px !important;
}
.hero-hd-txt h3{
    font-size: 2.8rem;
    text-align: center;
    color: white !important;
    font-family: Montserrat;
    
}

.hero-hd-txt p{
    font-size: 18px;
    color: white;
    text-align: center;
    margin-top: 30px;
    font-weight: 400px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.saerch-bar-con{
    display: flex;
    justify-content: center;
    height: 70px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 750px;
    margin: 10px auto 10px auto;
    margin-top: 32px;
    margin-bottom: 30px;
}

.loc-con{
    display: flex;
    flex-direction: row;
}

.loc-con select{
    width: 180px;
    height: 40px;
    padding: 10px;
    border: 2px solid #d4d4d4;
    border-radius: 4px !important;
    padding-right: 10px !important;
    margin-right: 15px !important;
    margin-top: -5px !important;
}

#location-inpt{
    margin-left: -2px;
}

.search-btn{
    background-color: #e67e22;
    padding: 10px;
    border-radius: 4px;
    width: 130px;
    height: 40px;
    border: none;
    margin-top: -5px;
    color: white;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .nav-con {
        height: auto;
        padding: 15px 10px;
        flex-direction: column;
        gap: 10px;
        position: relative;
    }

    .logo-con {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .logo-img {
        padding-left: 0;
        padding-right: 10px;
    }

    .logo-txt {
        width: auto !important;
        height: auto;
    }

    .logo-txt h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .nav-lnk-con {
        width: 100%;
        margin-left: 0;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 5px;
    }

    .nv-txt-hm {
        margin-left: 0;
        padding: 5px;
        margin-top: 0;
    }

    .nv-txt-hm p {
        font-size: 14px;
    }

    #home-nv-txt,
    #prop-nv-txt,
    #abt-nv-txt,
    #contact-nv-txt {
        margin-right: 0;
    }

    .login-btn-nv {
        margin-top: 0;
        width: 70px;
        height: 32px;
        padding: 5px 10px;
    }

    .hero-sec-con {
        height: auto;
        min-height: 100vh;
        margin-top: 0;
        padding: 20px 10px;
    }

    .hero-hd-txt {
        margin-top: 150px !important;
    }

    .hero-hd-txt h3 {
        font-size: 2rem;
        padding: 0 10px;
    }

    .hero-hd-txt p {
        font-size: 16px;
        padding: 0 10px;
    }

    .saerch-bar-con {
        width: 95%;
        height: auto;
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }

    .loc-con {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .loc-con select {
        width: 100%;
        margin-right: 0 !important;
        margin-top: 0 !important;
    }

    #location-inpt {
        margin-left: 0;
    }

    .search-btn {
        width: 100%;
        margin-top: 0;
    }

    .action-card-con {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
    }

    .action-cards {
        width: 200px;
        height: 80px;
        padding: 1rem;
    }

    .action-cards i {
        font-size: 1.5rem;
    }

    .action-cards p {
        font-size: 1rem;
        padding-bottom: 10px;
    }
}

/* Tablet Responsive Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-lnk-con {
        margin-left: 50px;
    }

    .logo-txt h1 {
        font-size: 1.8rem;
    }

    .saerch-bar-con {
        width: 90%;
    }

    .hero-hd-txt h3 {
        font-size: 2.4rem;
    }
}

/* Mobile Menu Toggle for Small Screens */
@media (max-width: 480px) {
    .nav-con {
        padding: 10px 5px;
    }

    .logo-txt h1 {
        font-size: 1.3rem;
    }

    .nav-lnk-con {
        display: none; /* Hidden by default on very small screens */
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        padding: 10px 0;
    }

    .nav-lnk-con.mobile-open {
        display: flex;
    }

    .nv-txt-hm {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        margin: 0;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #333;
        cursor: pointer;
    }

    .hero-hd-txt {
        margin-top: 100px !important;
    }

    .hero-hd-txt h3 {
        font-size: 1.8rem;
    }

    .action-cards {
        width: 90%;
    }
}

/* Interactive States for Mobile */
@media (hover: none) and (pointer: coarse) {
    .action-cards:active {
        transform: scale(0.98);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .login-btn-nv:active {
        background: #d35400;
        transform: scale(0.98);
    }

    .search-btn:active {
        background: #d35400;
        transform: scale(0.98);
    }

    .nv-txt-hm:active p {
        color: #e67e22 !important;
    }
}

/* Smooth Transitions for Mobile Interactions */
.action-cards {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn-nv, .search-btn {
    transition: all 0.2s ease;
}



/* Touch-friendly button sizes */
@media (max-width: 768px) {
    button, .login-btn-nv, .search-btn {
        min-height: 44px; /* Minimum touch target size */
        min-width: 44px;
    }

    select {
        min-height: 44px; /* Touch-friendly form elements */
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-sec-con {
        min-height: 120vh;
    }

    .hero-hd-txt {
        margin-top: 80px !important;
    }

    .saerch-bar-con {
        padding: 10px;
    }

    .action-card-con {
        flex-direction: row;
        flex-wrap: wrap;
    }
}