﻿
.navbar-brand {
    color: #11064f;
}

.custom-home {
    padding: 120px 50px;
}

.tests-library-left {
    padding-top: 20px;
    align-content: center;
    align-items: center;
    text-align: center;
}

.search-widget {
    display: flex;
    flex-direction: column;
}

    .search-widget input {
        width: 500px;
        padding: 10px 15px;
        border-radius: 10px;
        border: 1px solid #ccc;
    }
.search-input {
    position: relative;
    display: inline-block;
}

.search-box {
    width: 500px;
    padding: 10px 15px;
    padding-right: 45px; /* Space for icon */
    border-radius: 10px;
    border: 1px solid #ccc;
}

.search-icon-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
}
.search-input button:hover {
    color: #ff6e40;
}



.tenant-title {
    color: orangered;
    text-align: center;
}

.filters-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.filter-test {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 0px;
    background-color: #ffffff;
    border-radius: 15px;
}

    .filter-test a.btn-outline-primary {
        font-weight: 600;
        font-size: 16px;
        border-radius: 50px;
        border: 1px solid #ff6e40;
        color: #ff6e40;
        background-color: transparent;
        padding: 10px 24px;
        transition: all 0.25s ease-in-out;
    }

        .filter-test a.btn-outline-primary:hover {
            background-color: #ff6e40;
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 110, 64, 0.3);
        }
#all-skills {
    color: #11064f;
    border: 1px solid #11064f;
}
    #all-skills:hover {
        background-color: #ff6e40;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 110, 64, 0.3);
        border: 1px solid #ff6e40;
    }

.test-display-section {
    border-radius: 10px;
    background-color: white;
    display: flex;
}

.test-display {
    height: fit-content;
    background-color: #f8f9fa; /* Background color for the container */
    border-radius: 20px; /* Rounded corners */
    overflow: hidden; /* Ensure content stays within the border */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effect */
    border: 1px solid #d6e4da;
    display: inline-block;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 20px; /* Space between articles */
    width: 270px;
    height: 74px;
    display: flex;
}

.test-display-info {
    font-weight: 400;
    line-height: 30px;
    padding-top: 15px;
}

    .test-display-info p {
    }

.test-display a {
    text-decoration: none; /* Remove underline from links */
    color: #ff6e40;
    width: 100%; /* Make the link cover the entire item */
    display: block;
    text-align: left;
}

.test-display h6 {
    margin: 0;
    font-size: 14px; /* Adjust font size */
    color: #214252;
    font-weight: 700;
}

.test-display:hover {
    transform: scale(1.05); /* Slightly increase size on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Increase shadow on hover */
}

/* Style for dropdown menu container */


#dropdownMenu {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    padding: 8px 0;
    font-family: "Segoe UI", sans-serif;
}

/* Divider style */
.dropdown-divider {
    height: 1px;
    margin: 8px 0;
    overflow: hidden;
    background-color: #e5e5e5;
}

/* Style for each dropdown item */
.dropdown-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

    /* Icons inside dropdown items */
    .dropdown-item i {
        font-size: 16px;
        margin-right: 10px;
    }

    /* Hover effect */
    .dropdown-item:hover {
        background-color: #f0f0f0;
    }

/* Badge styling */
.badge {
    font-size: 10px;
    display: inline-block;
    padding: 4px 6px;
    border-radius: 12px;
    color: #fff;
    background-color: #dc3545;
    margin-left: auto;
}
/* Remove arrow from dropdown toggle */
.dropdown-toggle::after {
    display: none !important;
    content: none !important;
}

/* Initially hide the dropdown */
.navbar-nav .dropdown-menu {
    display: none; /* Hide dropdown by default */
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1050;
    opacity: 1;
    pointer-events: auto;
    max-width: 155px;
    margin-top: 10px;
    margin-bottom: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.nav-item.dropdown {
    position: relative;
}

.navbar .dropdown-toggle::after {
    content: none !important;
    display: none !important;
}

/* Remove the triangle above the dropdown */
.navbar .dropdown-menu::before {
    display: none !important;
}

/* Keep the dropdown menu's appearance */
.navbar .dropdown-menu {
    background: var(--white-color);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
    border: 0;
    display: inherit;
    opacity: 0;
    min-width: 9rem;
    margin-top: 20px;
    padding: 13px 0 10px 0;
    transition: all 0.3s;
    pointer-events: none;
}

/* Adjust dropdown items */
.navbar .dropdown-item {
    display: inline-block;
    color: var(--p-bg-color);
    font-family: var(--title-font-family);
    font-size: var(--menu-font-size);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

    .navbar .dropdown-item.active,
    .navbar .dropdown-item:active,
    .navbar .dropdown-item:focus,
    .navbar .dropdown-item:hover {
        background: transparent;
        color: var(--primary-color);
    }

@media screen and (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        opacity: 1;
        margin-top: 0;
        pointer-events: auto;
    }
}
@media (max-width: 576px) {
    .filter-test {
        display: none;
    }

    .filter-test-mobile {
        display: block;
    }
        .filter-test-mobile option {
            color: orangered;
        }

    #skill-select {
        width: 250px;
        padding: 10px;
        border-radius: 10px;
        border: 1px solid #999;
        color: #214252;
        font-weight: 700;
    }
    .search-widget{
        width: 100%;
    }
    .book-img-col {
        display: none;
    }

    .test-display {
        max-width: 100%; /* Full width for smaller screens */
    }
}
@media (min-width: 300px) and (max-width: 1200px) {
    .search-widget input {
        width: 250px;
        padding: 10px 15px;
        border-radius: 10px;
        border: 1px solid #ccc;
    }
    .dropdown-menu{
        display: block;
    }
}
/* Small devices (phones, 576px and up) */
@media (min-width: 570px) and (max-width: 767px) {
    .test-display {
        max-width: 80%; /* Full width for small devices */
    }

}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .test-display {
        max-width: 80%; /* Full width for small devices */
    }

    .filter-test {
        justify-content: center;
        gap: 15px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 990px) and (max-width: 1199px) {
    .test-display {
        max-width: 80%; /* Full width for small devices */
    }

    .filter-test {
        justify-content: flex-start;
        gap: 20px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .test-display {
        max-width: 100%; /* Full width for extra large screens */
    }
}
@media (max-width: 767px) {
    .navbar-nav {
        flex-direction: column;
    }

}
/* Mặc định: ẩn */
.mobile-device {
    display: none !important;
}

/* Hiện trên thiết bị có chiều rộng ≤ 768px (mobile) */
@media (max-width: 768px) {
    .mobile-device {
        display: block !important;
    }
}
