/********** Template CSS **********/
:root {
    --primary: #71a361;
    --primary-ink: #1a2e16;
    --secondary: #5a8a4d;
    --tertiary: #555555;
    --light: #eef4ec;
    --dark: #1a1f16;
}

.text-primary {
    color: var(--primary-ink) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.btn-primary,
.btn-outline-primary:hover {
    color: #fff !important;
    background-color: var(--primary);
    border-color: #5d904f;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff !important;
    background-color: #629754;
    border-color: #4d7a42;
}

.btn-outline-primary {
    color: var(--primary-ink) !important;
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    border-color: #5d904f;
}

.bg-primary i.text-white,
.btn-lg-square.bg-primary i {
    color: #fff !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(44, 50, 40, .08);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    padding: 25px 15px;
    color: var(--tertiary);
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #FFFFFF;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

.carousel-control-prev-icon {
    border-radius: 0 3rem 3rem 0;
}

.carousel-control-next-icon {
    border-radius: 3rem 0 0 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/header.jpg) top left no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--tertiary);
}


/*** Service ***/
.service .nav .nav-link {
    transition: .5s;
}

.service .nav .nav-link.active {
    border-color: var(--primary) !important;
    background: var(--primary);
}

.service .nav .nav-link.active h5 {
    color: #fff !important;
}

.service .nav .nav-link.active h5 i {
    color: #fff !important;
}

.service .nav-pills .nav-link {
    padding: 1rem 1.1rem;
}

.service .nav-pills .nav-link h5 {
    font-size: 0.95rem;
    line-height: 1.35;
}


/*** Partners ***/
.partners-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, var(--light) 0%, #fff 45%, var(--light) 100%);
}

.partners-section::before,
.partners-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.partners-section::before {
    top: -100px;
    right: -80px;
    width: 260px;
    height: 260px;
    background: rgba(113, 163, 97, 0.1);
}

.partners-section::after {
    bottom: -120px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(113, 163, 97, 0.07);
}

.partners-section .container {
    position: relative;
    z-index: 1;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 1.75rem 1.25rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(44, 50, 40, .06);
    box-shadow: 0 6px 24px rgba(26, 31, 22, .05);
    text-align: center;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    position: relative;
    overflow: hidden;
}

.partner-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}

.partner-card:hover {
    transform: translateY(-8px);
    border-color: rgba(113, 163, 97, .3);
    box-shadow: 0 18px 40px rgba(26, 31, 22, .1);
}

.partner-card:hover::after {
    transform: scaleX(1);
}

.partner-card-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: background .35s ease, color .35s ease, transform .35s ease;
}

.partner-card:hover .partner-card-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.partner-card-name {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--dark);
    margin-bottom: 0.65rem;
}

.partner-card-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary-ink);
    background: rgba(113, 163, 97, 0.14);
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
}


/*** Advisors ***/
.advisor-profile {
    background: #fff;
    box-shadow: 0 6px 24px rgba(26, 31, 22, .05);
    transition: box-shadow .35s ease, border-color .35s ease;
}

.advisor-profile:hover {
    border-color: rgba(113, 163, 97, .25) !important;
    box-shadow: 0 12px 32px rgba(26, 31, 22, .08);
}

.advisor-img-wrap {
    max-width: 220px;
    overflow: hidden;
    border-radius: 8px;
}

.advisor-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.advisor-img-placeholder {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--light), #fff);
    border: 1px solid rgba(44, 50, 40, .08);
    border-radius: 8px;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--primary);
}

.advisor-role {
    color: var(--primary-ink);
    font-weight: 600;
    line-height: 1.5;
}

.advisor-bio p {
    color: var(--tertiary);
    line-height: 1.75;
    margin-bottom: 1rem;
    text-align: left;
}


/*** Project ***/
.project-item,
.project-item .project-img {
    position: relative;
}

.project-img-placeholder {
    height: 220px;
    width: 100%;
    background: var(--light);
    border: 1px solid rgba(44, 50, 40, .08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img-placeholder i {
    font-size: 48px;
    color: var(--primary);
}

.project-item .project-img a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover .project-img a {
    opacity: 1;
}

.project-item .project-title {
    position: absolute;
    top: 3rem;
    right: 0;
    bottom: 0;
    left: 3rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    z-index: -1;
    transition: .5s;
}

.project-item:hover .project-title {
    background: var(--primary);
    border-color: var(--primary);
}

.project-item .project-title h4 {
    transition: .5s;
}

.project-item:hover .project-title h4 {
    color: #fff;
}

.project-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: #fff;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #000B1C;
}

.copyright a {
    color: var(--light);
}

.copyright a:hover {
    color: var(--primary);
}