
html, body {
    text-rendering: optimizeSpeed;
}
body {
   color: #222;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: scroll;
}
/* HEADER */

header{
background:#fff;
color:rgba(0,0,0,.8);
padding:5px 20px;
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
position:sticky;
top:0;
z-index:1000;
}

.logo{
font-size:20px;
font-weight:bold;
}

.logo a{vertical-align: middle;
text-decoration:none;
}




/* HERO */

.hero{
background:linear-gradient(135deg,#2563eb,#7c3aed);
color:white;
padding:80px 20px;
text-align:center;
}

.hero h1{
font-size:42px;
margin-bottom:10px;
font-weight:700;
}

.hero p{
opacity:.9;
max-width:600px;
margin:auto;
}

.hero-btn{
display:inline-block;
margin-top:20px;
padding:12px 22px;
background:white;
color:#2563eb;
font-weight:600;
border-radius:8px;
text-decoration:none;
transition:.25s;
}

.hero-btn:hover{
transform:translateY(-2px);
box-shadow:0 10px 25px rgba(0,0,0,.2);
}

/* CONTAINER */

.container{
max-width:1280px;
margin:0 auto;
padding:0 15px;
}

.section-title{
text-align:center;
margin-bottom:30px;
font-size:24px;padding-top:20px;
}

/* STATS */

.stats{
display:flex;
justify-content:center;
gap:30px;
padding:50px 20px;
background:#f7f8fa;
flex-wrap:wrap;
}
#network{
background:#f7f8fa;}
.stat{
background:#fff;
padding:30px 40px;
border-radius:12px;
min-width:180px;
border:1px solid #eef0f4;
box-shadow:0 5px 15px rgba(0,0,0,0.06);
transition:0.3s;
}

.stat:hover,.article-item:hover{
transform:translateY(-5px);
box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.stat h2{
font-size:38px;
margin:0;
color:#2563eb;
font-weight:700;
}

.stat p{
margin-top:8px;
font-size:14px;
color:#666;
}

/* GRID */

.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
}

/* CARD */

.card{
background:white;
padding:25px;
border-radius:12px;
border:1px solid #eef0f4;
box-shadow:0 10px 25px rgba(0,0,0,0.08);
transition:.25s;
position:relative;
overflow:hidden;
}

.card:before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:3px;
background:linear-gradient(90deg,#2563eb,#7c3aed);
opacity:.7;
}

.card:hover{
transform:translateY(-6px);
box-shadow:0 20px 40px rgba(0,0,0,0.12);
}

.card h3{
font-size:18px;
margin-bottom:10px;
word-break:break-all;
}

.card p{
font-size:14px;
color:#666;
}

.card a{
display:inline-block;
margin-top:12px;
padding:8px 14px;
background:#2563eb;
color:white;
border-radius:6px;
text-decoration:none;
font-size:13px;
transition:.2s;
}

.card a:hover{
background:#1d4ed8;
}

/* TABLE */

.table{
width:100%;
border-collapse:collapse;
background:white;
box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.table th{
background:#111827;
color:white;
padding:10px;
text-align:left;
}

.table td{
padding:10px;
border-bottom:1px solid #eee;
}



/* SCROLLBAR */

::-webkit-scrollbar{
width:8px;
}

::-webkit-scrollbar-track{
background:#f1f1f1;
}

::-webkit-scrollbar-thumb{
background:#2563eb;
border-radius:10px;
}

/* TABLET */

@media(max-width:900px){

.hero h1{
font-size:32px;
}

.grid{
grid-template-columns:repeat(2,1fr);
}

}

/* MOBILE */

@media(max-width:700px){


.hero{
padding:50px 15px;
}

.hero h1{
font-size:24px;
}



.grid{
grid-template-columns:1fr;
gap:15px;
}

.card{
padding:18px;
}

}


/* Mobile */
@media (max-width:768px){



}
.main{
display:flex;
gap:30px;
}

.content{
flex:3;
}

.sidebar{
flex:1;
}
/* Bỏ viền khi focus */
input:focus,
textarea:focus,
select:focus,
button:focus {
   outline: none;           /* bỏ viền mặc định */
    border: 1px solid #2fa2f5;  /* border trắng khi focus */
    box-shadow: none;        /* bỏ shadow nếu có */
}

/* Giữ màu nền và chữ */
input,
textarea,
select {
    color: #333;         /* màu chữ */
    background-color: #fff; /* màu nền */
}
.mt20 {
    margin-top: 20px;
}
.mb20{padding-bottom:20px}

/* ô tìm kiếm */

form input[type="text"].timkiem{
flex:1;
padding:8px 16px;
font-size:16px;
border:1px solid #cbd5e1;
border-radius:8px;
outline:none;
transition:all .25s;
background:#fff;
}

/* khi focus */

form input[type="text"].timkiem:focus{
border-color:#2563eb;
box-shadow:0 0 0 3px rgba(37,99,235,0.15);
}

/* nút tìm */

form button.timkiem{
border:none;
border-radius:8px;
background:#2563eb;
color:#fff;
font-size:15px;
font-weight:600;
cursor:pointer;
transition:all .25s;
}

/* hover */

form button.timkiem:hover{
background:#1d4ed8;
transform:translateY(-1px);
}

/* mobile */


@media(min-width:768px){
  
}
header{box-shadow: 1px 1px 1px 0px rgb(0 0 0 / 20%);}

@media only screen and (max-width: 768px) {
  
}
/* user menu */

.user-menu{
position:relative;
}

.user-trigger{
display:flex;
align-items:center;
gap:8px;
cursor:pointer;
}



.arrow{
font-size:12px;
}

/* dropdown */

.dropdown{
display:none;
position:absolute;
right:0;
top:40px;
background:#edebeb;
border-radius:8px;
min-width:180px;
box-shadow:0 10px 30px rgba(0,0,0,0.4);
overflow:hidden;
z-index:999;
}

.dropdown.show{
display:block;z-index:999;
}

.dropdown a{
display:block;
padding:10px 15px;
color:#333;
text-decoration:none;
}

.dropdown a:hover{
background:#dbd7d7;
}

.dropdown hr{
border:none;
border-top:1px solid #333;
margin:5px 0;
}


.network-links{border-radius:10px;height:600px;overflow-x: hidden;
overflow-y: scroll;
max-width:400px;padding:15px 8px;
margin:auto;
}

.network-links h3{
text-align:center;
margin-bottom:15px;
}

.network-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:10px;
}

.network-grid a{
display:block;
padding:10px;
text-align:center;
text-decoration:none;

border-radius:8px;
color:#333;
font-size:14px;
transition:0.2s;
}

.network-grid a:hover{
background:#ebf2fc}

.gb_B{
display:inline-flex;
align-items:center;
justify-content:center;
width:40px;
height:40px;
cursor:pointer;
}

.gb_F{
width:24px;
height:24px;
fill:#5f6368;
}

/* menu */

.apps-menu{border:8px solid #d4e3fa;border-radius:10px;
display:none;
position:absolute;
right:20px;
top:55px;
background:#fff;
width:auto;
box-shadow:0 4px 15px rgba(0,0,0,0.15);

overflow:hidden;
}

.apps-menu a{text-align: left;
display:block;
padding:8px 15px;
text-decoration:none;
color:#333;
}


.user-trigger{
    position: relative;
    display: inline-block;
}

/* Tooltip ẩn mặc định */
.tooltip{
    position: absolute;
    top: 45px;
    right: 0;
    background: #222;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.2s ease;
    z-index: 999;
}

/* Hover thì hiện */
.user-trigger:hover .tooltip{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.avatar{width:38px;height:38px;border-radius:20px}
.profile-avatar .avatar{width:168px;height:168px;border-radius:100px}
.profile-avatar{position:relative}
.G5bXNb{position:absolute;bottom:30px;right:30px}
.post-list{
margin-top:25px;
}

.post-item{
padding:10px 0;
border-bottom:1px solid #eee;
}

.post-item a{
text-decoration:none;
color:#222;
font-weight:500;
}

.post-item a:hover{
color:#3b82f6;
}
/*latest-posts*/
.latest-posts {
    margin-top: 20px;
}

.latest-posts h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.latest-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.latest-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    transition: 0.2s;
}

.latest-item:hover {
    transform: translateX(3px);
}

.latest-thumb {
    width: 90px;
    height: 65px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
}

.latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-text h4 {font-weight: bold;
    font-size: 14px;
    color: #111;
    margin: 0 0 4px;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-text p {
    font-size: 12px;
    color: #666;
    margin: 0 0 4px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-text span {
    font-size: 11px;
    color: #999;
}
/* related*/
.related {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.related-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.2s;
    border: 1px solid #eee;
}

.related-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.related-thumb {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-text {
    padding: 8px 10px 8px 0;
}

.related-text h4 {
    font-size: 15px;
    color: #111;
    margin: 0 0 5px;
    line-height: 1.4;
}

.related-text p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}
/* Tablet */
@media (max-width: 1024px) {
    .related {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .related {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .related-item {
        gap: 10px;
    }

    .related-thumb {
        width: 100px;
        height: 70px;
    }

    .related-text h4 {
        font-size: 14px;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .related-text p {
        font-size: 12px;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
/* Tags */
.post-tags {
    margin-top: 20px;
}

.tag-item {
    display: inline-block;
    background: #f2f2f2;
    padding: 5px 10px;
    margin: 4px 4px 0 0;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    color: #333;
}

.tag-item:hover {
    background: #ff3b3b;
    color: #fff;
}
body.dropdown-open .tooltip {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.icon-angle-down {
    display: inline-block; /* hoặc inline-flex */
    width: 20px;
    height: 20px;
    background: url(https://www.matbao.net/images/menu-v2/move-down.svg) center / 20px no-repeat;
    cursor: pointer;vertical-align: middle;
}




