html {
    overflow-x: hidden;
}

:root {
    --main-color: #154c79;
    --light-color: #E4EDFC;
    --bright-color: #4882cf;
}

::-webkit-scrollbar {
    display: block;
    width: 0.5vw;
}

::-webkit-scrollbar-thumb {
    background-color: #7775;
    border-radius: 0.25rem;
}

::-webkit-scrollbar-track {
    background-color: #5555;
}

.modal-xl {
    max-width: 98% !important;
}

.modal {
    overflow-y: auto;
}

.dv_steps {
    min-height: 400px;
}

/* Tender List Section */

/* General */
.tdr-section {
    margin-top: 5rem;
}

.bg-color {
    background-color: var(--light-color) !important;
}

.content-spacing {
    margin-bottom: 2rem;
}

.small-fs {
    font-size: .75rem;
}

.fw-500 {
    font-weight: 500;
}

/* Card */
.tdr-card {
    position: relative;
}

.arrow {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.tdr-card .card-body {
    transition: transform 0.3s ease;
}

/* Card Content */
.tdr-comp-name {
    color: var(--main-color);
}

.client-name {
    font-size: 0.75rem;
}

.detailed-info {
    font-size: 0.75rem;
}

.tdr-comp-name,
.tdr-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
}

.tdr-comp-name {
    font-weight: 500;
    font-size: 1rem;
}

/* Owl-carousel navigation button */
.owl-carousel {
    position: relative;
    z-index: 5 !important;
}

.owl-prev, 
.owl-next {
    position: absolute;
    width: 50px;
     height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background:#f8f9fa !important;
    color: #6c757d !important;
    border-radius: 10px;
    box-shadow: 0 2px 7px 0 hsla(0,0%,74%,.5);
    transition: 0.2s all ease-in-out;
}

.owl-prev span,
.owl-next span {
    position: absolute;
    top: 45%;
    font-size: 50px;
    transform: translate(-50%, -50%);
}

.owl-prev span {
    left: 47%;
}

.owl-next span {
    left: 53%;
}

.owl-prev:hover,
.owl-next:hover {
    background: rgba(0,0,0,0.1) !important;
    color: white !important;
}

.owl-prev {
    left: -60px;
}

.owl-next {
    right: -60px;
}

/* Awarded Company Section */

/* General */
.awd-section {
    margin: 3.5rem auto 5rem;
}

/* Bootstrap carousel */
.carousel-indicators-outer {
    position: relative;
}

.carousel-indicators {
    position: absolute !important;
    top: 235px !important; 
}

.carousel-item .card-body {
    height: 220px !important;
}

.awd-img {
    position: relative;
}

/* Background colors */
.grey-bg {
    background-color: #3E4756 !important;
}

.dark-bg {
    background-color: #212529 !important;
}

.blue-bg {
    background-color: #00192f !important;
}

.grey-bg .bg-overlay {
    background: linear-gradient(0deg, rgba(62,71,86,1) 8%, rgba(62,71,86,0.65) 50%, rgba(62,71,86,0.5) 85%);
}

.dark-bg .bg-overlay {
    background: linear-gradient(0deg, rgba(33,37,41,1) 8%, rgba(33,37,41,0.65) 50%, rgba(33,37,41,0.5) 85%);
}

.blue-bg .bg-overlay {
    background: linear-gradient(0deg, rgba(0,25,47,1) 8%, rgba(0,25,47,0.65) 50%, rgba(0,25,47,0.5) 85%);
}

/* Overlays */
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    color: white;
    z-index: 2;
    text-align: center;
}

/* Responsiveness */
@media (min-width: 500px) {
    @media (pointer: fine) {
        .tdr-card:hover .tdr-comp-name {
            color: var(--bright-color);
        }

        .tdr-card:hover {
            cursor: pointer;
        }
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px)  {
    .card-header {
        height: 60px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991.98px)  {
    .dv_steps {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .tdr-comp-name {
        -webkit-line-clamp: 2;
    }

    .carousel-inner .carousel-item .row {
        flex-direction: column-reverse;
    }

    .carousel-indicators {
        top: 485px !important; 
    }

    .carousel-inner .carousel-item .awd-img {
        height: 250px;
    }

    .bg-overlay,
    .awd-img img {
        border-radius: 0.25rem 0.25rem 0 0 !important;
    }

}

@media (min-width: 768px) {
    .awd-img,
    .carousel-item .card {
        height: 220px !important;
    }

    .awd-img img {
        min-height: 220px;
    }
    
    .bg-overlay,
    .awd-img img {
        border-radius: 0 0.25rem 0.25rem 0;
    }
    
    .grey-bg .bg-overlay {
        background: linear-gradient(90deg, rgba(62,71,86,1) 8%, rgba(62,71,86,0.5) 86%);
    }

    .dark-bg .bg-overlay {
        background: linear-gradient(90deg, rgba(33,37,41,1) 8%, rgba(33,37,41,0.5) 86%);
    }

    .blue-bg .bg-overlay {
        background: linear-gradient(90deg, rgba(0,25,47,1) 8%, rgba(0,25,47,0.5) 86%);
    }
}

@media (min-width:576px) {
    .modal-lg{
        max-width: 80% !important;
    }
}