﻿.topc-container {
    background: #FFF;
}

.topc-wrapper {
    border-left: 1px solid #602acb44;
    border-right: 1px solid #602acb44;
    border-bottom: 1px solid #602acb44;
    overflow: hidden;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.topc-heading {
    margin-top: 2em;
    padding: 0 20px;
    background: linear-gradient(103.05deg, rgb(74 86 255 / 40%) -7.56%, rgb(194 137 255 / 40%) 106.5%), linear-gradient(0deg, rgb(139 63 205), rgb(116 70 157));
    height: 45px;
    align-content: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}


.topc-wrapper > .ui.grid {
    padding: 1em;
    margin: 0;
}

.topc-wrapper .topc-item {
    width: 100%;
    border-radius: 10px;
    /*background: rgb(249, 254, 251);*/
    border: 0.5px solid rgba(183, 151, 248, 0.3);
    padding: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

    .topc-wrapper .topc-item:hover {
        border: 1px solid #602ACB;
        /*background: #7158E217;*/
        /*box-shadow: rgba(149, 157, 165, 0.2) 0px 5px 10px;*/
        box-shadow: 0 1px 7px #b797f8;
    }

        .topc-wrapper .topc-item:hover .main-info .company-name {
            color: #602ACB;
        }

.topc-item .logo {
    width: 6em;
    height: 6em;
    object-fit: contain;
    float: left;
    /*outline: 1px solid #C5C5C5;*/
    border-radius: 5px;
    background: #FFF;
    margin-right: 1em;
    /*padding: 10px;*/
}

.topc-item .main-info {
    height: 6em;
    align-content: center;
}

    .topc-item .main-info .company-name {
        font-size: 16px;
        color: #000000;
        font-weight: bold;
        margin-bottom: 5px;
    }

.main-body {
    background-color: #FFFFFF;
}

.company-card {
    border-radius: 10px;
    /*    border: 1px solid #FFFFFF;*/
    outline: 1px solid #ABAAABC4;
    box-shadow: #C5C4C4 1px 1px;
    padding-bottom: 20px;
    width: 100%;
    height: 100%;
}

    .company-card:hover {
        outline: 1px solid #863ACC;
    }

.truncate-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.5em;
    max-height: 4.5em;
    text-overflow: ellipsis;

    white-space: normal; 
    word-break: break-word;
}

.truncate-text-20 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 20;
    -webkit-box-orient: vertical;
    line-height: 1.5em;
    max-height: 30em;
    text-overflow: ellipsis;
}

.truncate-text-1 {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.truncate-text-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5em;
    max-height: 6em;
    text-overflow: ellipsis;
    position: relative;
    cursor: pointer;
}

.padding-body {
    padding: 0px 5px 0px 5px;
}

.img-banner {
    height: 100px;
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.img-logo-container {
    margin: 0px;
    width: 72px;
    height: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #73737387;
    border-radius: 4px;
    background-color: #ffffff;
}

.img-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-container {
    position: relative;
    width: 65%;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 10px;
    background-color: #ffffff;
    border-radius: 15px;
    border: 1px solid #CACED8;
    font-size: 14px;
    outline: none;
    height: 50px;
}

    .search-input::placeholder {
        font-style: italic;
    }

.search-button {
    position: absolute;
    right: 10px;
    top: 30%;
    transform: translateY(-50%);
    color: #ffffff;
    background-color: #7158E2;
    border: 1px solid #7158E2;
    border-radius: 5px;
    height: 30px;
    margin: 10px;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    font-weight: 300;
}

.a-border-square {
    width: 15px;
    height: 15px;
    border: 1px solid #7158E2;
}

    .a-border-square i {
        color: #7158E2;
        margin-left: 3px;
    }

.a-border-rectangle {
    width: 20px;
    height: 15px;
    border: 1px solid #7158E2;
    background-color: #7158E2;
    text-align: center;
    border-radius: 3px;
}

    .a-border-rectangle i {
        color: #ffffff;
        margin-left: 3px;
    }

#container-search-header {
    width: 100%;
    height: 100%;
    margin-top: 10%;
    margin-left: 10%;
}

    #container-search-header .title {
        font-size: 32px;
        font-weight: 500;
    }

.grid-logo-title-container {
    display: grid;
    grid-template-columns: 0.9fr 4fr;
    gap: 5px;
    width: 100%;
}

.grid-detail-container {
    display: grid;
    grid-template-columns: 1fr 9fr;
    gap: 5px;
    width: 100%;
    padding-left: 15px;
    padding-top: 5px;
}

@media (min-width: 993px) {
    #introduction-icon {
        font-size: 22px;
        color: #7158E2;
        padding-left: 3px;
    }

    #header-container {
        width: 70%;
    }
}

@media (max-width: 993px) and (min-width:767px) {
    #header-container {
        width: 70%;
    }

    #introduction-icon {
        font-size: 20px;
        color: #7158E2;
        padding-left: -2px;
    }
}

@media only screen and (max-width: 767px) {
    .topc-slides .ui.grid {
        margin-top: 0 !important;
    }

    #container-search-header .title {
        font-size: 18px;
        font-weight: 500;
    }

    .search-container {
        width: 90%;
    }

    #pc_image {
        display: none;
    }

    #theme-main-banner {
        width: 100%;
/*        margin-left: -20px;*/
        height: 150px;
    }

    #container-search-header {
        width: 90%;
        height: 90%;
        margin-top: 5%;
        margin-left: 5%;
    }

    #header-container {
        width: 100%;
    }

    #introduction-icon {
        font-size: 22px;
        color: #7158E2;
        padding-left: 3px;
    }

    .topc-wrapper {
        border: none;
    }

    .topc-heading {
        background: none;
        padding: 0;
        color: #333333;
    }

    .topc-wrapper > .ui.grid {
        padding: 0em;
        margin: 0;
    }

    .topc-wrapper .ui.stackable.grid > .column:not(.row) {
        padding: 1em 0em 0em 0em !important;
    }

        .topc-wrapper .ui.stackable.grid > .column:not(.row):last-child {
            padding: 1em 0 1em 0 !important;
        }

    .ui.grid > * {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .ui.grid > .column:not(.row) {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .ui.stackable.grid > .column:not(.row) {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    background-color: #ffffff;
    color: #333333;
    padding: 5px;
    border: 1px solid #333333;
    border-radius: 5px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -160px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
