﻿
.sections {
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 10px 0;
    scroll-margin-top: 84px;
    overflow: clip;
}

.site {
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

ul {
    list-style: none;
}

.tabbed {
    background-color: #fbfbfb;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
}

    .tabbed nav ul {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background-color: #f67a51;
        padding: 0px;
    }

    .tabbed nav li {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .tabbed nav label {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        color: #aaa;
        height: 75px;
        font-weight: 400;
        position: relative;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }

    .tabbed input {
        display: none;
    }

    .tabbed nav label img {
        width: 23px;
    }


    /*   .tabbed nav li label:hover {
        color: #f67a51;
    }*/

    .tabbed nav li:not(:first-child) {
        border-top: 1px solid #ebebeb;
    }

.content {
    padding: 15px;
}


    .content > div {
        display: none;
        animation: text-fade .5s;
    }

@keyframes text-fade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

input#order:checked ~ .content .order,
input#circular:checked ~ .content .circular,
input#form:checked ~ .content .form,
input#event:checked ~ .content .event,
input#Tenders:checked ~ .content .Tenders,
input#Vacancy:checked ~ .content .Vacancy {
    display: block;
}

input#order:checked ~ nav li.order,
input#circular:checked ~ nav li.circular,
input#form:checked ~ nav li.form,
input#event:checked ~ nav li.event,
input#Tenders:checked ~ nav li.Tenders,
input#Vacancy:checked ~ nav li.Vacancy {
    background-color: white;
}

.tabbed nav li label span {
    color: white; /* Default color */
}

/* Apply style only to the label span of the checked input */
input#order:checked ~ nav ul li.order label span,
input#circular:checked ~ nav ul li.circular label span,
input#form:checked ~ nav ul li.form label span,
input#event:checked ~ nav ul li.event label span,
input#Tenders:checked ~ nav ul li.Tenders label span,
input#Vacancy:checked ~ nav ul li.Vacancy label span {
    color: #505050; /* Active color */
}


.tabbed nav li::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 35px;
    border-radius: 40px;
    background-color: #f89d80;
    left: -80px;
    top: 10px;
    transition: all .3s ease-out;
    -webkit-transition: all .3s ease-out;
}

input#order:checked ~ nav li.order::before,
input#circular:checked ~ nav li.circular::before,
input#form:checked ~ nav li.form::before,
input#event:checked ~ nav li.event::before,
input#Tenders:checked ~ nav li.Tenders::before,
input#Vacancy:checked ~ nav li.Vacancy::before {
    left: -20px;
}

input#order:checked ~ nav li.order i,
input#circular:checked ~ nav li.circular i,
input#form:checked ~ nav li.form i,
input#event:checked ~ nav li.event i,
input#Tenders:checked ~ nav li.Tenders i,
input#Vacancy:checked ~ nav li.Vacancy i {
    transition: all .3s ease-out;
    -webkit-transition: all .3s ease-out;
}

@media screen and (min-width:768px) {
    .tabbed {
        flex-direction: column;
        border:#ebebeb;
    }

        .tabbed nav ul {
            flex-direction: row;
        }

        .tabbed nav li::before {
            width: 40px;
            height: 80px;
            left: 50% !important;
            top: -85px;
            margin-left: -20px;
        }



    input#order:checked ~ nav li.order::before,
    input#circular:checked ~ nav li.circular::before,
    input#form:checked ~ nav li.form::before,
    input#event:checked ~ nav li.event::before,
    input#Tenders:checked ~ nav li.Tenders::before,
    input#Vacancy:checked ~ nav li.Vacancy::before {
        left: auto;
        top: -40px;
    }

    .tabbed nav li:not(:first-child) {
        border: none;
    }
}

@media (max-width: 767.98px) {
    .tabbed nav label {
        padding: 10px;
    }

        .tabbed nav label img {
            margin-top: 5px;
        }

        .tabbed nav label span {
            margin-top: 10px;
        }
}

.mores-btn {
    display: inline-block;
    background: #f67a51;
    padding: 8px 40px 10px 40px;
    color: var(--contrast-color);
    transition: all ease-in-out 0.4s;
    border-radius: 50px;
}

    .mores-btn:hover {
        color: white;
        background: #f67a51;
    }

.cardes {
    background-color: var(--surface-color);
    display: inline-block;
    position: relative;
    width: 100%;
    height: 460px;
    margin-bottom: 30px;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.title_tag {
    background-color: #f67a51;
    text-align: center;
    padding: 23px;
    color: white;
    font-size: 20px;
    font-weight: 300;
}

.cardes-body {
    padding: 15px;
}

.modal {
    padding-top: 100px !important;
}

.card {
    max-width: 540px;
    border-radius: 0px !important;
}

.img-fluid {
    width: 143px;
    border-radius: 0px !important;
    padding-top: 10px;
}
