/* Additions for the new Financial Literacy section. Load AFTER IDB's existing CSS. */
#idb-literacy{--fl-red:var(--red,#EA0029);--fl-pink:#ffe1e7;--fl-ink:var(--black,#000);--fl-muted:#919191;--fl-line:#e5e5e5;--fl-soft:#f7f7f7;--fl-purple:#7a164b;--fl-plum:#2b1b32;--fl-cream:#fbf4ec;--fl-green:#00ac28;color:var(--black,#000);font-size:clamp(14px,.94vw,18px);line-height:1.7;text-align:right;direction:rtl;width:100%}
#idb-literacy h1,#idb-literacy h2,#idb-literacy h3,#idb-literacy h4{font-family:inherit;line-height:1.5;font-weight:700}
#idb-literacy h1{font-size:clamp(30px,2.8vw,54px)}#idb-literacy h2{font-size:clamp(23px,2.25vw,43px)}#idb-literacy h3{font-size:clamp(18px,1.5vw,29px)}
#idb-literacy button,#idb-literacy input,#idb-literacy textarea,#idb-literacy select{font-family:inherit}
#idb-literacy a:focus-visible,#idb-literacy button:focus-visible,#idb-literacy input:focus-visible{outline:2px solid var(--red);outline-offset:4px}
#idb-literacy .fl-btn{display:inline-flex;gap:.5em;white-space:normal;line-height:1.5;flex-shrink:0;text-decoration:none;height:auto;min-height:37px}
#idb-literacy .fl-btn-muted{background:#f5f5f5;color:#111}#idb-literacy .fl-btn-purple{background:#7a164b;color:white}
#idb-literacy button:not(.custbtm){border:0;background:none;cursor:pointer}
#idb-literacy input[type=checkbox],#idb-literacy input[type=radio]{accent-color:var(--red)}
#idb-literacy .fl-quiz-page-content>.fl-content-close{left:100px}
@media(max-width:1324px){#idb-literacy .fl-quiz-page-content>.fl-content-close{left:30px}}
@media(max-width:767px){#idb-literacy .fl-quiz-page-content>.fl-content-close{left:20px}}
@media(max-width:600px){#idb-literacy .fl-hero-actions{flex-direction:column}#idb-literacy .fl-hero-actions .custbtm{width:100%;flex:unset}#idb-literacy .fl-filter-bar,#idb-literacy .fl-lesson-bottom,#idb-literacy .fl-result-actions{flex-wrap:wrap}}
#idb-literacy p+p{margin-top:1em}
#idb-literacy img{display:block;width:100%;height:auto}
#idb-literacy [hidden]{display:none!important}
#idb-literacy .fl-section-space{padding-block:clamp(48px,5.8vw,112px)}
#idb-literacy .fl-red{color:var(--fl-red)}
#idb-literacy .fl-muted{color:var(--fl-muted)}
#idb-literacy .fl-green{color:var(--fl-green)}
#idb-literacy .fl-svg-defs{position:absolute;width:0;height:0;overflow:hidden}
#idb-literacy .fl-icon{display:inline-block;width:1.2em;height:1.2em;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#idb-literacy .fl-icon-button{display:inline-grid;place-items:center;width:36px;height:36px;padding:5px}
#idb-literacy .fl-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#idb-literacy .fl-skip-link{position:fixed;top:8px;right:8px;transform:translateY(-150%);background:#fff;color:#000;z-index:1000;padding:12px 24px}
#idb-literacy .fl-skip-link:focus{transform:none}
#idb-literacy .fl-btn:hover{filter:brightness(.9)}
#idb-literacy .fl-btn-purple{background:var(--fl-purple);color:#fff}
#idb-literacy .fl-btn-muted{background:var(--fl-soft);color:#000}
#idb-literacy .fl-btn-muted:disabled,#idb-literacy .fl-locked-lesson .fl-btn-muted{color:#999;background:#eee}
#idb-literacy .fl-text-link{color:var(--fl-red);text-decoration:underline;padding:0}
#idb-literacy .fl-underlined{padding-bottom:.28em;border-bottom:2px solid var(--fl-red)}
#idb-literacy .fl-eyebrow{font-size:clamp(11px,.78vw,15px);margin-bottom:1.8vw}
#idb-literacy .fl-section-heading{margin-right:auto;width:fit-content;min-width:37%}
#idb-literacy .fl-section-heading h2{font-size:clamp(27px,2.5vw,48px)}
#idb-literacy .fl-section-heading .fl-eyebrow{margin-bottom:.7vw}
#idb-literacy .fl-section-intro{max-width:640px;margin:1.8vw 0 2.8vw auto;font-size:clamp(12px,.86vw,16px)}
#idb-literacy .fl-section-title-row{display:flex;align-items:end;justify-content:space-between;margin-bottom:2.6vw;gap:24px}
#idb-literacy .fl-section-title-row .fl-section-heading{margin-right:0}
#idb-literacy .fl-section-end{margin-top:1.4vw;display:flex;justify-content:flex-start}
#idb-literacy .fl-divider{margin-inline:10px}
#idb-literacy .fl-tags{display:flex;align-items:center;gap:1vw;margin-bottom:2.3vw}
#idb-literacy .fl-tag{font-size:clamp(11px,.8vw,15px);background:#ffdae2;color:var(--fl-red);padding:.25em 1.5em;line-height:1.8}
#idb-literacy .fl-tag-white{background:#fff;color:#111}
#idb-literacy .fl-scroll-rule{height:1px;background:#b6b6b6;margin-top:2.6vw;position:relative}
#idb-literacy .fl-scroll-rule:after{content:'';position:absolute;right:0;top:0;width:20%;height:2px;background:#121212}
#idb-literacy .fl-table-scroll{overflow-x:auto}
#idb-literacy .fl-form-message{font-size:clamp(12px,.85vw,16px);margin-top:.8em;line-height:1.6}
#idb-literacy .fl-form-message:empty{display:none}
#idb-literacy .fl-form-message.error{color:#c90025}
#idb-literacy .fl-form-message.success{color:#008321}
#idb-literacy .fl-home-intro{display:grid;grid-template-columns:1.36fr 1fr;gap:5.7vw;padding-top:1.8vw;padding-bottom:5.7vw}
#idb-literacy .fl-home-copy{padding-top:.8vw}
#idb-literacy .fl-home-copy>.fl-eyebrow{margin-bottom:3.6vw}
#idb-literacy .fl-home-copy h1{font-size:clamp(30px,2.85vw,55px);line-height:1.7;margin:0 0 1vw}
#idb-literacy .fl-home-copy h1 span{display:block;color:var(--fl-red);border-top:2px solid var(--fl-red);padding-top:.1em}
#idb-literacy .fl-intro-description{max-width:620px;margin-left:0;margin-right:auto;font-size:clamp(12px,.94vw,18px)}
#idb-literacy .fl-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5vw;margin-top:2.9vw}
#idb-literacy .fl-stats>div{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:2.1vw 1.7vw;min-height:9.6vw;background:#f8f8f8}
#idb-literacy .fl-stats b{display:block;color:var(--fl-red);font:700 clamp(27px,2.45vw,47px)/1.15 'ProximaNovaBold','GumelaArabicreg',sans-serif}
#idb-literacy .fl-stats span{font-size:clamp(11px,.82vw,16px);margin-top:.2em}
#idb-literacy .fl-hero-actions{display:flex;gap:1vw;justify-content:flex-start;margin-top:2.9vw}
#idb-literacy .fl-home-visual{position:relative;min-height:41vw;overflow:hidden;background:#333}
#idb-literacy .fl-home-visual>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top}
#idb-literacy .fl-home-visual:after{content:'';position:absolute;inset:40% 0 0;background:linear-gradient(transparent,#000 95%)}
#idb-literacy .fl-home-visual figcaption{position:absolute;right:3.2vw;left:3.2vw;bottom:2.3vw;color:#fff;z-index:1}
#idb-literacy .fl-home-visual h2{font-size:clamp(22px,2vw,38px);line-height:1.5}
#idb-literacy .fl-home-visual p{font-size:clamp(11px,.87vw,17px);margin-top:.4em}
#idb-literacy .fl-slider-dots{display:flex;gap:1vw;justify-content:flex-start;margin-top:2vw}
#idb-literacy .fl-slider-dots button{border-radius:50%;width:6px;height:6px;background:#888;padding:0}
#idb-literacy .fl-slider-dots button[aria-pressed=true]{background:#fff}
#idb-literacy .fl-article-grid{display:grid;grid-template-columns:1fr 1fr;gap:4.2vw}
#idb-literacy .fl-article-card>img{aspect-ratio:2.1;object-fit:cover}
#idb-literacy .fl-article-card .fl-article-date{color:var(--fl-red);font-size:clamp(10px,.7vw,14px);margin-top:.9vw}
#idb-literacy .fl-article-card h3{font-size:clamp(16px,1.16vw,23px);margin-top:.8vw}
#idb-literacy .fl-article-card>p:not(.fl-article-date){font-size:clamp(11px,.77vw,15px);margin-top:.3vw}
#idb-literacy.fl-home-page #articles{padding-top:0;padding-bottom:4.4vw}
#idb-literacy .fl-method-section{background:#202020;color:#fff}
#idb-literacy .fl-method-section .fl-section-heading{width:45%}
#idb-literacy .fl-feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1vw;margin-top:3.5vw}
#idb-literacy .fl-feature-card{background:#303030;padding:2.7vw 2vw;min-height:19.6vw}
#idb-literacy .fl-feature-card>.fl-icon{width:4.8vw;height:4.8vw;min-width:44px;min-height:44px;color:#484848;stroke-width:1.4;margin-bottom:1.6vw}
#idb-literacy .fl-feature-card h3{color:var(--fl-red);font-size:clamp(19px,1.4vw,27px)}
#idb-literacy .fl-feature-card p{font-size:clamp(12px,.87vw,17px);line-height:1.55;margin-top:.3em}
#idb-literacy .fl-courses-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.7vw}
#idb-literacy .fl-course-card{background:#f8f8f8;min-width:0;display:flex;flex-direction:column}
#idb-literacy .fl-course-image{display:block;overflow:hidden}
#idb-literacy .fl-course-image img{width:100%;aspect-ratio:1.55;object-fit:cover;transition:transform .25s}
#idb-literacy .fl-course-image:hover img{transform:scale(1.03)}
#idb-literacy .fl-course-card-body{padding:1.8vw 2.3vw;display:flex;flex-direction:column;flex-grow:1}
#idb-literacy .fl-course-card h3{font-size:clamp(18px,1.48vw,28px);margin-bottom:.5vw}
#idb-literacy .fl-course-card p{font-size:clamp(12px,.84vw,16px);line-height:1.6;margin-bottom:2.6vw}
#idb-literacy .fl-course-meta{display:flex;gap:2.8vw;font-size:clamp(11px,.8vw,15px);padding-top:1.3vw;border-top:1px solid #ddd;margin-top:auto;margin-bottom:1.3vw}
#idb-literacy .fl-course-meta span{display:flex;align-items:center;gap:.6em}
#idb-literacy .fl-course-meta .fl-icon{width:1em;height:1em}
#idb-literacy .fl-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:.8vw}
#idb-literacy .fl-national-section{background:var(--fl-red);color:#fff}
#idb-literacy .fl-national-section .fl-underlined{border-color:#fff}
#idb-literacy .fl-national-section .fl-section-heading{min-width:55%}
#idb-literacy .fl-national-section .fl-stats{grid-template-columns:repeat(4,1fr);margin-top:3vw}
#idb-literacy .fl-national-section .fl-stats>div{background:#f6f6f6;align-items:center;color:#000}
#idb-literacy .fl-national-section .fl-stats span{font-size:clamp(11px,.84vw,16px)}
#idb-literacy .fl-home-digither{display:grid;grid-template-columns:1fr 1fr;gap:0}
#idb-literacy .fl-digither-teaser{background:#faf3e9;padding:2vw 2.8vw 3vw}
#idb-literacy .fl-digither-teaser h2{font-size:clamp(26px,2.6vw,50px);margin-top:2vw}
#idb-literacy .fl-digither-teaser p:not(.fl-eyebrow){font-size:clamp(12px,.87vw,17px);margin-top:1.4vw}
#idb-literacy .fl-digither-logo{width:22vw;max-width:400px;margin-right:0;margin-left:auto;mix-blend-mode:multiply}
#idb-literacy .fl-video-poster{position:relative;padding:0;overflow:hidden;display:block;width:100%;background:#222;text-align:right;color:#fff;min-height:200px}
#idb-literacy .fl-video-poster>img{height:100%;width:100%;object-fit:cover}
#idb-literacy .fl-video-poster:after{content:'';position:absolute;inset:55% 0 0;background:linear-gradient(transparent,#0008);pointer-events:none}
#idb-literacy .fl-play-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:1;color:#fff;filter:drop-shadow(0 1px 4px #3335)}
#idb-literacy .fl-play-icon .fl-icon{fill:#fff;stroke:#fff;width:3.6vw;height:3.6vw;min-width:36px;min-height:36px}
#idb-literacy .fl-video-caption{position:absolute;bottom:1.5vw;right:2vw;font-size:clamp(11px,.83vw,16px);z-index:1}
#idb-literacy .fl-auth-section{background:#f8f8f8;padding:3.5vw 20px;display:flex;justify-content:center}
#idb-literacy .fl-auth-card{width:38.6vw;max-width:740px;min-width:450px;background:#fff;box-shadow:0 2px 5px #0002}
#idb-literacy .fl-auth-body{padding:1.4vw 3.25vw 1.7vw}
#idb-literacy .fl-auth-mark{width:4.5vw;min-width:60px;max-width:86px;height:3.1vw;min-height:42px;object-fit:contain;margin:0 auto .6vw}
#idb-literacy .fl-auth-card h1{text-align:center;font-size:clamp(30px,2.8vw,54px);line-height:1.3}
#idb-literacy .fl-auth-intro{text-align:center;color:var(--fl-red);font-size:clamp(14px,1.25vw,24px);margin:.6vw -1vw 0;line-height:1.5}
#idb-literacy .fl-auth-card form{margin-top:2.8vw}
#idb-literacy .fl-field{position:relative;margin-bottom:1.8vw}
#idb-literacy .fl-field label{display:block;font-size:clamp(12px,.86vw,16px)}
#idb-literacy .fl-input-wrap{position:relative;border-bottom:1px solid #ddd}
#idb-literacy .fl-input-wrap input{border:0;border-radius:0;width:100%;background:transparent;padding:0 0 .7vw;font-size:clamp(13px,.88vw,17px);outline-offset:2px;min-height:30px}
#idb-literacy .fl-input-wrap input::placeholder{color:#b1b1b1;opacity:1;font-size:clamp(11px,.76vw,14px)}
#idb-literacy .fl-field input[type=password],#idb-literacy .fl-field input[data-password-visible]{padding-left:40px}
#idb-literacy .fl-password-toggle{position:absolute;left:-5px;top:-4px;width:30px;height:30px}
#idb-literacy .fl-password-toggle[aria-pressed=true]{color:var(--fl-red)}
#idb-literacy .fl-field-hint{font-size:clamp(10px,.72vw,14px);margin-top:.6vw;color:#444}
#idb-literacy .fl-field-error{font-size:clamp(11px,.8vw,15px);color:#d00027;margin-top:.35em}
#idb-literacy .fl-field-error:empty{display:none}
#idb-literacy .fl-field.invalid .fl-input-wrap{border-color:#d00027}
#idb-literacy .fl-checkbox-label{display:flex;align-items:flex-start;gap:.4em;font-size:clamp(12px,.82vw,16px);cursor:pointer}
#idb-literacy .fl-checkbox-label input{width:14px;height:14px;margin:3px 0 0;flex-shrink:0}
#idb-literacy .fl-remember{margin-top:1.2vw}
#idb-literacy .fl-forgot-link{font-size:clamp(11px,.76vw,14px);display:block;margin-top:-1.3vw;margin-right:auto}
#idb-literacy .fl-auth-actions{margin-top:2.5vw}
#idb-literacy .fl-auth-bottom{background:#000;color:#fff;text-align:center;font-size:clamp(15px,1.3vw,25px);font-weight:700;padding:1.2vw 10px}
#idb-literacy .fl-auth-bottom a{color:var(--fl-red);text-decoration:underline}
#idb-literacy.fl-auth-page[data-page=sign-up] .fl-auth-intro{font-size:clamp(13px,1.01vw,19px)}
#idb-literacy.fl-auth-page[data-page=sign-up] .fl-field{margin-bottom:1.7vw}
#idb-literacy.fl-auth-page[data-page=sign-up] .fl-auth-actions{margin-top:2vw}
#idb-literacy.fl-auth-page[data-page=sign-up] .fl-auth-body{padding-bottom:1vw}
#idb-literacy .fl-wide-hero{position:relative;height:33.5vw;min-height:360px;max-height:644px;background:#1d252a;overflow:hidden;color:#fff}
#idb-literacy .fl-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 30%}
#idb-literacy .fl-hero-shade{position:absolute;inset:0;background:linear-gradient(transparent 30%,#0002 50%,#000c)}
#idb-literacy .fl-hero-content{position:absolute;bottom:2.6vw;left:0;right:0}
#idb-literacy .fl-hero-content .fl-eyebrow{margin-bottom:.7vw}
#idb-literacy .fl-hero-content h1{font-size:clamp(31px,3vw,58px);line-height:1.45}
#idb-literacy .fl-hero-content>p:last-child{margin-top:1.6vw;font-size:clamp(12px,.92vw,18px);font-weight:700}
#idb-literacy .fl-courses-library{padding-top:1.8vw;padding-bottom:1.2vw}
#idb-literacy .fl-course-search{display:flex;align-items:center;position:relative;border:1px solid #d4d4d4;border-radius:6px;overflow:hidden}
#idb-literacy .fl-course-search input{border:0;background:none;width:100%;padding:1vw 2.1vw;font-size:clamp(12px,.9vw,17px);min-height:44px}
#idb-literacy .fl-course-search button{padding-inline:2vw}
#idb-literacy .fl-course-search .fl-icon{width:19px;height:19px}
#idb-literacy .fl-filter-bar{display:flex;gap:1vw;margin-block:1.7vw 2.1vw}
#idb-literacy .fl-filter-bar button{font-size:clamp(12px,.9vw,17px);padding:.6em 1.6em;background:#f1f1f1;color:#888;border-radius:30px;min-height:34px}
#idb-literacy .fl-filter-bar .fl-active{background:var(--fl-red);color:#fff}
#idb-literacy .fl-courses-library .fl-courses-grid{row-gap:1.7vw}
#idb-literacy .fl-empty-results{padding:80px 20px;text-align:center;background:#f8f8f8}
#idb-literacy .fl-empty-results p{margin:16px 0 24px}
#idb-literacy .fl-course-detail{display:grid;grid-template-columns:24.5% 59.7%;justify-content:space-between;gap:5vw;padding-top:2vw;padding-bottom:4.5vw}
#idb-literacy .fl-course-detail-main{position:relative}
#idb-literacy .fl-content-close{position:absolute;left:-8px;top:-8px}
#idb-literacy .fl-breadcrumbs{font-size:clamp(11px,.8vw,15px);margin-bottom:1.6vw}
#idb-literacy .fl-course-detail-main .fl-tags{margin-bottom:1.7vw}
#idb-literacy .fl-course-detail-main h1{font-size:clamp(31px,2.9vw,56px)}
#idb-literacy .fl-detail-meta{display:flex;gap:1.4vw;font-size:clamp(11px,.8vw,15px);align-items:center;margin:1.3vw 0 2.2vw;flex-wrap:wrap}
#idb-literacy .fl-detail-meta span+span{border-right:1px solid #b8b8b8;padding-right:1.4vw}
#idb-literacy .fl-detail-meta .fl-icon{margin-left:.6em;width:1em;height:1em}
#idb-literacy .fl-course-detail-main>p:not(.fl-breadcrumbs){font-size:clamp(12px,.88vw,17px);line-height:1.8}
#idb-literacy .fl-share-row{display:flex;align-items:center;gap:1.4vw;border-block:1px solid var(--fl-line);margin-block:2.8vw 1.9vw;padding-block:1.15vw;font-size:clamp(11px,.8vw,15px)}
#idb-literacy .fl-share-row button{padding:0;color:var(--fl-red);font-family:'ProximaNovaRegular',Arial,sans-serif;font-size:clamp(18px,1.5vw,29px);line-height:1}
#idb-literacy .fl-share-row .fl-icon{width:1.1em;height:1.1em}
#idb-literacy .fl-learning-outcomes h2,#idb-literacy .fl-curriculum h2{font-size:clamp(20px,1.45vw,28px);color:var(--fl-red);margin-bottom:1.2vw}
#idb-literacy .fl-learning-outcomes ul{display:grid;grid-template-columns:1fr 1fr;gap:1.4vw 2vw;padding-bottom:2.4vw;border-bottom:1px solid var(--fl-line);margin-bottom:1.7vw}
#idb-literacy .fl-learning-outcomes li{display:flex;gap:1vw;font-size:clamp(12px,.86vw,16px);align-items:baseline}
#idb-literacy .fl-learning-outcomes .fl-icon,#idb-literacy .fl-lesson-summary .fl-icon{border-radius:50%;background:var(--fl-red);color:#fff;padding:2px;width:1.15em;height:1.15em;flex-shrink:0}
#idb-literacy .fl-curriculum ol{display:flex;flex-direction:column;gap:.6vw}
#idb-literacy .fl-curriculum li{display:flex;gap:1.4vw;align-items:center;padding:2vw;background:#f8f8f8}
#idb-literacy .fl-lesson-number{display:grid;place-items:center;border-radius:50%;width:2.2em;height:2.2em;background:#ffdae3;color:var(--fl-red);flex-shrink:0}
#idb-literacy .fl-curriculum li h3{font-size:clamp(13px,1vw,19px);font-weight:400}
#idb-literacy .fl-curriculum li p{font-size:clamp(11px,.8vw,15px);display:flex;align-items:center;gap:.5em}
#idb-literacy .fl-curriculum .fl-locked-lesson .fl-lesson-number{background:#e8e8e8;color:#888}
#idb-literacy .fl-course-sidebar>img{aspect-ratio:1.55;object-fit:cover}
#idb-literacy .fl-sidebar-info{padding-top:.8vw}
#idb-literacy .fl-sidebar-info>h2{font-size:clamp(17px,1.3vw,25px);color:var(--fl-red);margin-bottom:1vw}
#idb-literacy .fl-course-progress{background:#f8f8f8;padding:1vw 1.8vw;margin-bottom:1vw;font-size:clamp(11px,.8vw,15px)}
#idb-literacy .fl-course-progress>div{display:flex;justify-content:space-between;align-items:center}
#idb-literacy .fl-course-progress b{color:var(--fl-red)}
#idb-literacy .fl-course-progress progress{margin-block:1vw}
#idb-literacy .fl-course-progress p{font-size:clamp(10px,.74vw,14px)}
#idb-literacy .fl-sidebar-info dl{margin:0;font-size:clamp(11px,.85vw,16px)}
#idb-literacy .fl-sidebar-info dl>div{display:flex;justify-content:space-between;border-bottom:1px solid var(--fl-line);padding:.3vw 0;gap:8px}
#idb-literacy .fl-sidebar-info dd{margin:0;text-align:left}
#idb-literacy .fl-sidebar-note{font-size:clamp(11px,.8vw,15px);margin-top:1vw}
#idb-literacy .fl-lesson-layout{display:grid;grid-template-columns:18.6% 73.3%;justify-content:space-between;gap:5vw;padding-top:2.9vw;padding-bottom:5.9vw}
#idb-literacy .fl-lesson-sidebar{font-size:clamp(11px,.79vw,15px);align-self:start;position:sticky;top:24px}
#idb-literacy .fl-sidebar-panel{border:1px solid #e6e6e6;margin-bottom:1.5vw}
#idb-literacy .fl-sidebar-panel h2{font-size:clamp(13px,.9vw,17px);color:var(--fl-red);font-weight:400;padding:1.1vw 1.1vw .7vw}
#idb-literacy .fl-lesson-side-row{display:flex;align-items:center;gap:1vw;padding:1.1vw}
#idb-literacy .fl-lesson-side-row.current{background:#fff0f3}
#idb-literacy .fl-lesson-side-row .fl-lesson-number{width:2em;height:2em}
#idb-literacy .fl-lesson-side-row:not(.fl-current) .fl-lesson-number{background:#eee;color:#888}
#idb-literacy .fl-lesson-side-row small{display:block;font-size:clamp(10px,.7vw,13px);margin-top:.4vw}
#idb-literacy .fl-lesson-side-row small .fl-icon{width:.8em;height:.8em}
#idb-literacy .fl-contents-panel{padding-bottom:.5vw}
#idb-literacy .fl-contents-panel h3{font-size:clamp(12px,.86vw,16px);padding:.3vw 1.1vw}
#idb-literacy .fl-contents-panel progress{width:calc(100% - 2.2vw);margin:0 1.1vw .5vw;height:5px}
#idb-literacy .fl-contents-panel>small{display:block;padding-inline:1.1vw}
#idb-literacy .fl-contents-panel nav{margin-top:1.2vw}
#idb-literacy .fl-contents-panel nav a{display:flex;align-items:center;gap:.8em;padding:.6vw 1.1vw;font-size:clamp(11px,.77vw,15px);line-height:1.5}
#idb-literacy .fl-contents-panel nav a span{border-radius:50%;background:#eee;font:400 11px Proxima;display:grid;place-items:center;width:1.4em;height:1.4em;flex-shrink:0}
#idb-literacy .fl-contents-panel nav a.current{background:#fff0f4;color:var(--fl-red);font-weight:700}
#idb-literacy .fl-contents-panel nav a.current span{background:var(--fl-red);color:#fff}
#idb-literacy .fl-lesson-content{position:relative}
#idb-literacy .fl-lesson-title{padding-bottom:2.2vw;border-bottom:1px solid var(--fl-line);margin-bottom:1.8vw}
#idb-literacy .fl-lesson-title h1{font-size:clamp(28px,2.05vw,40px);margin-bottom:.7vw}
#idb-literacy .fl-lesson-title>p{font-size:clamp(12px,.87vw,17px);line-height:1.7}
#idb-literacy .fl-lesson-meta{display:flex;gap:1.7vw;align-items:center;margin-top:2.2vw;font-size:clamp(11px,.85vw,16px)}
#idb-literacy .fl-lesson-meta .fl-icon{width:1em;height:1em}
#idb-literacy .fl-lesson-section{scroll-margin-top:36px;margin-bottom:3.5vw}
#idb-literacy .fl-lesson-section h2{display:flex;align-items:center;gap:1vw;font-size:clamp(22px,1.45vw,28px);color:var(--fl-red);margin-bottom:1vw}
#idb-literacy .fl-lesson-section h2 span{display:grid;place-items:center;border-radius:50%;background:#ffdae3;color:var(--fl-red);width:1.6em;height:1.6em;font-size:.65em}
#idb-literacy .fl-lesson-section p,#idb-literacy .fl-lesson-section ul{font-size:clamp(12px,.85vw,16px);line-height:1.75}
#idb-literacy .fl-lesson-section ul{padding-right:1.2em;list-style:disc;margin-top:1vw}
#idb-literacy .fl-lesson-section p+p{margin-top:1.3vw}
#idb-literacy .fl-lesson-callout{padding:1.8vw 2.2vw;background:#f0f6e9;margin-block:2vw;color:#1b1b1b}
#idb-literacy .fl-lesson-callout strong{display:block;color:#4b8c12;margin-bottom:.6vw}
#idb-literacy .fl-lesson-summary{background:#f8f8f8;padding:2.2vw 3.2vw;margin-top:2vw}
#idb-literacy .fl-lesson-summary h2{font-size:clamp(22px,1.45vw,28px);color:var(--fl-red);margin-bottom:2vw}
#idb-literacy .fl-lesson-summary li{display:flex;gap:1.2vw;align-items:baseline;font-size:clamp(12px,.9vw,17px);margin-top:1.3vw}
#idb-literacy .fl-lesson-test{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--fl-line);padding:2.5vw 3vw;margin-top:2.3vw}
#idb-literacy .fl-lesson-test h2{font-size:clamp(24px,1.6vw,31px)}
#idb-literacy .fl-lesson-test p{font-size:clamp(11px,.82vw,16px)}
#idb-literacy .fl-lesson-bottom{display:flex;gap:1.4vw;margin-top:3vw}
#idb-literacy .fl-quiz-page-content{position:relative;padding-top:4.7vw;padding-bottom:3vw;min-height:calc(100vh - 80px)}
#idb-literacy .fl-quiz-page-content .fl-content-close{top:1.5vw}
#idb-literacy .fl-quiz-heading h1{font-size:clamp(26px,1.75vw,34px)}
#idb-literacy .fl-quiz-heading p{font-size:clamp(11px,.82vw,16px)}
#idb-literacy .fl-quiz-steps{display:flex;gap:2vw;margin-top:1.7vw}
#idb-literacy .fl-quiz-steps span{display:block;flex:1;height:6px;background:#f1f1f1}
#idb-literacy .fl-quiz-steps span.active,#idb-literacy .fl-quiz-steps span.done{background:var(--fl-red)}
#idb-literacy .fl-question-count{font-size:clamp(11px,.77vw,15px);color:var(--fl-red);margin-top:.6vw}
#idb-literacy .fl-quiz-form{width:61.4%;margin:3.5vw auto 0}
#idb-literacy .fl-quiz-form fieldset{padding:0;margin:0;border:0;min-width:0}
#idb-literacy .fl-quiz-form legend{width:100%;text-align:right;font-size:clamp(23px,1.85vw,36px);font-weight:700;margin-bottom:2vw;line-height:1.6}
#idb-literacy .fl-question-label{display:block;font-size:clamp(12px,.85vw,16px);color:var(--fl-red);font-weight:400}
#idb-literacy .fl-answer-options{display:flex;flex-direction:column;gap:1.15vw}
#idb-literacy .fl-answer-option{display:flex;gap:1.7vw;align-items:center;min-height:4.2vw;padding:1.1vw 1.8vw;border:1px solid #d8d8d8;color:#969696;font-size:clamp(16px,1.2vw,23px);cursor:pointer;line-height:1.5}
#idb-literacy .fl-answer-option input{appearance:none;-webkit-appearance:none;border:1px solid #c8c8c8;width:1.1em;height:1.1em;border-radius:50%;flex-shrink:0;margin:0;display:grid;place-items:center}
#idb-literacy .fl-answer-option input:checked{background:var(--fl-red);border-color:var(--fl-red)}
#idb-literacy .fl-answer-option input:checked:after{content:'';width:4px;height:4px;background:#fff;border-radius:50%}
#idb-literacy .fl-answer-option:has(input:checked){border-color:var(--fl-red);color:var(--fl-red)}
#idb-literacy .fl-quiz-actions{margin-top:2.1vw;display:flex;justify-content:flex-end;gap:1vw}
#idb-literacy .fl-quiz-actions:has(#quiz-back:not([hidden])){justify-content:space-between}
#idb-literacy .fl-result-section{padding-top:6vw;padding-bottom:6.2vw}
#idb-literacy .fl-result-card{width:61.4%;margin-inline:auto;border:1px solid #ddd;text-align:center}
#idb-literacy .fl-result-head{padding:3.6vw 2vw 1.4vw;border-bottom:1px solid var(--fl-line)}
#idb-literacy .fl-score-badge{width:7vw;height:7vw;min-width:85px;min-height:85px;margin:0 auto 1.5vw;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:50%;font:700 clamp(23px,1.7vw,33px)/1.3 'ProximaNovaRegular',Arial,sans-serif;gap:.3em;direction:ltr}
#idb-literacy .fl-score-badge.failed{background:var(--fl-red);color:#fff}
#idb-literacy .fl-score-badge.passed{background:#eaf7ef;color:#00ad25}
#idb-literacy .fl-score-badge .fl-icon{width:1em;height:1em;stroke-width:3}
#idb-literacy .fl-result-head h1{color:var(--fl-red);font-size:clamp(23px,1.7vw,33px);line-height:1.4}
#idb-literacy .fl-result-head p{font-size:clamp(14px,1.13vw,22px);margin-top:.3em}
#idb-literacy .fl-result-body{padding:2.8vw 3.2vw 2.4vw}
#idb-literacy .fl-result-body h2{font-size:clamp(19px,1.26vw,24px);line-height:1.6}
#idb-literacy .fl-result-body>p{font-size:clamp(17px,1.23vw,24px);margin-top:.3em}
#idb-literacy .fl-result-actions{display:flex;gap:1.7vw;justify-content:center;margin-top:3.3vw}
#idb-literacy .fl-result-complete .fl-result-head{padding-top:3.7vw}
#idb-literacy .fl-result-complete .fl-result-body{padding:2.8vw 3.2vw 2.2vw}
#idb-literacy .fl-completion-bar{height:8px;border-radius:5px;background:var(--fl-red);width:72%;margin:1.4vw auto 2vw}
#idb-literacy .fl-certificate{display:flex;direction:rtl;position:relative;border:1px solid #e5e5e5;background:white;aspect-ratio:1.415;overflow:hidden;text-align:center;color:#222;margin-top:2.8vw;font-size:clamp(7px,.58vw,11px)}
#idb-literacy .fl-certificate-main{flex:1;min-width:0;padding:1.5vw 1vw .7vw;position:relative;display:flex;flex-direction:column;justify-content:space-between}
#idb-literacy .fl-certificate-main:before,#idb-literacy .fl-certificate-main:after{position:absolute;content:'';height:3px;width:40%;background:var(--fl-red);right:0}
#idb-literacy .fl-certificate-main:before{top:0}
#idb-literacy .fl-certificate-main:after{bottom:0}
#idb-literacy .fl-certificate-brand{width:23%;align-self:flex-start}
#idb-literacy .fl-certificate-brand p{font-size:.75em;line-height:1.4;margin-top:.8em}
#idb-literacy .fl-certificate-brand b{color:var(--fl-red)}
#idb-literacy .fl-certificate-copy{margin-top:.2em}
#idb-literacy .fl-certificate-copy>p{font-size:1em;color:#8a8b92;line-height:1.5}
#idb-literacy .fl-certificate-copy h2{font-size:clamp(17px,1.6vw,31px);color:var(--fl-red);margin-top:.6em}
#idb-literacy .fl-certificate-en{font:400 .8em 'ProximaNovaRegular',Arial;letter-spacing:2px;padding-bottom:1em;display:block}
#idb-literacy .fl-certificate-copy h3{font:700 clamp(18px,1.5vw,29px)/1.4 'ProximaNovaBold','GumelaArabicreg',sans-serif;margin:.9em 0 .2em}
#idb-literacy .fl-certificate-course{background:#f7f1f3;display:flex;flex-direction:column;margin-top:1.2em;padding:1em}
#idb-literacy .fl-certificate-course small{color:#999}
#idb-literacy .fl-certificate-course strong{font-size:1.2em;margin-top:.4em}
#idb-literacy .fl-certificate-facts{display:flex;justify-content:space-around;padding:1em;background:#fcf9fa}
#idb-literacy .fl-certificate-facts span{font-size:.8em;color:#777}
#idb-literacy .fl-certificate-facts b{color:#222;font-size:1.1em}
#idb-literacy .fl-certificate-ribbon{width:23%;margin:1.5vw 1.2vw 1.5vw 1.4vw;padding:2.2vw 1vw 1vw;background:#24222f;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:space-between;font-family:Gumela,Arial,sans-serif;position:relative}
#idb-literacy .fl-certificate-ribbon h4{font-size:1em}
#idb-literacy .fl-certificate-ribbon>span{font:400 .65em Proxima;letter-spacing:1px}
#idb-literacy .fl-certificate-ribbon hr{width:100%;border:0;border-top:1px solid #ffffff20}
#idb-literacy .fl-certificate-ribbon>b{font:400 .6em Proxima;letter-spacing:1px;max-width:100%;overflow-wrap:anywhere}
#idb-literacy .fl-certificate-ribbon>strong{font:400 1.8em Proxima;letter-spacing:1px;margin-block:1em}
#idb-literacy .fl-certificate-symbol{background:white;color:#24222f;padding:.7em}
#idb-literacy .fl-certificate-symbol .fl-icon{width:3.5em;height:3.5em}
#idb-literacy .fl-certificate-note{font-size:.75em;margin-top:1em;color:#888}
#idb-literacy .fl-certificate-actions{width:61.4%;margin:1.4vw auto 0;display:flex;gap:1vw;flex-wrap:wrap;justify-content:center}
#idb-literacy .fl-digither-page{background:var(--fl-cream);--fl-red:#ff0065}
#idb-literacy .fl-digither-page h1,#idb-literacy .fl-digither-page h2{color:var(--fl-purple)}
#idb-literacy .fl-digither-page .fl-eyebrow{color:#fa6258}
#idb-literacy .fl-digither-intro{display:grid;grid-template-columns:1.36fr 1fr;gap:5.7vw;padding-top:1.8vw;padding-bottom:7.4vw}
#idb-literacy .fl-digither-copy{padding-top:.8vw}
#idb-literacy .fl-digither-copy>.fl-eyebrow{margin-bottom:.7vw}
#idb-literacy .fl-digither-copy .fl-digither-logo{width:21vw;max-width:410px}
#idb-literacy .fl-digither-copy h1{font-size:clamp(32px,2.7vw,52px);line-height:1.4;margin:1.8vw 0 1.7vw}
#idb-literacy .fl-digither-copy>p:not(.fl-eyebrow){font-size:clamp(12px,.84vw,16px);max-width:660px;margin-left:0;margin-right:auto}
#idb-literacy .fl-mosul-photo{height:41vw;object-fit:cover}
#idb-literacy .fl-digither-intro .fl-stats{margin-top:7vw}
#idb-literacy .fl-digither-intro .fl-stats>div{min-height:6.5vw;align-items:center;background:#fff;padding:1.2vw}
#idb-literacy .fl-digither-about{display:grid;grid-template-columns:1fr 23%;gap:12vw;background:#fff9;padding:3.7vw 4vw;align-items:center}
#idb-literacy .fl-digither-about h2{font-size:clamp(30px,2.6vw,50px);width:fit-content;min-width:55%;margin-right:auto;margin-bottom:1.7vw}
#idb-literacy .fl-digither-about p{font-size:clamp(12px,.86vw,16px)}
#idb-literacy .fl-digither-numbers{display:flex;flex-direction:column;gap:2vw}
#idb-literacy .fl-digither-numbers>div{padding-bottom:2.2vw;border-bottom:1px solid #ded9d3;display:flex;flex-direction:column}
#idb-literacy .fl-digither-numbers>div:last-child{padding-bottom:0;border:0}
#idb-literacy .fl-digither-numbers b{font-size:clamp(28px,2.5vw,48px);color:#ff0065;font-family:'ProximaNovaBold','GumelaArabicreg',sans-serif;line-height:1.4}
#idb-literacy .fl-digither-numbers span{font-size:clamp(12px,.83vw,16px)}
#idb-literacy .fl-digither-page .fl-section-heading{min-width:45%}
#idb-literacy .fl-digither-page .fl-section-heading h2{font-size:clamp(28px,2.5vw,48px)}
#idb-literacy .fl-digither-page .fl-section-intro{max-width:730px;margin-bottom:3.3vw}
#idb-literacy .fl-wide-video{aspect-ratio:2.32;height:auto}
#idb-literacy .fl-wide-video>img{height:100%}
#idb-literacy .fl-digither-page .fl-feature-card{background:#f1eae3}
#idb-literacy .fl-digither-page .fl-feature-card>.fl-icon{color:#d9c8cd}
#idb-literacy .fl-digither-page .fl-feature-grid{margin-top:2vw}
#idb-literacy .fl-digither-timeline{background:var(--fl-plum);color:#fff;padding-block:5.5vw}
#idb-literacy .fl-digither-timeline h2{font-size:clamp(19px,1.5vw,29px);color:#fff!important;margin-bottom:3.5vw}
#idb-literacy .fl-timeline-track{display:grid;grid-template-columns:repeat(4,1fr);gap:5vw;position:relative}
#idb-literacy .fl-timeline-track:before{content:'';height:1px;background:#b5628a;position:absolute;inset-inline:0;top:50%}
#idb-literacy .fl-timeline-track article{padding:1.8vw 1.7vw;background:#48364f;position:relative}
#idb-literacy .fl-timeline-track small{color:#fc866b;font-size:clamp(12px,.85vw,16px)}
#idb-literacy .fl-timeline-track h3{font-size:clamp(18px,1.5vw,29px);margin-top:.8vw}
#idb-literacy .fl-timeline-track p{font-size:clamp(12px,.87vw,17px)}
#idb-literacy .fl-digither-timeline .fl-scroll-rule{background:#74657a;margin-top:4vw}
#idb-literacy .fl-digither-timeline .fl-scroll-rule:after{background:#fff}
#idb-literacy .fl-digither-split{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:5.7vw}
#idb-literacy .fl-digither-split>img{height:auto;aspect-ratio:1.4;object-fit:cover}
#idb-literacy .fl-digither-split .fl-section-heading{min-width:60%;margin-bottom:2.1vw}
#idb-literacy .fl-digither-split p:not(.fl-eyebrow){font-size:clamp(12px,.86vw,16px)}
#idb-literacy .fl-gallery-section{background:#fff9}
#idb-literacy .fl-gallery-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.7vw}
#idb-literacy .fl-gallery-track button{padding:0;overflow:hidden}
#idb-literacy .fl-gallery-track img{aspect-ratio:1.4;object-fit:cover;transition:transform .3s}
#idb-literacy .fl-gallery-track button:hover img{transform:scale(1.04)}
#idb-literacy .fl-voices-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2.3vw}
#idb-literacy .fl-voices-grid .fl-video-poster{aspect-ratio:.72}
#idb-literacy .fl-voices-grid .fl-video-poster>img{height:100%;object-fit:cover}
#idb-literacy .fl-testimonial-section{background:#fff8}
#idb-literacy .fl-testimonial-section .fl-video-poster{aspect-ratio:1.4}
#idb-literacy .fl-digither-quote{background:var(--fl-plum);color:#fff;text-align:center}
#idb-literacy .fl-digither-quote blockquote{font-size:clamp(27px,2.6vw,50px);font-weight:700;line-height:1.5;width:85%;max-width:1400px;margin:auto}
#idb-literacy .fl-digither-quote p{font-size:clamp(12px,.86vw,16px);color:#fa6d58;margin-top:3vw}
#idb-literacy .fl-about-grid{display:grid;grid-template-columns:1fr 1fr;gap:4.4vw 5.9vw;padding-top:3.4vw;padding-bottom:6vw}
#idb-literacy .fl-about-grid article{padding-bottom:5.5vw;border-bottom:1px solid #ccc}
#idb-literacy .fl-about-grid article:nth-last-child(-n+2){border:0;padding-bottom:0}
#idb-literacy .fl-about-grid h2{color:var(--fl-red);font-size:clamp(26px,1.8vw,35px);margin-bottom:.4vw;font-weight:400}
#idb-literacy .fl-about-grid p{font-size:clamp(13px,.92vw,18px);line-height:1.7}
#idb-literacy .fl-profile-page-content{padding-top:2.2vw;padding-bottom:2vw}
#idb-literacy .fl-profile-header{display:flex;gap:1.4vw;align-items:center;justify-content:flex-start;margin-bottom:2.6vw}
#idb-literacy .fl-profile-header h1{font:700 clamp(30px,2.5vw,48px)/1.2 'ProximaNovaBold','GumelaArabicreg',sans-serif}
#idb-literacy .fl-profile-header p{font:700 clamp(14px,1.1vw,21px)/1.5 'ProximaNovaRegular',Arial,sans-serif;margin-top:.3em}
#idb-literacy .fl-avatar{width:5vw;height:5vw;min-width:62px;min-height:62px;border-radius:50%;background:#ffe0e6;color:var(--fl-red);display:grid;place-items:center}
#idb-literacy .fl-avatar .fl-icon{width:1.5em;height:1.5em}
#idb-literacy .fl-profile-tabs{display:flex;align-items:center;gap:2vw;border-bottom:1px solid #ccc;min-height:3.5vw;margin-bottom:3.5vw}
#idb-literacy .fl-profile-tabs a{font-size:clamp(14px,1.1vw,21px);padding:.6em 0;display:flex;align-items:center;gap:.4em;white-space:nowrap;border-bottom:2px solid transparent;margin-bottom:-1px}
#idb-literacy .fl-profile-tabs a.active{color:var(--fl-red);border-color:var(--fl-red)}
#idb-literacy .fl-profile-tabs .fl-icon{width:1em;height:1em}
#idb-literacy .fl-logout-button{margin-right:auto;min-height:32px;padding:.4em 1.5em;font-weight:400}
#idb-literacy .fl-dashboard{padding:3.9vw 4.8vw;display:grid;grid-template-columns:1fr 1fr;gap:4vw;align-items:center;background:#f5f5f5;scroll-margin-top:30px}
#idb-literacy .fl-dashboard>div>p{font-size:clamp(12px,.85vw,16px)}
#idb-literacy .fl-dashboard h2{font-size:clamp(32px,2.8vw,54px);border-bottom:2px solid var(--fl-red);padding-bottom:.5vw;margin-bottom:1vw}
#idb-literacy .fl-dashboard h3{font-size:clamp(21px,1.6vw,31px)}
#idb-literacy .fl-dashboard-stats{display:flex;gap:6vw;justify-content:space-between;align-items:center;text-align:center;padding-top:2.8vw}
#idb-literacy .fl-dashboard-stats>div{display:flex;flex-direction:column;align-items:center}
#idb-literacy .fl-dashboard-stats b{font:700 clamp(31px,2.5vw,48px)/1.3 'ProximaNovaBold','GumelaArabicreg',sans-serif;color:var(--fl-red)}
#idb-literacy .fl-dashboard-stats span{font-size:clamp(12px,.85vw,16px);white-space:nowrap}
#idb-literacy .fl-profile-section{padding-top:3.1vw;scroll-margin-top:40px}
#idb-literacy .fl-profile-section>h2{color:var(--fl-red);font-size:clamp(28px,1.95vw,38px);margin-bottom:1.4vw;font-weight:400}
#idb-literacy .fl-profile-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2vw}
#idb-literacy .fl-profile-fields .fl-field{margin-bottom:1vw}
#idb-literacy .fl-profile-fields .fl-input-wrap input{font-size:clamp(13px,.9vw,17px)}
#idb-literacy .fl-profile-fields .fl-field:nth-child(5){grid-column:1;grid-row:2}
#idb-literacy .fl-enrolled-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.2vw}
#idb-literacy .fl-enrolled-card{border:1px solid #ccc;padding:2.5vw 2.2vw 1.7vw;display:flex;flex-direction:column;align-items:flex-start;min-width:0}
#idb-literacy .fl-enrolled-card h3{font-size:clamp(18px,1.3vw,25px);margin-bottom:3.3vw}
#idb-literacy .fl-enrolled-card p{font-size:clamp(11px,.8vw,15px)}
#idb-literacy .fl-enrolled-card progress{height:6px;margin-block:.4vw}
#idb-literacy .fl-enrolled-card small{font-size:clamp(10px,.7vw,14px)}
#idb-literacy .fl-profile-section .fl-section-end{margin-top:1.7vw}
#idb-literacy .fl-empty-certificates{background:#f6f6f6;min-height:16.4vw;display:grid;place-items:center;padding:30px;font-size:clamp(13px,.93vw,18px)}
#idb-literacy .fl-profile-section table{border-collapse:collapse;width:100%;font-size:clamp(11px,.82vw,16px);table-layout:fixed;text-align:right}
#idb-literacy .fl-profile-section th{font-weight:400;padding:.9vw 1.7vw;font-size:clamp(10px,.74vw,14px)}
#idb-literacy .fl-profile-section td{background:#f5f5f5;padding:1.3vw 1.7vw}
#idb-literacy .fl-profile-section td:not(:first-child),#idb-literacy .fl-profile-section th:not(:first-child){text-align:center}
#idb-literacy .fl-profile-section td a{color:var(--fl-red)}
#idb-literacy.fl-profile-page #exam-results{padding-top:5.1vw}
#idb-literacy .fl-earned-certificate{border:1px solid #ddd;max-width:26.2%;min-width:270px;padding:1.6vw 1.8vw 0;text-align:right}
#idb-literacy .fl-earned-certificate>p{font-size:clamp(11px,.82vw,16px)}
#idb-literacy .fl-earned-certificate h3{font-size:clamp(18px,1.35vw,26px);margin-top:1.4vw}
#idb-literacy .fl-earned-certificate small{display:block;font:400 clamp(11px,.8vw,15px) Proxima;text-align:right;margin-top:.3em}
#idb-literacy .fl-earned-certificate .fl-share-row{justify-content:flex-start;margin-block:1.7vw 0;border-bottom:0;padding-block:1.2vw}
#idb-literacy .fl-states-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:40px}
#idb-literacy .fl-state-card{border:1px solid #ddd;padding:24px;position:relative;display:block;background:#fafafa}
#idb-literacy .fl-state-card:hover{border-color:var(--fl-red)}
#idb-literacy .fl-state-card>span{display:block;font:700 30px Proxima;color:var(--fl-red)}
#idb-literacy .fl-state-card h2{font-size:22px;margin-block:12px}
#idb-literacy .fl-state-card small{font:400 14px Proxima}
#idb-literacy .fl-state-card>.fl-icon{position:absolute;bottom:24px;left:24px}
#idb-literacy .fl-site-dialog{border:0;padding:44px 36px 36px;box-shadow:0 10px 80px #0004;width:min(650px,calc(100% - 32px));max-height:85vh;overflow:auto;color:#111;background:white}
#idb-literacy .fl-site-dialog::backdrop{background:#0009}
#idb-literacy .fl-site-dialog .fl-dialog-close{position:absolute;left:9px;top:8px}
#idb-literacy .fl-site-dialog h2{font-size:26px;margin-bottom:20px}
#idb-literacy .fl-site-dialog p{margin-bottom:16px}
#idb-literacy .fl-site-dialog img{max-height:65vh;object-fit:contain}
#idb-literacy .fl-site-dialog .fl-field{margin-top:20px}
#idb-literacy .fl-toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:#111;color:#fff;max-width:calc(100% - 32px);padding:12px 22px;text-align:center;box-shadow:0 4px 20px #0003;opacity:0;visibility:hidden;z-index:200;transition:.2s}
#idb-literacy .fl-toast.visible{opacity:1;visibility:visible;transform:translate(-50%,0)}
@media(min-width:1921px){#idb-literacy .fl-home-visual,#idb-literacy .fl-mosul-photo{height:787px;min-height:0}
#idb-literacy .fl-home-intro,#idb-literacy .fl-digither-intro{gap:110px}
#idb-literacy .fl-section-heading .fl-eyebrow{margin-bottom:14px}
#idb-literacy .fl-eyebrow{margin-bottom:34px}
#idb-literacy .fl-section-intro{margin-block:34px 54px}
#idb-literacy .fl-course-card-body{padding:34px 44px}
#idb-literacy .fl-course-card p{margin-bottom:50px}
#idb-literacy .fl-feature-card{min-height:375px;padding:52px 38px}
#idb-literacy .fl-stats>div{min-height:184px}
#idb-literacy .fl-auth-body{padding:27px 62px 33px}
#idb-literacy .fl-auth-section{padding-block:67px}
#idb-literacy .fl-result-section{padding-block:115px}
#idb-literacy .fl-result-head{padding:69px 38px 27px}
#idb-literacy .fl-result-body{padding:54px 61px 46px}
#idb-literacy .fl-result-card,#idb-literacy .fl-certificate-actions{max-width:1045px}
#idb-literacy .fl-score-badge{width:134px;height:134px}}
@media(max-width:1180px){#idb-literacy .fl-course-card-body{padding:20px}
#idb-literacy .fl-course-card h3{font-size:18px}
#idb-literacy .fl-course-meta{gap:16px;font-size:11px}
#idb-literacy .fl-profile-tabs{gap:16px}
#idb-literacy .fl-profile-tabs a{font-size:13px}
#idb-literacy .fl-enrolled-card h3{font-size:17px}
#idb-literacy .fl-quiz-form{width:68%}}
@media(max-width:900px){#idb-literacy .fl-hero-content h1{font-size:34px}
#idb-literacy .fl-wide-hero{height:390px}
#idb-literacy .fl-hero-content{bottom:30px}
#idb-literacy .fl-hero-content>p:last-child{font-size:13px;line-height:1.8}
#idb-literacy .fl-courses-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
#idb-literacy .fl-course-card-body .fl-tags{margin-bottom:20px}
#idb-literacy .fl-course-card h3{font-size:21px}
#idb-literacy .fl-course-card p{font-size:13px;margin-bottom:25px}
#idb-literacy .fl-course-meta{padding-top:15px;margin-bottom:16px;gap:24px}
#idb-literacy .fl-course-card-body{padding:24px}
#idb-literacy .fl-course-search{margin-top:10px}
#idb-literacy .fl-filter-bar{margin-block:18px 24px}
#idb-literacy .fl-home-intro{gap:30px;padding-top:25px;grid-template-columns:1.2fr 1fr}
#idb-literacy .fl-home-copy h1{font-size:30px}
#idb-literacy .fl-home-copy>.fl-eyebrow{margin-bottom:25px;font-size:10px}
#idb-literacy .fl-intro-description{font-size:12px}
#idb-literacy .fl-home-visual{min-height:430px}
#idb-literacy .fl-home-visual h2{font-size:21px}
#idb-literacy .fl-home-visual p{font-size:11px}
#idb-literacy .fl-stats{gap:10px}
#idb-literacy .fl-stats>div{padding:20px 12px;min-height:92px}
#idb-literacy .fl-stats b{font-size:27px}
#idb-literacy .fl-stats span{font-size:10px}
#idb-literacy .fl-section-heading{min-width:52%}
#idb-literacy .fl-section-heading h2{font-size:31px}
#idb-literacy .fl-section-heading .fl-eyebrow{font-size:12px}
#idb-literacy .fl-section-intro{font-size:13px;margin-block:20px 28px}
#idb-literacy .fl-article-card h3{font-size:17px}
#idb-literacy .fl-article-card>p:not(.fl-article-date){font-size:12px}
#idb-literacy .fl-feature-grid{grid-template-columns:repeat(2,1fr);gap:18px}
#idb-literacy .fl-feature-card{min-height:230px;padding:26px}
#idb-literacy .fl-feature-card h3{font-size:24px}
#idb-literacy .fl-feature-card p{font-size:13px}
#idb-literacy .fl-feature-card>.fl-icon{width:56px;height:56px;margin-bottom:16px}
#idb-literacy .fl-national-section .fl-section-heading{min-width:75%}
#idb-literacy .fl-national-section .fl-stats{grid-template-columns:repeat(4,1fr)}
#idb-literacy .fl-national-section .fl-stats>div{padding:20px 10px}
#idb-literacy .fl-home-digither{grid-template-columns:1fr 1fr}
#idb-literacy .fl-digither-teaser{padding:24px}
#idb-literacy .fl-digither-teaser .fl-digither-logo{width:180px}
#idb-literacy .fl-digither-teaser h2{font-size:27px}
#idb-literacy .fl-video-poster{min-height:230px}
#idb-literacy .fl-video-caption{font-size:11px}
#idb-literacy .fl-course-detail{grid-template-columns:27% 66%;gap:30px}
#idb-literacy .fl-course-detail-main h1{font-size:32px}
#idb-literacy .fl-detail-meta{gap:12px;font-size:10px}
#idb-literacy .fl-learning-outcomes ul{grid-template-columns:1fr;gap:16px}
#idb-literacy .fl-curriculum li{padding:18px;gap:12px;flex-wrap:wrap}
#idb-literacy .fl-curriculum li>.fl-lesson-number{align-self:flex-start}
#idb-literacy .fl-curriculum li>div{flex:1}
#idb-literacy .fl-course-sidebar>img{aspect-ratio:1.3}
#idb-literacy .fl-sidebar-info dl{font-size:12px}
#idb-literacy .fl-sidebar-info dl>div{padding:6px 0}
#idb-literacy .fl-course-progress{padding:16px}
#idb-literacy .fl-course-progress>p{margin-top:10px}
#idb-literacy .fl-lesson-layout{grid-template-columns:24% 70%;gap:25px}
#idb-literacy .fl-lesson-sidebar{font-size:12px}
#idb-literacy .fl-sidebar-panel h2{font-size:14px;padding:14px 12px}
#idb-literacy .fl-lesson-side-row{padding:12px;gap:9px;align-items:start}
#idb-literacy .fl-lesson-side-row small{font-size:10px;margin-top:8px}
#idb-literacy .fl-contents-panel h3{font-size:13px;padding-inline:12px}
#idb-literacy .fl-contents-panel>small{padding-inline:12px}
#idb-literacy .fl-contents-panel nav a{font-size:12px;padding:10px 12px}
#idb-literacy .fl-lesson-title h1{font-size:28px}
#idb-literacy .fl-lesson-section h2{font-size:22px;line-height:1.6;margin-bottom:12px}
#idb-literacy .fl-lesson-section p,#idb-literacy .fl-lesson-section ul{font-size:13px}
#idb-literacy .fl-lesson-section{margin-bottom:38px}
#idb-literacy .fl-lesson-summary{padding:24px}
#idb-literacy .fl-lesson-summary li{margin-top:16px}
#idb-literacy .fl-lesson-test{padding:20px;flex-direction:column;align-items:flex-start}
#idb-literacy .fl-result-card{width:75%}
#idb-literacy .fl-result-head{padding:35px 22px 20px}
#idb-literacy .fl-result-head h1{font-size:24px}
#idb-literacy .fl-result-head p{font-size:14px}
#idb-literacy .fl-result-body{padding:28px}
#idb-literacy .fl-result-actions{margin-top:28px;gap:14px}
#idb-literacy .fl-score-badge{margin-bottom:20px}
#idb-literacy .fl-result-section{padding-block:60px 65px}
#idb-literacy .fl-certificate-actions{width:75%;gap:10px;margin-top:16px}
#idb-literacy .fl-result-complete .fl-result-head{padding-top:36px}
#idb-literacy .fl-result-complete .fl-result-body{padding:28px}
#idb-literacy .fl-certificate{font-size:8px}
#idb-literacy .fl-certificate-brand{width:25%}
#idb-literacy .fl-certificate-main{padding:14px 8px 8px}
#idb-literacy .fl-certificate-copy h2{font-size:21px}
#idb-literacy .fl-certificate-copy h3{font-size:20px}
#idb-literacy .fl-certificate-ribbon{padding:20px 8px 10px;margin:13px 11px}
#idb-literacy .fl-certificate-ribbon>strong{font-size:14px}
#idb-literacy .fl-certificate-copy p{font-size:8px}
#idb-literacy .fl-digither-intro{gap:30px}
#idb-literacy .fl-digither-copy h1{font-size:30px}
#idb-literacy .fl-digither-copy>.fl-digither-logo{width:200px}
#idb-literacy .fl-digither-copy .fl-stats{margin-top:35px}
#idb-literacy .fl-mosul-photo{height:470px}
#idb-literacy .fl-digither-about{padding:30px;gap:40px;grid-template-columns:1fr 24%}
#idb-literacy .fl-digither-numbers b{font-size:29px}
#idb-literacy .fl-digither-numbers>div{padding-bottom:20px}
#idb-literacy .fl-digither-numbers{gap:20px}
#idb-literacy .fl-digither-page .fl-section-heading{min-width:60%}
#idb-literacy .fl-digither-page .fl-section-heading h2{font-size:30px}
#idb-literacy .fl-timeline-track{gap:18px;grid-template-columns:repeat(2,1fr)}
#idb-literacy .fl-timeline-track:before{display:none}
#idb-literacy .fl-timeline-track article{padding:24px}
#idb-literacy .fl-digither-split{gap:30px}
#idb-literacy .fl-voices-grid{gap:16px}
#idb-literacy .fl-voices-grid .fl-video-poster{min-height:0}
#idb-literacy .fl-digither-quote blockquote{font-size:30px}
#idb-literacy .fl-about-grid{gap:35px}
#idb-literacy .fl-about-grid h2{font-size:29px}
#idb-literacy .fl-about-grid p{font-size:13px}
#idb-literacy .fl-profile-tabs{overflow-x:auto;gap:18px;padding-bottom:8px}
#idb-literacy .fl-profile-tabs a{font-size:14px}
#idb-literacy .fl-profile-header{gap:16px;margin-bottom:25px}
#idb-literacy .fl-profile-header h1{font-size:32px}
#idb-literacy .fl-profile-header p{font-size:14px}
#idb-literacy .fl-dashboard{padding:32px;gap:30px}
#idb-literacy .fl-dashboard h2{font-size:31px;padding-bottom:12px;margin-bottom:12px}
#idb-literacy .fl-dashboard h3{font-size:20px}
#idb-literacy .fl-dashboard-stats{gap:20px}
#idb-literacy .fl-dashboard-stats b{font-size:30px}
#idb-literacy .fl-dashboard-stats span{font-size:11px}
#idb-literacy .fl-profile-section{padding-top:35px}
#idb-literacy .fl-profile-section>h2{font-size:28px;margin-bottom:18px}
#idb-literacy .fl-profile-fields{grid-template-columns:repeat(2,1fr);gap:20px}
#idb-literacy .fl-profile-fields .fl-field:nth-child(5){grid-row:auto}
#idb-literacy .fl-enrolled-track{display:flex;overflow-x:auto;gap:16px;padding-bottom:5px;scroll-snap-type:x mandatory}
#idb-literacy .fl-enrolled-card{min-width:250px;padding:28px;scroll-snap-align:start}
#idb-literacy .fl-enrolled-card h3{font-size:21px;margin-bottom:35px}
#idb-literacy .fl-enrolled-card p{font-size:12px}
#idb-literacy .fl-enrolled-card small{font-size:11px}
#idb-literacy .fl-earned-certificate{max-width:45%;padding:20px 24px 0}
#idb-literacy .fl-earned-certificate .fl-share-row{margin-top:20px;padding-block:16px;gap:22px}
#idb-literacy .fl-empty-certificates{min-height:180px}
#idb-literacy .fl-profile-section table{font-size:12px;min-width:600px}
#idb-literacy .fl-profile-section th{font-size:12px;padding:12px 15px}
#idb-literacy .fl-profile-section td{padding:18px 15px}}
@media(max-width:600px){#idb-literacy .fl-section-space{padding-block:42px}
#idb-literacy .fl-section-heading{min-width:0;width:100%}
#idb-literacy .fl-section-heading h2{font-size:28px}
#idb-literacy .fl-eyebrow{margin-bottom:14px}
#idb-literacy .fl-section-title-row{align-items:center;margin-bottom:24px;gap:16px}
#idb-literacy .fl-section-title-row .fl-section-heading{width:auto}
#idb-literacy .fl-section-intro{font-size:13px;margin-block:18px 24px}
#idb-literacy .fl-home-intro{display:flex;flex-direction:column;gap:28px;padding-top:28px}
#idb-literacy .fl-home-copy>.fl-eyebrow{margin-bottom:22px;font-size:11px}
#idb-literacy .fl-home-copy h1{font-size:32px;line-height:1.65;margin-bottom:18px}
#idb-literacy .fl-home-copy h1 span{padding-top:7px}
#idb-literacy .fl-intro-description{font-size:14px;line-height:1.8}
#idb-literacy .fl-stats{margin-top:24px;gap:10px}
#idb-literacy .fl-stats>div{padding:17px 9px;min-height:95px;align-items:center}
#idb-literacy .fl-stats b{font-size:29px}
#idb-literacy .fl-stats span{font-size:10px;text-align:center}
#idb-literacy .fl-hero-actions{margin-top:24px;gap:12px}
#idb-literacy .fl-home-visual{height:390px;min-height:390px}
#idb-literacy .fl-home-visual>img{object-position:center 25%}
#idb-literacy .fl-home-visual figcaption{right:25px;left:25px;bottom:22px}
#idb-literacy .fl-home-visual h2{font-size:27px}
#idb-literacy .fl-home-visual p{font-size:13px}
#idb-literacy .fl-slider-dots{margin-top:20px;gap:12px}
#idb-literacy .fl-article-grid{grid-template-columns:1fr;gap:34px}
#idb-literacy .fl-article-card .fl-article-date{font-size:11px;margin-top:12px}
#idb-literacy .fl-article-card h3{font-size:18px;margin-top:9px}
#idb-literacy .fl-article-card>p:not(.fl-article-date){font-size:12px}
#idb-literacy.fl-home-page #articles{padding-bottom:42px}
#idb-literacy .fl-method-section .fl-section-heading{width:100%}
#idb-literacy .fl-feature-grid{grid-template-columns:1fr 1fr;gap:12px;margin-top:26px}
#idb-literacy .fl-feature-card{padding:22px 16px;min-height:260px}
#idb-literacy .fl-feature-card>.fl-icon{width:44px;height:44px;margin-bottom:15px}
#idb-literacy .fl-feature-card h3{font-size:19px}
#idb-literacy .fl-feature-card p{font-size:12px;line-height:1.65}
#idb-literacy .fl-courses-grid{grid-template-columns:1fr;gap:22px}
#idb-literacy .fl-course-card h3{font-size:23px}
#idb-literacy .fl-course-card p{font-size:14px;line-height:1.8;margin-top:8px}
#idb-literacy .fl-course-card-body{padding:24px}
#idb-literacy .fl-course-card .fl-tags{gap:12px;margin-bottom:22px}
#idb-literacy .fl-tag{font-size:11px;padding:4px 15px}
#idb-literacy .fl-course-meta{font-size:12px;gap:30px;margin-top:auto;margin-bottom:18px}
#idb-literacy .fl-card-actions{gap:12px}
#idb-literacy .fl-section-end{margin-top:24px}
#idb-literacy .fl-national-section .fl-section-heading{min-width:0}
#idb-literacy .fl-national-section .fl-stats{grid-template-columns:1fr 1fr;margin-top:28px;gap:12px}
#idb-literacy .fl-national-section .fl-stats span{font-size:12px}
#idb-literacy .fl-national-section .fl-stats>div{min-height:120px}
#idb-literacy .fl-national-section .fl-stats b{font-size:33px}
#idb-literacy .fl-home-digither{display:flex;flex-direction:column;gap:0}
#idb-literacy .fl-digither-teaser{padding:30px 24px}
#idb-literacy .fl-digither-teaser .fl-eyebrow{font-size:11px;margin-bottom:20px}
#idb-literacy .fl-digither-teaser h2{font-size:29px;margin-top:24px}
#idb-literacy .fl-digither-teaser p:not(.fl-eyebrow){font-size:13px;margin-top:16px}
#idb-literacy .fl-home-digither .fl-video-poster{height:280px}
#idb-literacy .fl-video-caption{font-size:10px;bottom:12px;right:16px}
#idb-literacy .fl-wide-hero{height:400px;min-height:400px}
#idb-literacy .fl-hero-image{object-position:47% 0}
#idb-literacy .fl-hero-shade{background:linear-gradient(transparent 10%,#0005 45%,#000d)}
#idb-literacy .fl-hero-content{bottom:26px}
#idb-literacy .fl-hero-content h1{font-size:32px;line-height:1.6;padding-bottom:10px}
#idb-literacy .fl-hero-content .fl-eyebrow{font-size:12px;margin-bottom:10px}
#idb-literacy .fl-hero-content>p:last-child{font-size:12px;line-height:1.8;margin-top:14px}
#idb-literacy .fl-courses-library{padding-top:20px;padding-bottom:15px}
#idb-literacy .fl-course-search input{padding:14px 18px;font-size:12px}
#idb-literacy .fl-course-search button{padding-inline:18px}
#idb-literacy .fl-filter-bar{gap:10px;justify-content:flex-start;margin-block:20px 24px}
#idb-literacy .fl-filter-bar button{font-size:12px;padding:7px 18px}
#idb-literacy .fl-auth-section{padding:30px 0}
#idb-literacy .fl-auth-card{width:90%;min-width:0;max-width:450px}
#idb-literacy .fl-auth-body{padding:23px 27px 24px}
#idb-literacy .fl-auth-mark{width:60px;height:43px;margin-bottom:10px}
#idb-literacy .fl-auth-card h1{font-size:32px}
#idb-literacy .fl-auth-intro{font-size:14px;margin:12px 0 0}
#idb-literacy .fl-auth-card form{margin-top:33px}
#idb-literacy .fl-field{margin-bottom:25px}
#idb-literacy .fl-field label{font-size:12px}
#idb-literacy .fl-input-wrap input{font-size:14px;min-height:33px;padding-bottom:8px}
#idb-literacy .fl-input-wrap input::placeholder{font-size:11px}
#idb-literacy .fl-field-hint{font-size:10px;margin-top:8px}
#idb-literacy .fl-forgot-link{font-size:11px;margin-top:-16px}
#idb-literacy .fl-checkbox-label{font-size:11px;line-height:1.8;gap:7px}
#idb-literacy .fl-remember{margin-top:24px}
#idb-literacy .fl-auth-actions{margin-top:28px}
#idb-literacy .fl-auth-bottom{font-size:17px;padding:16px 12px}
#idb-literacy.fl-auth-page[data-page=sign-up] .fl-auth-intro{font-size:12px}
#idb-literacy.fl-auth-page[data-page=sign-up] .fl-field{margin-bottom:23px}
#idb-literacy.fl-auth-page[data-page=sign-up] .fl-auth-actions{margin-top:24px}
#idb-literacy.fl-auth-page[data-page=sign-up] .fl-auth-body{padding-bottom:24px}
#idb-literacy .fl-course-detail{display:flex;flex-direction:column;padding-top:30px;padding-bottom:20px;gap:30px}
#idb-literacy .fl-course-detail-main{order:1}
#idb-literacy .fl-course-sidebar{order:2;background:#f8f8f8;padding:20px}
#idb-literacy .fl-course-sidebar>img{aspect-ratio:1.9}
#idb-literacy .fl-sidebar-info{padding-top:16px}
#idb-literacy .fl-sidebar-info>h2{font-size:23px;margin-bottom:16px}
#idb-literacy .fl-sidebar-info dl{font-size:13px}
#idb-literacy .fl-sidebar-info dl>div{padding-block:9px}
#idb-literacy .fl-sidebar-note{font-size:12px;margin-top:16px}
#idb-literacy .fl-course-progress{margin-block:18px;font-size:13px}
#idb-literacy .fl-course-progress progress{margin-block:15px}
#idb-literacy .fl-course-progress p{font-size:11px}
#idb-literacy .fl-course-detail-main .fl-breadcrumbs{font-size:11px;margin-left:35px;margin-bottom:22px}
#idb-literacy .fl-course-detail-main>.fl-tags{margin-block:20px;gap:10px}
#idb-literacy .fl-course-detail-main h1{font-size:31px;line-height:1.65}
#idb-literacy .fl-content-close{left:-5px;top:-8px}
#idb-literacy .fl-detail-meta{font-size:11px;gap:12px;margin:18px 0 24px}
#idb-literacy .fl-detail-meta span+span{padding-right:12px}
#idb-literacy .fl-course-detail-main>p:not(.fl-breadcrumbs){font-size:14px}
#idb-literacy .fl-share-row{gap:22px;padding-block:18px;margin-block:25px;font-size:12px}
#idb-literacy .fl-share-row button{font-size:22px}
#idb-literacy .fl-learning-outcomes h2,#idb-literacy .fl-curriculum h2{font-size:23px;margin-bottom:18px}
#idb-literacy .fl-learning-outcomes ul{gap:18px;padding-bottom:24px;margin-bottom:25px}
#idb-literacy .fl-learning-outcomes li{font-size:13px;gap:12px}
#idb-literacy .fl-curriculum ol{gap:12px}
#idb-literacy .fl-curriculum li{padding:18px 16px;flex-wrap:nowrap;gap:12px}
#idb-literacy .fl-curriculum li h3{font-size:12px}
#idb-literacy .fl-curriculum li p{font-size:10px;flex-wrap:wrap;gap:4px;margin-top:5px}
#idb-literacy .fl-curriculum li>.fl-lesson-number{width:25px;height:25px;font-size:12px}
#idb-literacy .fl-lesson-layout{display:flex;flex-direction:column;padding-top:25px;gap:30px}
#idb-literacy .fl-lesson-sidebar{position:static;display:grid;grid-template-columns:1fr;gap:12px;width:100%}
#idb-literacy .fl-sidebar-panel{margin:0}
#idb-literacy .fl-contents-panel{display:none}
#idb-literacy .fl-sidebar-panel h2{font-size:14px;padding:14px}
#idb-literacy .fl-lesson-side-row{padding:13px 15px;gap:14px;font-size:13px}
#idb-literacy .fl-lesson-side-row small{font-size:11px;margin-top:5px}
#idb-literacy .fl-lesson-content{width:100%}
#idb-literacy .fl-lesson-title{padding-bottom:25px;margin-bottom:25px}
#idb-literacy .fl-lesson-title h1{font-size:29px;margin-left:30px;margin-bottom:14px}
#idb-literacy .fl-lesson-title>p{font-size:13px;line-height:1.9}
#idb-literacy .fl-lesson-meta{font-size:12px;gap:18px;margin-top:25px}
#idb-literacy .fl-lesson-section{margin-bottom:35px}
#idb-literacy .fl-lesson-section h2{font-size:22px;gap:12px;align-items:baseline}
#idb-literacy .fl-lesson-section p,#idb-literacy .fl-lesson-section ul{font-size:14px;line-height:1.95}
#idb-literacy .fl-lesson-section ul{margin-top:14px}
#idb-literacy .fl-lesson-section p+p{margin-top:14px}
#idb-literacy .fl-lesson-callout{padding:22px;margin-block:22px}
#idb-literacy .fl-lesson-callout strong{font-size:14px;margin-bottom:10px}
#idb-literacy .fl-lesson-summary{padding:23px 20px;margin-top:30px}
#idb-literacy .fl-lesson-summary h2{font-size:22px;margin-bottom:20px}
#idb-literacy .fl-lesson-summary li{font-size:13px;gap:13px;margin-top:18px;line-height:1.8}
#idb-literacy .fl-lesson-test{margin-top:22px;padding:23px 20px}
#idb-literacy .fl-lesson-test h2{font-size:24px}
#idb-literacy .fl-lesson-test p{font-size:12px;line-height:1.8}
#idb-literacy .fl-lesson-bottom{margin-top:24px;gap:10px}
#idb-literacy .fl-quiz-page-content{padding-top:55px;padding-bottom:35px;min-height:calc(100vh - 58px)}
#idb-literacy .fl-quiz-page-content .fl-content-close{top:10px}
#idb-literacy .fl-quiz-heading h1{font-size:24px}
#idb-literacy .fl-quiz-heading p{font-size:12px;margin-top:5px}
#idb-literacy .fl-quiz-steps{gap:8px;margin-top:24px}
#idb-literacy .fl-quiz-steps span{height:4px}
#idb-literacy .fl-question-count{font-size:11px;margin-top:8px}
#idb-literacy .fl-quiz-form{width:100%;margin-top:32px}
#idb-literacy .fl-quiz-form legend{font-size:24px;margin-bottom:24px;line-height:1.7}
#idb-literacy .fl-question-label{font-size:12px;margin-bottom:9px}
#idb-literacy .fl-answer-options{gap:14px}
#idb-literacy .fl-answer-option{font-size:15px;padding:17px 14px;gap:15px;min-height:65px;line-height:1.8}
#idb-literacy .fl-answer-option input{width:18px;height:18px}
#idb-literacy .fl-quiz-actions{margin-top:25px}
#idb-literacy .fl-result-section{padding-top:35px;padding-bottom:30px}
#idb-literacy .fl-result-card{width:100%}
#idb-literacy .fl-result-head{padding:30px 18px 22px}
#idb-literacy .fl-result-head h1{font-size:22px;line-height:1.7}
#idb-literacy .fl-result-head p{font-size:13px;line-height:1.8;margin-top:10px}
#idb-literacy .fl-score-badge{width:88px;height:88px;font-size:23px;margin-bottom:24px}
#idb-literacy .fl-result-body{padding:26px 18px}
#idb-literacy .fl-result-body h2{font-size:18px}
#idb-literacy .fl-result-body>p{font-size:15px;margin-top:8px}
#idb-literacy .fl-result-actions{gap:14px;margin-top:27px}
#idb-literacy .fl-result-complete .fl-result-head{padding:30px 18px 22px}
#idb-literacy .fl-result-complete .fl-result-body{padding:24px 10px 14px}
#idb-literacy .fl-completion-bar{margin:16px auto 18px;height:6px}
#idb-literacy .fl-certificate{margin-top:25px;font-size:5px;min-height:0;aspect-ratio:1.415}
#idb-literacy .fl-certificate-main{padding:9px 7px 5px}
#idb-literacy .fl-certificate-copy h2{font-size:15px;margin-top:5px}
#idb-literacy .fl-certificate-copy h3{font-size:15px;margin-top:8px}
#idb-literacy .fl-certificate-copy>p{font-size:5px}
#idb-literacy .fl-certificate-brand p{font-size:4px}
#idb-literacy .fl-certificate-ribbon{margin:9px 8px;padding:14px 5px 8px}
#idb-literacy .fl-certificate-ribbon h4{font-size:6px}
#idb-literacy .fl-certificate-ribbon>strong{font-size:10px}
#idb-literacy .fl-certificate-ribbon>b{font-size:4px}
#idb-literacy .fl-certificate-symbol{padding:4px}
#idb-literacy .fl-certificate-symbol .fl-icon{width:22px;height:22px}
#idb-literacy .fl-certificate-en{font-size:4px;letter-spacing:1px}
#idb-literacy .fl-certificate-facts{padding:6px 4px}
#idb-literacy .fl-certificate-course{margin-top:8px;padding:6px}
#idb-literacy .fl-certificate-course strong{font-size:7px}
#idb-literacy .fl-certificate-facts span{font-size:5px}
#idb-literacy .fl-certificate-note{font-size:4px;margin-top:6px}
#idb-literacy .fl-certificate-actions{width:100%;gap:10px;margin-top:18px}
#idb-literacy .fl-digither-intro{display:flex;flex-direction:column;gap:30px;padding-top:30px;padding-bottom:40px}
#idb-literacy .fl-digither-copy>.fl-eyebrow{font-size:11px;margin-bottom:16px}
#idb-literacy .fl-digither-copy>.fl-digither-logo{width:190px}
#idb-literacy .fl-digither-copy h1{font-size:31px;line-height:1.55;margin-block:22px}
#idb-literacy .fl-digither-copy>p:not(.fl-eyebrow){font-size:13px;line-height:1.8}
#idb-literacy .fl-digither-copy .fl-stats{margin-top:28px}
#idb-literacy .fl-digither-intro .fl-stats>div{min-height:100px;padding:17px 8px}
#idb-literacy .fl-digither-intro .fl-mosul-photo{width:100%;height:350px;object-position:center 55%}
#idb-literacy .fl-digither-about{display:flex;flex-direction:column;gap:26px;padding:28px 22px}
#idb-literacy .fl-digither-about h2{font-size:29px;margin-bottom:20px}
#idb-literacy .fl-digither-about p{font-size:13px;line-height:1.9}
#idb-literacy .fl-digither-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:100%}
#idb-literacy .fl-digither-numbers>div{border:0;padding:0;text-align:center}
#idb-literacy .fl-digither-numbers b{font-size:22px}
#idb-literacy .fl-digither-numbers span{font-size:10px}
#idb-literacy .fl-digither-page .fl-section-heading{min-width:0;width:100%}
#idb-literacy .fl-digither-page .fl-section-heading h2{font-size:27px}
#idb-literacy .fl-digither-page .fl-section-intro{font-size:12px;margin-block:18px 25px}
#idb-literacy .fl-wide-video{aspect-ratio:1.7;min-height:0}
#idb-literacy .fl-digither-page .fl-feature-grid{margin-top:24px}
#idb-literacy .fl-digither-page .fl-feature-card{padding:22px 16px;min-height:280px}
#idb-literacy .fl-digither-page .fl-feature-card h3{font-size:18px}
#idb-literacy .fl-digither-timeline{padding-block:38px}
#idb-literacy .fl-digither-timeline h2{font-size:21px;line-height:1.7;margin-bottom:25px}
#idb-literacy .fl-timeline-track{display:flex;gap:18px;overflow-x:auto;padding-bottom:14px;scroll-snap-type:x mandatory}
#idb-literacy .fl-timeline-track article{min-width:240px;padding:24px;scroll-snap-align:start}
#idb-literacy .fl-timeline-track small{font-size:12px}
#idb-literacy .fl-timeline-track h3{font-size:21px;margin-top:12px}
#idb-literacy .fl-timeline-track p{font-size:13px;margin-top:8px}
#idb-literacy .fl-digither-timeline .fl-scroll-rule{margin-top:25px}
#idb-literacy .fl-digither-split{display:flex;flex-direction:column;gap:28px}
#idb-literacy .fl-digither-split .fl-section-heading{margin-bottom:20px}
#idb-literacy .fl-digither-split p:not(.fl-eyebrow){font-size:13px;line-height:1.9}
#idb-literacy .fl-digither-split>img{width:100%;aspect-ratio:1.3}
#idb-literacy .fl-gallery-track{display:flex;overflow-x:auto;gap:14px;scroll-snap-type:x mandatory;padding-bottom:10px}
#idb-literacy .fl-gallery-track button{min-width:260px;scroll-snap-align:start}
#idb-literacy .fl-gallery-track img{width:260px}
#idb-literacy .fl-scroll-rule{margin-top:24px}
#idb-literacy .fl-voices-grid{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:10px}
#idb-literacy .fl-voices-grid .fl-video-poster{min-width:255px;width:255px;scroll-snap-align:start;height:355px}
#idb-literacy .fl-voices-grid .fl-video-poster img{height:100%}
#idb-literacy .fl-testimonial-section .fl-video-poster{height:270px;min-height:270px}
#idb-literacy .fl-digither-quote blockquote{font-size:25px;width:88%;line-height:1.8}
#idb-literacy .fl-digither-quote blockquote br{display:none}
#idb-literacy .fl-digither-quote p{font-size:12px;margin-top:24px}
#idb-literacy .fl-about-grid{display:flex;flex-direction:column;gap:28px;padding-top:32px;padding-bottom:20px}
#idb-literacy .fl-about-grid article{padding-bottom:28px;border-bottom:1px solid #ddd}
#idb-literacy .fl-about-grid article:nth-last-child(2){border-bottom:1px solid #ddd;padding-bottom:28px}
#idb-literacy .fl-about-grid h2{font-size:28px;margin-bottom:12px}
#idb-literacy .fl-about-grid p{font-size:14px;line-height:1.85}
#idb-literacy .fl-profile-page-content{padding-top:30px;padding-bottom:15px}
#idb-literacy .fl-profile-header{gap:18px;margin-bottom:24px}
#idb-literacy .fl-profile-header h1{font-size:30px}
#idb-literacy .fl-profile-header p{font-size:12px}
#idb-literacy .fl-avatar{width:60px;height:60px;min-width:60px;min-height:60px}
#idb-literacy .fl-profile-tabs{gap:22px;align-items:stretch;margin-bottom:26px;min-height:54px}
#idb-literacy .fl-profile-tabs a{font-size:13px}
#idb-literacy .fl-profile-tabs .fl-logout-button{font-size:11px;white-space:nowrap;margin-block:6px;padding:4px 12px}
#idb-literacy .fl-dashboard{display:flex;flex-direction:column;align-items:stretch;padding:26px 22px;gap:28px}
#idb-literacy .fl-dashboard h2{font-size:32px;line-height:1.6;margin-bottom:12px;padding-bottom:8px}
#idb-literacy .fl-dashboard h3{font-size:18px;line-height:1.8}
#idb-literacy .fl-dashboard>div>p{font-size:11px}
#idb-literacy .fl-dashboard-stats{padding:0;gap:25px;justify-content:space-around}
#idb-literacy .fl-dashboard-stats b{font-size:32px}
#idb-literacy .fl-dashboard-stats span{font-size:11px;margin-top:4px}
#idb-literacy .fl-profile-section{padding-top:35px}
#idb-literacy .fl-profile-section>h2{font-size:27px;margin-bottom:22px}
#idb-literacy .fl-profile-fields{grid-template-columns:1fr 1fr;gap:14px 22px}
#idb-literacy .fl-profile-fields .fl-field{margin-bottom:10px}
#idb-literacy .fl-profile-fields .fl-field label{font-size:11px}
#idb-literacy .fl-profile-fields .fl-field:nth-child(1){grid-column:1/-1}
#idb-literacy .fl-profile-fields .fl-field:nth-child(5){grid-column:1/-1;grid-row:auto}
#idb-literacy .fl-enrolled-card{min-width:260px;padding:26px}
#idb-literacy .fl-enrolled-card h3{font-size:21px;margin-bottom:38px}
#idb-literacy .fl-enrolled-card progress{margin-block:8px}
#idb-literacy .fl-enrolled-card small{font-size:11px}
#idb-literacy .fl-profile-section .fl-section-end{margin-top:18px}
#idb-literacy .fl-empty-certificates{min-height:180px;text-align:center;font-size:12px;padding:26px}
#idb-literacy .fl-earned-certificate{min-width:0;max-width:100%;width:100%;padding:24px 26px 0}
#idb-literacy .fl-earned-certificate>p{font-size:12px}
#idb-literacy .fl-earned-certificate h3{font-size:23px;margin-top:18px}
#idb-literacy .fl-earned-certificate small{font-size:11px;margin-top:8px}
#idb-literacy .fl-earned-certificate .fl-share-row{padding-block:20px;margin-top:20px;gap:26px}
#idb-literacy.fl-profile-page #exam-results{padding-top:38px}
#idb-literacy .fl-profile-section table{font-size:12px}
#idb-literacy .fl-states-grid{grid-template-columns:1fr;gap:14px;margin-top:30px}
#idb-literacy .fl-state-card{padding:20px}
#idb-literacy .fl-state-card h2{font-size:23px}
#idb-literacy.fl-states-page h1{font-size:30px}
#idb-literacy .fl-site-dialog{padding:40px 22px 28px}
#idb-literacy .fl-site-dialog h2{font-size:25px}
#idb-literacy .fl-site-dialog p{font-size:14px}
#idb-literacy .fl-toast{bottom:78px;font-size:13px;padding:12px 18px}}
/* These selectors apply only while the existing shared header renders a program page. */
header.idb-program-header .hold{display:none}
header.idb-program-header .fl-top-navigation{position:absolute;right:0;top:0;height:100%;margin:0;display:flex;gap:16px;align-items:center;flex-wrap:nowrap}
header.idb-program-header .fl-top-navigation>li{margin:0;white-space:nowrap;padding:0;width:auto;flex:0 0 auto;border:0}
header.idb-program-header .fl-top-navigation .link{font-size:14px;color:#fff!important;white-space:nowrap;display:inline-block;line-height:1.5;padding:0}
header.idb-program-header .fl-top-auth{position:absolute;left:0;top:0;height:100%;display:flex;align-items:center;gap:10px}
header.idb-program-header .fl-top-auth .custbtm{font-size:13px;padding-inline:17px;font-family:inherit}
header.idb-program-header .fl-top-auth .white{color:var(--red)}
header.idb-program-header .fl-label-short,header.idb-program-header .fl-program-burger{display:none}
header.idb-program-header .openmenu.fl-program-burger{left:auto!important;right:0!important}
@media(min-width:768px){header.idb-program-header .outer{display:none}}
@media(max-width:1180px){header.idb-program-header .wrap{height:112px}header.idb-program-header .logo{height:71px;top:0}header.idb-program-header .fl-top-auth{height:71px}header.idb-program-header .fl-top-navigation{height:41px;top:71px;width:100%;overflow-x:auto;gap:25px;border-top:1px solid #333;padding:0 2px;scrollbar-width:none}header.idb-program-header .fl-top-navigation::-webkit-scrollbar{display:none}header.idb-program-header .fl-top-navigation .link{font-size:14px}header.idb-program-header .fl-program-burger{display:flex;position:absolute;right:0;top:0;height:71px;width:32px;align-items:center;justify-content:center;border:0;background:none;padding:0;margin:0}header.idb-program-header .fl-program-burger img{width:30px}body.idb-program-site #content:before{height:112px}}
@media(max-width:767px){header.idb-program-header .fl-top-auth .custbtm{min-width:42px;padding-inline:10px}header.idb-program-header .fl-label-wide,header.idb-program-header .fl-join-link{display:none}header.idb-program-header .fl-label-short{display:inline}header.idb-program-header .fl-top-auth .custbtm{font-size:12px}header.idb-program-header .logo{width:167px}}
@media print{body.idb-program-site:has(#participation-certificate) header,body.idb-program-site:has(#participation-certificate) footer,body.idb-program-site:has(#participation-certificate) .navig,body.idb-program-site:has(#participation-certificate) .cookie_pop{display:none!important}body.idb-program-site:has(#participation-certificate) #content:before{display:none}#idb-literacy .fl-result-head,#idb-literacy .fl-result-body>h2,#idb-literacy .fl-result-body>p,#idb-literacy .fl-completion-bar,#idb-literacy .fl-certificate-actions{display:none!important}#idb-literacy .fl-result-card,#idb-literacy .fl-result-body,#idb-literacy .fl-result-section{width:100%;border:0;padding:0;margin:0}#idb-literacy .fl-certificate{width:250mm;height:177mm;margin:0;aspect-ratio:auto;font-size:11px;break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact}@page{size:A4 landscape;margin:15mm}}


/* ===== Additions by the dynamic integration (moved from cust.css) ===== */


/* ============ E-Learning (Certificates): small additions to financial-literacy.css ============ */
#idb-literacy .fl-filter-bar a.custbtm { font-size: clamp(12px, .9vw, 17px); padding: .6em 1.6em; background: #f1f1f1; color: #888; border-radius: 30px; min-height: 34px; height: auto; text-decoration: none; }
#idb-literacy .fl-filter-bar a.fl-active { background: var(--fl-red); color: #fff; }
#idb-literacy .fl-input-wrap select { border: 0; border-radius: 0; width: 100%; background: transparent; padding: 0 0 .7vw; font-size: clamp(13px, .88vw, 17px); min-height: 30px; font-family: inherit; color: inherit; appearance: none; -webkit-appearance: none; cursor: pointer; }
#idb-literacy .fl-feature-icon { width: 4.8vw; height: 4.8vw; min-width: 44px; min-height: 44px; object-fit: contain; margin-bottom: 1.6vw; }
#idb-literacy .fl-course-card progress { width: 100%; height: 6px; margin-bottom: 1vw; }
#idb-literacy .fl-certificate-qr { width: 7em; height: 7em; display: grid; place-items: center; }
#idb-literacy .fl-certificate-qr img, #idb-literacy .fl-certificate-qr canvas { width: 100% !important; height: 100% !important; }
#idb-literacy button.fl-lesson-side-row { width: 100%; text-align: right; font: inherit; color: inherit; }
#idb-literacy .fl-logout-button { text-decoration: none; }
#idb-literacy .fl-home-visual > img[hidden] { display: none; }
/* homepage hero slider with Swiper */
#idb-literacy .fl-home-visual.fl-home-swiper:after { display: none; }
#idb-literacy .fl-home-swiper .fl-home-screen { position: absolute; inset: 0; overflow: hidden; }
#idb-literacy .fl-home-swiper .swiper-wrapper { height: 100%; }
#idb-literacy .fl-home-swiper .swiper-slide { position: relative; height: 100%; overflow: hidden; }
#idb-literacy .fl-home-swiper .swiper-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
#idb-literacy .fl-home-swiper .swiper-slide:after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #000 95%); }
#idb-literacy .fl-home-swiper .swiper-slide figcaption { position: absolute; right: 3.2vw; left: 3.2vw; bottom: 4.6vw; color: #fff; z-index: 1; }
#idb-literacy .fl-home-swiper .swiper-pagination { position: absolute; bottom: 2.3vw; right: 3.2vw; left: auto; width: auto; margin: 0; z-index: 2; display: flex; gap: 1vw; }
#idb-literacy .fl-home-swiper .swiper-pagination-bullet { width: 6px; height: 6px; background: #888; opacity: 1; margin: 0 !important; border-radius: 50%; }
#idb-literacy .fl-home-swiper .swiper-pagination-bullet-active { background: #fff; }
@media (max-width: 600px) {
    #idb-literacy .fl-home-swiper .swiper-slide figcaption { right: 25px; left: 25px; bottom: 46px; }
    #idb-literacy .fl-home-swiper .swiper-pagination { right: 25px; bottom: 22px; gap: 12px; }
}

/* ===== IDB e-learning – design alignment fixes ===== */

/* Fonts */
header.idb-program-header .fl-top-navigation a { font-family: 'Tajawal', sans-serif; }
#idb-literacy .fl-stats b { font-family: 'Tajawal', sans-serif; font-weight: 800; direction: ltr; unicode-bidi: isolate; }

/* Section titles sit on the right in RTL */
#idb-literacy .fl-section-heading { margin-right: 0; margin-left: auto; }

/* Hero */
#idb-literacy .fl-home-intro .fl-intro-description { margin-right: 0; max-width: 430px; font-size: 15px; line-height: 1.5; }
#idb-literacy .fl-home-intro h1 span { border-top: 0; position: relative; }
#idb-literacy .fl-home-intro h1 span::before { content: ""; position: absolute; top: 0; right: -30px; width: calc(56% + 30px); height: 2px; background: #EA0029; }
#idb-literacy .fl-hero-actions .custbtm { font-size: 16px; padding: 2px 22px 0; }
#idb-literacy .fl-hero-actions { gap: 18px; }
#idb-literacy .fl-home-visual .fl-btn { color: #EA0029; font-size: 14px; font-weight: 700; padding: 2px 24px 0; }
#idb-literacy .fl-slider-dots { gap: 22px; }
#idb-literacy .fl-slider-dots span, #idb-literacy .fl-home-swiper .swiper-pagination-bullet { width: 8px; height: 8px; }

/* Red numbers block */
#idb-literacy .fl-national-section { padding-top: 50px; padding-bottom: 62px; }
#idb-literacy .fl-national-section .fl-stats { gap: 16px; }
#idb-literacy .fl-national-section .fl-stats > div { background: #f1f1f1; min-height: 188px; }

/* DIGITHER */
#idb-literacy .fl-digither-teaser .fl-btn { margin-top: 40px; background: #6a133e; }


/* Desktop title sizes (45px at 1700) */
@media (min-width: 1200px) {
  #idb-literacy .fl-home-intro h1,
  #idb-literacy .fl-section-heading h2,
  #idb-literacy .fl-digither-teaser h2 { font-size: 2.65vw; }
  #idb-literacy .fl-home-intro h1 span::before { right: -100px; width: calc(56% + 100px); }
}

/* <=991 */
@media (max-width: 991px) {
  #idb-literacy .fl-feature-grid { grid-template-columns: repeat(2, 1fr); }
  #idb-literacy #courses article .custbtm { white-space: nowrap; font-size: 14px; padding: 2px 12px 0; }
}

/* <=767 */
@media (max-width: 767px) {
  #idb-literacy .fl-home-intro,
  #idb-literacy .fl-home-digither { grid-template-columns: 1fr; }
  #idb-literacy .fl-national-section .fl-stats { grid-template-columns: repeat(2, 1fr); }
  #idb-literacy .fl-home-intro h1 span::before { right: -20px; width: calc(56% + 20px); }
}

/* ===== Homepage courses as a Swiper ===== */
#idb-literacy .fl-courses-screen { overflow: hidden; position: relative; }
#idb-literacy .fl-courses-screen .swiper-wrapper { display: flex; }
#idb-literacy .fl-courses-screen .swiper-slide { height: auto; display: flex; }
#idb-literacy .fl-courses-screen .fl-course-card { width: 100%; }
#idb-literacy .fl-courses-pagination { position: static; justify-content: center; margin-top: 2vw; }
#idb-literacy .fl-courses-pagination .swiper-pagination-bullet { width: 8px; height: 8px; background: #bbb; opacity: 1; margin: 0 !important; border-radius: 50%; }
#idb-literacy .fl-courses-pagination .swiper-pagination-bullet-active { background: #EA0029; }

/* =====================================================================
   IDB e-learning home – spacing aligned to the design (1700px)
   --fl-side = fixed left/right page space
   --fl-k    = scales every vertical space down on smaller screens
   ===================================================================== */

main#idb-literacy,
body header.idb-program-header { --fl-k: 1;   --fl-side: 96px; }
@media (max-width: 1399px) { main#idb-literacy, body header.idb-program-header { --fl-k: .85; --fl-side: 64px; } }
@media (max-width: 1199px) { main#idb-literacy, body header.idb-program-header { --fl-k: .75; --fl-side: 40px; } }
@media (max-width: 991px)  { main#idb-literacy, body header.idb-program-header { --fl-k: .65; --fl-side: 30px; } }
@media (max-width: 767px)  { main#idb-literacy, body header.idb-program-header { --fl-k: .5;  --fl-side: 20px; } }

/* ---------- Side space (fixed) ---------- */
body header.idb-program-header > .container,
main#idb-literacy .container {
  padding-left: var(--fl-side);
  padding-right: var(--fl-side);
}
main#idb-literacy .fl-home-intro { gap: var(--fl-side); }

/* red line under the hero title reaches the screen edge (no 4px overflow) */
main#idb-literacy .fl-home-intro h1 span::before {
  right: calc(-1 * var(--fl-side));
  width: calc(56% + var(--fl-side));
}

/* ---------- Hero ---------- */
main#idb-literacy .fl-home-intro .fl-eyebrow { margin-bottom: calc(51px * var(--fl-k)); }
main#idb-literacy .fl-home-intro h1          { margin-bottom: calc(9px * var(--fl-k)); }
main#idb-literacy .fl-home-intro h1 span     { margin-top: calc(10px * var(--fl-k)); }

/* ---------- Paragraph under section titles (design line pitch ~22px) ---------- */
main#idb-literacy .fl-section-intro { line-height: 1.4; }

/* ---------- Articles ---------- */
main#idb-literacy #articles .fl-section-heading .fl-eyebrow { margin-bottom: 7px; }
main#idb-literacy #articles .fl-article-card .custbtm      { margin-top: calc(14px * var(--fl-k)); }

/* ---------- How we work (dark) ---------- */
main#idb-literacy #method {
  padding-top: calc(56px * var(--fl-k));
  padding-bottom: calc(92px * var(--fl-k));
}
main#idb-literacy #method .fl-feature-grid { margin-top: calc(53px * var(--fl-k)); }

/* ---------- Courses ---------- */
main#idb-literacy #courses {
  padding-top: calc(52px * var(--fl-k));
  padding-bottom: calc(62px * var(--fl-k));
}
main#idb-literacy #courses .fl-section-heading .fl-eyebrow { margin-bottom: 5px; }
main#idb-literacy #courses .fl-section-intro {
  margin-top: calc(25px * var(--fl-k));
  margin-bottom: calc(37px * var(--fl-k));
}
main#idb-literacy #courses .fl-tags          { margin-bottom: calc(43px * var(--fl-k)); }
main#idb-literacy #courses .fl-course-card p { margin-bottom: calc(30px * var(--fl-k)); }

/* ---------- Red numbers block ---------- */
main#idb-literacy .fl-national-section {
  padding-top: calc(45px * var(--fl-k));
  padding-bottom: calc(62px * var(--fl-k));
}
main#idb-literacy .fl-national-section .fl-eyebrow        { margin-bottom: calc(24px * var(--fl-k)); }
main#idb-literacy .fl-national-section .fl-stats > div    { min-height: calc(188px * var(--fl-k)); }

/* ---------- DIGITHER ---------- */
main#idb-literacy .fl-home-digither {
  padding-top: calc(92px * var(--fl-k));
  padding-bottom: calc(10px * var(--fl-k)); /* footer already adds ~100px on top */
}
main#idb-literacy .fl-digither-teaser h2      { padding-bottom: calc(19px * var(--fl-k)); }
main#idb-literacy .fl-digither-teaser .fl-btn { margin-top: calc(63px * var(--fl-k)); }

/* =====================================================================
   IDB e-learning home – inner spacing round 2 (design 1700px)
   Uses the same --fl-k (responsive scale) set in the spacing block above.
   ===================================================================== */

/* ---------- Header ---------- */
/* nav links flush with the right content edge (was 39px in) */
body header.idb-program-header .fl-top-navigation { margin-right: 0; }
/* both header buttons 131px wide, 14px apart */
body header.idb-program-header .fl-top-auth { gap: 14px; }
body header.idb-program-header .fl-top-auth .custbtm { min-width: 131px; justify-content: center; }

/* ---------- Hero slider caption ---------- */
main#idb-literacy .fl-home-swiper .swiper-slide figcaption {
  right: calc(63px * var(--fl-k));
  bottom: calc(95px * var(--fl-k));
}
/* space between description and the button (was ~5px, design 33px) */
main#idb-literacy .fl-home-visual figcaption .fl-btn { margin-top: calc(28px * var(--fl-k)); }
main#idb-literacy .fl-home-swiper .fl-slider-dots.swiper-pagination { right: calc(63px * var(--fl-k)); }

/* ---------- Stats boxes (hero + red block): number -> label 13px ---------- */
main#idb-literacy .fl-stats b    { line-height: 1; }
main#idb-literacy .fl-stats span { line-height: 1.3; margin-top: 2px; }
main#idb-literacy .fl-home-intro .fl-stats > div {
  padding-top: calc(36px * var(--fl-k));
  padding-right: calc(25px * var(--fl-k));
  padding-left: calc(25px * var(--fl-k));
}

/* ---------- How we work cards ---------- */
main#idb-literacy .fl-feature-card {
  padding-top: calc(57px * var(--fl-k));
  padding-right: calc(30px * var(--fl-k));
  padding-left: calc(30px * var(--fl-k));
}
main#idb-literacy .fl-feature-card .fl-feature-icon {
  height: calc(76px * var(--fl-k));
  width: auto;
  margin-bottom: calc(40px * var(--fl-k));
}

/* ---------- Course cards ---------- */
main#idb-literacy #courses .fl-course-card-body {
  padding-right: calc(29px * var(--fl-k));
  padding-left: calc(29px * var(--fl-k));
}
main#idb-literacy #courses .fl-tags { margin-bottom: calc(38px * var(--fl-k)); }

/* ---------- Red block boxes: right-aligned like the design ---------- */
main#idb-literacy .fl-national-section .fl-stats > div {
  align-items: flex-start;   /* = right in RTL */
  text-align: right;
  padding-top: calc(46px * var(--fl-k));
  padding-right: calc(47px * var(--fl-k));
  padding-left: calc(47px * var(--fl-k));
}

/* ---------- DIGITHER text block ---------- */
main#idb-literacy .fl-digither-teaser {
  padding-right: calc(50px * var(--fl-k));
  padding-left: calc(50px * var(--fl-k));
}

/* =====================================================================
   IDB e-learning home – texts that are BOLD in the design (Tajawal 700)
   ===================================================================== */

/* header nav links */
body header.idb-program-header .fl-top-navigation a { font-weight: 700; }

main#idb-literacy .fl-eyebrow,                               /* small label above every title */
main#idb-literacy .fl-intro-description,                     /* hero paragraph */
main#idb-literacy .fl-section-intro,                         /* paragraph under section titles */
main#idb-literacy .fl-stats span,                            /* stats labels (hero + red block) */
main#idb-literacy .fl-home-swiper .swiper-slide figcaption p,/* slider caption text */
main#idb-literacy .fl-article-card .fl-article-date,         /* red article date */
main#idb-literacy .fl-feature-card p,                        /* "how we work" card text */
main#idb-literacy .fl-course-card .fl-tag,                   /* course tags: level + minutes */
main#idb-literacy .fl-video-caption {                        /* DIGITHER video caption */
  font-weight: 700;
}

/* These stay REGULAR (400) - same as the design:
   article excerpt, course card description, course meta, DIGITHER paragraph. */

/* =====================================================================
   IDB e-learning – COURSE DETAIL page (design 1700px)
   Reuses --fl-k from the home spacing block for smaller screens.
   ===================================================================== */

/* ---------- Title + red line ---------- */
main#idb-literacy .fl-course-detail-main h1 {
  font-size: calc(46px * var(--fl-k, 1));
  border-bottom: 0;
  position: relative;
  width: fit-content;            /* line starts under the title's left end */
  max-width: 100%;
}
main#idb-literacy .fl-course-detail-main h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: -16vw;                  /* runs across the gap and ends behind the sidebar image */
  height: 2px;
  background: #EA0029;
  z-index: 0;
}
main#idb-literacy .fl-course-sidebar { position: relative; z-index: 1; }

/* ---------- Main column text ---------- */
main#idb-literacy .fl-course-detail-main > p:not(.fl-breadcrumbs) {
  font-size: calc(14px * var(--fl-k, 1));   /* bold 14px keeps the 3 lines of the design */
  line-height: 1.5;              /* design line pitch ~21px (was 27px) */
}
main#idb-literacy .fl-course-detail-main section h2,
main#idb-literacy .fl-curriculum h2 {
  font-size: calc(20px * var(--fl-k, 1));   /* was 25px */
  line-height: 1.5;
}
main#idb-literacy .fl-course-detail-main section h2 { margin-bottom: calc(9px * var(--fl-k, 1)); }
main#idb-literacy .fl-course-detail-main section ul  { padding-bottom: calc(33px * var(--fl-k, 1)); }
main#idb-literacy .fl-share-row                      { margin-bottom: calc(30px * var(--fl-k, 1)); }

/* ---------- Curriculum ---------- */
main#idb-literacy .fl-curriculum h2 { margin-bottom: calc(13px * var(--fl-k, 1)); }
main#idb-literacy .fl-curriculum li {
  padding-top: calc(28px * var(--fl-k, 1));
  padding-bottom: calc(28px * var(--fl-k, 1));
}

/* ---------- Sidebar ---------- */
main#idb-literacy .fl-sidebar-info h2 { font-size: calc(20px * var(--fl-k, 1)); line-height: 1.5; }
main#idb-literacy .fl-course-progress {
  padding-top: calc(10px * var(--fl-k, 1));
  padding-bottom: calc(18px * var(--fl-k, 1));
  margin-bottom: calc(10px * var(--fl-k, 1));
}
main#idb-literacy .fl-course-progress progress {
  height: 10px;
  margin-top: calc(10px * var(--fl-k, 1));
  margin-bottom: calc(10px * var(--fl-k, 1));
}
main#idb-literacy .fl-sidebar-info dl > div { padding-top: 3.5px; padding-bottom: 3.5px; }
main#idb-literacy .fl-sidebar-info .fl-btn {
  width: 100%;                   /* full-width start button like the design */
  justify-content: center;
  margin-top: 0;
}
main#idb-literacy .fl-sidebar-note { text-align: center; }

/* ---------- Bold texts (Tajawal 700) ---------- */
main#idb-literacy .fl-breadcrumbs,
main#idb-literacy .fl-course-detail .fl-tag,
main#idb-literacy .fl-detail-meta span,
main#idb-literacy .fl-course-detail-main > p:not(.fl-breadcrumbs),
main#idb-literacy .fl-share-row > span,
main#idb-literacy .fl-course-detail-main section li,
main#idb-literacy .fl-curriculum li h3,
main#idb-literacy .fl-curriculum li p,
main#idb-literacy .fl-course-progress span,
main#idb-literacy .fl-course-progress p,
main#idb-literacy .fl-sidebar-info dd {
  font-weight: 700;
}

/* ---------- WhatsApp share icon ---------- */
main#idb-literacy .fl-share-row [aria-label="whatsapp"] { font-size: 0; }
main#idb-literacy .fl-share-row [aria-label="whatsapp"]::before {
  content: "\f232";              /* FontAwesome 4 - already loaded on the site */
  font-family: FontAwesome;
  font-size: 24px;
  line-height: 1;
}

/* ---------- Responsive ---------- */
/* sidebar is only ~225px at 991 and ~190px at 767 -> stack the columns */
@media (max-width: 991px) {
  main#idb-literacy .fl-course-detail { grid-template-columns: 1fr; row-gap: 30px; }
  main#idb-literacy .fl-course-detail-main h1::after { right: 0; }
  main#idb-literacy .fl-course-sidebar { max-width: 480px; }
}

/* ---------- Course detail: lesson buttons "ابدأ" / "مقفل" small, at the left edge, centred ---------- */
main#idb-literacy .fl-curriculum li > .fl-btn {
  margin-right: auto;            /* RTL: sits at the far left of the box */
  align-self: center;
  height: 26px;
  min-height: 26px;
  min-width: 56px;
  padding: 1px 13px 0;
  font-size: 13px;               /* was 18px / 800 */
  font-weight: 700;
  line-height: 1;
  gap: 7px;
  justify-content: center;
}
main#idb-literacy .fl-curriculum li > .fl-btn svg { width: 11px; height: 11px; } /* lock icon, was 22px */

/* =====================================================================
   IDB e-learning – LOGIN + SIGNUP pages (design 1700px)
   Reuses --fl-k from the home spacing block. Signup-only rules use :has(.fl-field-hint).
   ===================================================================== */

/* ---------- Header of the card ---------- */
main#idb-literacy .fl-auth-mark  { margin-bottom: calc(6px * var(--fl-k, 1)); }
main#idb-literacy .fl-auth-card h1 { font-size: max(26px, calc(46px * var(--fl-k, 1))); line-height: 1.3; }
main#idb-literacy .fl-auth-intro {
  margin-top: calc(7px * var(--fl-k, 1));
  font-weight: 700;
}
/* login subtitle: one bold line, bigger */
main#idb-literacy .fl-auth-card:not(:has(.fl-field-hint)) .fl-auth-intro { font-size: max(16px, calc(25px * var(--fl-k, 1))); line-height: 1.3; }
/* signup subtitle: 2 centred lines, ~380px wide */
main#idb-literacy .fl-auth-card:has(.fl-field-hint) .fl-auth-intro {
  font-size: max(14px, calc(17px * var(--fl-k, 1)));
  line-height: 1.55;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Form spacing ---------- */
main#idb-literacy .fl-auth-card form { margin-top: calc(49px * var(--fl-k, 1)); }
main#idb-literacy .fl-auth-card:has(.fl-field-hint) form { margin-top: calc(28px * var(--fl-k, 1)); }

main#idb-literacy .fl-auth-card .fl-field { margin-bottom: calc(32px * var(--fl-k, 1)); }
main#idb-literacy .fl-auth-card:has(.fl-field-hint) .fl-field { margin-bottom: calc(27px * var(--fl-k, 1)); }

main#idb-literacy .fl-auth-card .fl-field label { line-height: 1.35; font-weight: 700; }
main#idb-literacy .fl-auth-card .fl-field-hint  { margin-top: calc(4px * var(--fl-k, 1)); }
main#idb-literacy .fl-auth-card input::placeholder { color: #aaaaaa; opacity: 1; }

/* forgot password link sits on the LEFT under the password field */
main#idb-literacy .fl-auth-card .fl-forgot-link { text-align: left; }

main#idb-literacy .fl-auth-card .fl-checkbox-label {
  margin-top: calc(15px * var(--fl-k, 1));
  font-weight: 700;
}
main#idb-literacy .fl-auth-card:has(.fl-field-hint) .fl-checkbox-label { margin-top: 0; }

/* submit button: 133px wide like the design */
main#idb-literacy .fl-auth-actions .fl-btn { min-width: 133px; justify-content: center; }

/* ---------- Black bottom bar ---------- */
main#idb-literacy .fl-auth-bottom {
  padding-top: calc(17px * var(--fl-k, 1));
  padding-bottom: calc(17px * var(--fl-k, 1));
  font-size: max(16px, calc(21px * var(--fl-k, 1)));
}
main#idb-literacy .fl-auth-bottom a { font-size: inherit; }

/* ---------- Login / signup: site form classes (inpfield / custinput) inside the design card ---------- */
main#idb-literacy .fl-auth-card .inpfield .field { height: auto; border-bottom: 1px solid #ddd; }
main#idb-literacy .fl-auth-card .inpfield .custlabel { position: static; top: auto; }
main#idb-literacy .fl-auth-card .inpfield.form-error .field { border-color: #d00027; }
main#idb-literacy .fl-auth-card .form-error_text { display: block; font-size: clamp(11px, .8vw, 15px); color: #d00027; margin-top: .35em; }
main#idb-literacy .fl-auth-card .form-error_text:empty { display: none; }
main#idb-literacy .fl-auth-card .fl-terms { margin-bottom: calc(10px * var(--fl-k, 1)); }

/* =====================================================================
   IDB e-learning – DASHBOARD / profile page (design 1700px)
   Reuses --fl-k from the home spacing block.
   ===================================================================== */

/* ---------- Profile header ---------- */
main#idb-literacy .fl-profile-header h1 { font-size: max(24px, calc(36px * var(--fl-k, 1))); }   /* was 43px */

/* ---------- Tabs ---------- */
main#idb-literacy .fl-profile-header { margin-bottom: calc(35px * var(--fl-k, 1)); }
main#idb-literacy .fl-profile-tabs {
  gap: calc(50px * var(--fl-k, 1));
  margin-bottom: calc(64px * var(--fl-k, 1));
  border-bottom-color: #e5e5e5;
  align-items: flex-end;
}
main#idb-literacy .fl-profile-tabs > a:not(.fl-btn) {
  font-size: max(14px, calc(16px * var(--fl-k, 1)));
  font-weight: 700;
  padding-top: 5.6px;
  padding-bottom: 13.6px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
main#idb-literacy .fl-profile-tabs > a.fl-active:not(.fl-btn) {
  color: #EA0029;
  border-bottom-color: #EA0029;
}
main#idb-literacy .fl-profile-tabs > a:not(.fl-btn) svg {
  width: 13px; height: 13px;
  fill: currentColor;
  stroke-width: 2.6;
}
/* logout button */
main#idb-literacy .fl-profile-tabs .fl-logout-button {
  font-size: 13px; font-weight: 700;
  height: 41px; min-width: 133px;
  padding: 2px 22px 0;
  align-self: flex-end;
  margin-bottom: 11px;
  justify-content: center;
  background: #f5f5f5;
  border-bottom: 0;
}

/* ---------- Welcome box ---------- */
main#idb-literacy .fl-dashboard {
  padding: calc(68px * var(--fl-k, 1)) calc(98px * var(--fl-k, 1)) calc(117px * var(--fl-k, 1));
  align-items: start;
}
main#idb-literacy .fl-dashboard .fl-red { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
main#idb-literacy .fl-dashboard h2 {
  font-size: max(26px, calc(40px * var(--fl-k, 1)));   /* was 48px */
  padding-bottom: 12px;
  margin-bottom: 13px;
  border-bottom: 0;
  position: relative;
}
/* red line runs from the subtitle's left end to the box edge */
main#idb-literacy .fl-dashboard h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: calc(-98px * var(--fl-k, 1));
  width: calc(625px * var(--fl-k, 1));
  max-width: calc(100% + 98px * var(--fl-k, 1));
  height: 2px;
  background: #EA0029;
}
main#idb-literacy .fl-dashboard h3 { font-size: max(17px, calc(25px * var(--fl-k, 1))); }  /* was 28px */

/* stats: a 440px group on the left, like the design */
main#idb-literacy .fl-dashboard-stats {
  width: calc(440px * var(--fl-k, 1));
  max-width: 100%;
  justify-self: end;               /* = left in RTL */
  gap: 0;
  padding-top: calc(83px * var(--fl-k, 1));   /* labels line up with the subtitle */
}
main#idb-literacy .fl-dashboard-stats b    { font-size: max(26px, calc(37px * var(--fl-k, 1))); line-height: 1; } /* was 43px */
main#idb-literacy .fl-dashboard-stats span { font-size: 13px; font-weight: 700; margin-top: 10px; }

/* ---------- Section titles ---------- */
main#idb-literacy .fl-profile-section > h2 {
  font-size: max(22px, calc(28px * var(--fl-k, 1)));   /* was 34px regular */
  font-weight: 700;
}

/* ---------- Profile form ---------- */
main#idb-literacy .fl-profile-section .fl-field label { font-weight: 700; line-height: 1.35; }
main#idb-literacy .fl-profile-section .fl-input-wrap input,
main#idb-literacy .fl-profile-section .fl-input-wrap select {
  height: 30px;
  padding-bottom: 6px;
}
main#idb-literacy .fl-profile-section input::placeholder { color: #aaaaaa; opacity: 1; }
main#idb-literacy .fl-profile-section select:has(option[value=""]:checked) { color: #aaaaaa; } /* empty gender looks like a placeholder */
main#idb-literacy .fl-profile-section .fl-field { margin-bottom: calc(30px * var(--fl-k, 1)); }
main#idb-literacy .fl-profile-section form > .fl-btn,
main#idb-literacy .fl-profile-section form button.fl-btn {
  margin-top: calc(11px * var(--fl-k, 1));
  min-width: 96px;
  height: 44px;                     /* design buttons on this page are ~44px */
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
}

/* ---------- Empty states ---------- */
main#idb-literacy .fl-profile-section [class*="empty"] { font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  /* welcome text on top, stats full width below */
  main#idb-literacy .fl-dashboard { grid-template-columns: 1fr; row-gap: 24px; padding-bottom: 40px; }
  main#idb-literacy .fl-dashboard-stats { width: 100%; justify-self: stretch; padding-top: 0; }
  main#idb-literacy .fl-dashboard h2::after { width: calc(100% + 98px * var(--fl-k, 1)); }
  /* tabs scroll sideways instead of squeezing */
  main#idb-literacy .fl-profile-tabs { gap: 20px; overflow-x: auto; scrollbar-width: none; }
  main#idb-literacy .fl-profile-tabs::-webkit-scrollbar { display: none; }
  main#idb-literacy .fl-profile-tabs > a { white-space: nowrap; flex-shrink: 0; }
}

/* =====================================================================
   IDB e-learning – LESSON page (design 1700px)
   Reuses --fl-k from the spacing block above.
   ===================================================================== */

/* ---------- Title block ---------- */
main#idb-literacy .fl-lesson-title h1 {
  font-size: max(24px, calc(30px * var(--fl-k, 1)));   /* was 35.5px */
  margin-top: calc(20px * var(--fl-k, 1));
  margin-bottom: calc(8px * var(--fl-k, 1));
}
main#idb-literacy .fl-lesson-title > p { font-weight: 700; font-size: 14px; line-height: 1.45; }
main#idb-literacy .fl-lesson-meta { margin-top: calc(29px * var(--fl-k, 1)); font-weight: 700; }   /* was 38px */

/* ---------- Lesson sections ---------- */
main#idb-literacy .fl-lesson-title   { margin-bottom: calc(21px * var(--fl-k, 1)); }   /* was 31px */
main#idb-literacy .fl-lesson-section { margin-bottom: calc(40px * var(--fl-k, 1)); }   /* was 60px */
main#idb-literacy .fl-lesson-section > h2 {
  font-size: max(18px, calc(20px * var(--fl-k, 1)));   /* was 25px */
  margin-bottom: calc(9px * var(--fl-k, 1));           /* was 17px */
}
main#idb-literacy .fl-lesson-section > p,
main#idb-literacy .fl-lesson-section li {
  font-size: 14px;
  font-weight: 700;                                     /* body text is bold in the design */
  line-height: 1.45;                                    /* was 25.7px -> ~20px */
}
main#idb-literacy .fl-lesson-section > ul      { margin-top: calc(5px * var(--fl-k, 1)); }   /* was 17px */
main#idb-literacy .fl-lesson-section > ul + p  { margin-top: calc(23px * var(--fl-k, 1)); }
/* dashes instead of round bullets, like the design */
main#idb-literacy .fl-lesson-section ul { list-style: none; }
main#idb-literacy .fl-lesson-section ul > li::before { content: "- "; }

/* ---------- Summary / quiz ---------- */
main#idb-literacy .fl-lesson-summary > h2,
main#idb-literacy .fl-lesson-test h2 { font-size: max(18px, calc(20px * var(--fl-k, 1))); }   /* were 25px / 28px */
main#idb-literacy .fl-lesson-summary li { font-weight: 700; }

/* ---------- Sidebar ---------- */
main#idb-literacy .fl-sidebar-panel > h2 { font-size: 13px; font-weight: 700; }
main#idb-literacy .fl-lesson-side-row > span:not(.fl-lesson-number) { font-weight: 700; }
main#idb-literacy .fl-sidebar-panel nav a.fl-current { color: #EA0029; font-weight: 700; }
main#idb-literacy .fl-sidebar-panel nav a.fl-current > span { background: #EA0029; color: #fff; }
/* reading progress: grey track + red fill (was default blue) */
main#idb-literacy .fl-sidebar-panel progress {
  appearance: none; -webkit-appearance: none;
  height: 4px; border: 0; background: #e5e5e5; accent-color: #EA0029;
}
main#idb-literacy .fl-sidebar-panel progress::-webkit-progress-bar   { background: #e5e5e5; }
main#idb-literacy .fl-sidebar-panel progress::-webkit-progress-value { background: #EA0029; }
main#idb-literacy .fl-sidebar-panel progress::-moz-progress-bar      { background: #EA0029; }

/* ---------- Responsive ---------- */
/* the sidebar is only ~170px wide at 991-768 -> stack it above the lesson */
@media (max-width: 991px) {
  main#idb-literacy .fl-lesson-layout { grid-template-columns: 1fr; row-gap: 30px; }
  main#idb-literacy .fl-lesson-sidebar { position: static; max-width: 480px; }
}

/* =====================================================================
   IDB e-learning – QUIZ page (design 1700px)
   Reuses --fl-k from the spacing block above.
   ===================================================================== */

/* ---------- Top: close "x", title, steps ---------- */
/* title 13px higher, "x" 13px lower -> 24px between them like the design (was 50px) */
main#idb-literacy .fl-quiz-page-content { padding-top: calc(68px * var(--fl-k, 1)); }      /* was 81px */
main#idb-literacy .fl-quiz-page-content .fl-content-close { top: calc(39px * var(--fl-k, 1)); }   /* was 26px */
main#idb-literacy .fl-quiz-heading p { font-weight: 700; }            /* "الباب الأول: ..." is bold */

/* progress steps: 4px bars, current step red (all were grey 6px) */
main#idb-literacy .fl-quiz-steps span        { height: 4px; }
main#idb-literacy .fl-quiz-steps span.fl-active { background: #EA0029; }

/* ---------- Question ---------- */
/* block sits 256px from the right / 330px from the left like the design (was centred) */
main#idb-literacy .fl-quiz-form {
  margin-right: 17%;
  margin-left: 21.9%;
}
/* "السؤال الأول": 13px bold (live was 16px regular), 14px above the question like the design (was 20px) */
main#idb-literacy .fl-question-label {
  font-size: max(12px, calc(13px * var(--fl-k, 1)));
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: -3px;
}
main#idb-literacy .fl-quiz-form legend span:not(.fl-question-label) { font-size: max(22px, calc(30px * var(--fl-k, 1))); }   /* question, was 32px */
main#idb-literacy .fl-question-count { font-weight: 700; }   /* "السؤال 1 من 6" fully bold */
main#idb-literacy .fl-quiz-form legend { margin-bottom: calc(25px * var(--fl-k, 1)); }   /* question -> first answer (was 35px) */

/* ---------- Answers ---------- */
/* answer text is bold 20px in the design (was 20.8px regular) */
main#idb-literacy .fl-answer-option span { font-size: max(16px, calc(20px * var(--fl-k, 1))); font-weight: 700; }
main#idb-literacy .fl-answer-option input {
  width: 20px;                     /* was 15px */
  height: 20px;
}
/* selected answer: red ring + white centre dot like the design */
main#idb-literacy .fl-answer-option input:checked {
  background: radial-gradient(circle, #fff 0 22%, #EA0029 27%);
  border-color: #EA0029;
}

/* ---------- "التالي" ---------- */
main#idb-literacy .fl-quiz-actions { margin-top: calc(20px * var(--fl-k, 1)); }   /* was 36px */
main#idb-literacy .fl-quiz-actions .fl-btn {
  min-width: 118px;
  font-size: 12px;                 /* "التالي" text, was 18px / 800 */
  font-weight: 700;
  height: 44px;                    /* design ~44px; remove to keep the 37px standard */
  justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  main#idb-literacy .fl-quiz-form { margin-right: 0; margin-left: 0; }
}

/* =====================================================================
   IDB e-learning – QUIZ RESULT page (design 1700px)
   Reuses --fl-k from the spacing block above.
   Failed (.fl-failed) and passed (.fl-passed) results each get their own style.
   ===================================================================== */

/* card: 330px from the left / 256px from the right like the design (was centred) */
main#idb-literacy .fl-result-card {
  margin-right: 17%;
  margin-left: 21.9%;
}
/* certificate page (/certificate/...): same card but no score/title block -> keep it centred
   (the 17% / 21.9% offset above is only for the quiz result design; with max-width 1045px
   it pushed the card ~160px to the right on big screens) */
main#idb-literacy .fl-result-card:not(:has(.fl-result-head)) {
  margin-right: auto;
  margin-left: auto;
}

/* ---------- Score ---------- */
/* both states */
main#idb-literacy .fl-score-badge { border-radius: 50%; margin-bottom: calc(35px * var(--fl-k, 1)); }   /* was 26px */
main#idb-literacy .fl-score-badge b { font-weight: 700; }   /* was 900 */

/* failed: red circle, white score (failed state had no circle, black text) */
main#idb-literacy .fl-score-badge.fl-failed   { background: #EA0029; color: #fff; }
main#idb-literacy .fl-score-badge.fl-failed b { color: #fff; }

/* passed: light green circle, green check and green score */
main#idb-literacy .fl-score-badge.fl-passed     { background: #eaf6ee; color: #0cad17; gap: 4px; }
main#idb-literacy .fl-score-badge.fl-passed b   { color: #0cad17; }
main#idb-literacy .fl-score-badge.fl-passed svg { width: 30px; height: 30px; color: #0cad17; stroke: currentColor; stroke-width: 3; }

/* ---------- Head ---------- */
main#idb-literacy .fl-result-head h1  { line-height: 1.15; }                         /* title -> subtitle 39px like the design (was 52px) */
main#idb-literacy .fl-result-head > p { font-weight: 700; margin-top: 0; }           /* "لم تجتز هذه المرة..." bold */
main#idb-literacy .fl-result-head     { padding-bottom: calc(21px * var(--fl-k, 1)); } /* was 24px */

/* ---------- Body ---------- */
main#idb-literacy .fl-result-body {
  padding-top: calc(47px * var(--fl-k, 1));     /* divider -> grey text 51px like the design */
  padding-bottom: calc(48px * var(--fl-k, 1));  /* was 41px */
}
main#idb-literacy .fl-result-body h2.fl-muted,
main#idb-literacy .fl-result-body h2.fl-green,
main#idb-literacy .fl-result-body p.fl-muted {
  font-size: max(15px, calc(20px * var(--fl-k, 1)));   /* were 21.8px / 21.3px */
  font-weight: 700;                                     /* 2nd line was regular */
  line-height: 1.35;
}
main#idb-literacy .fl-result-body p.fl-muted { margin-top: 0; }   /* was 6px */

/* ---------- Buttons ---------- */
main#idb-literacy .fl-result-actions { margin-top: calc(49px * var(--fl-k, 1)); }   /* was 57px */
/* buttons swap only on a failed result: "مراجعة الدرس" (black) on the right, "إعادة الاختبار" (red) on the left */
main#idb-literacy .fl-result-card:has(.fl-score-badge.fl-failed) .fl-result-actions { flex-direction: row-reverse; }
main#idb-literacy .fl-result-actions .fl-btn {
  min-width: 138px;
  height: 44px;                    /* design ~44px; remove to keep the 37px standard */
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  main#idb-literacy .fl-result-card { margin-right: 0; margin-left: 0; }
}

/* ---------- Dashboard: "الدورات قيد التقدم" progress bars: 244px-wide, 8px, grey track + red fill (were browser-default blue, 163x6px) ---------- */
main#idb-literacy .fl-enrolled-card progress {
  width: 81%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #f2f2f2;
  accent-color: #EA0029;
  color: #EA0029;
}
main#idb-literacy .fl-enrolled-card progress::-webkit-progress-bar   { background: #f2f2f2; border-radius: 4px; }
main#idb-literacy .fl-enrolled-card progress::-webkit-progress-value { background: #EA0029; border-radius: 4px; }
main#idb-literacy .fl-enrolled-card progress::-moz-progress-bar      { background: #EA0029; }

/* ---------- Dashboard: course cards + test history table (design 1700px) ---------- */
/* course cards */
main#idb-literacy .fl-enrolled-card { padding-right: calc(44px * var(--fl-k, 1)); padding-left: calc(44px * var(--fl-k, 1)); padding-bottom: calc(25px * var(--fl-k, 1)); }
main#idb-literacy .fl-enrolled-card h3 { font-size: max(17px, calc(20px * var(--fl-k, 1))); margin-bottom: calc(61px * var(--fl-k, 1)); }
main#idb-literacy .fl-enrolled-card progress { margin-top: 1px; margin-bottom: 4px; }
main#idb-literacy .fl-enrolled-card .fl-btn {
  margin-top: calc(28px * var(--fl-k, 1));
  min-width: 73px; padding: 2px 14px 0;
  font-size: 13px; font-weight: 700; justify-content: center;
}

/* test history table */
main#idb-literacy .fl-profile-section table th:nth-child(1),
main#idb-literacy .fl-profile-section table td:nth-child(1) { width: 29%; }
main#idb-literacy .fl-profile-section table th:nth-child(2),
main#idb-literacy .fl-profile-section table td:nth-child(2),
main#idb-literacy .fl-profile-section table th:nth-child(3),
main#idb-literacy .fl-profile-section table td:nth-child(3) { width: 29.3%; }
main#idb-literacy .fl-profile-section table td {
  font-size: 14px; font-weight: 700;
  padding-top: calc(17.5px * var(--fl-k, 1));
  padding-bottom: calc(17.5px * var(--fl-k, 1));
}
/* course card text: lessons count bold 13.5px, date 14px regular (were 13.6px regular / 12px) */
main#idb-literacy .fl-enrolled-card > p     { font-size: max(12px, calc(13.5px * var(--fl-k, 1))); font-weight: 700; }
main#idb-literacy .fl-enrolled-card > small { font-size: max(12px, calc(14px * var(--fl-k, 1)));   font-weight: 400; }

/* ---------- Dashboard: "الدورات قيد التقدم" as a Swiper with arrows (site .controls pattern) ---------- */
main#idb-literacy .fl-enrolled-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
main#idb-literacy .fl-enrolled-nav { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
main#idb-literacy .fl-enrolled-nav .prev,
main#idb-literacy .fl-enrolled-nav .next {
  display: flex; justify-content: center; align-items: center;
  width: 29px; height: 28px; cursor: pointer; transition: opacity .35s;
}
main#idb-literacy .fl-enrolled-nav .prev img { transform: scaleX(-1); }   /* RTL: previous points right */
main#idb-literacy .fl-enrolled-nav .swiper-button-disabled { opacity: .3; cursor: default; }
main#idb-literacy .fl-enrolled-screen { overflow: hidden; position: relative; }
main#idb-literacy .fl-enrolled-screen .swiper-wrapper { display: flex; }
main#idb-literacy .fl-enrolled-screen .swiper-slide { width: min(394px, 100%); height: auto; display: flex; flex-shrink: 0; }
main#idb-literacy .fl-enrolled-screen .fl-enrolled-card { width: 100%; }
/* slider scrollbar replaces the old .fl-scroll-rule: grey line with a black drag segment */
main#idb-literacy .fl-enrolled-scrollbar {
  position: static; width: 100%; height: 2px; border-radius: 0;
  background: #b6b6b6; margin-top: calc(44px * var(--fl-k, 1)); cursor: pointer;
}
main#idb-literacy .fl-enrolled-scrollbar .swiper-scrollbar-drag { background: #121212; border-radius: 0; }

/* =====================================================================
   IDB e-learning – CERTIFICATE on the passed result page (/result/6), design 1700px
   Appended to financial-literacy.css.
   The certificate already scales with the screen (its font-size is in vw and
   everything inside is in em), so these fixes use em too → they shrink with it
   on 1399 / 1199 / 991 / 767 automatically.
   ===================================================================== */

/* ---------- Dark ribbon ---------- */
/* narrower like the design (186px → 156px at 1700); items grouped from the top
   instead of spread evenly (justify-content was space-between) */
main#idb-literacy .fl-certificate-ribbon {
  width: 19.2%;
  justify-content: flex-start;
  font-family: 'Tajawal', sans-serif;   /* was "Gumela" – that font does not exist, so it showed Arial */
}
/* "شهادة مشاركة" */
main#idb-literacy .fl-certificate-ribbon h4 {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.1em;                    /* 11px */
  font-weight: 700;
  line-height: 1.4;
}
/* "PARTICIPATION" – right under the title */
main#idb-literacy .fl-certificate-ribbon > span {
  font-family: 'ProximaNovaRegular', sans-serif;   /* was "Proxima" – does not exist, showed Times */
  letter-spacing: .3em;
  margin-top: 1.1em;
  color: rgba(255, 255, 255, .7);
}
main#idb-literacy .fl-certificate-ribbon hr { margin: 1.1em 0 0; }
/* "رقم الشهادة" label */
main#idb-literacy .fl-certificate-ribbon > small:not(:last-child) {
  font-family: 'Tajawal', sans-serif;
  font-size: .75em;
  margin-top: 2.4em;
  color: rgba(255, 255, 255, .65);
}
/* certificate code + short red line under it */
main#idb-literacy .fl-certificate-ribbon > b {
  position: relative;
  font-family: 'ProximaNovaBold', sans-serif;
  font-size: .85em;                    /* was 6px */
  font-weight: 700;
  letter-spacing: .08em;
  margin-top: 1.05em;
  padding-bottom: .8em;
}
main#idb-literacy .fl-certificate-ribbon > b::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4.5em;
  height: 2px;
  transform: translateX(-50%);
  background: #EA0029;
}
/* "2026-2027" – sans-serif regular (showed Times) */
main#idb-literacy .fl-certificate-ribbon > strong {
  font-family: 'ProximaNovaRegular', sans-serif;
  font-size: 1.9em;                    /* 19px */
  font-weight: 400;
  letter-spacing: 0;
  margin: 1.9em 0 0;
}
main#idb-literacy .fl-certificate-ribbon > strong { white-space: nowrap; }
/* QR: bigger white box (70px → 88px, code 50px → 68px) */
main#idb-literacy .fl-certificate-symbol {
  margin-top: auto;
  padding: 1em;
  width: 8.8em;
  height: 8.8em;
}
/* bank name at the bottom, with a divider line above it */
main#idb-literacy .fl-certificate-ribbon > small:last-child {
  font-family: 'Tajawal', sans-serif;
  font-size: .75em;
  font-weight: 700;
  width: 100%;
  margin-top: 9.5em;
  padding-top: 2.8em;
  border-top: 1px solid rgba(255, 255, 255, .125);
}

/* ---------- Logo block (top right) ---------- */
/* text bigger (7.5px → 10.7px), right-aligned, thin grey line under the logo */
main#idb-literacy .fl-certificate-brand > p {
  font-size: 1.07em;
  line-height: 1.35;
  text-align: right;
  margin-top: .6em;
  padding-top: .6em;
  border-top: 1px solid #e5e5e5;
}

/* ---------- Title block ---------- */
/* whole text block 24px higher, like the design */
main#idb-literacy .fl-certificate-copy { margin-top: -4.6em; }
main#idb-literacy .fl-certificate-copy h2 { font-size: 3em; }      /* 30px, was 27.7px */
/* "CERTIFICATE OF PARTICIPATION": wider spacing + short pink line under it */
main#idb-literacy .fl-certificate-en {
  position: relative;
  font-size: .85em;
  letter-spacing: .35em;
  color: #222;
  margin-top: .45em;
  padding-bottom: .7em;
}
main#idb-literacy .fl-certificate-en::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 12.5em;                       /* 106px */
  height: 2px;
  transform: translateX(-50%);
  background: #f5b8c3;
}
main#idb-literacy .fl-certificate-en + p { margin-top: 1.15em; }
/* name */
main#idb-literacy .fl-certificate-copy h3 {
  font-size: 2.75em;                   /* 27.6px, was 25.9px */
  line-height: 1.2;
  margin: .6em 0 .07em;
}

/* ---------- Course box + facts ---------- */
main#idb-literacy .fl-certificate-course { margin-top: 2.05em; }  /* was 12px */
/* small gap between the two boxes, taller row, two equal halves with a divider */
main#idb-literacy .fl-certificate-facts {
  margin-top: .5em;
  padding-top: 1.3em;
  padding-bottom: 1.3em;
}
main#idb-literacy .fl-certificate-facts > span { flex: 1; text-align: center; }
main#idb-literacy .fl-certificate-facts > span:first-child { border-left: 1px solid #ececec; }

/* ---------- Responsive ---------- */
/* the certificate keeps its shape, so on smaller screens give the text more room */
@media (max-width: 1199px) {
  main#idb-literacy .fl-certificate-copy { margin-top: 0; }
  main#idb-literacy .fl-certificate-ribbon > small:last-child { margin-top: auto; }
  main#idb-literacy .fl-certificate-brand > p { font-size: .85em; }
  main#idb-literacy .fl-certificate-course { margin-top: 1.2em; }
  main#idb-literacy .fl-certificate-copy h3 { margin-top: .3em; }
}
@media (max-width: 991px) {
  main#idb-literacy .fl-certificate-ribbon { width: 23%; }   /* original width, so "2026-2027" fits */
  main#idb-literacy .fl-certificate-ribbon > strong { font-size: 1.6em; }
}

/* ---------- Print: certificate on ONE A4 landscape page ----------
   Why it printed on 2 pages: the screen fixes above (result card margins 17% / 21.9%,
   result body padding 47px / 48px) beat the print rules, so the 177mm certificate
   + padding was taller than the 180mm printable area (A4 210mm - 2x15mm). */
@media print {
  html, body { height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; }
  body.idb-program-site:has(#participation-certificate) .dpmenu,
  main#idb-literacy .fl-toast { display: none !important; }

  main#idb-literacy .fl-result-section { padding: 0 !important; margin: 0 !important; max-width: none !important; min-height: 0 !important; }
  main#idb-literacy .fl-result-card    { margin: 0 !important; padding: 0 !important; border: 0 !important; min-height: 0 !important; }
  main#idb-literacy .fl-result-body    { padding: 0 !important; }

  main#idb-literacy .fl-certificate {
    width: 250mm;
    height: 175mm;                       /* a little under 180mm so it never spills */
    margin: 0 auto !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  /* the print page is ~1009px wide, so keep the desktop spacing, not the <=1199 one */
  main#idb-literacy .fl-certificate-copy   { margin-top: -4.6em; }
  main#idb-literacy .fl-certificate-ribbon > small:last-child { margin-top: 9.5em; }
  main#idb-literacy .fl-certificate-brand > p { font-size: 1.07em; }
  main#idb-literacy .fl-certificate-course { margin-top: 2.05em; }
  main#idb-literacy .fl-certificate-copy h3 { margin-top: .6em; }
}

/* =====================================================================
   IDB e-learning – DASHBOARD "شهاداتي" certificate cards (design 1700px)
   Appended to financial-literacy.css after the dashboard blocks.
   Reuses --fl-k from the spacing block above.
   ===================================================================== */

/* cards in a row of 396px columns, 20px apart.
   Only when there are certificates, so the empty grey box stays full width. */
main#idb-literacy #my-certificates:has(.fl-earned-certificate) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(0, 396px));
  column-gap: 20px;
  row-gap: 20px;
}
main#idb-literacy #my-certificates:has(.fl-earned-certificate) > h2 { grid-column: 1 / -1; margin-bottom: 2px; }

main#idb-literacy #my-certificates .fl-earned-certificate {
  max-width: none;                 /* was 26.2% of the row */
  min-width: 0;
  width: auto;
  padding: 25px max(20px, calc(33px * var(--fl-k, 1))) 0;   /* was 28px 31px 0 */
}

/* "شهادة مشاركة · مصرف التنمية الدولي" */
main#idb-literacy .fl-earned-certificate > p:first-child { font-size: 13px; font-weight: 400; line-height: 1.5; color: #222; }

/* course title: 20px like the course cards (was 23px on 2 lines) */
main#idb-literacy .fl-earned-certificate > h3 {
  font-size: max(17px, calc(20px * var(--fl-k, 1)));
  line-height: 1.2;
  margin: 29px 0 0;
}
/* date: bold, right under the title (was regular, 4px lower) */
main#idb-literacy .fl-earned-certificate > h3 + p { font-size: 13.5px; font-weight: 700; line-height: 1.3; margin-top: -2px; }

/* certificate code: uses the font "Proxima", which doesn't exist, so it showed Times */
main#idb-literacy .fl-earned-certificate > small {
  font-family: 'ProximaNovaRegular', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1.3;
  margin-top: 6px;
}

/* "تنزيل": 21px below the code (was touching it), 90×40, 13px bold (was 128×37, 18px / 800) */
main#idb-literacy .fl-earned-certificate > .fl-btn {
  margin-top: 21px;
  height: 40px;
  min-width: 90px;
  padding: 2px 16px 0;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
}
main#idb-literacy .fl-earned-certificate > .fl-btn svg { width: 15px; height: 15px; }

/* share row: 26px under the button, icons 24px under the line, 26px space at the bottom (was 0) */
main#idb-literacy .fl-earned-certificate .fl-share-row {
  margin-top: 26px;
  margin-bottom: 0;
  padding: 24px 0 26px;
  gap: 32px;
  align-items: center;
}
/* all icons the same 20px size (were 6–29px wide) */
main#idb-literacy .fl-earned-certificate .fl-share-row > button {
  width: 20px;
  height: 20px;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}
main#idb-literacy .fl-earned-certificate .fl-share-row > button svg { width: 18px; height: 18px; }
/* WhatsApp: hide the "◉" text and show the FontAwesome icon */
main#idb-literacy .fl-earned-certificate .fl-share-row > button[aria-label="whatsapp"] { font-size: 0; }
main#idb-literacy .fl-earned-certificate .fl-share-row > button[aria-label="whatsapp"]::before {
  content: "\f232";
  font-family: FontAwesome;
  font-size: 19px;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  main#idb-literacy #my-certificates:has(.fl-earned-certificate) { grid-template-columns: 1fr; }
}

/* ---------- Courses page: results fade while the AJAX search/filter is loading ---------- */
main#idb-literacy #course-results { transition: opacity .2s; }
main#idb-literacy .fl-courses-library.fl-loading #course-results { opacity: .45; pointer-events: none; }
main#idb-literacy .fl-load-more { display: flex; justify-content: center; margin-top: calc(40px * var(--fl-k, 1)); min-height: 44px; }
main#idb-literacy .fl-load-more.fl-loading .custbtm { opacity: .5; pointer-events: none; }

/* =====================================================================
   IDB e-learning – COURSES LIBRARY page /elearning/courses (design 1700px)
   Reuses --fl-k / --fl-side from the spacing block above.
   Card rules are scoped to .fl-courses-library so the home page course cards don't change.
   ===================================================================== */

/* ---------- Hero ---------- */
main#idb-literacy .fl-wide-hero .fl-eyebrow { font-size: max(12px, calc(14px * var(--fl-k, 1))); }   /* "مكتبة الدورات", was 13.5px */
/* title 46px (was 52px); red line starts under the end of the title and runs to the right edge of the screen
   (was a full-width line under the whole container) */
main#idb-literacy .fl-wide-hero h1.fl-underlined {
  font-size: max(28px, calc(46px * var(--fl-k, 1)));
  width: fit-content;
  max-width: 100%;
  border-bottom: 0;
  position: relative;
  padding-bottom: calc(6.5px * var(--fl-k, 1));   /* line 22px under the text, was 30px */
}
main#idb-literacy .fl-wide-hero h1.fl-underlined::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: calc(-1 * var(--fl-side, 96px));
  height: 2px;
  background: #EA0029;
}
/* subtitle 15px (was 16px), same position as before */
main#idb-literacy .fl-wide-hero .fl-hero-content > p:last-child {
  font-size: max(13px, calc(15px * var(--fl-k, 1)));
  margin-top: calc(35.5px * var(--fl-k, 1));
}

/* ---------- Level filter chips ---------- */
/* 80×40, 13px bold, 12px apart (were 92×45, 15.5px / 800, 17px apart) */
main#idb-literacy .fl-filter-bar {
  gap: 12px;
  margin-bottom: calc(40px * var(--fl-k, 1));
}
main#idb-literacy .fl-filter-bar > a.custbtm {
  height: 40px;
  min-width: 80px;
  padding: 2px 20px 0;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  align-items: center;
}

/* ---------- Course cards ---------- */
/* card 698px tall like the design (was 752px) */
main#idb-literacy .fl-courses-library .fl-course-card-body {
  padding: 31px calc(29px * var(--fl-k, 1)) 32px;   /* sides were 40px */
}
/* title 23.5px on one line (was 25.6px on 2 lines) */
main#idb-literacy .fl-courses-library .fl-course-card h3 {
  font-size: max(18px, calc(23.5px * var(--fl-k, 1)));
  line-height: 1.3;
  margin-bottom: 15px;
}
main#idb-literacy .fl-courses-library .fl-course-card-body > p {
  line-height: 21px;                                   /* was 23px */
  margin-bottom: calc(34px * var(--fl-k, 1));          /* was 45px */
}
main#idb-literacy .fl-courses-library .fl-course-meta { margin-bottom: calc(25.5px * var(--fl-k, 1)); }   /* was 22.5px */
/* buttons: 144×40, 13px bold, 18px apart (were 2 × 203×37, 18px / 800) */
main#idb-literacy .fl-courses-library .fl-card-actions {
  grid-template-columns: repeat(2, minmax(0, 144px));
  gap: 18px;
}
main#idb-literacy .fl-courses-library .fl-card-actions > a.fl-btn.custbtm {
  height: 40px;
  min-width: 0;
  padding: 2px 10px 0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  justify-content: center;
}

/* =====================================================================
   IDB e-learning – ABOUT PROGRAM page /elearning/aboutprogram (design 1700px)
   Reuses --fl-k from the spacing block above.
   The hero is the same .fl-wide-hero as the courses page → already fixed by
   the courses page block above (checked: title, red line and subtitle match this design).
   ===================================================================== */

/* the 4 blocks: لماذا الآن؟ / من نخدم / كيف نعمل / شركاؤنا */
main#idb-literacy .fl-about-grid {
  padding-top: calc(61.5px * var(--fl-k, 1));      /* was 59px */
  padding-bottom: calc(130px * var(--fl-k, 1));    /* was 104px → footer box 26px lower, like the design */
  row-gap: calc(72px * var(--fl-k, 1));            /* grey line → next title, was 76px */
  column-gap: calc(100px * var(--fl-k, 1));        /* was 102px */
}
main#idb-literacy .fl-about-grid > article {
  padding-bottom: calc(73.5px * var(--fl-k, 1));   /* text → grey line, was 95px */
}
/* titles: 22px bold red (were 31px regular) */
main#idb-literacy .fl-about-grid > article h2 {
  font-size: max(19px, calc(22px * var(--fl-k, 1)));
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 9px;
}
/* text: 15px bold, 21px lines, wraps at ~525px like the design (was 16px regular, 27px lines, full column width) */
main#idb-literacy .fl-about-grid > article p {
  font-size: max(14px, calc(15px * var(--fl-k, 1)));
  font-weight: 700;
  line-height: 1.4;
  max-width: 525px;
}

/* ---------- DIGITHER: timeline / gallery / voices as Swipers with site arrows + scrollbar (replaces .fl-scroll-rule) ---------- */
main#idb-literacy .fl-track-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
main#idb-literacy .fl-track-head > h2,
main#idb-literacy .fl-track-head > .fl-section-heading { min-width: 0; flex: 1 1 auto; }
main#idb-literacy .fl-track-nav { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-bottom: calc(14px * var(--fl-k, 1)); }
main#idb-literacy .fl-digither-timeline .fl-track-nav { margin-bottom: 0; align-self: center; }
main#idb-literacy .fl-digither-timeline .fl-track-head > h2 { margin-bottom: 0; }
main#idb-literacy .fl-digither-timeline .fl-track-head { margin-bottom: calc(60px * var(--fl-k, 1)); }
main#idb-literacy .fl-track-nav .prev,
main#idb-literacy .fl-track-nav .next {
  display: flex; justify-content: center; align-items: center;
  width: 29px; height: 28px; cursor: pointer; transition: opacity .35s;
}
main#idb-literacy .fl-track-nav .prev img { transform: scaleX(-1); }   /* RTL: previous points right */
main#idb-literacy .fl-track-nav .swiper-button-disabled { opacity: .3; cursor: default; }
main#idb-literacy .fl-digither-timeline .fl-track-nav img { filter: brightness(0) invert(1); }   /* white arrows on the dark block */

/* the three tracks: Swiper layout instead of grid / scroll-snap flex */
main#idb-literacy .fl-track-swiper { display: block; overflow: hidden; position: relative; gap: 0; padding-bottom: 0; scroll-snap-type: none; }
main#idb-literacy .fl-track-swiper .swiper-wrapper { display: flex; }
main#idb-literacy .fl-track-swiper .swiper-slide { height: auto; min-width: 0; display: flex; }
main#idb-literacy .fl-timeline-track.fl-track-swiper article { width: 100%; min-width: 0; }
main#idb-literacy .fl-timeline-track.fl-track-swiper:before { display: block; }   /* keep the middle line on all widths */
main#idb-literacy .fl-gallery-track.fl-track-swiper button { width: 100%; min-width: 0; }
main#idb-literacy .fl-gallery-track.fl-track-swiper img { width: 100%; }
main#idb-literacy .fl-voices-grid.fl-track-swiper .fl-video-poster { width: 100%; min-width: 0; }

/* scrollbar styled like the old .fl-scroll-rule */
main#idb-literacy .fl-track-scrollbar {
  position: static; width: 100%; height: 2px; border-radius: 0;
  background: #b6b6b6; margin-top: calc(44px * var(--fl-k, 1)); cursor: pointer;
}
main#idb-literacy .fl-track-scrollbar .swiper-scrollbar-drag { background: #121212; border-radius: 0; }
main#idb-literacy .fl-digither-timeline .fl-track-scrollbar { background: #74657a; margin-top: calc(68px * var(--fl-k, 1)); }
main#idb-literacy .fl-digither-timeline .fl-track-scrollbar .swiper-scrollbar-drag { background: #fff; }
main#idb-literacy .fl-track-scrollbar.swiper-scrollbar-lock { display: none; }

/* =====================================================================
   IDB e-learning – DIGITHER page /elearning/digither (design 1700px)
   Reuses --fl-k / --fl-side from the spacing block above.
   Checked at 1700: every section, title, red line, text and image sits within ~10px of the design.
   ===================================================================== */

/* ---------- Section titles (all sections) ---------- */
/* small orange eyebrow → title: 56px like the design (was 42px) */
main#idb-literacy .fl-digither-page .fl-eyebrow { margin-bottom: calc(26px * var(--fl-k, 1)); }
/* titles 45px (were 43px); the pink line starts under the end of the title and runs to the
   right edge of the screen (was a line only under the title block) */
main#idb-literacy .fl-digither-page h2.fl-underlined {
  font-size: max(26px, calc(45px * var(--fl-k, 1)));
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  margin-right: 0;
  border-bottom: 0;
  position: relative;
}
main#idb-literacy .fl-digither-page h1.fl-underlined::after,
main#idb-literacy .fl-digither-page h2.fl-underlined::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: calc(-1 * var(--fl-side, 96px));
  height: 2px;
  background: #ff0065;
}
/* short text under the titles: 13px, 22px lines (was 15px, 25px lines) */
main#idb-literacy .fl-digither-page .fl-section-intro {
  font-size: 13px;
  line-height: 22px;
  margin-top: calc(33px * var(--fl-k, 1));
}
/* the design has no ← → arrows next to the titles (sliders are dragged / use the scrollbar) */
main#idb-literacy .fl-digither-page .fl-track-nav { display: none; }

/* ---------- 1. Intro (photo + DIGITHER) ---------- */
main#idb-literacy .fl-digither-intro .fl-mosul-photo { height: calc(694px * var(--fl-k, 1)); object-fit: cover; }   /* was 709px */
main#idb-literacy .fl-digither-copy { display: flex; flex-direction: column; padding-top: calc(23px * var(--fl-k, 1)); }
main#idb-literacy .fl-digither-copy > .fl-digither-logo { align-self: flex-start; margin-left: 0; }
/* logo (new image digiher-2.webp): 348px wide like the design (was 362×115, stretched by the old
   410px max-width), 8px under the eyebrow (was 26px – the shared eyebrow gap), title 21px below */
main#idb-literacy .fl-digither-copy > .fl-eyebrow { margin-bottom: calc(8px * var(--fl-k, 1)); }
main#idb-literacy .fl-digither-copy > .fl-digither-logo {
  width: calc(348px * var(--fl-k, 1));
  max-width: 100%;
  height: auto;
}
/* title: 45px on 3 lines like the design (was 47px on 2 lines) */
main#idb-literacy .fl-digither-intro h1.fl-underlined {
  font-size: max(30px, calc(45px * var(--fl-k, 1)));
  line-height: 1.3;
  width: fit-content;
  max-width: 588px;
  margin: calc(21px * var(--fl-k, 1)) 0 0;   /* was -4px (made for the old logo) – title overlapped the new logo by 4px */
  padding-bottom: calc(14px * var(--fl-k, 1));
  border-bottom: 0;
  position: relative;
}
/* text: 13px, 600px wide, aligned right (had a 151px right margin) */
main#idb-literacy .fl-digither-intro .fl-digither-copy > h1 + p {
  max-width: 600px;
  margin: calc(30px * var(--fl-k, 1)) 0 0;
  font-size: 13px;
  line-height: 22px;
}
/* 25 / 8 / 4 boxes: at the bottom, level with the photo; number + label on the right (were centred) */
main#idb-literacy .fl-digither-intro .fl-stats { margin-top: auto; gap: 16px; }
main#idb-literacy .fl-digither-intro .fl-stats > div {
  align-items: flex-start;
  text-align: right;
  min-height: calc(114px * var(--fl-k, 1));
  padding: 20px 24px;
}

/* ---------- 2. "عن البرنامج" – a box inside the page margins (was a full-width band) ---------- */
main#idb-literacy .fl-digither-about {
  margin-right: var(--fl-side, 96px);
  margin-left: var(--fl-side, 96px);
  padding: calc(31px * var(--fl-k, 1)) calc(108px * var(--fl-k, 1)) calc(33px * var(--fl-k, 1)) calc(68px * var(--fl-k, 1));
  grid-template-columns: minmax(0, 746px) minmax(0, 328px);
  justify-content: space-between;
}
main#idb-literacy .fl-digither-about > div:first-child { align-self: start; padding-top: calc(63px * var(--fl-k, 1)); }
main#idb-literacy .fl-digither-about h2.fl-underlined::after { right: calc(-108px * var(--fl-k, 1)); }   /* line to the box edge */
main#idb-literacy .fl-digither-about > div:first-child > p { font-size: 13px; line-height: 22px; margin-top: 0; }
main#idb-literacy .fl-digither-about > div:first-child > h2 + p { margin-top: calc(32px * var(--fl-k, 1)); }
main#idb-literacy .fl-digither-about > div:first-child > p + p { margin-top: 18px; }
main#idb-literacy .fl-digither-numbers { gap: calc(26px * var(--fl-k, 1)); }
main#idb-literacy .fl-digither-numbers > div { padding-bottom: calc(34px * var(--fl-k, 1)); }

/* ---------- 3. Intro video ---------- */
main#idb-literacy .fl-digither-page > section:nth-child(3) { padding-top: calc(57px * var(--fl-k, 1)); padding-bottom: 0; }
main#idb-literacy .fl-digither-page > section:nth-child(3) .fl-section-intro { max-width: 650px; margin-top: calc(31px * var(--fl-k, 1)); }

/* ---------- 4. "المحاور التدريبية الأربعة" ---------- */
main#idb-literacy .fl-digither-page > section:nth-child(4) { padding-top: calc(57px * var(--fl-k, 1)); padding-bottom: calc(66px * var(--fl-k, 1)); }
main#idb-literacy .fl-digither-page > section:nth-child(4) .fl-section-intro { max-width: 470px; margin-bottom: calc(42px * var(--fl-k, 1)); }
main#idb-literacy .fl-digither-page > section:nth-child(4) .fl-feature-grid { margin-top: 0; }

/* ---------- 5. Timeline (dark) ---------- */
main#idb-literacy .fl-digither-timeline { padding-bottom: calc(110px * var(--fl-k, 1)); overflow: hidden; }
main#idb-literacy .fl-digither-timeline .fl-timeline-track { overflow: visible; }   /* cards run off the left edge like the design */
main#idb-literacy .fl-digither-timeline h2 { font-size: max(18px, calc(20px * var(--fl-k, 1))); }   /* was 26px */
main#idb-literacy .fl-digither-timeline .fl-track-head { margin-bottom: calc(52px * var(--fl-k, 1)); }
main#idb-literacy .fl-digither-timeline article { padding: 27px 36px 35px; }
main#idb-literacy .fl-digither-timeline article h3 { font-size: max(18px, calc(22px * var(--fl-k, 1))); margin-top: 7px; }   /* was 26px */
main#idb-literacy .fl-digither-timeline article p { font-size: 14px; line-height: 24px; margin-top: 4px; }

/* ---------- 6. "يوم المشاريع" and 9. "شهادات المشاركات" (photo + text) ---------- */
main#idb-literacy .fl-digither-page > .fl-digither-split { padding-top: calc(80px * var(--fl-k, 1)); padding-bottom: calc(80px * var(--fl-k, 1)); }
main#idb-literacy .fl-digither-page .fl-digither-split { grid-template-columns: minmax(0, 1fr) 49.6%; }   /* photo 748px wide (was 705px) */
main#idb-literacy .fl-digither-page .fl-digither-split p:not(.fl-eyebrow) { max-width: 550px; font-size: 13px; line-height: 24px; }
main#idb-literacy .fl-testimonial-section .fl-video-poster { aspect-ratio: 748 / 536; height: auto; }

/* ---------- 7. "من فعاليات الورشة" gallery ---------- */
main#idb-literacy .fl-gallery-section { padding-top: calc(51px * var(--fl-k, 1)); padding-bottom: calc(67px * var(--fl-k, 1)); overflow: hidden; }
main#idb-literacy .fl-gallery-section .fl-gallery-track { overflow: visible; }   /* next photos show at the left edge */
main#idb-literacy .fl-gallery-section .fl-section-intro { max-width: 390px; margin-bottom: calc(54px * var(--fl-k, 1)); }
main#idb-literacy .fl-gallery-section .swiper-scrollbar { margin-top: calc(54px * var(--fl-k, 1)); }

/* ---------- 8. "من قلب البرنامج" videos ---------- */
main#idb-literacy .fl-digither-page > .fl-track { padding-top: calc(78px * var(--fl-k, 1)); padding-bottom: calc(120px * var(--fl-k, 1)); }
main#idb-literacy .fl-digither-page > .fl-track .fl-section-intro { max-width: 320px; margin-bottom: calc(70px * var(--fl-k, 1)); }

/* ---------- 10. Quote (dark) ---------- */
main#idb-literacy .fl-digither-quote { padding-top: calc(135px * var(--fl-k, 1)); padding-bottom: calc(108px * var(--fl-k, 1)); }
/* 40px on 3 lines, 980px wide (was 45px on 2 lines, 1400px) */
main#idb-literacy .fl-digither-quote blockquote {
  font-size: max(24px, calc(40px * var(--fl-k, 1)));
  line-height: 1.35;
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}
main#idb-literacy .fl-digither-quote blockquote + p { margin-top: calc(67px * var(--fl-k, 1)); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  /* text above photo, numbers under the text */
  main#idb-literacy .fl-digither-page .fl-digither-split,
  main#idb-literacy .fl-digither-about { grid-template-columns: 1fr; row-gap: 40px; }
  main#idb-literacy .fl-digither-about > div:first-child { padding-top: 0; }
}
/* DIGITHER: no prev/next arrows in the design, only the scrollbar */
main#idb-literacy .fl-digither-page .fl-track-nav { display: none; }

/* =====================================================================
   IDB e-learning – YouTube video popup (#site-dialog), all pages
   Appended to financial-literacy.css.
   Why it looked broken: the site's reset "* { margin: 0 }" removes the browser's
   "margin: auto" on <dialog>, so the popup stuck to the TOP-RIGHT corner, 650px wide
   with a small 578×325 video.
   ===================================================================== */

/* every popup: centred on the screen (also fixes the other messages that use this dialog) */
body dialog#site-dialog.fl-site-dialog[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  max-height: calc(100vh - 40px);
  overflow: auto;
}
body dialog#site-dialog.fl-site-dialog::backdrop { background: rgba(0, 0, 0, .8); }

/* video popup only (has an iframe): big dark player, 16:9, always fits the screen height */
body dialog#site-dialog.fl-site-dialog:has(iframe),
body dialog#site-dialog.fl-site-dialog:has(video) {
  width: min(1100px, calc(100vw - 40px), calc((100vh - 150px) * 16 / 9 + 48px));
  max-width: none;
  padding: 56px 24px 24px;
  background: #111;
  color: #fff;
}
body dialog#site-dialog.fl-site-dialog:has(iframe) #dialog-title,
body dialog#site-dialog.fl-site-dialog:has(video) #dialog-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 16px;
  padding-left: 40px;          /* room for the × */
  color: #fff;
}
body dialog#site-dialog.fl-site-dialog:has(iframe) #dialog-body > div,
body dialog#site-dialog.fl-site-dialog:has(video) #dialog-body > div {
  padding-top: 0 !important;   /* was a padding-top ratio box */
  aspect-ratio: 16 / 9;
  height: auto;
}
body dialog#site-dialog.fl-site-dialog:has(iframe) iframe { width: 100%; height: 100%; border: 0; }
/* × : white round button in the top-left corner (was overlapping the title) */
body dialog#site-dialog.fl-site-dialog:has(iframe) .fl-dialog-close,
body dialog#site-dialog.fl-site-dialog:has(video) .fl-dialog-close {
  top: 12px;
  left: 12px;
  right: auto;
  width: 36px;
  height: 36px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
}
body dialog#site-dialog.fl-site-dialog:has(iframe) .fl-dialog-close svg,
body dialog#site-dialog.fl-site-dialog:has(video) .fl-dialog-close svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; }

@media (max-width: 767px) {
  body dialog#site-dialog.fl-site-dialog:has(iframe),
  body dialog#site-dialog.fl-site-dialog:has(video) { padding: 56px 12px 12px; width: calc(100vw - 24px); }
}

/* video posters without a video: no play icon (not rendered), not clickable */
main#idb-literacy .fl-video-poster.fl-no-video,
main#idb-literacy .fl-video-poster:disabled { cursor: default; pointer-events: none; }

/* =====================================================================
   IDB e-learning – full audit fixes (2 Nov 2026), all pages, all screen sizes
   Paste at the END of financial-literacy.css (where the other fixes now live).
   ===================================================================== */

/* ---------- 1. Header – new design (markup: .fl-header-row > burger, .fl-header-nav, .fl-header-logo, .fl-header-auth) ---------- */
/* Design at 1700: 3 columns – logo on the RIGHT (282px), menu CENTRED on the page (34px between items),
   the 2 buttons on the far left. Done with a 3-column grid (1fr | auto | 1fr) so the menu stays in the
   exact centre whatever the logo / button widths are. No HTML change needed (each part is placed by column).
   Only from 1190px up (below that the burger menu is used and nothing changes).
   Sized for 7 menu items like the design (site has 6 – "برنامج التوعية المصرفية" is missing). */
@media (min-width: 1190px) {
  body header.idb-program-header .fl-header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);   /* RTL: column 1 = right */
    align-items: center;
    column-gap: 24px;
  }
  body header.idb-program-header .fl-header-logo { grid-column: 1; grid-row: 1; justify-self: start; order: 0; width: 282px; margin: 0; }
  body header.idb-program-header .fl-header-logo img { width: 100%; height: auto; }
  body header.idb-program-header .fl-header-nav  { grid-column: 2; grid-row: 1; flex: none; margin: 0; }
  body header.idb-program-header .fl-header-nav ul.list { gap: 34px; justify-content: center; }
  body header.idb-program-header .fl-header-auth { grid-column: 3; grid-row: 1; justify-self: end; flex: none; margin: 0; }
}
/* smaller screens: logo, gaps, menu text and buttons shrink step by step so nothing touches */
@media (min-width: 1190px) and (max-width: 1649px) {
  body header.idb-program-header .fl-header-logo { width: 240px; }
  body header.idb-program-header .fl-header-nav ul.list { gap: 24px; }
}
@media (min-width: 1190px) and (max-width: 1499px) {
  body header.idb-program-header .fl-header-logo { width: 200px; }
  body header.idb-program-header .fl-header-nav ul.list { gap: 18px; }
  body header.idb-program-header .fl-header-nav .link { font-size: 13px !important; }   /* site sets 14px !important */
  body header.idb-program-header .fl-header-auth .custbtm { min-width: 120px; }
}
@media (min-width: 1190px) and (max-width: 1365px) {
  body header.idb-program-header .fl-header-row { column-gap: 16px; }
  body header.idb-program-header .fl-header-logo { width: 180px; }
  body header.idb-program-header .fl-header-nav ul.list { gap: 12px; }
  body header.idb-program-header .fl-header-nav .link { font-size: 12.5px !important; }
  body header.idb-program-header .fl-header-auth { gap: 10px; }
  body header.idb-program-header .fl-header-auth .custbtm { min-width: 108px; padding-right: 12px; padding-left: 12px; }
}
@media (min-width: 1190px) and (max-width: 1249px) {
  body header.idb-program-header .fl-header-logo { width: 160px; }
  body header.idb-program-header .fl-header-nav ul.list { gap: 10px; }
  body header.idb-program-header .fl-header-nav .link { font-size: 12px !important; }
  body header.idb-program-header .fl-header-auth .custbtm { min-width: 100px; }
}

/* ---------- 2. Text too small to read (was 7–11px) – never below 12px ---------- */
/* same scaling as before, only the minimum goes from 10/11px to 12px */
main#idb-literacy .fl-eyebrow                         { font-size: clamp(12px, 0.78vw, 15px); }
main#idb-literacy .fl-stats span                      { font-size: clamp(12px, 0.82vw, 16px); }
main#idb-literacy .fl-national-section .fl-stats span { font-size: clamp(12px, 0.84vw, 16px); }
main#idb-literacy .fl-home-visual p                   { font-size: clamp(12px, 0.87vw, 17px); }
main#idb-literacy .fl-video-caption                   { font-size: clamp(12px, 0.83vw, 16px); }
main#idb-literacy .fl-tag                             { font-size: clamp(12px, 0.8vw, 15px); }
main#idb-literacy .fl-course-meta                     { font-size: clamp(12px, 0.8vw, 15px); }
main#idb-literacy .fl-detail-meta                     { font-size: clamp(12px, 0.8vw, 15px); }
main#idb-literacy .fl-breadcrumbs                     { font-size: clamp(12px, 0.8vw, 15px); }
main#idb-literacy .fl-share-row                       { font-size: clamp(12px, 0.8vw, 15px); }
main#idb-literacy .fl-sidebar-note                    { font-size: clamp(12px, 0.8vw, 15px); }
main#idb-literacy .fl-course-progress                 { font-size: clamp(12px, 0.8vw, 15px); }
main#idb-literacy .fl-course-progress p               { font-size: clamp(12px, 0.74vw, 14px); }
main#idb-literacy .fl-sidebar-info dl                 { font-size: clamp(12px, 0.85vw, 16px); }
main#idb-literacy .fl-curriculum li p                 { font-size: clamp(12px, 0.8vw, 15px); }
main#idb-literacy .fl-lesson-meta                     { font-size: clamp(12px, 0.85vw, 16px); }
main#idb-literacy .fl-lesson-test p                   { font-size: clamp(12px, 0.82vw, 16px); }
main#idb-literacy .fl-lesson-sidebar                  { font-size: clamp(12px, 0.79vw, 15px); }
main#idb-literacy .fl-lesson-side-row small           { font-size: clamp(12px, 0.7vw, 13px); }
main#idb-literacy .fl-contents-panel nav a            { font-size: clamp(12px, 0.77vw, 15px); }
main#idb-literacy .fl-quiz-heading p                  { font-size: clamp(12px, 0.82vw, 16px); }
main#idb-literacy .fl-question-count                  { font-size: clamp(12px, 0.77vw, 15px); }
main#idb-literacy .fl-profile-section th              { font-size: clamp(12px, 0.74vw, 14px); }   /* test table headers, were 10px */

/* lesson side panel: "38% من قراءة الدرس" was 9.2–10px (desktop size unchanged) */
@media (max-width: 1399px) {
  main#idb-literacy .fl-lesson-sidebar small,
  main#idb-literacy .fl-lesson-sidebar small b { font-size: 12px; }
}
/* phones: signup "أوافق على شروط الاستخدام…" was 11px */
@media (max-width: 767px) {
  main#idb-literacy form label:has(input[type="checkbox"]),
  main#idb-literacy form label:has(input[type="checkbox"]) * { font-size: 12px; }
}

/* course page: these scaled down to half on phones (description 7px, titles 10px) */
main#idb-literacy .fl-course-detail-main h1                             { font-size: max(26px, calc(46px * var(--fl-k, 1))); }
main#idb-literacy .fl-course-detail-main > p:not(.fl-breadcrumbs)       { font-size: max(13px, calc(14px * var(--fl-k, 1))); }
main#idb-literacy .fl-course-detail-main section h2,
main#idb-literacy .fl-curriculum h2                                      { font-size: max(17px, calc(20px * var(--fl-k, 1))); }
main#idb-literacy .fl-sidebar-info h2                                    { font-size: max(17px, calc(20px * var(--fl-k, 1))); }

/* tablet/phone sizes the site sets in px (10–11px) */
@media (max-width: 1199px) {
  main#idb-literacy .fl-home-copy > .fl-eyebrow,
  main#idb-literacy .fl-digither-copy > .fl-eyebrow,
  main#idb-literacy .fl-digither-teaser .fl-eyebrow,
  main#idb-literacy .fl-stats span,
  main#idb-literacy .fl-digither-numbers span,
  main#idb-literacy .fl-home-visual p,
  main#idb-literacy .fl-video-caption,
  main#idb-literacy .fl-tag,
  main#idb-literacy .fl-course-meta,
  main#idb-literacy .fl-detail-meta,
  main#idb-literacy .fl-course-detail-main .fl-breadcrumbs,
  main#idb-literacy .fl-course-progress p,
  main#idb-literacy .fl-curriculum li p,
  main#idb-literacy .fl-lesson-side-row small,
  main#idb-literacy .fl-question-count,
  main#idb-literacy .fl-profile-fields .fl-field label,
  main#idb-literacy .fl-field-hint { font-size: 12px; }
}
/* signup hints ("سنرسل لك رسالة…", "8 حروف على الأقل…") were 10px at every size */
main#idb-literacy .fl-field-hint { font-size: max(12px, 0.75em); }

/* ---------- 2a. Quiz result + certificate card: always centred ---------- */
/* The 17% / 21.9% side margins (from the 1700 design) made the card sit off-centre at every width
   (34px at 1700, 245px at 2560 where the old 1045px max-width kicked in, 83px at 767).
   Now centred everywhere, same width as the design at 1700 (1114px = 73.9% of the content). */
main#idb-literacy .fl-result-card,
main#idb-literacy .fl-result-card:not(:has(.fl-result-head)) {
  margin-right: auto;
  margin-left: auto;
  width: 73.9%;
  max-width: 1114px;
}
@media (max-width: 991px) {
  main#idb-literacy .fl-result-card,
  main#idb-literacy .fl-result-card:not(:has(.fl-result-head)) { width: 100%; max-width: none; }
}

/* ---------- 2b. Course page side box "تقدمك في الدورة": progress bar ---------- */
/* was the browser's default blue bar, 138px wide; design: full width of the box, light grey track, red fill */
main#idb-literacy .fl-course-progress progress {
  display: block;
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #e6e6e6;
  color: #EA0029;
  accent-color: #EA0029;
}
main#idb-literacy .fl-course-progress progress::-webkit-progress-bar   { background: #e6e6e6; border-radius: 4px; }
main#idb-literacy .fl-course-progress progress::-webkit-progress-value { background: #EA0029; border-radius: 4px; }
main#idb-literacy .fl-course-progress progress::-moz-progress-bar      { background: #EA0029; border-radius: 4px; }

/* ---------- 3a. Dashboard tabs on phones (≤767): red line under the active tab sat 8px ABOVE the grey line ---------- */
/* The tab row scrolls sideways there (overflow-x: auto) and has 8px padding-bottom; the scroll box also cuts off
   the red line's -1px overlap. Grey line drawn inside the row instead, so the red line covers it like on desktop. */
@media (max-width: 767px) {
  main#idb-literacy .fl-profile-tabs {
    padding-bottom: 0;
    border-bottom: 0;
    box-shadow: inset 0 -1px 0 #e5e5e5;
  }
  main#idb-literacy .fl-profile-tabs > a:not(.fl-btn) { margin-bottom: 0; }
}

/* ---------- 3. Dashboard: "دورات مكتملة" (not in the design, added since) ---------- */
/* its title touched the in-progress card above (0px gap) */
main#idb-literacy #my-courses > h2:not(.fl-enrolled-head) { margin-top: max(32px, calc(60px * var(--fl-k, 1))); }
/* completed cards were 362px, in-progress cards 394px → same width, 20px apart */
main#idb-literacy #my-courses .fl-enrolled-track {
  grid-template-columns: repeat(auto-fill, minmax(0, 394px));
  gap: 20px;
}
@media (max-width: 767px) {
  main#idb-literacy #my-courses .fl-enrolled-track { grid-template-columns: 1fr; }
}

/* =====================================================================
   E-learning dedicated header (.fl-header): ONE row at every width.
   Right: program links | middle: logo | left: account buttons.
   Below 1180px the links hide and the site's burger (.openmenu) opens the
   site-style slide panel (.dpmenu) with the program links only.
   ===================================================================== */
header.fl-header { position: fixed; top: 0; left: 0; width: 100%; background: var(--black, #000); z-index: 3; }
header.fl-header .fl-header-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 71px; }
header.fl-header .fl-header-nav { flex: 1 1 0; min-width: 0; }
header.fl-header .fl-header-nav .list { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; list-style: none; flex-wrap: nowrap; }
header.fl-header .fl-header-nav .list > li { margin: 0 !important; padding: 0; width: auto; flex: 0 0 auto; border: 0; }
header.fl-header .fl-header-nav .link { font-family: 'Tajawal', sans-serif; font-size: 14px; font-weight: 700; color: #fff !important; white-space: nowrap; display: inline-block; line-height: 1.5; padding: 0; }
header.fl-header .fl-header-nav .link.selected { border-bottom: 2px solid #fff; }
header.fl-header .fl-header-logo { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 267px; }
header.fl-header .fl-header-logo img { display: block; width: 100%; }
header.fl-header .fl-header-auth { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
header.fl-header .fl-header-auth .custbtm { font-size: 13px; min-width: 131px; padding-inline: 17px; justify-content: center; font-family: inherit; }
header.fl-header .fl-header-auth .white { color: var(--red); }
header.fl-header .fl-label-short, header.fl-header .openmenu.fl-header-burger { display: none; }
body.idb-program-site #content:before { height: 71px; }
/* the slide panel: program links only, Tajawal, current page in red */
.fl-dpmenu .nv .item { font-family: 'Tajawal', sans-serif; }
.fl-dpmenu .nv .item.selected { color: var(--red); }
/* DigitHer nav item: show the translated label exactly as typed */
header.fl-header .fl-header-nav .link.fl-nav-asis,
.fl-dpmenu .nv .item.fl-nav-asis { text-transform: unset !important; }
/* the site script toggles body.openmbmenu on phones: open the same panel there too */
body.openmbmenu .fl-dpmenu { opacity: 1; pointer-events: visible; }

/* menu sizes on medium screens: see the audit block above (logo 220/190px, 13px / 12.5px links) */
@media (max-width: 1365px) { header.fl-header .fl-header-nav .list { gap: 12px; } }
@media (max-width: 1249px) { header.fl-header .fl-header-nav .list { gap: 10px; } }

/* ---------- one row + site burger ---------- */
@media (max-width: 1180px) {
  header.fl-header .fl-header-row { height: 71px; gap: 12px; }
  header.fl-header .fl-header-nav { display: none; }
  header.fl-header .openmenu.fl-header-burger { display: flex; position: static; order: 1; flex: 0 0 auto; width: 36px; height: 36px; margin: 0; }
  header.fl-header .openmenu.fl-header-burger img { height: 13px; }
  header.fl-header .fl-header-logo { order: 2; margin-inline: auto; }
  header.fl-header .fl-header-auth { order: 3; flex: 0 0 auto; }
  body.idb-program-site #content:before { height: 71px; }
}
@media (max-width: 767px) {
  header.fl-header .fl-header-row { height: 78px; }
  body header.idb-program-header .fl-header-logo { width: 167px; }
  header.fl-header .fl-header-auth .custbtm { min-width: 0; padding-inline: 12px; font-size: 12px; }
  header.fl-header .fl-label-wide, header.fl-header .fl-join-link { display: none; }
  header.fl-header .fl-label-short { display: inline; }
  body.idb-program-site #content:before { height: 78px; }
  .fl-dpmenu { top: 78px; height: calc(100% - 78px); }
}

/* ---------- E-learning articles (list page + article page) ---------- */
main#idb-literacy .fl-articles-page .fl-article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
main#idb-literacy .fl-article-card h3 a { color: inherit; text-decoration: none; }
main#idb-literacy .fl-article-paging { display: flex; justify-content: center; gap: 14px; }
main#idb-literacy .fl-article-body { max-width: 900px; margin: 0 auto; font-size: 15px; line-height: 1.9; font-weight: 400; }
main#idb-literacy .fl-article-body h2, main#idb-literacy .fl-article-body h3 { margin: calc(28px * var(--fl-k, 1)) 0 10px; font-weight: 700; }
main#idb-literacy .fl-article-body p { margin-bottom: 14px; }
main#idb-literacy .fl-article-body img { max-width: 100%; height: auto; display: block; margin: 20px auto; }
main#idb-literacy .fl-article-body ul, main#idb-literacy .fl-article-body ol { padding-right: 22px; margin-bottom: 14px; }
main#idb-literacy .fl-article-back { display: flex; justify-content: center; margin-top: calc(40px * var(--fl-k, 1)); }
main#idb-literacy .fl-article-more .fl-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 991px) { main#idb-literacy .fl-articles-page .fl-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { main#idb-literacy .fl-articles-page .fl-article-grid, main#idb-literacy .fl-article-more .fl-article-grid { grid-template-columns: 1fr; } }

/* ---------- Article page: single centred column (breadcrumb, meta, title, byline, photo, contents box, body, share, read also) ---------- */
main#idb-literacy .fl-article-single { max-width: 860px; margin: 0 auto; }
main#idb-literacy .fl-article-single .fl-breadcrumbs { margin-bottom: calc(26px * var(--fl-k, 1)); }
main#idb-literacy .fl-article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-bottom: calc(16px * var(--fl-k, 1)); font-size: 13px; font-weight: 700; color: #555; }
main#idb-literacy .fl-article-meta .fl-tag { margin: 0; }
main#idb-literacy .fl-article-meta .fl-icon { width: 14px; height: 14px; vertical-align: -2px; margin-left: 4px; }
main#idb-literacy .fl-article-single h1 { margin-bottom: calc(14px * var(--fl-k, 1)); }
main#idb-literacy .fl-article-byline { font-size: 14px; font-weight: 700; color: #777; margin-bottom: calc(28px * var(--fl-k, 1)); }
main#idb-literacy .fl-article-gallery-box { position: relative; margin-bottom: calc(34px * var(--fl-k, 1)); }
main#idb-literacy .fl-article-gallery { overflow: hidden; position: relative; }
main#idb-literacy .fl-article-gallery .swiper-wrapper { display: flex; }
main#idb-literacy .fl-article-gallery .swiper-slide { flex-shrink: 0; width: 100%; }
main#idb-literacy .fl-article-gallery img { display: block; width: 100%; aspect-ratio: 2.1; object-fit: cover; }
main#idb-literacy .fl-article-gallery-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px; }
main#idb-literacy .fl-article-gallery-dots { position: static; display: flex; gap: 8px; width: auto; }
main#idb-literacy .fl-article-gallery-dots .swiper-pagination-bullet { width: 10px; height: 10px; background: #c9c9c9; opacity: 1; margin: 0; }
main#idb-literacy .fl-article-gallery-dots .swiper-pagination-bullet-active { background: var(--red); }
main#idb-literacy .fl-article-gallery-nav { display: flex; }
main#idb-literacy .fl-article-single .fl-article-body { max-width: none; margin: 0; }
main#idb-literacy .fl-article-body h2 { font-size: max(18px, calc(22px * var(--fl-k, 1))); }
main#idb-literacy .fl-article-body blockquote { border-right: 3px solid var(--red); background: #fff6f8; padding: 14px 20px; margin: 20px 0; font-weight: 700; }
main#idb-literacy .fl-article-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid #e5e5e5; margin-top: calc(40px * var(--fl-k, 1)); padding-top: calc(24px * var(--fl-k, 1)); }
main#idb-literacy .fl-article-footer .fl-share-row { margin: 0; }
main#idb-literacy .fl-article-more { margin-top: calc(70px * var(--fl-k, 1)); }
main#idb-literacy .fl-article-more > h2 { font-size: max(20px, calc(28px * var(--fl-k, 1))); margin-bottom: calc(26px * var(--fl-k, 1)); }
main#idb-literacy .fl-article-more .fl-article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 991px) { main#idb-literacy .fl-article-more .fl-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { main#idb-literacy .fl-article-more .fl-article-grid { grid-template-columns: 1fr; } }
/* article category: tag before the date on cards, link in the article hero */
main#idb-literacy .fl-article-date { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
main#idb-literacy .fl-article-date .fl-tag { margin: 0; }
main#idb-literacy .fl-article-hero .fl-article-category { color: inherit; text-decoration: none; font-weight: 700; }
main#idb-literacy .fl-article-hero .fl-article-category:hover { text-decoration: underline; }
main#idb-literacy .fl-articles-page .fl-course-search { margin-top: 0; }
/* auth pages: success message (forgot password) */
main#idb-literacy .fl-form-message.success { color: var(--fl-green, #00ac28); font-weight: 700; margin-bottom: 20px; }

/* =====================================================================
   IDB e-learning – ARTICLE page /ar/elearning/article/{id}/{title}
   Reuses --fl-k / --fl-side from the spacing block above.
   No design for this page: styled like the other pages (course / lesson / courses hero).
   Note: the class .fl-article-page is on <main> itself → "main#idb-literacy.fl-article-page" (no space).
   ===================================================================== */

/* full width: the article was an 860px column in the middle; now 96px from both sides like every page */
main#idb-literacy.fl-article-page .fl-article-single {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

/* title 46px like the course page (was 47.6px on 2 lines); red line starts under the end
   of the title and runs to the right edge of the screen, like the hero titles */
main#idb-literacy.fl-article-page h1.fl-underlined {
  font-size: max(28px, calc(46px * var(--fl-k, 1)));
  line-height: 1.35;
  width: fit-content;
  max-width: 100%;
  border-bottom: 0;
  position: relative;
  padding-bottom: calc(14px * var(--fl-k, 1));
}
main#idb-literacy.fl-article-page h1.fl-underlined::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: calc(-1 * var(--fl-side, 96px));
  height: 2px;
  background: #EA0029;
}

/* main photo: full width, 1508×620 at 1700 (keeps the same shape when smaller) */
main#idb-literacy.fl-article-page .fl-article-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1508 / 620;
  object-fit: cover;
}

/* photo slider (articles with several photos): no ← → arrows; dots sit ON the photo,
   bottom-right, 32px from the edges (were in a bar under the photo) */
main#idb-literacy .fl-article-gallery-box { position: relative; }
main#idb-literacy .fl-article-gallery-box .fl-track-nav { display: none; }
main#idb-literacy .fl-article-gallery-box .fl-article-gallery-bar {
  position: absolute;
  right: calc(24px * var(--fl-k, 1) + 8px);
  bottom: calc(24px * var(--fl-k, 1) + 8px);
  left: auto;
  z-index: 2;
  width: auto;
  margin: 0;
  padding: 0;
}
main#idb-literacy .fl-article-gallery-box .fl-article-gallery-dots { position: static; width: auto; margin: 0; }
/* grey dots don't show on a photo → white; the active one stays red */
main#idb-literacy .fl-article-gallery-box .fl-article-gallery-dots .swiper-pagination-bullet:not(.swiper-pagination-bullet-active) {
  background: rgba(255, 255, 255, .75);
}

/* text bold like the lesson / about pages; more line spacing because lines are longer now */
main#idb-literacy.fl-article-page .fl-article-body > p,
main#idb-literacy.fl-article-page .fl-article-body li {
  font-size: max(14px, calc(15px * var(--fl-k, 1)));
  font-weight: 700;
  line-height: 1.75;
}
main#idb-literacy.fl-article-page .fl-article-body > h2 { font-size: max(18px, calc(22px * var(--fl-k, 1))); }

/* "اقرأ أيضاً": 3 cards across the full width, 30px apart (were 239px cards with 71px gaps) */
main#idb-literacy.fl-article-page .fl-article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(30px * var(--fl-k, 1));
}
main#idb-literacy.fl-article-page .fl-article-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
/* ---------- Article cards (home "اقرأ آخر المقالات" + "اقرأ أيضاً" here) – spacing from the home design ---------- */
/* design (1700): photo → date 22px, date → title 34px, title → text 30px, text → button 36px,
   button 146×40, 13px bold. Live was: title 5px too low, text 9px too low, button 165×37 at 18px / 800 */
main#idb-literacy .fl-article-card h3 { margin-top: calc(8.6px * var(--fl-k, 1)); }              /* was 13.6px */
main#idb-literacy .fl-article-card h3 + p:not(.fl-article-date) { margin-top: 1px; }               /* was 5px */
main#idb-literacy .fl-article-card a.fl-btn.custbtm,
main#idb-literacy #articles .fl-article-card .custbtm {
  margin-top: calc(18px * var(--fl-k, 1));      /* was 14px */
  height: 40px;
  min-width: 146px;
  padding: 2px 20px 0;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
}

@media (max-width: 991px) {
  main#idb-literacy.fl-article-page .fl-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  main#idb-literacy.fl-article-page .fl-article-grid { grid-template-columns: 1fr; }
}

/* ---------- Dashboard profile tabs: Swiper (swipe only) + new filled icons ---------- */
main#idb-literacy .fl-profile-tabs { display: block; overflow: hidden; padding-bottom: 0; border-bottom: 0; box-shadow: inset 0 -1px 0 #ccc; min-height: 0; }
main#idb-literacy .fl-profile-tabs .swiper-wrapper { display: flex; align-items: flex-end; gap: 0; }
main#idb-literacy .fl-profile-tabs .swiper-slide { width: auto; flex-shrink: 0; }
main#idb-literacy .fl-profile-tabs .swiper-wrapper > a:not(.fl-btn) {
  display: flex; align-items: center; gap: .5em; white-space: nowrap;
  font-size: max(14px, calc(16px * var(--fl-k, 1))); font-weight: 700;
  padding: 5.6px 0 13.6px; margin: 0; border-bottom: 2px solid transparent; color: inherit;
}
main#idb-literacy .fl-profile-tabs .swiper-wrapper > a.fl-active:not(.fl-btn) { color: #EA0029; border-bottom-color: #EA0029; }
main#idb-literacy .fl-profile-tabs .swiper-wrapper > a:not(.fl-btn) svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
main#idb-literacy .fl-profile-tabs .swiper-wrapper > .fl-logout-button { margin-bottom: 8px; }
@media (max-width: 767px) { main#idb-literacy .fl-profile-tabs .swiper-wrapper > a:not(.fl-btn) { font-size: 14px; } }

/* ---------- Dashboard avatar: click to upload a photo ---------- */
main#idb-literacy .fl-avatar-form { margin: 0; }
main#idb-literacy .fl-avatar { position: relative; overflow: hidden; cursor: pointer; }
main#idb-literacy .fl-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
main#idb-literacy .fl-avatar .fl-avatar-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; transition: background .2s, opacity .2s; }
main#idb-literacy .fl-avatar .fl-avatar-icon .fl-icon { width: 1.5em; height: 1.5em; }
main#idb-literacy .fl-avatar.has-image .fl-avatar-icon { opacity: 0; background: rgba(0, 0, 0, .45); color: #fff; }
main#idb-literacy .fl-avatar.has-image:hover .fl-avatar-icon,
main#idb-literacy .fl-avatar.has-image:focus-within .fl-avatar-icon,
main#idb-literacy .fl-avatar.loading .fl-avatar-icon { opacity: 1; }
main#idb-literacy .fl-avatar.loading { pointer-events: none; }
main#idb-literacy .fl-avatar.loading .fl-icon { animation: fl-avatar-spin 1s linear infinite; }
@keyframes fl-avatar-spin { to { transform: rotate(360deg); } }
/* avatar: while uploading hide the edit icon and show a spinner */
main#idb-literacy .fl-avatar .fl-avatar-spinner { display: none; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; z-index: 2; animation: fl-avatar-spin .8s linear infinite; }
main#idb-literacy .fl-avatar:not(.has-image) .fl-avatar-spinner { border-color: rgba(234,0,41,.25); border-top-color: var(--red); }
main#idb-literacy .fl-avatar.loading .fl-avatar-spinner { display: block; }
main#idb-literacy .fl-avatar.loading .fl-avatar-icon .fl-icon { display: none; }
main#idb-literacy .fl-avatar.loading .fl-icon { animation: none; }

/* inputs: no focus outline, same as the site fields (the base css gives input:focus-visible a 2px outline) */
main#idb-literacy input:focus, main#idb-literacy input:focus-visible,
main#idb-literacy textarea:focus, main#idb-literacy textarea:focus-visible,
main#idb-literacy select:focus, main#idb-literacy select:focus-visible { outline: none; }

/* ---------- article content blocks (KMS repeater): contents list, tip (green), warning (yellow), checklist, summary */
main#idb-literacy.fl-article-page .fl-article-toc {
  margin: 0 0 28px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
}
main#idb-literacy.fl-article-page .fl-article-toc-title { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #555; }
main#idb-literacy.fl-article-page .fl-article-toc ol { list-style: none; margin: 0; padding: 0; }
main#idb-literacy.fl-article-page .fl-article-toc li + li { margin-top: 10px; }
main#idb-literacy.fl-article-page .fl-article-toc a { display: flex; align-items: center; gap: 12px; color: #333; font-size: 15px; text-decoration: none; }
main#idb-literacy.fl-article-page .fl-article-toc a:hover { color: var(--red); }
main#idb-literacy.fl-article-page .fl-article-toc a span {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eee;
  color: #444;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

main#idb-literacy.fl-article-page .fl-article-block { margin: 0 0 28px; scroll-margin-top: 110px; }
main#idb-literacy.fl-article-page .fl-article-block > h2 { margin-top: 0; }

/* green tip / yellow warning boxes */
main#idb-literacy.fl-article-page .fl-article-box {
  position: relative;
  margin: 0 0 28px;
  padding: 22px 26px;
  border-radius: 16px;
  border-right: 4px solid transparent;
  scroll-margin-top: 110px;
}
main#idb-literacy.fl-article-page .fl-article-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}
main#idb-literacy.fl-article-page .fl-article-box-title .fl-icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; }
main#idb-literacy.fl-article-page .fl-article-box p:last-child { margin-bottom: 0; }
main#idb-literacy.fl-article-page .fl-article-tip { background: #eefaf2; border-right-color: #19a85a; }
main#idb-literacy.fl-article-page .fl-article-tip .fl-article-box-title .fl-icon { color: #19a85a; }
main#idb-literacy.fl-article-page .fl-article-warning { background: #fffbea; border-right-color: #f5a623; }
main#idb-literacy.fl-article-page .fl-article-warning .fl-article-box-title .fl-icon { color: #f5a623; }

/* checklist bullets: red check in a pink circle (also inside the summary container) */
main#idb-literacy.fl-article-page .fl-article-checklist ul { list-style: none; padding: 0; margin: 0 0 14px; }
main#idb-literacy.fl-article-page .fl-article-checklist ul li {
  position: relative;
  padding-right: 42px;
  margin-bottom: 14px;
  min-height: 28px;
  line-height: 1.8;
}
main#idb-literacy.fl-article-page .fl-article-checklist ul li::before {
  content: '';
  position: absolute;
  right: 0;
  top: .2em;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fde8ec;
}
main#idb-literacy.fl-article-page .fl-article-checklist ul li::after {
  content: '';
  position: absolute;
  right: 10px;
  top: calc(.2em + 7px);
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

/* summary container */
main#idb-literacy.fl-article-page .fl-article-summary {
  background: #fff;
  border: 1px solid #ececec;
  border-right-color: #ececec;
  border-right-width: 1px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
  padding: 26px 30px;
}
main#idb-literacy.fl-article-page .fl-article-summary .fl-article-box-title { font-size: max(18px, calc(22px * var(--fl-k, 1))); margin: 0 0 18px; }
main#idb-literacy.fl-article-page .fl-article-summary ul { margin: 0; }
main#idb-literacy.fl-article-page .fl-article-summary ul li:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  main#idb-literacy.fl-article-page .fl-article-toc,
  main#idb-literacy.fl-article-page .fl-article-box,
  main#idb-literacy.fl-article-page .fl-article-summary { padding: 18px; }
}


/* =====================================================================
   IDB e-learning – LESSON page side box "دروس الدورة" (design 1700px)
   Paste at the END of financial-literacy.css. Reuses --fl-k.
   Measured from the XD screen (zoom 140%) and converted to 1700px.
   ===================================================================== */

/* ---------- Lesson text weights (checked against the XD by ink density: design = regular) ---------- */
/* My earlier lesson fix made the lesson text bold – the design text is REGULAR. Titles stay bold. */
main#idb-literacy .fl-lesson-title > p,          /* intro under the title */
main#idb-literacy .fl-lesson-meta,               /* "15 دقيقة | مبتدئ | 5 أقسام" */
main#idb-literacy .fl-lesson-meta *,
main#idb-literacy .fl-lesson-section > p,        /* section text */
main#idb-literacy .fl-lesson-section li,         /* "- الوصول إلى الخدمات" … */
main#idb-literacy .fl-lesson-summary li {        /* "ما تعلمته في هذا الدرس" items */
  font-weight: 400;
}
/* "ما تعلمته في هذا الدرس" items: MEDIUM (500), 16px – matches the design exactly
   (ink: design 6.6%, Medium 6.6%, Regular 5.3%, Bold 8.0%; line length identical at 16px).
   Tajawal 500 is in the Google Fonts link, so it loads when used.
   Compared pixel by pixel at 1700: title and rows within 1px of the design, line length within 1.5%. */
/* XD spec (from the client): BOLD 700. At 15px bold the line is the same length as in the design
   (bold is wider than medium, so 16px bold would be ~7% too long). */
main#idb-literacy .fl-lesson-summary li {
  font-weight: 700;
  font-size: max(14px, calc(15px * var(--fl-k, 1)));
  line-height: 1.75;
  gap: 14px;                 /* check → text 14px like the design (my 28px was too wide; site had 21px) */
  align-items: center;       /* check was 4px higher than the text (aligned to baseline) */
}
/* box: title and items 8px higher, bottom 4px tighter → box 356px tall (design 360, was 368) */
main#idb-literacy .fl-lesson-summary {
  padding-top: calc(30px * var(--fl-k, 1));
  padding-bottom: calc(34px * var(--fl-k, 1));
}

/* "الوصول:", "المستوى الفردي:" … stay bold (were 900 inside bold text) */
main#idb-literacy .fl-lesson-section li strong,
main#idb-literacy .fl-lesson-section p strong { font-weight: 700; }

/* ---------- Meta line "◉ 15 دقيقة | مبتدئ | 5 أقسام" (design measured at 1700) ---------- */
/* weights checked by text width: time and sections are REGULAR (46 / 50px = regular 14.4px),
   the red level is BOLD (38px = bold; regular would be 35.6px) */
main#idb-literacy .fl-lesson-meta { gap: max(12px, calc(33px * var(--fl-k, 1))); }              /* text ↔ "|" 33px (was 29px) */
main#idb-literacy .fl-lesson-meta .fl-red { font-weight: 700; }                                   /* "مبتدئ / متوسط / متقدم" bold (was regular) */
main#idb-literacy .fl-lesson-meta > span:not([class]) { color: #c5c5c5; }                           /* light grey "|" (was black) */
/* clock: 16px solid black circle with white hands, 20px before the time (was a 14px outline, 29px) */
main#idb-literacy .fl-lesson-meta > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: currentColor;
  stroke: #fff;
  margin-left: calc(max(12px, calc(33px * var(--fl-k, 1))) * -1 + max(8px, calc(20px * var(--fl-k, 1))));
}

/* ---------- "أكملت هذا الدرس" pill (in the meta line of a finished lesson) ---------- */
/* design (measured from the screenshot, scaled with the 30px title): pill 185×48, mint background,
   darker green 15px bold text, 20px check before the text, 9px gap. Site: 167×32, 14px, paler colours. */
main#idb-literacy .fl-lesson-meta .fl-lesson-done {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: calc(13px * var(--fl-k, 1)) calc(22px * var(--fl-k, 1));
  font-size: max(13px, calc(15px * var(--fl-k, 1)));
  font-weight: 700;
  line-height: 1.4;
  color: #17864b;
  background: #d7fbe4;
  border-radius: 999px;
}
main#idb-literacy .fl-lesson-meta .fl-lesson-done svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: currentColor;
  stroke: currentColor;
}

/* box titles "دروس الدورة" / "الدرس 1 من 2": 15px (was 13px) */
main#idb-literacy .fl-lesson-sidebar .fl-sidebar-panel > h2 {
  font-size: max(14px, calc(15px * var(--fl-k, 1)));
  line-height: 1.5;
  padding: calc(15.5px * var(--fl-k, 1)) 18px calc(14px * var(--fl-k, 1));
}

/* lesson rows: 77px tall like the design (were 88px); number 13px from the edge, text 15px after it */
main#idb-literacy .fl-lesson-sidebar .fl-lesson-side-row {
  padding: calc(15.6px * var(--fl-k, 1)) 13px calc(16.5px * var(--fl-k, 1)) 18px;
  gap: 15px;
}
main#idb-literacy .fl-lesson-sidebar .fl-lesson-side-row .fl-lesson-number { width: 28px; height: 28px; flex: 0 0 28px; }

/* lesson name: 14px bold, tight lines when it wraps (was 13.6px, 23px lines) */
main#idb-literacy .fl-lesson-sidebar .fl-lesson-side-row > span:not(.fl-lesson-number) {
  font-size: max(13px, calc(14px * var(--fl-k, 1)));
  font-weight: 700;
  line-height: 1.2;
}

/* "15 دقيقة | اختبار: 6 أسئلة": REGULAR dark grey 15px like the design (was bold black 12px) */
main#idb-literacy .fl-lesson-sidebar .fl-lesson-side-row small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: calc(7px * var(--fl-k, 1));
  font-size: max(12px, calc(15px * var(--fl-k, 1)));
  font-weight: 400;
  line-height: 1.4;
  color: #444;
}
main#idb-literacy .fl-lesson-sidebar .fl-lesson-side-row small span { color: #bbb; margin: 0 8px; }   /* light "|" */
/* keep "15 دقيقة | اختبار: 6 أسئلة" on ONE line like the design (it wrapped onto 2 lines because the
   side box is narrower than 281px on screens under 1600px) */
main#idb-literacy .fl-lesson-sidebar .fl-lesson-side-row small { white-space: nowrap; flex-wrap: nowrap; }
@media (min-width: 992px) and (max-width: 1599px) {
  main#idb-literacy .fl-lesson-sidebar .fl-lesson-side-row { gap: 10px; padding-left: 12px; }
  main#idb-literacy .fl-lesson-sidebar .fl-lesson-side-row small { font-size: 13px; gap: 4px; }
  main#idb-literacy .fl-lesson-sidebar .fl-lesson-side-row small span { margin: 0 6px; }
  main#idb-literacy .fl-lesson-sidebar .fl-lesson-side-row small svg { width: 12px; height: 12px; flex-basis: 12px; }
}
@media (min-width: 992px) and (max-width: 1499px) {
  main#idb-literacy .fl-lesson-sidebar .fl-lesson-side-row small { font-size: 12px; }
}
/* 992–1299px: the box is too narrow for one line at a readable size → a clean 2-line version:
   time on the first line, quiz on the second (the "|" is hidden and works as the line break) */
@media (min-width: 992px) and (max-width: 1299px) {
  main#idb-literacy .fl-lesson-sidebar .fl-lesson-side-row small { flex-wrap: wrap; row-gap: 3px; }
  main#idb-literacy .fl-lesson-sidebar .fl-lesson-side-row small span { display: block; flex: 0 0 100%; height: 0; margin: 0; overflow: hidden; }
}
/* tablet / phone: the box is full width → one line, 14px */
@media (max-width: 991px) {
  main#idb-literacy .fl-lesson-sidebar .fl-lesson-side-row small { font-size: 14px; }
}
/* clock: grey filled circle with white hands, 15px (was a 10px black outline) */
main#idb-literacy .fl-lesson-sidebar .fl-lesson-side-row small svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #9a9a9a;
  fill: #9a9a9a;
  stroke: #fff;
}

/* "All course lessons" buttons land on the full curriculum list; keep it clear of the sticky header */
main#idb-literacy .fl-curriculum { scroll-margin-top: 110px; }

/* phones: the meta line wraps so the "lesson completed" pill drops to a new line */
@media (max-width: 767px) {
  main#idb-literacy .fl-lesson-meta { flex-wrap: wrap; row-gap: 8px; }
}

/* =====================================================================
   IDB e-learning – ARTICLE page top (image / title / short text / "في هذا المقال")
   New layout from the design: image on the LEFT, title + meta + short text on the RIGHT,
   "في هذا المقال" box under the image, then a thin line and the article text full width.
   Paste at the END of financial-literacy.css, AFTER idb-article-page-fixes.css.
   No HTML change needed: the existing elements are placed with CSS grid (desktop)
   and re-ordered with flex (tablet / phone).
   ===================================================================== */

/* ---------- Desktop / laptop (992px and up): 2 columns ---------- */
@media (min-width: 992px) {
  main#idb-literacy.fl-article-page .fl-article-single {
    display: grid;
    /* RTL: first column = right (text 41%), second = left (image 52%), gap 7% – same split as the design */
    grid-template-columns: minmax(0, 41.4fr) minmax(0, 51.7fr);
    column-gap: 6.9%;
    grid-template-rows: auto auto auto auto auto auto 1fr;
    align-items: start;
  }
  main#idb-literacy.fl-article-page .fl-article-single > .fl-breadcrumbs    { grid-column: 1 / -1; grid-row: 1; }
  main#idb-literacy.fl-article-page .fl-article-single > .fl-article-meta  { grid-column: 1; grid-row: 2; }
  main#idb-literacy.fl-article-page .fl-article-single > h1                { grid-column: 1; grid-row: 3; }
  main#idb-literacy.fl-article-page .fl-article-single > .fl-article-byline { grid-column: 1; grid-row: 4; }
  main#idb-literacy.fl-article-page .fl-article-single > .fl-section-intro { grid-column: 1; grid-row: 5; }
  /* image alone in the left column (rows 2–7); "في هذا المقال" box in the right column under the short description */
  main#idb-literacy.fl-article-page .fl-article-single > .fl-article-gallery-box { grid-column: 2; grid-row: 2 / 8; align-self: start; margin: 0; }
  main#idb-literacy.fl-article-page .fl-article-single > .fl-article-toc { grid-column: 1; grid-row: 6; align-self: start; justify-self: stretch; width: auto;
    margin-top: calc(24px * var(--fl-k, 1)); }
  main#idb-literacy.fl-article-page .fl-article-single > .fl-article-body,
  main#idb-literacy.fl-article-page .fl-article-single > .fl-article-footer,
  main#idb-literacy.fl-article-page .fl-article-single > .fl-article-more  { grid-column: 1 / -1; }
}

/* ---------- Tablet / phone: one column – title, short text, image, "في هذا المقال", article ---------- */
@media (max-width: 991px) {
  main#idb-literacy.fl-article-page .fl-article-single { display: flex; flex-direction: column; }
  main#idb-literacy.fl-article-page .fl-article-single > .fl-breadcrumbs     { order: 0; }
  main#idb-literacy.fl-article-page .fl-article-single > .fl-article-meta   { order: 1; }
  main#idb-literacy.fl-article-page .fl-article-single > h1                 { order: 2; }
  main#idb-literacy.fl-article-page .fl-article-single > .fl-article-byline { order: 3; }
  main#idb-literacy.fl-article-page .fl-article-single > .fl-section-intro  { order: 4; }
  main#idb-literacy.fl-article-page .fl-article-single > .fl-article-toc    { order: 5; margin-top: 24px; }
  main#idb-literacy.fl-article-page .fl-article-single > .fl-article-gallery-box { order: 6; margin-top: 24px; margin-bottom: 0; }
  main#idb-literacy.fl-article-page .fl-article-single > .fl-article-body   { order: 7; }
  main#idb-literacy.fl-article-page .fl-article-single > .fl-article-footer { order: 8; }
  main#idb-literacy.fl-article-page .fl-article-single > .fl-article-more   { order: 9; }
}

/* ---------- space under the breadcrumbs (design 68px to the image) ---------- */
main#idb-literacy.fl-article-page .fl-article-single > .fl-breadcrumbs { margin-bottom: calc(45px * var(--fl-k, 1)); }

/* ---------- Image: rounded, design shape (475×254 → 1.87 : 1) ---------- */
main#idb-literacy.fl-article-page .fl-article-gallery-box { margin-bottom: calc(26px * var(--fl-k, 1)); }
main#idb-literacy.fl-article-page .fl-article-gallery { border-radius: 10px; overflow: hidden; }
main#idb-literacy.fl-article-page .fl-article-gallery img { aspect-ratio: 1.87 / 1; }

/* ---------- Title: red line only under the title (not to the screen edge) ---------- */
main#idb-literacy.fl-article-page h1.fl-underlined {
  margin-top: calc(6px * var(--fl-k, 1));
  margin-bottom: calc(14px * var(--fl-k, 1));
  padding-bottom: calc(22px * var(--fl-k, 1));
  line-height: 1.25;
}
main#idb-literacy.fl-article-page h1.fl-underlined::after { right: 0; }
main#idb-literacy.fl-article-page .fl-article-single > .fl-article-byline { margin: 0; }

/* ---------- Short description under the title: regular, 0.42 × title size, airy (design) ---------- */
main#idb-literacy.fl-article-page .fl-article-single > .fl-section-intro {
  max-width: none;
  margin: calc(12px * var(--fl-k, 1)) 0 0;
  font-size: max(15px, calc(19px * var(--fl-k, 1)));
  font-weight: 400;
  line-height: 2.07;
  color: #1a1a1a;
}

/* ---------- "في هذا المقال" box ---------- */
main#idb-literacy.fl-article-page .fl-article-toc {
  margin: calc(16px * var(--fl-k, 1)) 0 0;
  padding: calc(22px * var(--fl-k, 1)) calc(26px * var(--fl-k, 1)) calc(24px * var(--fl-k, 1));
  background: #f5f5f5;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .06);
}
main#idb-literacy.fl-article-page .fl-article-toc-title {
  margin: 0 0 calc(14px * var(--fl-k, 1));
  font-size: max(17px, calc(21px * var(--fl-k, 1)));
  font-weight: 700;
  color: #111;
}
main#idb-literacy.fl-article-page .fl-article-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(14px * var(--fl-k, 1)); }
main#idb-literacy.fl-article-page .fl-article-toc li a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: max(14px, calc(16px * var(--fl-k, 1)));
  font-weight: 700;
  color: #111;
  text-decoration: none;
}
main#idb-literacy.fl-article-page .fl-article-toc li a:hover { color: #EA0029; }
/* the number becomes the design's dot: dark dot in a light grey circle */
main#idb-literacy.fl-article-page .fl-article-toc li a > span {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0;
  background: radial-gradient(circle, #333 0 3px, #dedede 3.5px);
}

/* ---------- Thin line between the top part and the article text ---------- */
main#idb-literacy.fl-article-page .fl-article-single > .fl-article-body {
  margin-top: calc(28px * var(--fl-k, 1));
  padding-top: calc(36px * var(--fl-k, 1));
  border-top: 1px solid #e8e8e8;
}

@media (max-width: 991px) {
  main#idb-literacy.fl-article-page .fl-article-toc { width: 100%; }
  main#idb-literacy.fl-article-page .fl-article-single > .fl-article-toc { order: 5; margin-top: 24px; }
  main#idb-literacy.fl-article-page .fl-article-single > .fl-article-gallery-box { order: 6; margin-top: 24px; margin-bottom: 0; }
}

/* ============ Course requirements (course page) ============ */
main#idb-literacy .fl-course-requirements { margin-bottom: calc(40px * var(--fl-k, 1)); }
main#idb-literacy .fl-course-requirements h2 { margin-bottom: calc(13px * var(--fl-k, 1)); }
main#idb-literacy .fl-course-requirements p { font-size: calc(14px * var(--fl-k, 1)); line-height: 1.5; margin-bottom: calc(12px * var(--fl-k, 1)); }
main#idb-literacy .fl-course-requirements p:last-child { margin-bottom: 0; }
@media (max-width: 991px) {
  main#idb-literacy .fl-course-requirements { margin-bottom: 28px; }
}

/* ============ Article text blocks: same check bullets as the checklist ============ */
main#idb-literacy.fl-article-page .fl-article-block ul { list-style: none; padding: 0; margin: 0 0 14px; }
main#idb-literacy.fl-article-page .fl-article-block ul li {
  position: relative;
  padding-right: 42px;
  margin-bottom: 14px;
  min-height: 28px;
  line-height: 1.8;
}
main#idb-literacy.fl-article-page .fl-article-block ul li::before {
  content: '';
  position: absolute;
  right: 0;
  top: .2em;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fde8ec;
}
main#idb-literacy.fl-article-page .fl-article-block ul li::after {
  content: '';
  position: absolute;
  right: 10px;
  top: calc(.2em + 7px);
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

/* ============ Lesson page: content block types (tip / warning / summary / checklist), same look as the article page ============ */
main#idb-literacy.fl-lesson-page .fl-article-box {
  position: relative;
  margin: 0 0 calc(28px * var(--fl-k, 1));
  padding: 22px 26px;
  border-radius: 16px;
  border-right: 4px solid transparent;
  scroll-margin-top: 36px;
  color: #1b1b1b;
}
main#idb-literacy.fl-lesson-page .fl-article-box p { font-size: calc(14px * var(--fl-k, 1)); line-height: 1.75; }
main#idb-literacy.fl-lesson-page .fl-article-box p + p { margin-top: 14px; }
main#idb-literacy.fl-lesson-page .fl-article-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}
main#idb-literacy.fl-lesson-page .fl-article-box-title .fl-icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; }
main#idb-literacy.fl-lesson-page .fl-article-box p:last-child { margin-bottom: 0; }
main#idb-literacy.fl-lesson-page .fl-article-tip { background: #eefaf2; border-right-color: #19a85a; }
main#idb-literacy.fl-lesson-page .fl-article-tip .fl-article-box-title .fl-icon { color: #19a85a; }
main#idb-literacy.fl-lesson-page .fl-article-warning { background: #fffbea; border-right-color: #f5a623; }
main#idb-literacy.fl-lesson-page .fl-article-warning .fl-article-box-title .fl-icon { color: #f5a623; }

/* checklist bullets: red check in a pink circle (checklist sections and the summary box) */
main#idb-literacy.fl-lesson-page .fl-article-checklist ul { list-style: none; padding: 0; margin: 0 0 14px; }
main#idb-literacy.fl-lesson-page .fl-article-checklist ul li {
  position: relative;
  padding-right: 42px;
  margin-bottom: 14px;
  min-height: 28px;
  line-height: 1.8;
}
main#idb-literacy.fl-lesson-page .fl-article-checklist ul li::before {
  content: '';
  position: absolute;
  right: 0;
  top: .2em;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fde8ec;
}
main#idb-literacy.fl-lesson-page .fl-article-checklist ul li::after {
  content: '';
  position: absolute;
  right: 10px;
  top: calc(.2em + 7px);
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

/* summary container */
main#idb-literacy.fl-lesson-page .fl-article-summary {
  background: #fff;
  border: 1px solid #ececec;
  border-right-color: #ececec;
  border-right-width: 1px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
  padding: 26px 30px;
}
main#idb-literacy.fl-lesson-page .fl-article-summary .fl-article-box-title { font-size: max(18px, calc(22px * var(--fl-k, 1))); margin: 0 0 18px; color: var(--fl-red); }
main#idb-literacy.fl-lesson-page .fl-article-summary ul { margin: 0; }
main#idb-literacy.fl-lesson-page .fl-article-summary ul li:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  main#idb-literacy.fl-lesson-page .fl-article-box,
  main#idb-literacy.fl-lesson-page .fl-article-summary { padding: 18px; }
}

/* ============ Lesson page: "highlight" block (green callout, same look as the old lesson callout) ============ */
main#idb-literacy.fl-lesson-page .fl-lesson-callout { scroll-margin-top: 36px; margin: 0 0 calc(28px * var(--fl-k, 1)); }
main#idb-literacy.fl-lesson-page .fl-lesson-callout p { font-size: calc(14px * var(--fl-k, 1)); line-height: 1.75; }
main#idb-literacy.fl-lesson-page .fl-lesson-callout p + p { margin-top: 14px; }
main#idb-literacy.fl-lesson-page .fl-lesson-callout p:last-child { margin-bottom: 0; }


/* ==============================================
   E-learning legal pages: accessibility / privacy / terms
   (same content structure as the site /legal page)
   ============================================== */
main#idb-literacy.fl-legal-page .fl-legal {
  max-width: 980px;
  padding-top: calc(50px * var(--fl-k, 1));
  padding-bottom: calc(40px * var(--fl-k, 1));
}
main#idb-literacy.fl-legal-page .fl-legal h1 {
  font-size: max(28px, calc(40px * var(--fl-k, 1)));
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: calc(34px * var(--fl-k, 1));
}
main#idb-literacy.fl-legal-page .fl-legal-text {
  font-size: max(15px, calc(16px * var(--fl-k, 1)));
  line-height: 1.9;
  color: #333;
}
main#idb-literacy.fl-legal-page .fl-legal-text p {
  margin: 0 0 calc(18px * var(--fl-k, 1));
}
main#idb-literacy.fl-legal-page .fl-legal-text .fl-lead {
  font-size: max(16px, calc(19px * var(--fl-k, 1)));
  font-weight: 700;
  color: var(--fl-black, #231f20);
}
main#idb-literacy.fl-legal-page .fl-legal-text .fl-updated {
  font-size: 14px;
  color: #777;
  margin-bottom: calc(30px * var(--fl-k, 1));
}
main#idb-literacy.fl-legal-page .fl-legal-text h3 {
  font-size: max(18px, calc(22px * var(--fl-k, 1)));
  font-weight: 700;
  color: var(--fl-red, #e91d2d);
  margin: calc(28px * var(--fl-k, 1)) 0 8px;
}
main#idb-literacy.fl-legal-page .fl-legal-text ul {
  padding-inline-start: 22px;
  margin: 0 0 calc(18px * var(--fl-k, 1));
}
main#idb-literacy.fl-legal-page .fl-legal-text .fl-note {
  margin-top: calc(34px * var(--fl-k, 1));
  padding-top: calc(18px * var(--fl-k, 1));
  border-top: 1px solid #ddd;
  font-size: 14px;
  color: #777;
}
@media (max-width: 767px) {
  main#idb-literacy.fl-legal-page .fl-legal {
    padding-top: 30px;
  }
}




/* e-learning footer: three legal links (accessibility / privacy / terms) → the second link gets the separator border like the first */
body.idb-program-site .footer_end .link_list .link_item:nth-child(2) {
  border-right: 1px solid #ffffffB3;
}
html[lang="ar"] body.idb-program-site .footer_end .link_list .link_item:nth-child(2),
html[lang="ku"] body.idb-program-site .footer_end .link_list .link_item:nth-child(2) {
  border-left: 1px solid #ffffffB3;
  border-right: none;
}


/* =====================================================================
   IDB e-learning – new header logo (elearning_logo_white.svg), all screen sizes
   Replaces the old logo widths 282 / 240 / 200 / 180 / 160 from section 1 above.
   The logo is a tall, stacked logo (1776×1102), so it is sized by HEIGHT, not width:
       ≥1500px   header 96px  logo 80px tall
       1190–1499 header 90px  logo 74px
       768–1189  header 84px  logo 68px (burger menu, logo centred)
       ≤767      header 78px  logo 62px (same header height as before)
   The space under the fixed header (#content::before) and the burger menu panel follow the same height.
   ===================================================================== */

body.idb-program-site { --fl-hdr: 96px; --fl-logo-h: 80px; }
@media (max-width: 1499px) { body.idb-program-site { --fl-hdr: 90px; --fl-logo-h: 74px; } }
@media (max-width: 1189px) { body.idb-program-site { --fl-hdr: 84px; --fl-logo-h: 68px; } }
@media (max-width: 767px)  { body.idb-program-site { --fl-hdr: 78px; --fl-logo-h: 62px; } }

/* header height + the spacer under the fixed header */
body.idb-program-site header.idb-program-header .fl-header-row { min-height: var(--fl-hdr); }
html body.idb-program-site #content::before { height: var(--fl-hdr); }

/* logo: by height, width follows */
body.idb-program-site header.idb-program-header .fl-header-logo {
  display: flex;
  align-items: center;
  width: auto !important;
  height: auto;
}
body.idb-program-site header.idb-program-header .fl-header-logo img {
  width: auto !important;
  height: var(--fl-logo-h);
  max-width: none;
}

/* burger menu / sub menus open right under the header (were fixed at 71 / 78px) */
body.idb-program-site .dpmenu,
body.idb-program-site .fl-dpmenu,
body.idb-program-site .sbmenu { top: var(--fl-hdr); }

/* ===== ambassadors page (/ambassadors): one block per university, student cards with social icons ===== */
#idb-literacy .fl-amb-group { padding-top: 3.4vw; }
#idb-literacy .fl-amb-group:last-of-type { padding-bottom: 6vw; }
#idb-literacy .fl-amb-group h2 { display: inline-block; font-size: clamp(24px, 1.8vw, 35px); font-weight: 700; margin-bottom: 1.6vw; }
#idb-literacy .fl-amb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2vw; }
#idb-literacy .fl-amb-card { background: #f8f8f8; border-radius: 14px; padding: 1.6vw 1.4vw 1.3vw; text-align: center; display: flex; flex-direction: column; align-items: center; min-width: 0; box-shadow: 0 2px 10px #0000000d; }
#idb-literacy .fl-amb-card h3 { font-size: clamp(16px, 1.16vw, 23px); font-weight: 700; margin-bottom: .3vw; }
#idb-literacy .fl-amb-card .fl-amb-role { color: var(--fl-red); font-size: clamp(11px, .77vw, 15px); font-weight: 700; margin-bottom: .6vw; }
#idb-literacy .fl-amb-card .fl-amb-text { font-size: clamp(11px, .77vw, 15px); line-height: 1.7; margin-bottom: 1vw; flex-grow: 1; }
#idb-literacy .fl-amb-social { display: flex; gap: .5vw; justify-content: center; }
#idb-literacy .fl-amb-social a { width: 2.1vw; height: 2.1vw; min-width: 28px; min-height: 28px; border: 1px solid #ddd; border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: center; color: #111; transition: .2s; }
#idb-literacy .fl-amb-social a:hover { border-color: var(--fl-red); color: var(--fl-red); }
#idb-literacy .fl-amb-social svg { width: 55%; height: 55%; fill: currentColor; }
@media (max-width: 1180px) {
  #idb-literacy .fl-amb-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  #idb-literacy .fl-amb-card { padding: 22px 18px 18px; }
  #idb-literacy .fl-amb-social { gap: 8px; }
  #idb-literacy .fl-amb-social a { width: 30px; height: 30px; }
}
@media (max-width: 767px) {
  #idb-literacy .fl-amb-group { padding-top: 30px; }
  #idb-literacy .fl-amb-group:last-of-type { padding-bottom: 50px; }
  #idb-literacy .fl-amb-group h2 { font-size: 24px; margin-bottom: 16px; }
  #idb-literacy .fl-amb-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  #idb-literacy .fl-amb-card h3 { font-size: 16px; }
  #idb-literacy .fl-amb-card .fl-amb-role, #idb-literacy .fl-amb-card .fl-amb-text { font-size: 12px; }
}
@media (max-width: 480px) {
  #idb-literacy .fl-amb-grid { grid-template-columns: 1fr; }
}


/* ===== IDB e-learning – Ambassadors cards + Terms / Privacy / Accessibility ===== */

/* ---------- 1. السفراء – cards like the design (smaller) ---------- */
@media (min-width: 1181px) {
  main#idb-literacy.fl-ambassadors-page .fl-amb-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: calc(18px * var(--fl-k, 1));
  }
}

/* university title */
main#idb-literacy.fl-ambassadors-page .fl-amb-group { padding-top: max(28px, calc(44px * var(--fl-k, 1))); }
main#idb-literacy.fl-ambassadors-page .fl-amb-group > h2.fl-underlined {
  position: relative;
  border-bottom: 0;
  margin-bottom: max(18px, calc(30px * var(--fl-k, 1)));
  padding-bottom: max(10px, calc(18px * var(--fl-k, 1)));
  font-size: max(22px, calc(34px * var(--fl-k, 1)));
  line-height: 1.3;
}
main#idb-literacy.fl-ambassadors-page .fl-amb-group > h2.fl-underlined::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: max(52px, calc(84px * var(--fl-k, 1)));
  height: 3px;
  border-radius: 2px;
  background: #EA0029;
}

/* card */
main#idb-literacy.fl-ambassadors-page .fl-amb-card {
  background: #f7f7f7;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  padding: max(14px, calc(16px * var(--fl-k, 1))) max(14px, calc(18px * var(--fl-k, 1))) max(16px, calc(20px * var(--fl-k, 1)));
}
/* name */
main#idb-literacy.fl-ambassadors-page .fl-amb-card h3 {
  margin: 0;
  font-size: max(16px, calc(23px * var(--fl-k, 1)));
  font-weight: 700;
  line-height: 1.3;
}
/* red role */
main#idb-literacy.fl-ambassadors-page .fl-amb-card .fl-amb-role {
  margin: calc(10px * var(--fl-k, 1)) 0 0;
  font-size: max(12px, calc(15px * var(--fl-k, 1)));
  font-weight: 700;
  line-height: 1.5;
}
/* description */
main#idb-literacy.fl-ambassadors-page .fl-amb-card .fl-amb-text {
  max-width: max(200px, calc(215px * var(--fl-k, 1)));
  margin: calc(13px * var(--fl-k, 1)) auto calc(16px * var(--fl-k, 1));
  font-size: max(13px, calc(16px * var(--fl-k, 1)));
  font-weight: 400;
  line-height: 1.45;
  color: #333;
}
/* social icons */
main#idb-literacy.fl-ambassadors-page .fl-amb-social { gap: max(8px, calc(14px * var(--fl-k, 1))); margin-top: auto; direction: ltr; }
main#idb-literacy.fl-ambassadors-page .fl-amb-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max(30px, calc(35px * var(--fl-k, 1)));
  height: max(30px, calc(35px * var(--fl-k, 1)));
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
main#idb-literacy.fl-ambassadors-page .fl-amb-social a svg {
  width: max(14px, calc(16px * var(--fl-k, 1)));
  height: max(14px, calc(16px * var(--fl-k, 1)));
}

/* ---------- 2. الشروط والأحكام / سياسة الخصوصية / إمكانية الوصول – like /iq/ar/terms ---------- */
main#idb-literacy.fl-legal-page .fl-legal {
  max-width: none;
  margin: 0;
  padding-top: max(32px, calc(60px * var(--fl-k, 1)));
}
main#idb-literacy.fl-legal-page .fl-legal-text { max-width: none; }
main#idb-literacy.fl-legal-page .fl-legal > h1.fl-underlined {
  position: relative;
  display: table;
  border-bottom: 0;
  padding-bottom: 0;
  margin: 0 0 max(28px, calc(60px * var(--fl-k, 1)));
  font-size: max(28px, calc(45px * var(--fl-k, 1)));
  font-weight: 800;
  line-height: 1.12;
}
main#idb-literacy.fl-legal-page .fl-legal > h1.fl-underlined::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: calc(var(--fl-side, 96px) * -1);
  margin-top: 5px;
  border-bottom: 2px solid #EA0029;
}

/* ===== IDB e-learning – black footer (Views/Shared/_ELearningFooter.cshtml) ===== */
/* Layout like idb-fii.iq (brand + 3 link columns, bottom bar), colours from the design: black background,
   white text, red underline under the column titles, red contact icons, white social squares.
   Overrides the site's generic footer rules (styles.css / cust.css: white/grey background, 100px padding, margin-top). */
body.idb-program-site footer.fl-footer { --fl-k: 1; --fl-side: 96px; }
@media (max-width: 1399px) { body.idb-program-site footer.fl-footer { --fl-k: .85; --fl-side: 64px; } }
@media (max-width: 1199px) { body.idb-program-site footer.fl-footer { --fl-k: .75; --fl-side: 40px; } }
@media (max-width: 991px)  { body.idb-program-site footer.fl-footer { --fl-k: .65; --fl-side: 30px; } }
@media (max-width: 767px)  { body.idb-program-site footer.fl-footer { --fl-k: .5;  --fl-side: 20px; } }

body.idb-program-site footer.fl-footer {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  direction: rtl;
  text-align: right;
  font-size: 15px;
  line-height: 1.7;
}
body.idb-program-site footer.fl-footer .container { padding-left: var(--fl-side); padding-right: var(--fl-side); }
body.idb-program-site footer.fl-footer ul { list-style: none; margin: 0; padding: 0; }
body.idb-program-site footer.fl-footer p { margin: 0; }
body.idb-program-site footer.fl-footer a { color: #e6e6e6; text-decoration: none; transition: color .2s; }
body.idb-program-site footer.fl-footer a:hover { color: #EA0029; }
body.idb-program-site footer.fl-footer .fl-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* top: brand | البرنامج | المنصة | التواصل */
body.idb-program-site footer.fl-footer .fl-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: max(40px, calc(64px * var(--fl-k, 1))) 0 max(32px, calc(48px * var(--fl-k, 1)));
}
body.idb-program-site footer.fl-footer .fl-footer-logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 10px; color: #fff; }
body.idb-program-site footer.fl-footer .fl-footer-logo img { display: block; width: max(150px, calc(190px * var(--fl-k, 1))); height: auto; }
body.idb-program-site footer.fl-footer .fl-footer-bank { font-size: 16px; font-weight: 700; line-height: 1.4; }
body.idb-program-site footer.fl-footer .fl-footer-tagline { margin-top: 18px; max-width: 36ch; color: #d9d9d9; font-size: 15px; }

/* social: white rounded squares, 4 per row (direction ltr so the first icon is on the right in RTL like the design) */
body.idb-program-site footer.fl-footer .fl-footer-social { display: grid; grid-template-columns: repeat(4, 36px); gap: 10px; width: fit-content; margin-top: 22px; direction: rtl; }
body.idb-program-site footer.fl-footer .fl-footer-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 7px; background: #fff; color: #111; transition: background .2s, color .2s; }
body.idb-program-site footer.fl-footer .fl-footer-social a:hover { background: #EA0029; color: #fff; }
body.idb-program-site footer.fl-footer .fl-footer-social svg { width: 16px; height: 16px; display: block; }

/* column titles: bold with a red line under the text */
body.idb-program-site footer.fl-footer h5 { display: inline-block; margin: 0 0 18px; padding-bottom: 8px; border-bottom: 2px solid #EA0029; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.4; }
body.idb-program-site footer.fl-footer .fl-footer-links li + li { margin-top: 10px; }
body.idb-program-site footer.fl-footer .fl-footer-links a { font-size: 15px; }
body.idb-program-site footer.fl-footer .fl-footer-links .fl-nav-asis { text-transform: none; }

/* contact rows: red icon + text */
body.idb-program-site footer.fl-footer .fl-footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
body.idb-program-site footer.fl-footer .fl-footer-contact li + li { margin-top: 12px; }
body.idb-program-site footer.fl-footer .fl-footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; color: #EA0029; }
body.idb-program-site footer.fl-footer .fl-footer-contact [dir="ltr"] { display: inline-block; }

/* bottom bar: copyright (right) | الشروط | الخصوصية | الوصول (left) */
body.idb-program-site footer.fl-footer .fl-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 22px 0 max(22px, calc(28px * var(--fl-k, 1)));
  border-top: 1px solid #3a3a3a;
  font-size: 13px;
  color: #b5b5b5;
}
body.idb-program-site footer.fl-footer .fl-footer-bottom a { color: #b5b5b5; }
body.idb-program-site footer.fl-footer .fl-footer-bottom a:hover { color: #EA0029; }
body.idb-program-site footer.fl-footer .fl-footer-legal { display: flex; align-items: center; gap: 10px; }
body.idb-program-site footer.fl-footer .fl-footer-legal span { color: #666; }

@media (max-width: 1199px) {
  body.idb-program-site footer.fl-footer .fl-footer-top { gap: 28px; }
}
@media (max-width: 991px) {
  body.idb-program-site footer.fl-footer .fl-footer-top { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  body.idb-program-site footer.fl-footer .fl-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body.idb-program-site footer.fl-footer .fl-footer-top { grid-template-columns: 1fr; gap: 30px; }
  body.idb-program-site footer.fl-footer .fl-footer-bottom { flex-direction: column; align-items: flex-start; }
}
