/********** Template CSS **********/
:root {
    --primary: #166af1;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #e8eef6;
    --dark: #1a2b50;
    --grey: #c5c5c5;
    --white: #fefefe;
    --mint: #dcedc8;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.font-weight-bold {
    font-weight: bold;
}

.bg-primary {
    background: var(--primary) !important;
}

.bg-mint {
    background: var(--mint) !important;
}

.replied {
    position: relative;
}
.replied::before {
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
    font-weight: bolder;
    font-size: 1.5rem;
    content: "Dietitian Reply";
    position: absolute;
    right: 20px;
    bottom: 5px;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.validation-feedback {
    width: 100%;
    margin-top: .25rem;
    font-size: .875em;
    color: #dc3545;
}

.progress-bar {
    line-height: 2rem;
}

.badge-primary {
    background: var(--primary) !important;
}
.badge-secondary {
    background: var(--grey) !important;
}

.badge-warning {
    background: var(--warning) !important;
}

.badge-danger {
    background: var(--danger) !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 {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    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;
}

.decofont {
    font-family: "Rockwell", Georgia, Times, serif;
    font-weight: 500;
}

/* Padding */

.p-5 {
    padding: 1.5rem !important;
}

.px-5 {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.m-5 {
    margin: 1.5rem !important;
}

.mx-5 {
    margin-right: 1.5rem !important;
    margin-left: 1.5rem !important;
}

.my-5 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

@media (min-width: 768px) {
    .p-5 {
        padding: 2.5rem !important;
    }

    .px-5 {
        padding-right: 2.5rem !important;
        padding-left: 2.5rem !important;
    }

    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .m-5 {
        margin: 2.5rem !important;
    }

    .mx-5 {
        margin-right: 2.5rem !important;
        margin-left: 2.5rem !important;
    }

    .my-5 {
        margin-top: 2.5rem !important;
        margin-bottom: 2.5rem !important;
    }
}

@media (min-width: 992px) {
    .p-5 {
        padding: 3rem !important;
    }

    .px-5 {
        padding-right: 3rem !important;
        padding-left: 3rem !important;
    }

    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    .m-5 {
        margin: 3rem !important;
    }

    .mx-5 {
        margin-right: 3rem !important;
        margin-left: 3rem !important;
    }

    .my-5 {
        margin-top: 3rem !important;
        margin-bottom: 3rem !important;
    }
}

/*** Navbar ***/
.navbar .logo img {
    width: 100px;
    height: 30px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\F282";
    font-family: "bootstrap-icons" !important;
    font-weight: 900;
    font-size: 0.75rem;
    vertical-align: middle;
    margin-left: 4px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    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 .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 100%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.owl-carousel .owl-carousel-text {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 3rem;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.owl-carousel .owl-nav {
    position: absolute;
    width: 80%;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 32px;
    font-size: 1rem;
    transition: .5s;
}

.owl-carousel .owl-nav .owl-prev:hover,
.owl-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border: var(--primary);
}

.owl-carousel .owl-dots {
    position: absolute;
    height: 32px;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.owl-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 16px;
    height: 16px;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 16px;
    transition: .5s;
}

.owl-carousel .owl-dot::after  {
    position: absolute;
    content: "";
    width: 8px;
    height: 8px;
    top: 3px;
    left: 3px;
    border-radius: 5px;
}

.owl-carousel .owl-dot.active::after {
    background: var(--white);
}

.owl-carousel a {
    color: var(--white);
}

.related-carousel a {
    color: var(--dark);
}

.related-carousel{
    position: relative;
  }
   .related-carousel .owl-nav {
    position: absolute;
    width: 75px;
    bottom: -5px;
    }
  .related-carousel .owl-nav .owl-prev, .related-carousel .owl-nav .owl-next {
    color: #8b8d8f;
    border: 1px solid #8b8d8f;
   }

.page-header {
    background: url(/upload/image/header-page.jpg) center center no-repeat;
    background-size: cover;
    text-shadow: 0 0 30px rgba(0, 0, 0, .25);
}

.page-content {
    background: url(/upload/image/header-content.jpg) center center no-repeat;
    background-size: cover;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.page-post {
    background: url(/upload/image/header-post.jpg) center center no-repeat;
    background-size: cover;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.page-enroll {
    background: url(/upload/image/header-enroll.jpg) center center no-repeat;
    background-size: cover;
    text-shadow: 0 0 30px rgba(0, 0, 0, .25);
}

.page-store {
    background: url(/upload/image/header-store.jpg) center center no-repeat;
    background-size: cover;
    text-shadow: 0 0 30px rgba(0, 0, 0, .25);
}

.page-not-found {
    background: #0463FA;
    text-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.post-content img, #details img {
    max-width: 100%;
    margin-bottom: 0;
}


/*** Service ***/
.service-item {
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08);
}

.service-item .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 40px;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

.service-item:hover .btn {
    width: 140px;
}

.slider-item {
    aspect-ratio: 4/3;
  }
  
  .slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

#slide-preview img {
    max-width: 100%;
    margin-top: .5rem;
    margin-bottom: .5rem;
    border-radius: .5rem;
}
/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/* Post */

/*==================================================
Blog
==================================================*/

.blog .owl-carousel .blog-post {
    margin-bottom: 0;
    box-shadow: none;
}

.single-post .blog-post {
    margin-bottom: 0;
}

.blog-post {
    margin-bottom: 30px;
    background: var(--white);
    border-radius: 3px;
    -webkit-box-shadow: 0px 0px 30px 0 rgba(0, 20, 9, 0.1);
    -moz-box-shadow: 0px 0px 30px 0 rgba(0, 20, 9, 0.1);
    box-shadow: 0px 0px 30px 0 rgba(0, 20, 9, 0.1);
}

.light-bg .blog-post {
    background: var(--light);
}

.blog-post .post-media {
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
}

.blog-post .post-media img {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
    width: 100%;
    -webkit-border-top-left-radius: 3px;
    -webkit-border-top-right-radius: 3px;
    -moz-border-radius-topleft: 3px;
    -moz-border-radius-topright: 3px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    -webkit-border-bottom-right-radius: 0;
    -webkit-border-bottom-left-radius: 0;
    -moz-border-radius-bottomright: 0;
    -moz-border-radius-bottomleft: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.blog-post:hover .post-media img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.blog-post .post-media .post-date {
    font-family: var(--title-fonts);
    background: var(--primary);
    padding: 4px 8px;
    line-height: normal;
    text-transform: capitalize;
    color: var(--white);
    text-align: center;
    position: absolute;
    bottom: 15px;
    left: 15px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.blog-post .post-media .post-date a {
    color: var(--white);
    letter-spacing: 0.04em;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-post .blog-contain {
    padding: 30px;
    display: inline-block;
    position: relative;
    width: 100%;
}

.blog-post .blog-contain .blog-title {
    margin: 0 0 5px;
    font-size: 24px;
    line-height: 32px;
}

.descripqion-hide .blog-post .blog-contain .blog-title {
    margin-bottom: 15px;
}

.descripqion-hide p {
    display: none;
}

.blog-post .post-meta ul {
    padding: 0 0 15px;
    margin: 0 0 15px;
    width: 100%;
    display: flex;
    border-bottom: 1px solid #ededed;
}

.blog-post .post-meta ul li {
    list-style: none;
    float: left;
    display: block;
    margin-right: 20px;
    letter-spacing: 0.04em;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--title-fonts);
}

.blog-post .post-meta ul li:last-child {
    margin-right: 0;
}

.blog-post .post-meta ul li a {
    color: var(--secondary);
    text-decoration: none;
}

.blog-post .post-meta ul li a:hover {
    color: var(--primary);
}

.blog-post .post-meta ul li i {
    margin-right: 10px;
    color: var(--primary);
}

.single-post .content-area .site-main {
    padding-bottom: 210px;
}

/* Sidebar */
.widget {
    margin-bottom: 45px;
    display: block;
    width: 100%;
    float: left;
    position: relative;
    padding: 30px;
    background: var(--light);
    border-radius: 3px;
}

.widget_search {
    background: var(--primary);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget h2 {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 15px;
}

/* Masonry */

.portfoliobox {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    float: left;
    transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
    border-radius: 5px;
}

.portfoliobox .portfolio-img img {
    width: 100%;
    height: 100%;
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
}

.portfoliobox .portfolio-img {
    position: relative;
}

.portfoliobox .portfolio-img:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: inline-block;
    z-index: 9;
    background: var(--secondary);
    opacity: 0;
    transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
}

.portfoliobox:hover .portfolio-img:before {
    opacity: 0.2;
}

.portfoliobox .portfolio-info span,
.portfoliobox .portfolio-info .portfolio-link a {
    font-family: var(--title-fonts);
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 14px;
    line-height: 22px;
    text-transform: uppercase;
    color: var(--primary);
}

.portfoliobox:hover .portfolio-img img {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

.portfoliobox .portfolio-info {
    background: var(--white);
    left: 30px;
    right: 30px;
    position: absolute;
    bottom: -15px;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
    text-align: center;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.portfoliobox:hover .portfolio-info {
    opacity: 1;
    z-index: 10;
    bottom: 30px;
}

.portfoliobox .portfolio-info h5 a {
    color: var(--dark);
}

.portfoliobox .portfolio-info h5 a:hover {
    color: var(--primary);
}

/* Certify */
.enroll {
    position: relative;
    margin-bottom: -3rem;
    z-index: 10;
}

.enroll-bg {
    background: linear-gradient(to bottom right, #ba55bb 0%, #161bbb 100%);
    color: var(--white);
    border-radius: 3px;
}

.enroll-block .enroll-details {
    margin-left: 30px;
    color: var(--white);
    padding-right: 50px;
    font-size: 24px;
    line-height: 36px;
}

/* Product */

.product-item {
    transition: .1s
}

.product-item:hover {
    border-width: 0!important;
    box-shadow: 0 0 35px rgba(127, 121, 188, 0.25)
}

.product-item:hover a.btn {
    color: var(--bs-white);
    background: var(--bs-primary)
}

/* Recaptcha */
img.code {
    float: right;
    margin-top: -3.3rem;
    margin-right: 0.3rem;
    border-radius: 6px;
}

.overlay-content {
    background-color: rgb(8 40 80 / 45%);
}

/*** Team ***/
.team-item img {
    position: relative;
    top: 0;
    transition: .5s;
}

.team-item:hover img {
    top: -30px;
}

.team-item .team-text {
    position: relative;
    height: 100px;
    transition: .5s;
}

.team-item:hover .team-text {
    margin-top: -60px;
    height: 160px;
}

.team-item .team-text .team-social {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}



/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/
.footer {
    color: var(--light);
    background: linear-gradient(to bottom right, #0d6efd 0%, #001f4f 100%);
}

.footer h5 {
    font-weight: normal;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    text-decoration: none;
    transition: all .3s ease;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\F4FA";
    font-family: "bootstrap-icons" !important;
    font-weight: normal;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--white);
    letter-spacing: .3px;
    box-shadow: none;
}

.footer .btn-outline-light:hover {
    color: var(--primary);
    text-decoration: none;
    background-color: transparent;
    border-color: var(--primary)
}

.footer .copyright {
    padding: 25px 0;
    font-size: 12px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer a {
    color: var(--light);
    transition: all .3s ease;
}

.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}