/* v7.17: dedicated, readable Mutashabehat catalogue + individual learning experiences.
   Approved v7.16 artwork, Quranic text, learning stages and game remain untouched. */
body.juz-home-page #explore,
body.juz-home-page .juz-learning-divider {display:none!important}
body.juz-home-page #module-one-view .module-one-game-banner{display:block!important}
body.juz-home-page .juz-paths{margin-bottom:34px}
body.juz-learning-page .welcome,
body.juz-learning-page #learningPaths,
body.juz-learning-page .optional-discovery,
body.juz-learning-page .juz-learning-divider,
body.juz-learning-page #surahGuide,
body.juz-learning-page .module-one-game-banner,
body.juz-learning-page .mastery-invite,
body.juz-learning-page #optionalLibrary,
body.juz-learning-page #module-two-view {display:none!important}
body.juz-learning-page {background:#f7faf8}
body.juz-learning-page #module-one-view{display:block!important}
body.juz-learning-page #module-one-view > main.wrap{max-width:1200px;margin:0 auto;padding-top:24px;padding-bottom:68px}
body.juz-learning-page .site-header .module-links a[href="learn.html"]{color:#175268;font-weight:850}
body.juz-learning-page .learning-library-header,
body.juz-learning-page .learning-detail-bar{
 direction:rtl;background:linear-gradient(125deg,#e5f1ed 0%,#f5f9f6 60%,#f4eee3 100%);
 border:1px solid #d9e5df;border-radius:22px;padding:24px 34px 30px;
 box-shadow:0 10px 25px rgba(15,67,67,.045);margin:0 0 24px;
 text-align:right;position:relative;overflow:hidden}
body.juz-learning-page .learning-library-header:after,
body.juz-learning-page .learning-detail-bar:after{content:"";position:absolute;inset:auto auto -100px -70px;width:260px;height:260px;border-radius:50%;background:#bbd9d022;pointer-events:none}
body.juz-learning-page .learning-breadcrumb,
body.juz-learning-page .learning-back{font-size:13px;font-weight:800;color:#316979;text-decoration:none;display:inline-flex;align-items:center;gap:9px;padding:8px 0}
body.juz-learning-page .learning-breadcrumb:hover,
body.juz-learning-page .learning-back:hover{text-decoration:underline}
body.juz-learning-page .learning-library-hero-copy{max-width:850px;margin:12px 0 0}
body.juz-learning-page .learning-eyebrow{display:block;font-size:12px;font-weight:850;color:#327b78;letter-spacing:.02em;margin-bottom:9px}
body.juz-learning-page .learning-library-header h1,
body.juz-learning-page .learning-detail-bar h1{font-size:clamp(28px,3.4vw,43px);line-height:1.4;letter-spacing:-.02em;margin:0 0 5px;color:#173f50;font-weight:900}
body.juz-learning-page .learning-library-header p,
body.juz-learning-page .learning-detail-bar p{color:#466675;font-size:clamp(14px,1.4vw,17px);line-height:1.85;margin:0}
body.juz-learning-page .learning-library-count{display:inline-flex;background:#fff9;border:1px solid #d5e4de;padding:6px 14px;border-radius:99px;color:#356b70;font-weight:800;font-size:12px;margin-top:15px}
body.juz-learning-page #explore{border:0!important;background:transparent!important;box-shadow:none!important;margin:0!important;padding:0!important}
body.juz-learning-page #mutashabehatStart{display:none!important}
body.juz-learning-page #explore .card-surah-filter{margin:0 0 17px!important}
body.juz-learning-page #explore .scope-tabs{margin:14px 0!important}
body.juz-learning-page #explore .toolbar{margin:15px 0 5px!important}
body.juz-learning-page #explore .result-info{margin:8px 0 17px}
body.juz-learning-page #cards.grid:not(.card-focused-grid){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:17px!important;align-items:stretch}
body.juz-learning-page #cards.grid:not(.card-focused-grid) > .item{width:100%!important;min-width:0;min-height:205px;align-self:stretch;margin:0!important;transition:transform .16s ease,box-shadow .16s ease}
body.juz-learning-page #cards.grid:not(.card-focused-grid) > .item:hover{transform:translateY(-2px);box-shadow:0 12px 30px #174c5f25!important}
body.juz-learning-page #cards.grid:not(.card-focused-grid) > .item .parent-btn{height:100%;text-align:right}
body.juz-learning-page #cards.grid:not(.card-focused-grid) > .item .item-title strong{font-size:clamp(18px,1.65vw,22px)!important;line-height:1.7!important}
body.juz-learning-page #cards .modern-more-wrap{grid-column:1/-1}
body.juz-learning-page .learning-detail-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:17px}
body.juz-learning-page .learning-detail-progress{font-size:12px;color:#52747c;font-weight:800;background:#fff8;border:1px solid #d7e8e1;border-radius:20px;padding:8px 14px}
body.juz-learning-page .learning-detail-navigation{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}
body.juz-learning-page .learning-detail-navigation button{border:1px solid #bdd7d4;background:#fff;color:#235d6c;border-radius:12px;padding:11px 18px;font-size:14px;font-weight:850;cursor:pointer}
body.juz-learning-page .learning-detail-navigation button:hover:not(:disabled){background:#e4f1ef;border-color:#7eafab}
body.juz-learning-page .learning-detail-navigation button:disabled{opacity:.35;cursor:not-allowed}
body.juz-learning-page .learning-detail-navigation button:focus-visible,
body.juz-learning-page #cards button:focus-visible,
body.juz-learning-page a:focus-visible{outline:3px solid #c38d26;outline-offset:3px}
body.juz-learning-page.card-detail-active #explore .card-surah-filter,
body.juz-learning-page.card-detail-active #explore .scope-tabs,
body.juz-learning-page.card-detail-active #explore .toolbar,
body.juz-learning-page.card-detail-active #resultInfo{display:none!important}
body.juz-learning-page #cards.grid.card-focused-grid{display:block!important;max-width:1010px;margin:0 auto!important}
body.juz-learning-page #cards.card-focused-grid > .item{width:100%!important;max-width:none!important;margin:0!important;min-width:0!important;border-radius:22px!important;box-shadow:0 16px 36px rgba(13,68,72,.10)!important;background:#fff}
body.juz-learning-page #cards.card-focused-grid .parent-btn{border-radius:20px 20px 0 0!important;cursor:default}
body.juz-learning-page #cards.card-focused-grid .card-open-hint,
body.juz-learning-page #cards.card-focused-grid .item-title .item-icon {display:none!important}
body.juz-learning-page #cards.card-focused-grid .item-title strong{font-size:clamp(21px,2.6vw,30px)!important}
body.juz-learning-page #cards.card-focused-grid .tree{padding:clamp(12px,2vw,25px)!important}
body.juz-learning-page #cards.card-focused-grid .branch{max-width:none}
body.juz-learning-page #cards.card-focused-grid .card-face-back{min-height:390px}
body.juz-learning-page [hidden]{display:none!important}
@media(max-width:920px){
 body.juz-learning-page #cards.grid:not(.card-focused-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.juz-learning-page .learning-library-header,body.juz-learning-page .learning-detail-bar{padding:22px 24px 25px}
}
@media(max-width:600px){
 body.juz-learning-page #module-one-view > main.wrap{padding:12px 12px 40px!important}
 body.juz-learning-page .learning-library-header,body.juz-learning-page .learning-detail-bar{padding:19px 18px 22px;border-radius:17px;margin-bottom:17px}
 body.juz-learning-page #cards.grid:not(.card-focused-grid){grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 body.juz-learning-page #cards.grid:not(.card-focused-grid) > .item{min-height:160px}
 body.juz-learning-page .learning-detail-navigation{display:grid;grid-template-columns:1fr 1fr}
 body.juz-learning-page .learning-detail-navigation button{padding:10px 6px;font-size:12px;min-width:0}
 body.juz-learning-page #cards.card-focused-grid .item-title strong{font-size:20px!important}
 body.juz-learning-page #cards.card-focused-grid .tree{padding:10px!important}
}
@media(prefers-reduced-motion:reduce){body.juz-learning-page #cards .item{transition:none!important}}

body.juz-learning-page .learning-definition{max-width:790px;margin-top:17px;padding:11px 15px;border:1px solid #cedfd9;border-radius:12px;background:#fff9}
body.juz-learning-page .learning-definition summary{cursor:pointer;color:#245f70;font-size:14px;font-weight:850;list-style-position:inside}
body.juz-learning-page .learning-definition p{font-size:14px;line-height:2;margin:9px 0 2px;color:#426273}
