/* Real EFEB publications. Shared between the home, catalogue and course pages. */
.efeb-books{color:#173f6c;scroll-margin-top:110px}
.books-feature{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:40px;margin-top:34px;padding:30px 34px;border:1px solid #d0e1df;border-radius:12px;background:linear-gradient(115deg,#fff 25%,#f2f7f2)}
.books-copy{min-width:0}.books-copy .eyebrow{color:#348779;margin:0 0 10px;font-size:12px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.books-copy h3,.books-copy h2{font-size:clamp(24px,2.5vw,31px);line-height:1.22;margin:0 0 14px;letter-spacing:-.02em}
.books-copy>p:not(.eyebrow){font-size:15px;line-height:1.7;margin:0 0 16px;color:#536c80}
.books-benefits{display:flex;flex-wrap:wrap;gap:7px 16px;margin:0 0 18px;padding:0;list-style:none;font-size:12px;font-weight:700;color:#317869}
.books-benefits li:before{content:'✓';margin-right:6px}.books-link{display:inline-flex;align-items:center;gap:10px;color:#177765;font-size:14px;font-weight:750;text-decoration:underline;text-underline-offset:4px;min-height:40px}
.books-note{display:block;font-size:11px;line-height:1.5;color:#617687;margin-top:7px}
.books-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end;min-width:0}
.books-shelf a{display:block;text-decoration:none;text-align:center;color:#365671;min-width:0}.books-shelf img{display:block;width:100%;height:176px;object-fit:contain;mix-blend-mode:multiply;transition:transform .22s}
.books-shelf a:hover img{transform:translateY(-5px)}.books-shelf span{display:block;margin-top:8px;font-size:11px;font-weight:700;line-height:1.4}
.course-book-section{padding:30px 0;background:#f4f8f9}
.course-book{display:grid;grid-template-columns:185px minmax(0,1fr) auto;align-items:center;gap:28px;padding:23px 30px;background:#fff;border:1px solid #d6e4e6;border-radius:11px}
.course-book-cover img{display:block;width:185px;height:205px;object-fit:contain;mix-blend-mode:multiply}.course-book-cover{background:#f4f7f4;border-radius:7px}
.course-book .books-copy h2{font-size:26px;margin-bottom:10px}.course-book .books-copy>p:not(.eyebrow){font-size:14px;margin-bottom:10px;max-width:640px}
.book-facts{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:#5b7386;line-height:1.6}.book-facts strong{color:#284f6d}
.book-action{text-align:left;max-width:180px}.book-action .books-link{white-space:nowrap}.materials-book-link{margin:18px 0;padding-top:14px;border-top:1px solid #d5e3e7}
.catalog-book-picture{position:relative;height:154px;flex-shrink:0}.catalog-book-picture .course-picture{height:100%}
.book-badge{position:absolute;bottom:10px;left:10px;display:inline-flex;align-items:center;gap:6px;padding:6px 9px;background:#fffdf6;color:#53653d;border:1px solid #e2e5d2;border-radius:5px;box-shadow:0 2px 8px #243d4810;font-size:10px;font-weight:750;line-height:1.35;text-decoration:none;max-width:calc(100% - 20px)}
.book-badge svg{width:15px;height:15px;flex-shrink:0}.book-badge:hover{background:#edf5e7;color:#245f45;text-decoration:underline}
.list-view .catalog-book-picture{height:100%;min-height:180px}
@media(max-width:900px){.books-feature{gap:20px;padding:26px}.books-shelf img{height:145px}.course-book{grid-template-columns:145px minmax(0,1fr);gap:20px}.course-book-cover img{width:145px;height:180px}.book-action{grid-column:2;max-width:none;margin-top:-12px}.book-action .books-note{display:inline;margin-left:12px}}
@media(max-width:600px){.books-feature{grid-template-columns:1fr;padding:23px 20px;gap:22px;margin-top:24px}.books-shelf{gap:6px}.books-shelf img{height:140px}.books-shelf span{font-size:10px}.books-copy>p:not(.eyebrow){font-size:14px}.course-book-section{padding:22px 0}.course-book{grid-template-columns:94px minmax(0,1fr);padding:18px 16px;gap:18px 14px}.course-book-cover img{width:94px;height:136px}.course-book .books-copy h2{font-size:21px}.course-book .books-copy .eyebrow{font-size:10px}.course-book .books-copy>p:not(.eyebrow){font-size:13px;line-height:1.6}.book-facts{font-size:11px;gap:2px 10px}.book-action{grid-column:1/-1;margin-top:0;padding-top:10px;border-top:1px solid #e3ebed}.book-action .books-note{display:block;margin:2px 0 0}.books-benefits{gap:7px 12px}.list-view .catalog-book-picture{min-height:160px}}
@media(prefers-reduced-motion:reduce){.books-shelf img{transition:none}.books-shelf a:hover img{transform:none}}

/* Three independent positions: left, centre, right change two seconds apart. */
.books-feature{grid-template-columns:.95fr 1.15fr;gap:32px}
.books-carousel{min-width:0;align-self:center;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.book-slot{display:grid;min-width:0;overflow:hidden;padding-top:6px}
.book-card{grid-area:1/1;min-width:0;text-align:center;text-decoration:none;color:#365671;opacity:0;visibility:hidden;transform:translateX(18px);transition:opacity .35s ease,transform .35s ease,visibility .35s;pointer-events:none}
.book-card.is-active{opacity:1;visibility:visible;transform:translateX(0);pointer-events:auto}
.book-art{height:222px;display:grid;place-items:center;overflow:hidden}
.book-art img{display:block;width:100%;height:222px;object-fit:contain;mix-blend-mode:multiply;transform:scale(1.18)}
.book-card>span:last-child{margin-top:8px;height:50px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:11px;font-weight:700;line-height:1.4}
.book-card:focus-visible{outline:2px solid #c38e31;outline-offset:-2px}
@media(min-width:601px) and (max-width:900px){.books-feature{gap:20px}.book-art,.book-art img{height:190px}}
@media(max-width:600px){.books-feature{grid-template-columns:1fr;gap:22px}.books-carousel{gap:6px}.book-art,.book-art img{height:160px}.book-art img{transform:scale(1.2)}.book-card>span:last-child{font-size:10px;height:56px;-webkit-line-clamp:4}}
@media(prefers-reduced-motion:reduce){.book-card{transition:none;transform:none}}
/* Slower visual transition; desktop positions retain their staggered timing. */
.book-card{transition:opacity .85s ease,transform .85s ease,visibility .85s}
.books-mobile-carousel[hidden],.books-carousel[hidden]{display:none!important}
@media(max-width:600px){
 .books-section{padding-block:26px}.books-feature{display:block;padding:18px 16px;margin-top:0}.books-feature .books-copy{display:flow-root}
 .books-mobile-carousel{float:left;width:110px;margin:0 15px 8px 0;min-width:0}
 .books-mobile-carousel .book-slot{padding-top:0}.books-mobile-carousel .book-art,.books-mobile-carousel .book-art img{height:145px}.books-mobile-carousel .book-art img{transform:none}
 .books-mobile-carousel .book-card>span:last-child{height:42px;margin-top:5px;font-size:10px;-webkit-line-clamp:3}
 .books-feature .books-copy h2{font-size:22px;line-height:1.2;margin-bottom:10px}.books-feature .books-copy h2 br{display:none}.books-feature .books-copy>p:not(.eyebrow){font-size:13px;line-height:1.6;margin-bottom:12px}
 .books-feature .books-benefits{display:block;font-size:11px;line-height:1.6;margin-bottom:10px}.books-feature .books-benefits li+li{margin-top:3px}.books-feature .books-link{font-size:13px;min-height:44px}.books-feature .books-note{font-size:10px}
 .course-book{display:flow-root;padding:16px}.course-book-cover{float:left;width:94px;margin:0 14px 8px 0}.course-book .books-copy{display:contents}.course-book .books-copy h2{font-size:21px;line-height:1.25;margin-bottom:8px}.course-book .books-copy>p:not(.eyebrow){margin-bottom:8px}.course-book .book-action{clear:both;margin-top:10px;padding-top:8px}.course-book .book-facts{display:block;font-size:11px}.course-book .book-facts span{display:block}
}
@media(prefers-reduced-motion:reduce){.book-card{transition:none;transform:none}}
@media(max-width:600px){
 #sajat-jegyzeteink{padding-block:26px}
 #sajat-jegyzeteink .books-copy h2{font-size:22px;line-height:1.22;margin:0 0 14px}
 #sajat-jegyzeteink .books-copy>p:not(.eyebrow){font-size:13px;line-height:1.6}
}
