/********** Template CSS **********/
:root {
    --primary: #F3BD00;
    --secondary: #757575;
    --light: #F3F6F8;
    --dark: #0C2B4B;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** 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 {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.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;
}

.btn-primary {
    background-color: #257013 !important;
}

.topbar {
    background-color: #104503 !important;
}

/*** Navbar ***/
.main-navbar {
    top: 0;
    z-index: 999;
    padding: 0;
    box-shadow: 0 2px 12px rgba(12, 43, 75, 0.08);
    transition: box-shadow .3s ease;
}

.main-navbar.shadow-sm {
    box-shadow: 0 10px 26px rgba(12, 43, 75, 0.16) !important;
}

.nav-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 16px;
}

.navbar-logo {
    height: 56px;
    width: auto;
    display: block;
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin: 0 24px 0 0;
    padding: 12px 24px 12px 0;
    border-right: 1px solid #EEEEEE;
}

.navbar .navbar-nav {
    align-items: center;
}

.navbar .navbar-nav .nav-item {
    position: relative;
}

.navbar .navbar-nav .nav-link {
    margin: 0 4px;
    padding: 28px 14px;
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .3px;
    text-transform: uppercase;
    outline: none;
    white-space: nowrap;
    transition: color .25s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #257013;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    vertical-align: middle;
    margin-left: 6px;
}

.navbar .dropdown-menu {
    border: none;
    border-radius: 10px;
    padding: 10px;
    margin-top: 0;
    min-width: 200px;
    box-shadow: 0 16px 34px rgba(12, 43, 75, 0.16);
}

.navbar .dropdown-item {
    border-radius: 6px;
    padding: 10px 14px;
    font-weight: 500;
    color: var(--dark);
    transition: background-color .2s ease, color .2s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: rgba(37, 112, 19, 0.08);
    color: #257013;
}

/* Actions (CTA + toggler) */
.nav-actions {
    gap: 0;
}

.nav-cta-btn,
.nav-cta-btn-mobile {
    border-radius: 30px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}

.nav-cta-btn-mobile {
    justify-content: center;
    display: flex;
    border-radius: 8px;
    padding: 12px 20px;
}

/* Animated hamburger toggler */
.navbar-toggler {
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background-color: rgba(37, 112, 19, 0.08);
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 112, 19, 0.25);
}

.navbar-toggler .toggler-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #257013;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 130%;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity .25s ease, transform .25s ease, top .25s ease;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .navbar-brand {
        margin-right: 14px;
        padding-right: 14px;
    }

    .navbar .navbar-nav .nav-link {
        margin: 0 2px;
        padding: 28px 10px;
        font-size: 13px;
    }

    .nav-cta-btn {
        padding: 9px 16px;
        font-size: 13px;
    }
}

@media (max-width: 991.98px) {
    .nav-container {
        padding: 10px 16px;
    }

    .navbar-logo {
        height: 46px;
    }

    .navbar-brand {
        border-right: none;
        margin: 0;
        padding: 0;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        background-color: #ffffff;
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(12, 43, 75, 0.18);
        padding: 12px 18px 20px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .navbar .navbar-nav {
        align-items: stretch;
        border-top: none;
    }

    .navbar .navbar-nav .nav-item {
        border-bottom: 1px solid #F0F0F0;
    }

    .navbar .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar .navbar-nav .nav-link {
        margin: 0;
        padding: 14px 4px;
        width: 100%;
    }

    .navbar .dropdown-menu {
        position: static;
        box-shadow: none;
        margin: 0 0 6px 14px;
        padding: 0;
        background-color: transparent;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, .75);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: #257013;
    border: 10px solid #257013;
}

@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 {
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/breadcum-img1.jpg) center center no-repeat;
    background-size: cover;
    background-position: center;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}


/*** Courses ***/
.courses {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../img/carousel-1.jpg) center center no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.courses-item .courses-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.courses-item:hover .courses-overlay {
    height: 100%;
    opacity: 1;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: #257013;
}

.text-primary {
    color: #257013 !important;
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    height: 100%;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    height: 40px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid #257013;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: #257013;
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}


/*** 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;
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #ffffff;
    letter-spacing: 1px;
    font-weight: 600;
    box-shadow: none;
}

.copyright {
    background: #0e3704;
}

.copyright a {
    color: #257013;
}

.copyright a:hover {
    color: var(--light);
}

.founder_img {
    height: 400px;
    width: 100%;
    border-radius: 20px;
}
