/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/

/* Fonts */
@font-face {
    font-family: 'f-ar-bold';
    src: url(../vendor/fonts/ar/DINNextLTW23-Medium.woff2);
}

@font-face {
    font-family: 'f-ar-regular';
    src: url(../vendor/fonts/ar/DINNextLTW23-Regular.woff2);
}

@font-face {
    font-family: 'f-ar-Light';
    src: url(../vendor/fonts/ar/DINNextLTW23-Light.woff2);
}


@font-face {
    font-family: 'reqular-font';
    src: url("../vendor/fonts/DM-Sans-regular.woff2");
}

:root {
    --font-ar-bold: 'f-ar-bold';
    --font-ar-regular: "f-ar-regular";
    --font-ar-light: "f-ar-Light";
    --p-color: #0a8b15;
    --reqular-font: 'reqular-font';
    --font-color: #212529;
    /* --p-bg-color: #198754; */
    --p-bg-color: #0a8b15;
}

body {
    font-family: var(--reqular-font), arial, serif !important;
    direction: ltr;
    background-color: #f8f9fa;
    position: relative;
    min-height: 100vh !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--reqular-font), serif;
}
.section-ar h1,
.section-ar h2,
.section-ar h3,
.section-ar h4,
.section-ar h5,
.section-ar h6 {
    font-family: var(--font-ar-bold), serif;
}
.section-ar p,
.section-ar span,
.section-ar a,
.section-ar label,
.section-ar .btn-profile {
    font-family: var(--font-ar-regular), serif;
}
.bg-main{
    background-color: var(--p-bg-color);
}



.navbar {
    background-color: var(--p-color);
    padding: 10px;
}

.navbar-toggler {
    color: white;
    border: var(--bs-border-width) solid white
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand img {
    height: 105px;
}

.navbar-nav .nav-link {
    font-size: 18px;
    color: white !important;
}

.navbar-nav .nav-link.active {
    font-weight: bold;
}

#navbarNav {
    position: relative;
}

#navbarNav::before {
    border-radius: 10px;
    content: "";
    position: absolute;
    height: 7px;
    width: 100%;
    background-color: white;
    bottom: -23px;
    left: 0;
}

.search-bar {
    background-color: #eeeeee;
    padding: 10px;
    border-radius: 30px;
    text-align: left;
    margin-top: 25px;
    font-size: 16px;
    color: #aaa;
}

.directory-title {
    font-size: 23px;
    font-weight: bold;
    margin-top: 20px;
    margin-left: 30px;
    text-align: left;
}

.profile-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
    transition: 0.3s;

}

.profile-card:hover .certifications img {
    transform: scale(1.05);
}

.profile-card:hover {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    background-color: #eeeeee;
}

.profile-card::before {
    border-radius: 0 10px 10px 0;
    content: "";
    position: absolute;
    height: 100%;
    width: 22px;
    background-color: var(--p-color);;
    bottom: 0;
    left: 0;
}

.profile-info {
    width: 40%;
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

.profile-info .name {
    font-weight: bold;
    font-size: 18px;
}

.profile-info .location {
    color: #777;
    font-size: 14px;
}

.certifications {
    width: 35%;
    display: flex;
    align-items: center;
    gap: 5px;
}

.certifications img {
    width: 75px;
    height: 75px;
    transition: transform 0.5s ease-in-out;
    object-fit: contain;
    /* Smooth transition */
}

/* Badge to indicate more certifications */
.more-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ccc;
    /* Adjust color as needed */
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    margin-left: 5px;
    font-size: 0.8rem;


    background-color: #006400;
    /* Example dark green */
    border-radius: 15px;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: bold;
}


.badge {
    font-size: 13px;
    padding: 5px 8px;
    border-radius: 15px;
}


.btn-profile {
    background-color: var(--p-color);;
    color: white;
    font-weight: bold;
    border-radius: 10px;
    padding: 6px 20px;
}

.btn-profile:hover {
    color: #fff;
    background-color: #157347 !important;
}

.footer {
    background-color: var(--p-color);;
    padding: 7px 0;
    text-align: center;
    font-size: 14px;
    color: #333;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}
#trainees-container{
    /*margin-bottom: 100px !Important;*/
    padding-bottom: 100px;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-logo {
    width: 80px; /* Adjust as needed */
    height: auto;
}

.company-name {
    font-weight: bold;
}

.developer {
    margin-bottom: 0.5rem;
}

.developer a {
    color: #fefeff; /* Bootstrap primary color */
    text-decoration: none;
    font-weight: bold;
}

.developer a:hover {
    text-decoration: underline;
}


@media (max-width: 768px) {

    .profile-info {
        width: 100%;
        margin-left: auto;
    }

    .profile-card {
        padding: 15px;
        padding-left: 35px
    }

    .certifications img {
        width: 50px;
        height: 50px;
    }

    .certifications {
        width: 75%;
        margin-top: 0.5rem;
        gap: 3px;
    }

    .btn-profile {
        padding: 4px 10px;
        font-size: 13px;
        margin-top: 0.5rem;

    }

    .company-info {
        display: flex;
        flex-direction: column;

    }


    /*--------------------------------------------------------------
    # Details Trainee style
    --------------------------------------------------------------*/
    .profile-header {
        background-color: var(--p-bg-color);
        padding: 2rem;
        border-radius: 15px;
        margin-bottom: 0;
        color: #fff;
    }

    .avatar {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        object-fit: cover;
    }

    .certificate-card {

        border: 2px solid #e9ecef;
        border-radius: 0 0 10px 10px;
        padding: 40px 20px 20px 20px;
        margin-bottom: 1.3rem;
        margin-top: 3.5rem;
        position: relative;
        background-color: #fff;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);

    }

    .certificate-card::before {
        border-radius: 0 0 10px 10px;
        content: "";
        position: absolute;
        height: 26px;
        width: 100%;
        background-color: var(--p-bg-color);;
        top: 0;
        left: 0;
    }

    .certificate-card .lead {
        width: 80%;
        text-wrap: wrap;
    }

    .certificate-details h3 {
        color: var(--p-bg-color);
        font-weight: bold;
    }

    .cert-logo {
        position: absolute;
        top: 18%;
        right: 15px;
        width: 110px;
    }

    .course-outline {
        list-style: none;
        padding-left: 0;
    }

    .course-outline li {
        padding: 15px;
        margin-bottom: 10px;
        background-color: #f8f9fa;
        border-radius: 8px;
        display: flex;
        align-items: center;
    }

    .course-outline li i {
        margin-right: 15px;
        color: var(--p-bg-color);
    }

    .course-outline span {
        color: var(--font-color);
    }

    .btn-custom {
        margin: 5px;
        min-width: 120px;
        color: var(--p-bg-color) !important;
        background-color: #fff !important;
        border-color: var(--p-bg-color) !important;

    }

    /* Add these animation styles */
    .skills-section {
        margin-top: 1rem;
        padding: 0;
        background-color: #f8f9fa;
        border-radius: 15px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
    }

    .skills-section h4 {
        font-weight: bold;
        color: var(--p-bg-color);
    }

    .course-description h5 {
        color: var(--p-bg-color);
        font-weight: bold;
    }

    .skills-section.show-skills {
        max-height: 1000px;
        /* Adjust based on content height */
        opacity: 1;
        padding: 1.5rem;
    }

    .certificate-card hr {
        margin: 0.5rem 0;
    }

    .skill-item {
        padding: 10px;
        margin: 5px 0;
        background-color: white;
        border-radius: 8px;
        display: flex;
        align-items: center;
        transform: translateX(-20px);
        opacity: 0;
        transition: all 0.3s ease-out;
    }

    .show-skills .skill-item {
        transform: translateX(0);
        opacity: 1;
    }

    .skill-item {
        color: var(--p-bg-color);
        transition: all 0.3s ease-out;
        opacity: 0;
        transform: translateX(-20px);
    }

    .skill-item i {
        margin-right: 5px;
    }

    .skill-item.visible {
        opacity: 1;
        transform: translateX(0);
    }

    @media (max-width: 768px) {
        .certificate-card .lead {
            font-weight: 600;
            width: 75%;
            font-size: 15px;
        }

        .cert-logo {
            position: absolute;
            top: 50px;
            right: 10px;
            width: 85px;
        }

    }


}
