/*
 * Black Friday 2026 (until the end of 2026-11-18). Loaded only by views/_cc_bf.php while the campaign runs.
 * Everything here is prefixed ccbf-, so deleting this file with cc-bf.js and _cc_bf.php leaves cc.css and czc.css untouched.
 */

/* ---------- top ribbon (its box is styled inline in _cc_bf.php, so the page never jumps) ---------- */
.ccbf-bar::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(239, 201, 38, .09) 0 10px, transparent 10px 26px); pointer-events: none; }
.ccbf-bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 22%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent); transform: skewX(-20deg); animation: ccbf-shine 5.5s 1.2s ease-in-out infinite; pointer-events: none; }
.ccbf-bar > * { position: relative; z-index: 1; }
.ccbf-bar__tag { padding: 6px 10px 5px; border-radius: 7px; background: #EFC926; color: #0B0F14; font: 900 11.5px/1 var(--f-display, "Noto Kufi Arabic", Tahoma, sans-serif); letter-spacing: .08em; transform: rotate(-2deg); }
.ccbf-bar__txt b { color: #EFC926; font-weight: 800; font-size: 1.12em; }
.ccbf-bar__time { color: rgba(255, 255, 255, .78); font-weight: 500; }
.ccbf-bar__hms { display: inline-block; min-width: 4.6em; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; text-align: left; }
.ccbf-bar__time [data-ccbf-days] { color: #fff; font-weight: 700; }
.ccbf-bar__go { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-weight: 700; font-size: 13px; transition: background-color .2s, color .2s; }
.ccbf-bar__go svg { width: 14px; height: 14px; transition: transform .25s; }
.ccbf-bar:hover .ccbf-bar__go { background: #EFC926; color: #0B0F14; }
.ccbf-bar:hover .ccbf-bar__go svg { transform: translateX(-3px); }
.ccbf-bar:focus-visible { outline: 3px solid #EFC926; outline-offset: -3px; }
@media (max-width: 760px) { .ccbf-bar__go { display: none; } }
@media (max-width: 600px) { .ccbf-bar__lbl { display: none; } .ccbf-bar__tag { font-size: 10px; padding: 5px 7px 4px; } }
@media (max-width: 420px) { .ccbf-bar__all { display: none; } }

/* ---------- "20% off" tag on the home exam cards ---------- */
.ccbf-tag { position: absolute; z-index: 3; bottom: 12px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px 6px; border-radius: 10px; background: #0B0F14; color: #fff; font: 700 13px/1 var(--f-display, "Noto Kufi Arabic", Tahoma, sans-serif); box-shadow: 0 8px 18px -8px rgba(11, 15, 20, .7); transform: rotate(2.5deg); pointer-events: none; }
.ccbf-tag b { color: #EFC926; font-weight: 900; font-size: 1.1em; }
.cc-keyart--amir .ccbf-tag { bottom: auto; top: 12px; }

/* ---------- badge beside the struck-out price on package cards ---------- */
.ccbf-off { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 8px; padding: 4px 9px 3px; border-radius: 8px; background: #0B0F14; color: #fff; font: 700 11.5px/1.3 var(--f-display, "Noto Kufi Arabic", Tahoma, sans-serif); vertical-align: middle; white-space: nowrap; }
.ccbf-off b { color: #EFC926; font-weight: 900; font-size: 1.15em; }
.cx-plan--featured .ccbf-off { background: #EFC926; color: #0B0F14; }
.cx-plan--featured .ccbf-off b { color: #0B0F14; }

/* ---------- block on the home page ---------- */
.ccbf-sec { padding: clamp(40px, 6vw, 72px) 0 0; }
.ccbf-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(20px, 4vw, 56px); padding: clamp(28px, 4.4vw, 56px) clamp(22px, 4.6vw, 64px); border-radius: clamp(24px, 3vw, 36px); overflow: hidden; background: #0B0F14; color: #fff; box-shadow: 0 40px 80px -46px rgba(11, 15, 20, .9); isolation: isolate; }
.ccbf-card__stripes { position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .035) 0 14px, transparent 14px 38px); }
.ccbf-card__glow { position: absolute; z-index: -1; left: -8%; top: -40%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(239, 201, 38, .3), rgba(239, 201, 38, 0) 66%); animation: ccbf-glow 5s ease-in-out infinite alternate; }
.ccbf-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 8px 14px 7px; border-radius: 10px; background: #EFC926; color: #0B0F14; font: 900 clamp(12px, .7rem + .35vw, 15px)/1 var(--f-display, "Noto Kufi Arabic", Tahoma, sans-serif); letter-spacing: .12em; transform: rotate(-2deg); }
.ccbf-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #0B0F14; animation: ccbf-blink 1.4s ease-in-out infinite; }
.ccbf-card h2 { margin: 18px 0 0; color: #fff; font: 900 clamp(1.9rem, 1.1rem + 3.4vw, 3.5rem)/1.3 var(--f-display, "Noto Kufi Arabic", Tahoma, sans-serif); letter-spacing: 0; }
.ccbf-card h2 em { display: inline-block; font-style: normal; color: #EFC926; }
.ccbf-card__sub { margin: 8px 0 0; color: rgba(255, 255, 255, .74); font-size: clamp(1rem, .92rem + .3vw, 1.15rem); }
.ccbf-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; margin-top: 22px; padding: 0 30px; border: 0; border-radius: 999px; background: #EFC926; color: #0B0F14; font: 800 1.08rem/1 var(--f-display, "Noto Kufi Arabic", Tahoma, sans-serif); text-decoration: none; cursor: pointer; box-shadow: 0 16px 32px -16px rgba(239, 201, 38, .8); transition: transform .2s, background-color .2s; }
.ccbf-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: ccbf-shine 3.6s 1.4s ease-in-out infinite; }
.ccbf-btn svg { width: 18px; height: 18px; transition: transform .25s; }
.ccbf-btn:hover { background: #F5DB5F; transform: translateY(-2px); }
.ccbf-btn:hover svg { transform: translateX(-4px); }
.ccbf-btn:active { transform: scale(.98); }
.ccbf-btn:focus-visible, .ccbf-x:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ccbf-card__side { display: grid; justify-items: center; gap: clamp(14px, 2vw, 22px); }
.ccbf-big { position: relative; display: inline-flex; align-items: flex-start; color: #EFC926; font: 900 clamp(5.4rem, 2.6rem + 9vw, 10.5rem)/.82 var(--f-display, "Noto Kufi Arabic", Tahoma, sans-serif); letter-spacing: -.04em; transform: rotate(-4deg); animation: ccbf-bob 3.6s ease-in-out infinite alternate; }
.ccbf-big i { margin-top: .08em; font-style: normal; font-size: .46em; letter-spacing: 0; }
.ccbf-big b { position: absolute; right: 0; bottom: .06em; padding: .22em .5em .16em; border-radius: .5em; background: #fff; color: #0B0F14; font-size: .15em; font-weight: 900; letter-spacing: .14em; transform: rotate(8deg); }
.ccbf-clock { display: flex; flex-direction: row; gap: clamp(6px, 1vw, 10px); direction: rtl; }
.ccbf-clock > span { display: grid; justify-items: center; gap: 5px; min-width: clamp(56px, 5.4vw, 72px); padding: 11px 6px 9px; border-radius: 14px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ccbf-clock b { color: #fff; font: 800 clamp(1.35rem, 1rem + 1vw, 1.8rem)/1 var(--f-display, "Noto Kufi Arabic", Tahoma, sans-serif); font-variant-numeric: tabular-nums; direction: ltr; }
.ccbf-clock small { color: rgba(255, 255, 255, .66); font-size: 12px; line-height: 1.2; }
@media (max-width: 860px) {
  .ccbf-card { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .ccbf-card__side { order: -1; }
  .ccbf-card__glow { left: 10%; width: 80%; top: -24%; }
  .ccbf-big { font-size: clamp(5rem, 26vw, 8rem); }
  .ccbf-btn { width: 100%; max-width: 360px; }
}
@media (max-width: 380px) { .ccbf-clock > span { min-width: 0; flex: 1 1 0; padding-inline: 4px; } .ccbf-clock { width: 100%; } .ccbf-clock small { font-size: 11px; } }

/* ---------- popup, once per browser ---------- */
.ccbf-pop { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; direction: rtl; text-align: center; color: #fff; font-family: var(--f-body, "Noto Sans Arabic", Tahoma, sans-serif); -webkit-tap-highlight-color: transparent; }
.ccbf-pop *, .ccbf-pop *::before, .ccbf-pop *::after { box-sizing: border-box; }
.ccbf-pop__scrim { position: absolute; inset: 0; background: rgba(4, 7, 11, .72); opacity: 0; transition: opacity .35s ease; }
.ccbf-pop.is-open .ccbf-pop__scrim { opacity: 1; }
.ccbf-pop.is-closing .ccbf-pop__scrim { opacity: 0; }
.ccbf-pop__card { position: relative; width: min(430px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: hidden auto; overscroll-behavior: contain; padding: 34px 26px 28px; border-radius: 28px; background: #0B0F14; box-shadow: 0 0 0 1px rgba(239, 201, 38, .35), 0 34px 90px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(40px) scale(.84); isolation: isolate; }
.ccbf-pop.is-open .ccbf-pop__card { animation: ccbf-in .7s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.ccbf-pop.is-closing .ccbf-pop__card { animation: ccbf-out .28s ease-in forwards; }
.ccbf-pop__card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .04) 0 14px, transparent 14px 38px); }
.ccbf-pop__card::after { content: ""; position: absolute; z-index: -1; left: 50%; top: -34%; width: 120%; aspect-ratio: 1; margin-left: -60%; border-radius: 50%; background: radial-gradient(circle, rgba(239, 201, 38, .28), rgba(239, 201, 38, 0) 62%); animation: ccbf-glow 4s ease-in-out infinite alternate; }
.ccbf-x { position: absolute; top: 12px; left: 12px; z-index: 3; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, transform .2s; }
.ccbf-x:hover { background: rgba(255, 255, 255, .24); transform: rotate(90deg); }
.ccbf-x svg { width: 18px; height: 18px; }
.ccbf-pop .ccbf-big { font-size: clamp(6.2rem, 31vw, 8.6rem); margin-top: 20px; }
.ccbf-pop__title { margin: 22px 0 0; color: #fff; font: 800 clamp(21px, 6vw, 26px)/1.5 var(--f-display, "Noto Kufi Arabic", Tahoma, sans-serif); letter-spacing: 0; }
.ccbf-pop__title em { font-style: normal; color: #EFC926; }
.ccbf-pop__text { margin: 4px 0 0; color: rgba(255, 255, 255, .74); font-size: 16px; line-height: 1.8; }
.ccbf-pop .ccbf-clock { justify-content: center; margin-top: 18px; }
.ccbf-pop .ccbf-clock > span { min-width: 62px; }
.ccbf-pop .ccbf-btn { width: 100%; margin-top: 22px; }
.ccbf-rise { opacity: 0; transform: translateY(14px); }
.ccbf-pop.is-open .ccbf-rise { animation: ccbf-rise .6s cubic-bezier(.2, .8, .2, 1) forwards; }
.ccbf-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 100001; pointer-events: none; }
@media (max-width: 380px) { .ccbf-pop__card { padding: 30px 18px 22px; } .ccbf-pop .ccbf-clock > span { min-width: 0; } }
@media (max-height: 560px) { .ccbf-pop__card { padding: 18px 22px 18px; } .ccbf-pop .ccbf-big { font-size: 4.4rem; margin-top: 6px; } .ccbf-pop__title { margin-top: 10px; font-size: 20px; } .ccbf-pop__text { font-size: 15px; } .ccbf-pop .ccbf-clock { margin-top: 10px; } .ccbf-pop .ccbf-clock > span { padding-block: 7px 6px; } .ccbf-pop .ccbf-btn { min-height: 46px; margin-top: 12px; } }

@keyframes ccbf-shine { 0% { left: -60%; } 38%, 100% { left: 130%; } }
@keyframes ccbf-glow { from { opacity: .65; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
@keyframes ccbf-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes ccbf-bob { from { transform: rotate(-4deg) translateY(-3px); } to { transform: rotate(-2deg) translateY(4px); } }
@keyframes ccbf-in { to { opacity: 1; transform: none; } }
@keyframes ccbf-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(18px) scale(.9); } }
@keyframes ccbf-rise { to { opacity: 1; transform: none; } }

/* motion off (the system setting or the site's accessibility menu): same look, nothing moves */
@media (prefers-reduced-motion: reduce) {
  .ccbf-bar::after, .ccbf-btn::after, .ccbf-card__glow, .ccbf-kicker i, .ccbf-big, .ccbf-pop__card::after { animation: none !important; }
  .ccbf-pop .ccbf-pop__card, .ccbf-pop .ccbf-rise { animation: none !important; opacity: 1; transform: none; }
  .ccbf-pop__scrim { transition: none; }
}
html.ct-a11y-motion .ccbf-bar::after, html.ct-a11y-motion .ccbf-btn::after, html.ct-a11y-motion .ccbf-card__glow, html.ct-a11y-motion .ccbf-kicker i, html.ct-a11y-motion .ccbf-big, html.ct-a11y-motion .ccbf-pop__card::after { animation: none !important; }
html.ct-a11y-motion .ccbf-pop .ccbf-pop__card, html.ct-a11y-motion .ccbf-pop .ccbf-rise { animation: none !important; opacity: 1; transform: none; }
@media print { .ccbf-bar, .ccbf-sec, .ccbf-pop, .ccbf-tag { display: none !important; } }
