/* portal.css - supplement styles for index template (based on moban)
 * Override / extend moban/static/css/app.css
 */

/* ---- topbar ---- */
.tl-topbar {
    background: #2d3e50;
    color: #ccc;
    font-size: 13px;
    padding: 8px 0;
}
.tl-topbar .tl-topbar-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tl-topbar .tl-topbar-info li {
    display: flex;
    align-items: center;
    color: #fff;
}
.tl-topbar .tl-topbar-info li .icon {
    margin-right: 5px;
    color: #aab;
}
.tl-topbar .tl-topbar-info a {
    color: #fff;
    text-decoration: none;
}
.tl-topbar .tl-topbar-info a:hover { color: #fff; }
.tl-topbar .topbar-user a { color: #ddd; text-decoration: none; }
.tl-topbar .topbar-user a:hover { color: #fff; }

/* ---- navbar ---- */
.tl-menu {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
    position: relative;
    z-index: 999;
}
.tl-menu.menu-sticky {
    position: sticky;
    top: 0;
}
.tl-logo { max-height: 50px; width: auto; }
.tl-menu .navbar-nav .nav-item > a,
.tl-menu .navbar-nav > li > a {
    color: #333;
    font-size: 18px;
    font-weight: 500;
    padding: 18px 14px;
    transition: color .2s;
}
.tl-menu .navbar-nav > li > a:hover,
.tl-menu .navbar-nav > li.active > a { color: #e74c3c; }

/* search box */
.tl-search-wrap { position: relative; }
.tl-search-btn {
    background: none;
    border: none;
    color: #555;
    font-size: 16px;
    cursor: pointer;
    padding: 6px 10px;
}
.tl-search-box {
    position: absolute;
    right: 0;
    top: 40px;
    width: 280px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-radius: 4px;
    padding: 10px;
    z-index: 1000;
}
.tl-search-box .form-control { border-radius: 4px 0 0 4px; }
.tl-search-box .btn { border-radius: 0 4px 4px 0; }

/* ---- category cards ---- */
.tl-category-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 16px;
    transition: box-shadow .2s, border-color .2s;
    overflow: hidden;
}
.tl-category-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    border-color: #e74c3c;
}
.tl-category-card .category-link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: #333;
}
.tl-category-card .category-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #e74c3c;
    margin-right: 12px;
    flex-shrink: 0;
}
.tl-category-card .category-name { flex: 1; font-size: 18px; font-weight: 500; }
.tl-category-card .category-arrow { color: #bbb; font-size: 14px; }
.tl-category-card:hover .category-name { color: #e74c3c; }

/* ---- cat block ---- */
.tl-cat-block {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
    min-height: 200px;
}
.tl-cat-block .tl-cat-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #e74c3c;
    margin: -16px -16px 12px;
    padding: 10px 16px;
    border-radius: 6px 6px 0 0;
}
.tl-cat-block .tl-cat-header h3 a { color: #fff; text-decoration: none; }
.tl-cat-list { list-style: none; margin: 0; padding: 0; }
.tl-cat-list li { border-bottom: 1px solid #f5f5f5; }
.tl-cat-list li:last-child { border-bottom: none; }
.tl-cat-block .read-more { color: #e74c3c; font-size: 13px; text-decoration: none; }
.tl-cat-block .read-more:hover { text-decoration: underline; }

/* ---- contact list ---- */
.tl-contact-list { list-style: none; margin: 0; padding: 0; }
.tl-contact-list li { display: flex; align-items: flex-start; margin-bottom: 8px; color: #fff; font-size: 13px; }
.tl-contact-list li .fa { margin-right: 8px; margin-top: 2px; color: #e74c3c; }
.tl-contact-list a { color: #fff; text-decoration: none; }
.tl-contact-list a:hover { color: #fff; }

/* ---- banner search form ---- */
.banner-search-form .form-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.banner-search-form .search-content {
    display: flex;
    flex: 1;
    min-width: 200px;
}
.banner-search-form .search-content .form-control {
    border-radius: 4px 0 0 4px;
    height: 44px;
    font-size: 14px;
}
.banner-search-form .search-content button {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 0 16px;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    cursor: pointer;
}

/* ---- scroll top ---- */
.tl-scroll-top a {
    display: block;
    width: 42px;
    height: 42px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background .2s;
}
.tl-scroll-top a:hover { background: #c0392b; }

/* ---- responsive ---- */
@media (max-width: 768px) {
    .tl-topbar .tl-topbar-info { display: none; }
    .tl-search-box { width: 240px; }
    .tl-category-card .category-link { padding: 10px 12px; }
}
