@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;700&display=swap');

body {
    font-family: 'Comfortaa', sans-serif;
    margin: 0;
    padding: 0;
    
    /* Thay đổi nền thành ảnh */
    background-image: url('https://abcsnoob.github.io/assets/image/background.webp');
    background-size: cover;          /* Ảnh bao phủ toàn bộ màn hình */
    background-position: center;     /* Căn giữa ảnh */
    background-attachment: fixed;    /* Cố định nền khi cuộn trang */
    background-repeat: no-repeat;    /* Không lặp lại ảnh */
    
    color: #333;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;      /* IE 10+ */
    user-select: none;          /* Standard */
}

/* Các phần còn lại giữ nguyên */
.logo {
    height: 40px;
    margin-right: 10px;
    vertical-align: auto;
}

.post-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    color: #444;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn:focus, .form-control:focus {
    box-shadow: none !important;
}

.card {
    transition: transform 0.2s ease;
    background-color: rgba(255, 255, 255, 0.9); /* Gợi ý: Thêm độ trong suốt cho card để thấy nền đẹp hơn */
}

.card:hover {
    transform: translateY(-2px);
}

.post-main-wrapper {
    min-height: 100px;
    position: relative;
    overflow: hidden;
}

.post-main-wrapper.is-truncated {
    height: 100px !important; 
}

.post-main-wrapper.is-expanded {
    max-height: none !important;
    height: auto !important;
}

.read-more-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 1) 90%
    );
    z-index: 5;
}

.post-content-body img, .post-content-body iframe {
    max-width: 100%;
    border-radius: 8px;
}
