/********** Template CSS **********/
:root {
    --primary: #2b388e;
    --secondary: #437bb3;
    --light: #F7F8FC;
    --dark: #111111;
}

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

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

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

.shadow{
    box-shadow: 0 0 45px rgba(0, 0, 0, .1);
}

.shadow-1{
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.radius{
    border-radius: 20%;
}

.radius-10{
    border-radius: 10%;
}

.radius-5{
    border-radius: 5%;
}

.smallRadius{
    border-radius: 20px;
}

.border{
    border: 1px solid black;
}

.sub-word{
    color: #9c9b9b;
}

/*** 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-primary:hover{
    -ms-transform: scale(1.1);
    -webkit-transform: scale(1.1); 
    transform: scale(1.1); 
}

.btn.btn-primary,
.btn.btn-secondary,
.btn.btn-outline-primary:hover,
.btn.btn-outline-secondary:hover {
    color: #FFFFFF;
    background: radial-gradient(circle, rgba(43,58,145,1) 0%, rgba(60,85,204,1) 65%, rgba(74,102,222,1) 81%, rgba(112,137,233,1) 100%);
}

.bg-blueGradient{
    background: linear-gradient(0deg, rgba(194,220,250,1) 0%, rgba(95,148,225,1) 27%, rgba(51,72,157,1) 88%, rgba(42,57,144,1) 100%);
}

.bg-blueContainer{
    background: linear-gradient(142deg, rgba(42,57,144,1) 0%, rgba(51,72,157,1) 35%, rgba(95,148,225,1) 100%);
}

.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;
    border-color: aliceblue;
}


/*** 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: bold;
    outline: none;
}

.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .navbar-nav .nav-link:hover {
    color: #5d8dbe;
}

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

    .category-product{
        display: block !important;
    }
}

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


.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  padding: 0;
  color: #fff;
  text-align: center;
  background: none;
  border: 0;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

@media (max-width: 991px) {
    .navbar-nav a, .navbar-nav .active{
        border-bottom: #FFFFFF !important;
    }
}

.nav-indicator-container {
    position: absolute;
    bottom: 0;
    left: 56%;
    transform: translateX(-50%);
}

.nav-indicators {
    list-style: none;
    padding: 0;
    display: flex;
}

.nav-indicators li {
    width: 150px;
    height: 4px;
    background-color: #437bb3;
    margin: 0 5px;
    cursor: pointer;
}

.nav-indicators li.active {
    background-color: #2b388e;
}


.carousel-controls ol.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%,0%);
    margin: 0;
    padding: 0;
    list-style: none;
}

.carousel-controls ol.carousel-indicators li {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 5px;
    cursor: pointer;
    background-color: #437bb3;
    border-radius: 50%;
}

.carousel-controls ol.carousel-indicators li.active {
    background-color: #2b388e;
}

.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: fit-content;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
    border-radius: 3rem;
}

.image-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hidden {
    display: none !important;
}

.line_box {
    display: flex;
    margin-bottom: 40px;
}

.text_circle {
    flex: 1;
    text-align: center;
    position: relative;
}
.text_circle:after {
    background-color: grey;
    bottom: 1.25em;
    content: "";
    display: block;
    height: 3px;
    position: absolute;
    right: 0;
    width: 50%;
    z-index: -1;
}
.stav_projektu .text_circle:after,.stav_projektu .text_circle:before {background-color: grey;}
.line_box h4 {
    color: white;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 0;
    padding: 0 5px;
}
.line_box p {
    color: lightgrey;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 0;
    padding: 0 5px;
}
.text_circle.done:after,.text_circle.done + .text_circle:before,.stav_projektu .text_circle.done:after,.stav_projektu .text_circle.done + .text_circle:before {background-color: white; z-index: 5;}
.text_circle.sub:after {background-color: #189599;}
.text_circle:not(:first-child):before {
    bottom: 1.25em;
    content: "";
    display: block;
    height: 3px;
    position: absolute;
    left: 0;
    width: 50%;
    z-index: -1;
    background-color: grey;
}
.stav_projektu .text_circle:not(:first-child):before {background-color: grey;}
.text_circle:last-child:after {width: 0;}
.circle {height: 100%;}
.tvar {
    height: 40px;
    width: 40px;
    border: 2px solid #189599;
    display: flex;
    position: relative;
    border-radius: 100%;
    top: -43px;
    margin: 3px auto;
    background-color: #fff;
}
.tvar span {
    margin: 25% auto;
    height: 20px;
    width: 20px;
    background-color: #77a5e7;
    border-radius: 100%;
    color: #fff;
}
.stav_projektu .tvar {border: 2px solid grey;}
.stav_projektu .done .tvar,.stav_projektu .sub .tvar {border: 2px solid #2b3b91; z-index: 6;}

@media (max-width: 2560px) {
    .padding{
        padding-left: 0px !important; 
        padding-right: 0px !important;
    }
}

@media (max-width: 1440px) {
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 3rem !important;
        height: 3rem !important;
    }

    .padding{
        padding-left: 150px !important; 
        padding-right: 150px !important;
    }

    .line::after {
        width: 40% !important;
    }

    .carousel-controls ol.carousel-indicators li {
        width: 15px;
        height: 15px;
    }

    .carousel-controls ol.carousel-indicators {
        transform: translate(-50%,30%);
    }
}

@media (max-width: 1200px) {
    .category-product{
        padding: 50px;
    }

    .padding-text{
        padding: 0px 50px 0px 0px !important;
    }

    .padding-product{
        padding: 50px 50px 0px 0px !important;
    }

    .one-line{
        font-size: 16px !important;
    }
}

@media (max-width: 1024px) {
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem !important;
        height: 2rem !important;
        border: 10px solid var(--primary);
    }

    .padding{
        padding-left: 100px !important; 
        padding-right: 100px !important;
    }

    .line::after {
        width: 50% !important;
    }

    .carousel-controls ol.carousel-indicators li {
        width: 12px;
        height: 12px;
    }

    .carousel-controls ol.carousel-indicators {
        transform: translate(-50%,40%);
    }
}

@media (max-width: 990px) {
    .line::after {
        width: 60% !important;
    }

    .padding-product {
        padding: 0px 50px 50px 50px !important;
    }

    .padding-text{
        padding: 20px 20px 0px 20px !important;
    }
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 210px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.5rem !important;
        height: 1.5rem !important;
        border: 5px solid var(--primary) !important;
    }

    .carousel-controls ol.carousel-indicators li {
        width: 10px;
        height: 10px;
    }

    .image{
        height: 300px !important;
    }
}

@media (max-width: 767px){
    .margin-5{
        margin-bottom: 0px !important;
    }
}

@media (max-width: 660px) {
    #header-carousel .carousel-item {
        min-height: 180px !important;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1rem !important;
        height: 1rem !important;
        border: 4px solid var(--primary) !important;
    }
    
    .padding{
        padding-left: 50px !important; 
        padding-right: 50px !important;
    }
}

@media (max-width: 576px) {
    #header-carousel .carousel-item {
        min-height: 150px !important;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 0.7rem !important;
        height: 0.7rem !important;
        border: 3px solid var(--primary) !important;
    }
}

@media (max-width: 481px) {
    #header-carousel .carousel-item {
        min-height: 130px !important;
    }

    .carousel-controls ol.carousel-indicators li {
        width: 7px;
        height: 7px;
    }
    
    .line::after {
        width: 70% !important;
    }
    
    .padding{
        padding-left: 10px !important; 
        padding-right: 10px !important;
    }

    .carousel-controls ol.carousel-indicators li {
        width: 8px;
        height: 8px;
    }

    .image{
        height: 270px !important;
    }
}

@media (max-width: 437px) {
    .customerImage{
        width: 180px !important;
    }
}
@media (max-width: 425px) {
    #header-carousel .carousel-item {
        min-height: 120px !important;
    }
    
    .image{
        height: 250px !important;
    }

    .padding-container{
        padding-top: 0px !important;
    }
    .padding-product {
        padding: 0px 50px 50px 0px !important;
    }

    .padding-text{
        padding: 0px 0px 0px 0px !important;
    }

    .customerImage{
        width: 140px !important;
    }

    .image-container {
        margin-left: 20px;
    }
}

@media (max-width: 375px) {
    #header-carousel .carousel-item {
        min-height: 100px !important;
    }

    .image{
        height: 230px !important;
    }

    .customerImage{
        width: 120px !important;
    }
}

@media (max-width: 327px) {
    .one-line{
        font-size: 15px !important;
    }
}

@media (max-width: 320px) {
    .counter-digit{
        font-size: 4rem !important;
    }

    .category-link{
        font-size: 15px !important;
    }

    .customerImage{
        width: 100px !important;
    }
    
    .line_box h4 {
        font-size: 13px !important;
    }

    .line_box p {
        font-size: 12px !important;
    }
}

@media (max-width: 282px) {
    .image{
        height: 190px !important;
    }

    .history-container{
        height: 480px !important;
    }

    .category-link{
        font-size: 14px !important;
    }
    
    .line_box h4 {
        font-size: 12px !important;
    }
}

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

.navbar-nav a {
    position: relative;
    text-decoration: none;
    padding-bottom: 8px; /* Adjust the padding as needed */
    margin-right: 10px; /* Add space to the right of each link */
    color: #437bb3; 
    border-bottom: 2px solid #437bb3; 
}

.navbar-nav .active {
    color: black; /* Set a different text color for the "Home" link */
    border-bottom: 2px solid #2b388e; /* Set the border color for the "Home" link */
}


/*** About ***/
.history-container{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    height: 410px;
}

.underBorder {
    position: relative;
}

.underBorder:after {
    content: '';
    position: absolute;
    top: 200%;
    left: 0;
    right: 0;
    border-top: 1px solid #437bb3; /* Adjust the color as needed */
}
  
.about-img img {
    position: relative;
    z-index: 2;
}

.about-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background-size: 20px 20px;
    transform: skew(20deg);
    z-index: 1;
}

.counter {
    position: relative;
    text-decoration: none;
    color: #437bb3;
}

.counter::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 110%;
    height: 0.5px;
    background-color: #437bb3;
    margin-bottom: 20px;
}

.aboutText{
    padding-left: 150px; 
    padding-right: 150px;
}

.page-header {
    position: relative;
    padding-top: 12rem;
    overflow: hidden; /* Ensure child elements don't extend beyond the container */
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url(../img/Samlin_BannerBG-01-1.jpg) top right no-repeat;
    background-size: 100% 288px;
    filter: sepia(100%) hue-rotate(190deg) saturate(650%) brightness(30%);
    z-index: -1;
}

.page-header .container {
    position: relative;
    top: -120px;
    z-index: 1;
}

.page-header span {
    color: #ffffff; 
}

.about{
    width: 70%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin: auto;
}

.tal{
    text-align: left; 
}

.fss{
    font-size: small;
}

.fsm{
    font-size: medium;
}

.fsl{
    font-size: x-large;
}

.text-black{
    color: black;
}

.image2-container {
    display: flex;
    flex-wrap: wrap;
    margin: 50px 100px 100px 100px;
}

.image2-container img {
    width: 50%;
    box-sizing: border-box;
    padding: 20px;
}

#counter-container {
    text-align: center;
}

.counter-digit {
    display: inline-block; 
    font-size: 5em;
    font-weight: bold;
    background: linear-gradient(to bottom, #3498db, #fff); 
    -webkit-background-clip: text;
    color: transparent; 
    transition: background 0.3s ease-in-out;
}

.zoom {
    transition: transform .9s;
    width: 200px;
    margin: 0 auto;
}
  
.zoom:hover {
    -ms-transform: scale(1.1); /* IE 9 */
    -webkit-transform: scale(1.1); /* Safari 3-8 */
    transform: scale(1.1); 
}

@media (max-width: 767px) {
    .image2-container img {
        width: 100%; /* One photo per row on smaller screens */
    }

    .image2-container {
        display: flex;
        flex-wrap: wrap;
        margin: 20px 10px 20px 10px !important;
    }
}


@media (max-width: 768px) {
    .about{
        width: 100% !important; 
    }

    .aboutText{
        padding-left: 10px !important; 
        padding-right: 10px !important;
    }
}

/*** 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);
    padding-bottom: 10px;
}

.product-item img {
    transition: .5s;
}

.product-item:hover{
    transform: translateY(-8px);
    transition: box-shadow .5s;
    box-shadow: 0 0 12px rgba(147,149,152,.5);
}

.product-item:hover img {
    transform: scale(1.1);
}

.product-item small a:hover {
    color: var(--primary) !important;
}

.turn-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #fff;
    opacity: 0.8;
    z-index: 2;
    display: none;
}

.product-item:hover .turn-icon {
    display: inline-block;
}

.overlay {
    border-radius: 50%;
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    width: 7rem;
    height: 7rem;
    background-color: rgb(43,56,142);
    opacity: 0;
    transition: opacity 0.3s ease;
}


.product-item:hover .overlay {
    opacity: 0.5;
    cursor: pointer;
}

/*** Category ***/
.underline {
    position: relative;
    text-decoration: none;
    color: black;
}

.underline::after {
    content: "";
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 0;
    width: 100%;
    height: 0.5px;
    background-color: #aaaeb3;
}

.undersline {
    position: relative;
    text-decoration: none;
    color: black;
}

.undersline::after {
    content: "";
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 0;
    width: 90%;
    height: 0.5px;
    background-color: #aaaeb3;
}

.undersline:hover::after {
    background-color: #668fdb !important;
}

.padding-product{
    padding: 100px;
}

.padding-container{
    padding-top: 50px;
    padding-bottom: 50px;
}

.category-product {
    box-shadow: 0 0 45px rgba(0, 0, 0, .1);
    padding-right: 0px;
    visibility: visible;
    animation-delay: 0.1s;
    animation-name: fadeInUp;
    display: flex;
}

.category-link {
    color: grey;
}

.category-link.active,
.category-link.clicked {
    color: #111111;
}

.category{
    padding: 50px;
    margin-left: 100px;
    float: left;
}

.margin-5{
    margin:3rem;
}

/*** Detail ***/
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
 }
 
 #large-image-container {
    position: relative;
    max-width: 80%;
    max-height: 80%;
 }
 
 #large-image {
    width: 100%;
    height: auto;
 }
 
 #close-button {
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
 }

/*** Customer ***/
.line {
    position: relative;
    text-decoration: none;
    color: black;
}

.line::after {
    content: "";
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 0;
    width: 20%;
    height: 0.5px;
    background-color: #437bb3;
}

.gallery-image {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.dots-container {
    text-align: center;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: #333;
}

/*** Contact ***/
.padding-p{
    font-size: large; 
    color: black; 
    padding: 50px 50px 0px 50px;
}

.padding-form{
    padding: 0px 50px 0px 50px;
}

.padding-btn{
    padding: 0px 50px 50px 50px;
}

@media (max-width:575px){
    .padding-p{
        padding: 50px 50px 0px 0px;
    }
    .padding-form{
        padding: 0px;
    }
}

@media (max-width:336px){
    .padding-btn{
        padding: 0px 0px 50px 0px;
    }
}

/*** Footer ***/
.footer {
    color: #999999;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    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);
}