/********** Template CSS **********/
:root {
    --primary: #3CB815;
    --secondary: #F65005;
    --light: #F7F8FC;
    --dark: #111111;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/* Responsive adjustments for general spacing */
.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (max-width: 991.98px) {
    .my-6 {
        margin-top: 4rem;
        margin-bottom: 4rem;
    }

    .py-6 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 767.98px) {
    .my-6 {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .py-6 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}


.bg-icon {
    background: url(../img/bg-icon.png) center center repeat;
    background-size: contain;
}


/*** 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,
.btn.btn-outline-primary:hover,
.btn.btn-outline-secondary: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;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.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: #555555;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--dark);
}

@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;
    }

    /* Adjust language toggle button for smaller screens */
    .navbar .d-lg-flex .btn-sm-square.rounded-pill {
        width: auto !important; /* Allow content to dictate width */
        padding: 5px 10px; /* Add some padding */
        font-size: 0.9rem; /* Smaller font size */
    }
    .navbar .d-lg-flex .ms-3 {
        margin-left: 10px !important; /* Reduce margin */
    }
}

@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;
}

/* Adjust carousel caption text for smaller screens */
.carousel-caption h1 {
    font-size: 3rem; /* Default large size */
}

@media (max-width: 991.98px) {
    .carousel-caption h1 {
        font-size: 2.5rem; /* Medium screens */
    }
    .carousel-caption .btn {
        padding: 10px 20px !important; /* Smaller buttons */
    }
}

@media (max-width: 767.98px) {
    .carousel-caption h1 {
        font-size: 1.8rem; /* Smaller screens */
        margin-bottom: 1rem !important; /* Reduce margin */
    }
    .carousel-caption p {
        font-size: 0.9rem; /* Smaller paragraph text */
    }
    .carousel-caption .btn {
        padding: 8px 15px !important; /* Even smaller buttons */
        font-size: 0.8rem;
    }
    .carousel-caption .row {
        justify-content: center !important; /* Center content on small screens */
        text-align: center !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
    border-radius: 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 responsiveness */
.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/carousel-1.jpg) top right no-repeat;
    background-size: cover;
}

@media (max-width: 991.98px) {
    .page-header {
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    .page-header h1 {
        font-size: 2rem;
    }
}


.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Section Header ***/
.section-header {
    position: relative;
    padding-top: 25px;
}

.section-header::before {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
}

.section-header::after {
    position: absolute;
    content: "";
    width: 90px;
    height: 2px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
}

.section-header.text-start::before,
.section-header.text-start::after {
    left: 0;
    transform: translateX(0);
}

/* Adjust section header for smaller screens */
@media (max-width: 767.98px) {
    .section-header h1 {
        font-size: 2rem; /* Smaller heading */
    }
    .section-header p {
        font-size: 0.9rem; /* Smaller paragraph */
    }
}


/*** About ***/
.about-img img {
    position: relative;
    z-index: 2;
}

.about-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background-image: -webkit-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -moz-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -ms-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -o-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-size: 20px 20px;
    transform: skew(20deg);
    z-index: 1;
}

/* Adjust about image pseudo-element for smaller screens */
@media (max-width: 991.98px) {
    .about-img::before {
        left: -25%; /* Adjust position to be less skewed */
        transform: skew(10deg); /* Reduce skew effect */
    }
}

@media (max-width: 767.98px) {
    .about-img {
        padding: 2rem 0 !important; /* Reduce padding on small screens */
        padding-right: 0 !important;
    }
    .about-img::before {
        display: none; /* Hide complex background on very small screens for simplicity */
    }
}


/*** Product ***/
.nav-pills .nav-item .btn {
    color: var(--dark);
}

.nav-pills .nav-item .btn:hover,
.nav-pills .nav-item .btn.active {
    color: #FFFFFF;
}

.product-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.product-item img {
    transition: .5s;
}

.product-item:hover img {
    transform: scale(1.1);
}

.product-item small a:hover {
    color: var(--primary) !important;
}

/* Adjust product filter buttons for smaller screens */
@media (max-width: 767.98px) {
    .nav-pills {
        flex-wrap: wrap; /* Allow buttons to wrap */
        justify-content: center !important; /* Center buttons */
    }
    .nav-pills .nav-item {
        margin-bottom: 10px !important; /* Add space between wrapped buttons */
    }
    .nav-pills .nav-item .btn {
        padding: 8px 15px; /* Smaller button padding */
        font-size: 0.9rem;
    }
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-item.center .testimonial-item i {
    color: var(--secondary) !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--primary);
}

/* Adjust testimonial items for smaller screens */
@media (max-width: 767.98px) {
    .testimonial-carousel .owl-item .testimonial-item {
        padding: 30px !important; /* Reduce padding */
    }
    .testimonial-carousel .owl-item .testimonial-item p {
        font-size: 0.9rem; /* Smaller text */
    }
}


/*** Footer ***/
.footer {
    color: #999999;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #999999;
    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: #999999;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/* Adjust footer for smaller screens */
@media (max-width: 767.98px) {
    .footer .col-lg-3,
    .footer .col-md-6 {
        margin-bottom: 2rem; /* Add spacing between stacked columns */
    }
    .footer .col-lg-3:last-child,
    .footer .col-md-6:last-child {
        margin-bottom: 0; /* No bottom margin for the last column */
    }
    .footer .copyright {
        font-size: 0.8rem; /* Smaller copyright text */
        text-align: center !important; /* Center copyright text */
    }
    .footer .copyright .row > div {
        text-align: center !important; /* Ensure both copyright columns are centered */
    }
}

.switch{position:relative;display:inline-block;width:60px;height:34px;margin:0 0 1rem 1rem;}
.switch input{opacity:0;width:0;height:0;}
.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#ccc;transition:.4s;}
.slider:before{content:"";position:absolute;height:26px;width:26px;left:4px;bottom:4px;background:#fff;transition:.4s;}
input:checked+.slider{background:#2196F3;}
input:checked+.slider:before{transform:translateX(26px);}
.slider.round{border-radius:34px;}
.slider.round:before{border-radius:50%;}
.lang-ne{display:none;}

/* Clean Category Navigation Styling */
.nav-pills {
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-pills .nav-item {
    margin-bottom: 0.5rem;
}

.nav-pills .nav-link {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.nav-pills .nav-link:hover {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-pills .nav-link.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-pills {
        justify-content: center;
        gap: 0.3rem;
    }
    
    .nav-pills .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.9rem;
    }
}

@media (max-width: 576px) {
    .nav-pills .nav-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }
}

.logo {
  height: 50px;        
  width: auto;
  vertical-align: middle;
  margin-right: 12px;   
}
