@charset "utf-8";

/* 기본 레이아웃 */
#sam_wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px; font-family: 'Noto Sans KR', sans-serif !important; color: #333; }
#sam_wrap * { box-sizing: border-box !important; }

/* 헤더 */
.sam-hero-header { text-align: center; padding: 60px 0 40px; }
.sam-hero-header .sub-tit { font-size: 14px; color: #5055b1; font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; display: block; }
.sam-hero-header .main-tit { font-size: 42px; font-weight: 800; color: #111; margin: 0; }
.sam-hero-header .header-line { width: 40px; height: 3px; background: #5055b1; margin: 20px auto; }

/* 리스트 그리드 */
.sam-premium-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 25px; }
.sam-card-item { position: relative; transition: 0.3s; background: #fff; }
.sam-card-item:hover { transform: translateY(-10px); }

/* E-book 뱃지 */
.ebook-badge {
    position: absolute; top: 12px; left: 12px; z-index: 5;
    background: rgba(80, 85, 177, 0.9); color: #fff !important;
    font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: 0.3s;
}
.sam-card-item:hover .ebook-badge { background: #111; }

/* 이미지 및 정보 */
.thumb-container { position: relative; width: 100%; padding-bottom: 145%; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 1px solid #eee; }
.thumb-container img { position: absolute; top:0; left:0; width: 100%; height: 100%; object-fit: cover; }
.subject { font-size: 17px; font-weight: 700; color: #111; margin: 15px 0 5px; height: 48px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.author { font-size: 14px; color: #777; margin-bottom: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 관리 버튼 */
.card-admin-btns { position: absolute; top: 10px; right: 10px; z-index: 10; display: flex; gap: 5px; opacity: 0; transition: 0.3s; }
.sam-card-item:hover .card-admin-btns { opacity: 1; }
.btn-card-opt { font-size: 11px; padding: 4px 8px; background: rgba(0,0,0,0.7); color: #fff !important; border-radius: 4px; text-decoration: none; }

/* 공통 버튼 및 입력창 */
.btn-sam-primary { display: block; width: 100%; height: 55px; line-height: 55px; background: #5055b1; color: #fff !important; border-radius: 8px; font-weight: 700; text-align: center; text-decoration: none; font-size: 17px; }
.sam-input-full { width: 100% !important; height: 45px !important; border: 1px solid #ddd !important; border-radius: 6px !important; padding: 0 15px !important; margin-bottom: 10px !important; }