/* =========================================================
   CSIR Smart Agrotechnologies Header
   ========================================================= */

:root {
    --csir-green: #116b3d;
    --csir-dark-green: #0b5631;
    --csir-light-green: #eef9f3;
}

/* =========================================================
   Main Header
   ========================================================= */

.project-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   Header Banner
   ========================================================= */

.project-banner {
    width: 100%;
    /* height: 200px; */
    height: fit-content;
    background: #ffffff;
    /* Remove object-fit from here */
}

.project-banner-link {
    display: block;
    width: 100%;
    height: 100%; /* Force the link to match the container height */
    line-height: 0;
}

.project-banner-image {
    display: block;
    width: 100%;
    height: 100%; /* Force the image to match the 200px height */
    object-fit: cover; /* Scale and crop nicely without squishing */
    object-position: center 20%;
}

/* =========================================================
   Container
   ========================================================= */

.project-container {
    width: min(100% - 40px, 1200px);
    margin: 0 auto;
}

/* =========================================================
   Navigation
   ========================================================= */

.project-navbar {
    min-height: 52px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--csir-green);
}

/* Navigation container */

.project-navbar .project-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */

.project-nav {
    float: none;
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin: 0;
}

.project-nav > li {
    float: none;
}

/* Navigation links */

.project-nav > li > a {
    position: relative;
    display: block;

    padding: 17px 20px 16px;

    color: rgba(255, 255, 255, 0.95);
    background: transparent;

    font-size: 14px;
    font-weight: 600;

    text-transform: capitalize;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

/* Hover */

.project-nav > li > a:hover,
.project-nav > li > a:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================================
   Active Navigation
   ========================================================= */

.project-nav > li.active > a,
.project-nav > li.active > a:hover,
.project-nav > li.active > a:focus {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.12);
}

.project-nav > li.active > a::after {
    position: absolute;

    left: 18px;
    right: 18px;
    bottom: 0;

    height: 3px;

    content: "";

    background: #8ee5b3;

    border-radius: 3px 3px 0 0;
}

/* =========================================================
   Mobile Project Name
   ========================================================= */

.mobile-project-name {
    display: none;
}

/* =========================================================
   Mobile Toggle
   ========================================================= */

.project-navbar .navbar-toggle {
    float: right;

    margin: 10px 0;

    padding: 8px 10px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 5px;

    background: transparent;
}

.project-navbar .navbar-toggle:hover,
.project-navbar .navbar-toggle:focus {
    background: rgba(255, 255, 255, 0.1);
}

.project-navbar .navbar-toggle .icon-bar {
    width: 22px;
    height: 2px;

    margin: 4px 0;

    background: #ffffff;
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1000px) {
    .project-nav > li > a {
        padding-left: 14px;
        padding-right: 14px;
        font-size: 13px;
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {
    .project-container {
        width: calc(100% - 28px);
    }
    .project-banner {
        height: 100px;
    }

    /* Banner */

    .project-banner-image {
        width: 100%;
        height: auto;
        height: 100px;
        
    }

    /* Navbar */

    .project-navbar {
        min-height: 52px;
    }

    .project-navbar .project-container {
        display: block;
    }

    /* Mobile title */

    .mobile-project-name {
        display: inline-block;

        padding: 16px 0;

        color: #ffffff;

        font-size: 13px;
        font-weight: 650;

        text-decoration: none;
    }

    .mobile-project-name:hover,
    .mobile-project-name:focus {
        color: #ffffff;
        text-decoration: none;
    }

    /* Mobile menu */

    .project-navbar .navbar-collapse {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: none;
    }

    .project-nav {
        display: block;

        margin: 5px 0 10px;
    }

    .project-nav > li {
        display: block;
    }

    .project-nav > li > a {
        padding: 13px 15px;

        border-radius: 5px;

        font-size: 14px;
    }

    .project-nav > li > a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .project-nav > li.active > a {
        background: rgba(0, 0, 0, 0.12);
    }

    .project-nav > li.active > a::after {
        display: none;
    }
}

/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 400px) {
    .project-banner-image {
        object-fit: cover;
        object-position: center;
    }

    .mobile-project-name {
        font-size: 12px;
    }
}
