/* Karim Academy V53 — responsive, animated, accessible news ticker */
#kf-home-news-v53,.kf-news-admin .kf-news-ticker{box-sizing:border-box;}
.kf-news-ticker{--kf-news-speed:34s;position:relative;display:flex;align-items:stretch;direction:rtl;
 width:100%;min-height:clamp(54px,5.5vw,70px);overflow:hidden;isolation:isolate;
 border:1px solid rgba(255,255,255,.15);border-inline:0;
 background:linear-gradient(108deg,var(--kf-news-first),var(--kf-news-second),var(--kf-news-third));
 color:#fff;box-shadow:0 11px 24px rgba(66,43,140,.14);
 font-family:inherit;}
.kf-news-ticker *{box-sizing:border-box}
.kf-news-ticker[data-theme="violet"]{--kf-news-first:#38227e;--kf-news-second:#6342ce;--kf-news-third:#8759e5;}
.kf-news-ticker[data-theme="blue"]{--kf-news-first:#083e81;--kf-news-second:#146bb6;--kf-news-third:#39a9d1;}
.kf-news-ticker[data-theme="coral"]{--kf-news-first:#a6246b;--kf-news-second:#df4c83;--kf-news-third:#ff995e;}
.kf-news-ticker[data-theme="green"]{--kf-news-first:#09665c;--kf-news-second:#109c83;--kf-news-third:#34bca6;}
.kf-news-ticker[data-theme="midnight"]{--kf-news-first:#101d3c;--kf-news-second:#243968;--kf-news-third:#513486;}
.kf-news-ticker:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.17;
 background:repeating-linear-gradient(123deg,transparent 0,transparent 17px,#fff 17.5px,transparent 18px);}
.kf-news-label{position:relative;z-index:2;flex:none;display:flex;align-items:center;gap:10px;
 padding:10px clamp(12px,2.5vw,30px);white-space:nowrap;background:rgba(20,14,57,.28);
 box-shadow:-7px 0 19px rgba(20,12,72,.12);}
.kf-news-live-dot{width:9px;height:9px;flex:none;border-radius:50%;background:#f9d66d;box-shadow:0 0 0 5px #f9d66d26;}
.kf-news-badge{font-size:clamp(13px,1.25vw,17px);font-weight:850;color:#fff;}
.kf-news-viewport{position:relative;flex:1;min-width:0;overflow:hidden;display:flex;align-items:center;
 mask-image:linear-gradient(to right,transparent 0%,#000 4%,#000 97%,transparent 100%);}
.kf-news-track{display:flex;align-items:center;flex:0 0 auto;width:max-content;min-width:100%;direction:ltr;
 will-change:transform;animation:kf-news-drift var(--kf-news-speed) linear infinite;}
.kf-news-group{display:flex;align-items:center;direction:rtl;white-space:nowrap;flex:0 0 auto;}
.kf-news-item{display:inline-flex;gap:10px;align-items:center;flex:none;
 padding:10px clamp(17px,2.7vw,38px);white-space:nowrap;color:#fff!important;text-decoration:none!important;
 font-size:clamp(13px,1.12vw,16px);font-weight:670;letter-spacing:.005em;line-height:1.6;}
.kf-news-item + .kf-news-item:before{content:' ';display:block;width:1px;height:22px;background:#ffffff70; margin-inline-end:14px;}
.kf-news-item-mark{color:#ffe178;font-size:19px;line-height:1;}
.kf-news-item[href]:hover .kf-news-item-text,.kf-news-item[href]:focus-visible .kf-news-item-text{text-decoration:underline;}
.kf-news-item[href]:focus-visible{outline:2px solid #ffe178;outline-offset:-3px;border-radius:4px;}
.kf-news-pause{flex:none;z-index:2;position:relative;width:clamp(48px,4.5vw,58px);border:0!important;
 border-right:1px solid #ffffff38!important;color:#fff!important;background:#ffffff21!important;
 cursor:pointer;display:grid;place-items:center;font-size:17px;font-weight:800;line-height:1;
 box-shadow:none!important;}
.kf-news-pause:hover{background:#ffffff35!important;}
.kf-news-pause:focus-visible{outline:3px solid #ffda72;outline-offset:-4px;}
@keyframes kf-news-drift{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.kf-news-ticker[data-direction="right"] .kf-news-track{animation-direction:reverse;}
.kf-news-ticker.kf-news-paused .kf-news-track,.kf-news-ticker:focus-within .kf-news-track{animation-play-state:paused;}
@media(hover:hover){.kf-news-ticker[data-pause-hover="true"]:hover .kf-news-track{animation-play-state:paused;}}
@media(prefers-reduced-motion:reduce){.kf-news-track{animation:none!important;}.kf-news-viewport{overflow:auto;mask-image:none;scrollbar-width:thin}}
#root.kf-news-root-active .announcement{display:none!important;}
.public-design.kf-news-active > .d-announcement{display:none!important;}
@media(max-width:680px){
 .kf-news-ticker{min-height:54px;}
 .kf-news-label{padding:7px 10px;gap:6px;}
 .kf-news-badge{font-size:12px;max-width:100px;overflow:hidden;text-overflow:ellipsis;}
 .kf-news-item{font-size:12.5px;padding:9px 17px;}
 .kf-news-pause{width:43px;}
 .kf-news-viewport{mask-image:linear-gradient(to right,transparent,#000 5%,#000 95%,transparent);}
}
/* Visual admin editor. */
.kf-news-admin{direction:rtl;margin:20px 0 28px;padding:clamp(16px,2.5vw,26px);color:#222245;
 border:1px solid #dad7ef;border-radius:22px;background:#fff;box-shadow:0 12px 28px #2614570d;}
.kf-news-admin h2{font-size:clamp(18px,1.8vw,24px);font-weight:850;margin:0 0 8px;}
.kf-news-admin-sub{font-size:13px;color:#737088;line-height:1.8;margin:0 0 18px;}
.kf-news-admin-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:22px;align-items:start;}
.kf-news-admin-controls{min-width:0;}
.kf-news-admin-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.kf-news-admin-field{display:flex;flex-direction:column;gap:7px;min-width:0;color:#393355;font-size:13px;font-weight:700;}
.kf-news-admin-field input:not([type="checkbox"]):not([type="range"]),.kf-news-admin-field select{
 width:100%;max-width:100%;min-height:44px;border:1px solid #dbddec;border-radius:12px;
 padding:8px 12px;background:#fafaff;font:inherit;font-weight:500;color:#292144;direction:rtl;}
.kf-news-admin-field input[type="checkbox"]{width:19px;height:19px;accent-color:#6545d4;}
.kf-news-admin-field input[type="range"]{width:100%;accent-color:#6545d4;}
.kf-news-admin-controls h3{font-size:17px;margin:18px 0 12px;}
.kf-news-admin-list{display:grid;gap:10px;}
.kf-news-admin-item{border:1px solid #e5e2f1;border-radius:15px;padding:12px;background:#fcfbff;display:grid;gap:10px;}
.kf-news-admin-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.kf-news-admin-item-actions{display:flex;gap:6px;}
.kf-news-admin button{cursor:pointer;font-family:inherit;}
.kf-news-admin-item-actions button{min-height:34px;min-width:36px;background:#f0edff;border:1px solid #dfd9fb;
 color:#3b2b8f;border-radius:9px;font-size:13px;padding:5px 9px;}
.kf-news-admin-item-actions button:disabled{opacity:.4;cursor:default;}
.kf-news-add{margin-top:12px;background:#ede9ff;border:1px solid #d8d0f8;color:#42279c;
 font-size:14px;font-weight:750;padding:12px 18px;border-radius:12px;}
.kf-news-admin-preview{min-width:0;position:sticky;top:15px;border-radius:16px;border:1px solid #e7e2f7;
 background:#f8f5ff;padding:15px;display:grid;gap:12px;}
.kf-news-admin-preview strong{font-size:15px;}
.kf-news-admin-preview small,.kf-news-admin-hint{font-size:12px;line-height:1.7;color:#746c84;}
.kf-news-admin-stage{min-width:0;overflow:hidden;}
.kf-news-admin-stage .kf-news-ticker{border-radius:12px;min-height:62px;}
.kf-news-admin-stage .kf-news-label{padding:10px;}
.kf-news-admin-stage .kf-news-badge{font-size:12px;}
.kf-news-admin-stage .kf-news-item{font-size:12px;padding-inline:15px;}
.kf-news-admin-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 7px;}
.kf-news-admin-actions button{background:#f1effa;color:#382a77;border-radius:12px;padding:12px 18px;font-size:14px;font-weight:800;}
.kf-news-admin-actions .kf-news-save{background:#6245d5;color:#fff;}
.kf-news-admin-actions button:disabled{opacity:.5;cursor:wait;}
.kf-news-admin-status{color:#706982;font-size:13px;line-height:1.6;}
.kf-news-admin-status[data-error="true"]{color:#b42333;}
@media(max-width:900px){.kf-news-admin-layout{grid-template-columns:1fr}.kf-news-admin-preview{position:static;}}
@media(max-width:500px){.kf-news-admin-fields{grid-template-columns:1fr}.kf-news-admin{padding:14px}.kf-news-admin-preview{padding:10px}}
