/* style.css - Giao diện User Tối ưu */
:root {
    --brand-primary: #00529C; 
    --brand-secondary: #007CC2; 
    --bg-body: #f0f2f5; 
    --text-main: #333; 
    --card-hover-shadow: 0 8px 20px rgba(0, 82, 156, 0.15);
}

body { font-family: 'Roboto', sans-serif; background-color: var(--bg-body); color: var(--text-main); font-size: 15px; }

/* --- NAVBAR --- */
.navbar-kizuna { background-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08); padding: 10px 0; border-top: 4px solid var(--brand-primary); z-index: 1000; }
.brand-container { display: flex; align-items: center; text-decoration: none; }
.brand-img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #ddd; margin-left: 12px; padding-left: 12px; }
.brand-title { font-weight: 800; font-size: 1.1rem; color: var(--brand-primary); line-height: 1; }
.brand-subtitle { font-size: 0.75rem; color: #888; letter-spacing: 1px; text-transform: uppercase; }
.header-search-wrapper { max-width: 500px; }
.header-search-wrapper .form-control:focus { box-shadow: none; border-color: #ced4da; background: #fff; }
.header-search-wrapper .input-group-text { background: #f8f9fa; }

/* --- HIGHLIGHT SECTION (SIÊU GỌN - COMPACT) --- */
.notice-section {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #002a55 100%);
    padding: 15px 0 20px 0; /* Padding nhỏ gọn */
    margin-bottom: 20px;
    color: white;
    border-radius: 0; /* Vuông góc */
    box-shadow: 0 5px 10px rgba(0, 82, 156, 0.15);
}

/* Tin Chính (Main Pin) */
.notice-main-card {
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(10px);
    
    border-radius: 10px;
    padding: 15px 20px; /* Padding nhỏ */
    height: 100%;
    cursor: pointer; /* Con trỏ tay */
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}
.notice-main-card:hover { 
    background: rgba(255, 255, 255, 0.2); 
    transform: translateY(-2px); 
}
.notice-main-card .notice-title { 
    color: #fff; 
    font-size: 1.2rem; /* Font vừa phải */
    font-weight: 800;
    margin-top: 8px;
    margin-bottom: 5px;
    line-height: 1.3;
}
/* Trong style.css */

.notice-main-card .notice-content { 
    color: rgba(255, 255, 255, 0.95); 
    font-size: 0.95rem;
    line-height: 1.5;
    
    /* QUAN TRỌNG: Giữ định dạng xuống dòng (Enter) */
    white-space: pre-wrap; 
    
    /* Giới hạn hiển thị (Khoảng 6 dòng ~ tương đương 200 ký tự) */
    display: -webkit-box;
    -webkit-line-clamp: 6; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    margin-bottom: 0;
    font-family: 'Roboto', sans-serif;
}
.notice-main-card .notice-tag {
    background: #fff;
    color: var(--brand-primary);
    font-weight: 800;
    padding: 2px 8px; 
    border-radius: 4px;
    font-size: 0.65rem;
    text-transform: uppercase;
    display: inline-block;
}

/* Tin Liệt Kê (List Pin) */
.notice-list-wrapper {
    background: #fff;
    border-radius: 10px;
    padding: 12px 15px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
    display: flex;
    flex-direction: column;
}
.notice-list-header { 
    font-size: 0.85rem; font-weight: 800; color: #666; text-transform: uppercase; margin-bottom: 8px; border-bottom: 1px solid #f0f0f0; padding-bottom: 5px; 
}
.notice-list-header i { color: #f39c12; margin-right: 6px; }
.notice-list-item { 
    display: flex; align-items: center; gap: 10px; 
    padding: 8px 0; border-bottom: 1px dashed #eee; 
    cursor: pointer; transition: transform 0.2s;
}
.notice-list-item:hover { transform: translateX(3px); }
.notice-list-item:last-child { border-bottom: none; }
.notice-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
.notice-list-content h6 { font-size: 0.85rem; font-weight: 700; margin: 0; color: #333; line-height: 1.3; }

/* --- APP CARDS --- */
.category-header { font-size: 1.1rem; font-weight: 700; color: var(--brand-primary); text-transform: uppercase; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #e0e0e0; display: flex; align-items: center; margin-top: 10px; }
.category-header i { margin-right: 10px; opacity: 0.8; }
.app-list-item { background: white; border: none; box-shadow: 0 2px 5px rgba(0,0,0,0.03); border-radius: 10px; padding: 15px; display: flex; align-items: center; gap: 15px; text-decoration: none; color: inherit; transition: all 0.2s ease; margin-bottom: 12px; }
.app-list-item:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,82,156,0.15); background-color: #fff; }
.app-icon-mini { width: 55px; height: 55px; flex-shrink: 0; background: #fff; border: 1px solid #f0f0f0; border-radius: 10px; padding: 4px; display: flex; align-items: center; justify-content: center; }
.app-icon-mini img { width: 100%; height: 100%; object-fit: contain; }
.app-info { flex-grow: 1; min-width: 0; }
.app-name { font-weight: 700; font-size: 1rem; color: #222; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-list-item:hover .app-name { color: var(--brand-primary); }
.app-desc { font-size: 0.85rem; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- MODAL CONTENT --- */
.notice-full-content { font-size: 1rem; line-height: 1.6; color: #333; white-space: pre-wrap; font-family: 'Roboto', sans-serif; }

/* --- FOOTER (DARK ADMIN STYLE) --- */
footer { background-color: #333; color: #aaa; padding: 25px 0; margin-top: auto; font-size: 0.9rem; text-align: center; }
footer a { color: #fff; text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--brand-primary); text-decoration: underline; }