/* หน้างานศึกษาทั่วไป (pages/gened.php) — hero อยู่ใน page-hero.css */

/* Gradient Cards */
.quick-link-gradient {
    border-radius: 16px; padding: 25px 20px;
    transition: all 0.4s ease;
    position: relative; overflow: hidden; cursor: pointer;
}
.quick-link-gradient::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0; transition: opacity 0.3s;
}
.quick-link-gradient:hover::before { opacity: 1; }
.quick-link-gradient:hover { transform: translateY(-8px); }

.ql-blue { background: linear-gradient(135deg, #003366 0%, #0066cc 100%); }
.ql-green { background: linear-gradient(135deg, #047857 0%, #10b981 100%); }
.ql-purple { background: linear-gradient(135deg, #5b21b6 0%, #8b5cf6 100%); }
.ql-orange { background: linear-gradient(135deg, #c2410c 0%, #f97316 100%); }
.ql-gold { background: linear-gradient(135deg, #b45309 0%, #d99a22 60%, #f3c15a 100%); }

/* Ebook Card */
.ebook-hero-card {
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d203c 0%, #173f6a 50%, #0d203c 100%);
    border: 1px solid rgba(255,215,0,0.2);
    transition: all 0.4s ease;
}
.ebook-hero-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(13,32,60,0.45);
}
.ebook-cover-img {
    background: linear-gradient(145deg, #d99a22, #f3c15a);
    aspect-ratio: 3/4;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d203c;
    font-weight: 800;
    box-shadow: 0 18px 45px rgba(217,154,34,0.35);
    position: relative;
    overflow: hidden;
}
.ebook-cover-img::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3), transparent 40%);
}
.ebook-cover-img i { font-size: 4rem; position: relative; z-index: 1; }
.ebook-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px;
    background: linear-gradient(90deg, rgba(217,154,34,0.2), rgba(243,193,90,0.2));
    color: #f3c15a; border: 1px solid rgba(243,193,90,0.35);
    font-size: 0.82rem; font-weight: 600;
}

/* Counter Section */
.counter-section-gened {
    background: linear-gradient(135deg, #003366 0%, #001a33 50%, #002244 100%);
}
.counter-card-gened { text-align: center; padding: 25px; }
.counter-icon-gened {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px; font-size: 1.5rem; color: #003366;
}
.counter-number-gened { font-size: 2.5rem; font-weight: 700; color: #fff; }
.counter-label-gened { color: #ffd700; font-weight: 600; }
.counter-sublabel-gened { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* Modern Tabs */
.nav-pills-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px; padding: 8px;
}
.nav-pills-modern .nav-link {
    color: #475569; background: transparent; border-radius: 12px;
    padding: 14px 24px; font-weight: 600; transition: all 0.3s ease; border: none;
}
.nav-pills-modern .nav-link:hover {
    background: rgba(0, 51, 102, 0.1); color: var(--npu-blue); transform: translateY(-2px);
}
.nav-pills-modern .nav-link.active {
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%) !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.3); transform: translateY(-2px);
}
.nav-pills-modern .nav-link.active i { color: #ffd700; }

/* ── รายละเอียดการ์ด E-Book (เดิมเป็น inline style) ── */
.gened-main { min-height: 400px; }
.ebook-cover-size { width: min(260px, 80%); }
.ebook-title { font-size: 1.6rem; }
.ebook-desc { color: rgba(255,255,255,0.75); font-size: 0.95rem; line-height: 1.7; }
.ebook-tag { background: rgba(255,255,255,0.08); }
.ebook-tag-gold { color: #f3c15a; border: 1px solid rgba(243,193,90,0.25); }
.ebook-tag-blue { color: #9fb7d4; border: 1px solid rgba(159,183,212,0.2); }
.ebook-tag-green { color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.ebook-read-btn { background: linear-gradient(135deg, #d99a22, #f3c15a); border: none; color: #0d203c; }
.ebook-read-btn:hover, .ebook-read-btn:focus, .ebook-read-btn:active { color: #0d203c; }   /* เดิม inline style ทำให้สีไม่เปลี่ยนตอนชี้ */
