.stgp-author-card {
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
    text-align: left;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.stgp-author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}
.stgp-author-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0;
    background-color: #fff;
    flex-shrink: 0;
}
.stgp-author-card .name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.stgp-author-card .intro {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stgp-authors-grid .sbm-loading-spinner {
    grid-column: 1 / -1;
}

/* Print layout for Author page */
.sbm-author-print-layout {
    display: none; /* Mặc định ẩn trên màn hình */
    font-family: 'Times New Roman', serif;
    color: #000;
    background: #fff;
}
.sbm-author-print-layout h1, .sbm-author-print-layout h2, .sbm-author-print-layout h3 {
    font-family: 'Georgia', serif;
    color: #000;
    text-shadow: none;
}
/* === [CẬP NHẬT CUỐI CÙNG] GIAO DIỆN IN 2 CỘT HOÀN CHỈNH === */
@media print {
    @page { size: A4; margin: 1.5cm; }
    body.is-printing .sbm-author-print-layout { 
        display: block !important; 
        border: 1px solid #000; 
        padding: 1.2cm; 
        box-sizing: border-box; 
    }
    body > *:not(.sbm-author-print-layout) { display: none !important; }

    .sbm-author-print-layout { font-family: 'Times New Roman', serif; color: #000; background: #fff; }
    .sbm-author-print-layout h2, .sbm-author-print-layout h3 { font-family: 'Georgia', serif; }

    .print-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ccc; padding-bottom: 10px; margin-bottom: 15px; }
    .print-header-info img { max-height: 40px; }
	
	.print-footer {
		text-align: center;
		font-size: 9pt;
		color: #777;
		margin-top: 20px;
		padding-top: 10px;
		border-top: 1px solid #eee; /* Màu nhạt hơn (#eee) */
	}

    /* [FIX 2] Sử dụng flexbox để các cột tự co giãn theo không gian còn lại */
    .print-main { 
		display: flex; 
		gap: 20px; 
		min-height: 0;
	}
    .print-col-left { width: 35%; display: flex; flex-direction: column; }
    .print-col-right { 
		width: 65%; 
		display: flex; 
		flex-direction: column; 
	}
    
    /* -- Cột trái -- */
    .print-author-id { text-align: center; }
    .print-author-id .author-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px auto; display: block; }
    .print-author-id h2 { font-size: 16pt; margin: 0; }
    .print-author-id .pen-name { font-size: 10pt; color: #555; }

    .print-author-details { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; font-size: 9.5pt; text-align: left; }
    .print-author-details p { margin: 8px 0; display: flex; align-items: flex-start; gap: 8px; }
    .print-author-details svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
    .print-author-details a { text-decoration: none; color: inherit; }
    .print-author-details .social-icons { display: flex; gap: 8px; }
    .print-author-details .social-icons svg { width: 18px; height: 18px; }

    #print-qrcode-wrapper { margin-top: 20px; text-align: center; }
    #print-qrcode img { margin: 0 auto; }
    #print-qrcode-caption { font-size: 8pt; color: #777; margin-top: 5px; }
    
    .print-col-left-footer { margin-top: auto; padding-top: 15px; text-align: center; }
    .print-col-left-footer img { max-height: 100px; max-width: 100px; } /* Kích thước bằng mã QR */

    .print-section { 
        border: 1px solid #eee; 
        border-radius: 8px; 
        padding: 12px 15px; 
        margin-bottom: 10px; 
        page-break-inside: avoid;
        display: flex; /* Cho phép co giãn nội dung bên trong */
        flex-direction: column;
    }
    .print-section:last-child { margin-bottom: 0; }
    .print-col-right .print-section {
        flex: 1; /* Quan trọng: Giúp 3 khối chia đều không gian */
        min-height: 0; /* Cần thiết để flexbox hoạt động đúng */
        display: flex;
        flex-direction: column;
    }
    .print-section h3 { font-size: 13pt; margin-top: 0; margin-bottom: 8px; flex-shrink: 0; }
    
    .print-section .collapsible-content {
		position: relative;
		flex-grow: 1;
		overflow: hidden; /* Chỉ ẩn phần nội dung bên trong */
	}

	.print-section .collapsible-content .stgp-prose {
		/* Thêm một lớp bọc để giới hạn chiều cao thực sự */
		max-height: 15em; /* Giới hạn khoảng 10 hàng */
		overflow: hidden;
	}
    .print-section .collapsible-content::after {
		content: '(Quét mã để xem thêm)';
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		height: 30px;
		padding-top: 15px;
		text-align: center;
		font-style: italic;
		font-size: 8pt;
		color: #888;
		background: linear-gradient(to bottom, transparent, white 70%);
	}
    
    .stgp-prose { line-height: 1.45; font-size: 10pt; white-space: pre-wrap; }
    .works-list ul {
		padding-left: 1.2em;
		margin: 0;
		list-style-type: circle;
		column-count: 2; /* Thêm dòng này để chia 2 cột */
		column-gap: 20px; /* Thêm khoảng cách giữa 2 cột cho dễ đọc */
	}
	/* Chia cột trái thành 2 phần: thân và chân */
	.print-col-left {
		display: flex;
		flex-direction: column;
		justify-content: space-between; /* Đẩy footer xuống dưới cùng */
	}

	.print-col-left-footer {
		margin-top: auto; /* Giữ cho nó luôn ở dưới cùng */
		padding-top: 15px;

		/* [SỬA LỖI] Dùng Flexbox để đảm bảo căn giữa tuyệt đối */
		display: flex;
		justify-content: center;
	}
	.print-col-left-footer img {
		max-height: 100px; /* Kích thước logo */
		max-width: 100px;
	}
}