/* TEVET Fund — public website (home, calls, application form, legal pages). */

.pub { background: #fff; color: #1C2733; font-size: 1rem; }
/* Brand colour of the public site: the TEVETA logo blue. The shared variables are redefined here,
   so .btn-tevet, .text-tevet and the rest turn blue on these pages only; the staff system stays green. */
.pub { --tevet-green: #00386A; --tevet-green-dark: #002A50; }
/* Brand actions written with Bootstrap's success colour follow the brand; ticks and success messages stay green. */
.pub .btn-outline-success { --bs-btn-color: #00386A; --bs-btn-border-color: #00386A; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #00386A;
                            --bs-btn-hover-border-color: #00386A; --bs-btn-active-color: #fff; --bs-btn-active-bg: #002A50;
                            --bs-btn-active-border-color: #002A50; --bs-btn-focus-shadow-rgb: 0, 56, 106; }
.pub .badge.text-bg-success { background-color: #00386A !important; }
/* Text links only — buttons keep their own colours. */
.pub a:where(:not(.btn, .nav-link, .navbar-brand)) { color: var(--tevet-green); }
.pub-skip { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* ---- Navigation ---- */
.pub-nav { background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid #ECF0F4; }
.pub-logo { height: 56px; width: auto; }
@media (max-width: 575.98px) { .pub-logo { height: 44px; } }
.pub-nav .nav-link { color: #3A4654; font-weight: 500; padding: .5rem .65rem !important; white-space: nowrap; }
.pub-nav .btn { white-space: nowrap; }
/* Between tablet and laptop widths the full menu is tight beside the logo: smaller type. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .pub-nav .nav-link { font-size: .9rem; padding: .5rem .45rem !important; }
    .pub-nav .btn { font-size: .8rem; padding-left: .6rem !important; padding-right: .6rem !important; }
    .pub-nav .bl-title { font-size: 1.3rem; }
    .pub-nav .bl-sub { font-size: .64rem; }
}
.pub-nav .nav-link:hover, .pub-nav .nav-link.active { color: var(--tevet-green); }
.pub-nav .nav-link.active { box-shadow: inset 0 -2px 0 var(--tevet-green); }

/* ---- Hero ---- */
.pub-hero { background: #00386A; color: #fff; position: relative; overflow: hidden; }
.pub-hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
                   display: none; }   /* no glow: flat colours */
.pub-hero .lead { color: rgba(255, 255, 255, .88); }
.pub-hero .btn-light { color: var(--tevet-green); font-weight: 600; }
.pub-kicker { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
              background: rgba(255, 255, 255, .14); border-radius: 99px; padding: .3rem .8rem; }
.pub-stat { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 1rem 1.1rem; }
.pub-stat .v { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.pub-stat .l { font-size: .8rem; opacity: .8; }

/* ---- Sections ---- */
.pub-section { padding: 4.5rem 0; }
.pub-section.alt { background: #F5F8FB; }
.pub-eyebrow { color: var(--tevet-green); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pub-h2 { font-weight: 700; font-size: clamp(1.5rem, 2.5vw, 2rem); }

.pub-card { border: 1px solid #E4E9EF; border-radius: 14px; background: #fff; height: 100%; transition: box-shadow .15s, transform .15s; }
.pub-card:hover { box-shadow: 0 10px 30px rgba(0, 42, 80, .08); transform: translateY(-2px); }
.pub-icon { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
            color: var(--tevet-green); font-size: 1.4rem;
            background: linear-gradient(150deg, #fff 0%, #E6EEF6 55%, #CFDCEA 100%);
            box-shadow: inset 0 2px 0 #fff, inset 0 -4px 0 rgba(0, 42, 80, .12), 0 10px 16px -8px rgba(0, 42, 80, .45); }
.pub-icon i { filter: drop-shadow(0 2px 0 rgba(0, 42, 80, .22)); }

.pub-call .badge-window { background: #E6EEF6; color: var(--tevet-green); font-weight: 600; }
.pub-closing { font-size: .8rem; font-weight: 600; color: #b36b00; }
/* Calls for proposals: one card per call, a window-coloured accent, the closing countdown, no amounts. */
.cl-card { --cl: #00386A; display: flex; flex-direction: column; height: 100%; padding: 1.25rem 1.35rem 1.1rem; border: 1px solid #E4E9EF; border-left: 5px solid var(--cl); border-radius: 16px; background: #fff; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; min-width: 0; }
.cl-card:hover { color: inherit; box-shadow: 0 12px 32px rgba(0, 42, 80, .10); transform: translateY(-2px); }
.cl-w1 { --cl: #00386A; } .cl-w2 { --cl: #0b6e4f; } .cl-w3 { --cl: #b7791f; } .cl-w4 { --cl: #6f42c1; }
.cl-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .7rem; }
.cl-window { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--cl); background: color-mix(in srgb, var(--cl) 10%, #fff); border-radius: 999px; padding: .22rem .65rem; white-space: nowrap; }
.cl-window-name { font-weight: 600; }
.cl-closing { font-size: .76rem; font-weight: 700; border-radius: 999px; padding: .22rem .65rem; white-space: nowrap; }
.cl-closing.cl-ok { background: #E6F4EA; color: #0b6e4f; } .cl-closing.cl-soon { background: #FFF3D6; color: #8a5a00; } .cl-closing.cl-urgent { background: #FBE9EB; color: #b02a37; }
.cl-title { font-size: 1.12rem; font-weight: 700; line-height: 1.3; margin: 0 0 .45rem; color: #1A2733; overflow-wrap: anywhere; }
.cl-text { font-size: .9rem; color: #5B6775; margin: 0 0 .75rem; line-height: 1.5; }
.cl-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .8rem; color: #6B7785; margin-bottom: .9rem; }
.cl-meta .bi { color: var(--cl); margin-right: .2rem; }
.cl-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .75rem; border-top: 1px solid #EEF2F6; padding-top: .75rem; }
.cl-no { font-size: .74rem; color: #9AA5B1; font-weight: 600; letter-spacing: .02em; }
.cl-go { font-size: .9rem; font-weight: 700; color: var(--cl); }
.cl-go .bi { transition: transform .15s; } .cl-card:hover .cl-go .bi { transform: translateX(3px); }
.cl-closed { overflow: hidden; }
.cl-closed-row { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding: .7rem 1rem; border-top: 1px solid #EEF2F6; font-size: .92rem; }
.cl-closed-row:first-child { border-top: 0; }
.cl-closed-title { min-width: 0; color: #3B4754; overflow-wrap: anywhere; }
.cl-closed-no { display: block; font-size: .74rem; color: #9AA5B1; }
.cl-closed-date { font-size: .8rem; color: #6B7785; white-space: nowrap; }
@media (max-width: 575.98px) { .cl-window-name { display: none; } .cl-closed-row { grid-template-columns: auto 1fr; } .cl-closed-date { grid-column: 2; } }

.pub-step { position: relative; padding-left: 64px; }
.pub-step .n { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--tevet-green);
               color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.pub-cta { background: #00386A; color: #fff; border-radius: 18px; }

/* ---- Page heads and legal pages ---- */
.pub-page-head { background: #00386A; color: #fff; }   /* solid logo blue (Contact us, Open calls, News, legal pages) */
.pub .pub-page-head a:not(.btn) { color: #fff; }
.pub-legal h2 { font-size: 1.25rem; font-weight: 700; margin-top: 2.2rem; scroll-margin-top: 90px; }
.pub-legal h2:first-of-type { margin-top: 0; }
.pub-legal p, .pub-legal li { line-height: 1.7; }
.pub-legal table { font-size: .9rem; }
.pub-toc a { color: #3A4654; text-decoration: none; }
.pub-toc a:hover { color: var(--tevet-green); }

/* ---- Application form ---- */
.apply-step { width: 30px; height: 30px; border-radius: 50%; background: var(--tevet-green); color: #fff; display: inline-flex;
              align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.apply-section { border: 1px solid #E4E9EF; border-radius: 14px; padding: 1.5rem; background: #fff; margin-bottom: 1.25rem; }
.apply-doc { border: 1px dashed #C7D4E2; border-radius: 10px; padding: .75rem 1rem; background: #FBFCFE; }
.apply-doc.is-invalid { border-color: #dc3545; background: #fff7f7; }
.apply-files { list-style: none; margin: .45rem 0 0; padding: 0; display: grid; gap: .25rem; }
.apply-files li { display: flex; align-items: center; gap: .35rem; font-size: .83rem; color: #1f5a3a; background: #eef7f1; border: 1px solid #cfe6d8; border-radius: 8px; padding: .3rem .6rem; min-width: 0; }
.apply-files li .apply-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.apply-files li .apply-file-size { flex: 0 0 auto; color: #5c6b7a; font-weight: 400; }
.apply-files li.over { color: #9b1c1c; background: #fdf1f1; border-color: #f1c4c4; }
.apply-files li.over .apply-file-size { color: #9b1c1c; }
.apply-files-n { display: block; font-size: .78rem; color: #5c6b7a; margin-top: .3rem; }
.apply-files-n:empty { display: none; }

/* ---- Footer and cookie notice ---- */
.pub-footer { background: #EEF1F4; color: #3A4654; border-top: 1px solid #DDE3EA; }
.pub .pub-footer a:not(.btn) { color: #00386A; text-decoration: none; }
.pub .pub-footer a:not(.btn):hover { color: #002A50; text-decoration: underline; }
.pub-footer hr { border-color: #C7D0DA; opacity: 1; }
.pub-foot-title { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6rem; color: #002447; }
.pub-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080; background: #fff; border-top: 1px solid #E4E9EF;
              box-shadow: 0 -6px 24px rgba(0, 0, 0, .08); }

/* ==== Home page graphics and motion (index.php) ==== */
@keyframes tf-up    { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes tf-spin  { to { transform: rotate(360deg); } }
@keyframes tf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes tf-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -24px) scale(1.08); } }
@keyframes tf-pulse { 0% { box-shadow: 0 18px 50px rgba(0, 0, 0, .25), 0 0 0 0 rgba(240, 165, 0, .55); }
                      100% { box-shadow: 0 18px 50px rgba(0, 0, 0, .25), 0 0 0 24px rgba(240, 165, 0, 0); } }
@keyframes tf-run   { from { left: 0; } to { left: calc(100% - 10px); } }
@keyframes tf-runv  { from { top: 0; } to { top: calc(100% - 10px); } }
@keyframes tf-bob   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Scroll reveal: hidden only once the script has switched it on, so no-JS visitors see everything. */
.rv-on .rv { opacity: 0; }
.rv-on .rv.in { opacity: 1; animation: tf-up .75s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) backwards; }
/* Fly in from the left or right instead of rising */
@keyframes tf-fly-l { from { opacity: 0; transform: translateX(-80px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes tf-fly-r { from { opacity: 0; transform: translateX(80px) rotate(1.5deg); } to { opacity: 1; transform: none; } }
.rv-on .rv.fly-l.in { animation-name: tf-fly-l; animation-duration: .9s; }
.rv-on .rv.fly-r.in { animation-name: tf-fly-r; animation-duration: .9s; }

/* FAQ: every answer shown, as numbered cards */
#faq { overflow-x: clip; }   /* no sideways scroll while cards fly in on phones */
.tf-faq { display: grid; gap: 1rem; }
.tf-faq-item { display: flex; gap: 1.1rem; align-items: flex-start; background: #fff; border: 1px solid #E4E9EF; border-radius: 16px;
               padding: 1.25rem 1.4rem; box-shadow: 0 10px 26px -14px rgba(0, 42, 80, .25); transition: transform .25s, box-shadow .25s, border-color .25s; }
.tf-faq-item:hover { transform: translateY(-3px); border-color: #C7D4E2; box-shadow: 0 16px 32px -14px rgba(0, 42, 80, .35); }
.tf-faq-n { flex: 0 0 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
            color: #fff; font-weight: 800; font-size: 1.1rem; text-shadow: 0 1px 0 rgba(0, 20, 40, .5);
            background: radial-gradient(circle at 32% 26%, #4C8BD0 0%, #1A5A96 45%, #00386A 75%, #001F3D 100%);
            box-shadow: inset -3px -4px 7px rgba(0, 0, 0, .3), inset 2px 3px 5px rgba(255, 255, 255, .35), 0 8px 14px rgba(0, 42, 80, .3); }
.tf-faq-q { font-size: 1.08rem; font-weight: 700; color: #002447; margin: .2rem 0 .35rem; }
.tf-faq-a { color: #4A5664; line-height: 1.6; }
.tf-rise { animation: tf-up .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) backwards; }

/* Hero background shapes and wave */
.pub-hero { padding-bottom: 3rem; }
.tf-blob { display: none; position: absolute; border-radius: 50%; animation: tf-drift 14s ease-in-out infinite; pointer-events: none; }
.tf-blob.b1 { width: 260px; height: 260px; left: -80px; bottom: 40px; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); }
.tf-blob.b2 { width: 140px; height: 140px; left: 42%; top: 30px; background: radial-gradient(circle, rgba(240, 165, 0, .25), transparent 70%); animation-duration: 11s; animation-delay: -4s; }
.tf-blob.b3 { width: 90px; height: 90px; right: 8%; bottom: 90px; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%); animation-duration: 9s; animation-delay: -2s; }
.tf-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; fill: #fff; }

/* Hero picture: the Fund at the centre with what it pays for circling it */
.tf-orbit { position: relative; width: 440px; height: 440px; max-width: 100%; }
.tf-track { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.tf-track.t1 { width: 280px; height: 280px; border: 1px solid rgba(255, 255, 255, .22); }
.tf-track.t2 { width: 420px; height: 420px; border: 1px dashed rgba(255, 255, 255, .2); }
.tf-core { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px; border-radius: 50%;
           background: radial-gradient(circle at 35% 28%, #fff 0%, #fff 45%, #E3EBF4 100%);
           display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; z-index: 2;
           box-shadow: 0 18px 50px rgba(0, 0, 0, .25); animation: tf-pulse 2.6s ease-out infinite; }
.tf-core img { width: 64px; height: auto; }
.tf-core span { color: var(--tevet-green); font-weight: 700; font-size: .95rem; }
.tf-ring { position: absolute; inset: 0; animation: tf-spin 36s linear infinite; }
.tf-ring.r1 { --r: 140px; }
.tf-ring.r2 { --r: 210px; animation-duration: 60s; animation-direction: reverse; }
.tf-sat { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px;
          transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))); }
/* 3D icons: a sphere lit from the top left (highlight, shaded edge, cast shadow) with an embossed glyph. */
.tf-sat-in { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; border-radius: 50%;
             background: radial-gradient(circle at 32% 26%, #fff 0%, #F1F5FA 42%, #C6D5E6 100%); color: var(--tevet-green); font-size: 1.35rem;
             box-shadow: inset -4px -6px 10px rgba(0, 42, 80, .22), inset 3px 4px 6px rgba(255, 255, 255, .95), 0 10px 18px rgba(0, 0, 0, .3);
             animation: tf-spin 36s linear infinite reverse; }
.tf-sat-in i { filter: drop-shadow(0 2px 0 rgba(0, 42, 80, .25)) drop-shadow(0 3px 3px rgba(0, 0, 0, .18)); }
/* Window codes (W1–W4) on the inner ring, embossed like the icons */
.tf-sat-w { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; line-height: 1;
            text-shadow: 0 1px 0 #fff, 0 2px 0 rgba(0, 42, 80, .2), 0 3px 4px rgba(0, 0, 0, .15); }
.r2 .tf-sat { width: 42px; height: 42px; margin: -21px; }
/* The outer ring in the logo red */
.r2 .tf-sat-in { font-size: 1.05rem; color: #fff; animation-duration: 60s; animation-direction: normal;
                 background: radial-gradient(circle at 32% 26%, #FF8B7C 0%, #E8402D 40%, #DC2B19 62%, #9C170A 100%);
                 box-shadow: inset -3px -5px 8px rgba(80, 8, 0, .35), inset 2px 3px 5px rgba(255, 210, 200, .6), 0 9px 16px rgba(0, 0, 0, .35); }
.r2 .tf-sat-in i, .r2 .tf-sat-in .tf-sk { filter: drop-shadow(0 2px 0 rgba(110, 12, 0, .55)) drop-shadow(0 3px 3px rgba(0, 0, 0, .25)); }
/* Trade icons from the sprite (assets/img/skills-icons.svg): line icons drawn in the sphere's text colour */
.tf-sk { width: 22px; height: 22px; stroke-width: 2.1; }
/* Outer ring as pictures of the key operational areas: round photos with a white rim and a glossy top light */
.r2 .tf-sat:has(.tf-sat-pic) { width: 52px; height: 52px; margin: -26px; }
.r2 .tf-sat-pic { position: relative; padding: 3px; background: #fff; overflow: hidden;
                  box-shadow: 0 8px 16px rgba(0, 0, 0, .38), 0 0 0 1px rgba(255, 255, 255, .5); }
.tf-sat-pic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.tf-sat-pic::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; pointer-events: none;
                     background: radial-gradient(circle at 32% 22%, rgba(255, 255, 255, .45), transparent 45%);
                     box-shadow: inset 0 -5px 9px rgba(0, 0, 0, .28); }

/* Impact numbers, lifted over the section above */
.tf-stats { position: relative; z-index: 2; margin-top: -2.5rem; }
/* After the vision band (home page): part of the same light band, then a gap before what follows */
#vision.alt + .tf-stats { background: #F5F8FB; margin-top: 0; padding-bottom: 1.5rem; }
#vision.alt:has(+ .tf-stats) { padding-bottom: 2rem; }
#vision.alt + .tf-stats + #news { padding-top: 4rem !important; }   /* news (white) needs its own top space after the band */
.tf-stat { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid #E4E9EF; border-radius: 16px;
           padding: 1.1rem 1.2rem; box-shadow: 0 14px 36px rgba(0, 42, 80, .1); height: 100%; }
.tf-stat-ic { flex: 0 0 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
              background: linear-gradient(150deg, #2A6FB0 0%, #00386A 60%, #00284D 100%); color: #fff; font-size: 1.3rem;
              box-shadow: inset 0 2px 0 rgba(255, 255, 255, .28), inset 0 -4px 0 rgba(0, 0, 0, .22), 0 8px 14px -4px rgba(0, 42, 80, .55); }
.tf-stat-ic i { filter: drop-shadow(0 2px 0 rgba(0, 20, 40, .55)); }
.tf-stat .v { font-size: 1.55rem; font-weight: 800; line-height: 1.1; color: #002447; font-variant-numeric: tabular-nums; }
.tf-stat .l { font-size: .8rem; color: #6B7785; }
@media (max-width: 575.98px) { .tf-stat { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .9rem; } .tf-stat .v { font-size: 1.25rem; white-space: nowrap; } .tf-stat-ic { flex: 0 0 auto; width: 40px; height: 40px; font-size: 1.1rem; } }

/* From the levy to a job: five steps joined by moving dots */
.tf-flow { display: flex; align-items: flex-start; }
.tf-node { flex: 1 1 0; text-align: center; padding: 0 .4rem; }
.tf-node-ic { position: relative; width: 84px; height: 84px; margin: 0 auto; border-radius: 24px; display: flex; align-items: center;
              justify-content: center; font-size: 2rem; color: var(--tevet-green); transition: transform .25s, background .25s, color .25s;
              background: linear-gradient(150deg, #fff 0%, #E6EEF6 55%, #CFDCEA 100%);
              box-shadow: inset 0 2px 0 #fff, inset 0 -5px 0 rgba(0, 42, 80, .12), 0 14px 22px -10px rgba(0, 42, 80, .45); }
.tf-node-ic i { filter: drop-shadow(0 2px 0 rgba(0, 42, 80, .22)) drop-shadow(0 4px 4px rgba(0, 0, 0, .12)); }
.tf-node:hover .tf-node-ic { transform: translateY(-6px) rotate(-4deg); color: #fff;
                             background: linear-gradient(150deg, #2A6FB0 0%, #00386A 60%, #00284D 100%); }
/* Step numbers: small red spheres */
.tf-node-n { position: absolute; right: -8px; top: -8px; width: 28px; height: 28px; border-radius: 50%; color: #fff;
             font-size: .8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 3px solid #fff;
             background: radial-gradient(circle at 32% 26%, #FF8B7C 0%, #DC2B19 55%, #9C170A 100%);
             box-shadow: 0 4px 8px rgba(156, 23, 10, .4); text-shadow: 0 1px 0 rgba(90, 8, 0, .6); }
.tf-link { flex: 0 0 34px; height: 4px; margin-top: 40px; position: relative; border-radius: 4px;
           background: repeating-linear-gradient(90deg, #B6CCE2 0 8px, transparent 8px 14px); }
.tf-link span { position: absolute; top: -3px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--tevet-gold);
                box-shadow: 0 0 0 4px rgba(240, 165, 0, .25); animation: tf-run 1.8s ease-in-out infinite; }
@media (max-width: 991.98px) {
    .tf-flow { flex-direction: column; align-items: center; }
    .tf-node { max-width: 360px; }
    .tf-link { flex: 0 0 44px; width: 4px; height: 44px; margin: .75rem 0;
               background: repeating-linear-gradient(180deg, #B6CCE2 0 8px, transparent 8px 14px); }
    .tf-link span { left: -3px; top: 0; animation-name: tf-runv; }
}

/* The Zambian coat of arms in the first step, lifted off the tile by a shadow that follows its outline */
.tf-node-img { height: 64px; width: auto; filter: drop-shadow(0 4px 4px rgba(0, 42, 80, .35)); }
/* Pictures (from the key operational areas image) filling the step tile, with a white rim and glossy top light */
.tf-node-ic.has-pic { padding: 4px; background: #fff; }
.tf-node-pic { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; display: block; }
.tf-node-ic.has-pic::after { content: ''; position: absolute; inset: 4px; border-radius: 20px; pointer-events: none;
                             background: linear-gradient(160deg, rgba(255, 255, 255, .35), transparent 45%);
                             box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .22); }
.tf-node:hover .tf-node-ic.has-pic { background: #fff; }
.tf-node-ic.has-pic .tf-node-n { z-index: 2; }

/* Vision and mission */
.tf-vm { border-left: 4px solid var(--tevet-green); }
/* "How to apply" as a large heading */
.tf-how-title { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: #002447; margin-bottom: 1.25rem; }
.tf-vm-title { font-size: 1.35rem; font-weight: 800; color: var(--tevet-green); margin-bottom: .5rem; }
.tf-vm-text { font-size: 1.12rem; line-height: 1.6; color: #1C2733; }

/* Core values: red 3D spheres, five across */
.tf-values { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
@media (max-width: 991.98px) { .tf-values { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .tf-values { grid-template-columns: repeat(2, 1fr); } }
.tf-value { text-align: center; background: #fff; border: 1px solid #E4E9EF; border-radius: 14px; padding: 1.25rem .9rem; transition: transform .25s, box-shadow .25s; }
.tf-value:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 42, 80, .1); }
.tf-value-ic { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center;
               color: #fff; font-size: 1.45rem;
               background: radial-gradient(circle at 32% 26%, #FF8B7C 0%, #E8402D 40%, #DC2B19 62%, #9C170A 100%);
               box-shadow: inset -3px -5px 8px rgba(80, 8, 0, .35), inset 2px 3px 5px rgba(255, 210, 200, .6), 0 9px 16px rgba(156, 23, 10, .35); }
.tf-value-ic i { filter: drop-shadow(0 2px 0 rgba(110, 12, 0, .55)); }
/* Core value pictures (docs/core_values_icons.png) as raised rounded tiles */
.tf-value-pic { display: block; width: 96px; height: 96px; margin: 0 auto; border-radius: 20px; object-fit: cover;
                box-shadow: 0 10px 20px rgba(0, 42, 80, .22), 0 0 0 3px #fff; transition: transform .3s; }
.tf-value:hover .tf-value-pic { transform: translateY(-3px) scale(1.04); }

/* Funding windows: a coloured edge that grows on hover */
.tf-window { position: relative; overflow: hidden; }
.tf-window::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 30%;
                     background: var(--tevet-green); transition: width .35s; }
.tf-window:hover::before { width: 100%; }
.tf-window .pub-icon { transition: transform .3s; }
.tf-window:hover .pub-icon { transform: scale(1.12) rotate(-6deg); }
/* Picture banner across the top of a window card; the coloured edge stays on top of it */
.tf-window.has-banner::before { z-index: 1; }
.tf-window-pic { display: block; width: 100%; aspect-ratio: 286 / 166; object-fit: cover; transition: transform .5s; }
.tf-window.has-banner:hover .tf-window-pic { transform: scale(1.05); }

/* Skills we invest in */
.tf-sectors { background: #00386A; color: #fff; }
.tf-sectors .pub-eyebrow { color: var(--tevet-gold); }
.tf-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
@media (max-width: 767.98px) { .tf-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 479.98px) { .tf-tiles { grid-template-columns: repeat(2, 1fr); } }
.tf-tile { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 1.1rem .6rem;
           text-align: center; font-size: .85rem; font-weight: 600; transition: background .25s, transform .25s; }
/* Red, extruded icons on the dark band */
.tf-tile i, .tf-tile .tf-tile-ic { display: block; font-size: 1.7rem; color: #FF5A47; margin: 0 auto .4rem; animation: tf-bob 3.2s ease-in-out infinite;
             filter: drop-shadow(0 2px 0 #9C170A) drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); }
.tf-tile-ic { width: 1.7rem; height: 1.7rem; stroke-width: 2.1; }
.tf-tile:nth-child(2n) i, .tf-tile:nth-child(2n) .tf-tile-ic { animation-delay: -1s; }
.tf-tile:nth-child(3n) i, .tf-tile:nth-child(3n) .tf-tile-ic { animation-delay: -2s; }
/* Five priority sectors: one row on wide screens, larger tiles */
.tf-tiles-5 { grid-template-columns: repeat(5, 1fr); }
.tf-tiles-5 .tf-tile { padding: 1.6rem .6rem; font-size: .92rem; }
.tf-tiles-5 .tf-tile-ic { width: 2.3rem; height: 2.3rem; margin-bottom: .7rem; }
/* Sector tiles with a picture (docs/sectors_icons.png): photo on top, name below */
.tf-tile.has-pic { padding: 0 0 .75rem; overflow: hidden; box-shadow: 0 12px 26px rgba(0, 0, 0, .3); }
.tf-tile-pic { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .7rem; transition: transform .5s; }
.tf-tile.has-pic:hover .tf-tile-pic { transform: scale(1.06); }
@media (max-width: 767.98px) { .tf-tiles-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 479.98px) { .tf-tiles-5 { grid-template-columns: repeat(2, 1fr); } }
.tf-tile:hover { background: rgba(255, 255, 255, .16); transform: translateY(-4px); }

/* How to apply: icons joined by a line */
.tf-steps { position: relative; }
.tf-steps::before { content: ''; position: absolute; left: 21px; top: 22px; bottom: 40px; width: 2px;
                    background: var(--tevet-green); opacity: .25; }
.tf-steps .pub-step .n { font-size: 1.1rem; box-shadow: 0 0 0 5px #F5F8FB; transition: transform .25s; }
.tf-steps .pub-step:hover .n { transform: scale(1.12); }

/* Call to action with a slow-moving glow */
.tf-cta { position: relative; overflow: hidden; }
.tf-cta::after { content: ''; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px; border-radius: 50%;
                 display: none; }

@media (prefers-reduced-motion: reduce) {
    .tf-rise, .rv-on .rv.in, .tf-blob, .tf-core, .tf-ring, .tf-sat-in, .tf-link span, .tf-tile i, .tf-cta::after { animation: none !important; }
}

/* ==== Closing countdown (pub_countdown) ==== */
.cd { text-align: center; }
.cd-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4rem; opacity: .85; }
.cd-units { display: flex; gap: .45rem; justify-content: center; }
.cd-unit { min-width: 62px; padding: .5rem .35rem .4rem; border-radius: 12px; display: flex; flex-direction: column; align-items: center;
           position: relative; overflow: hidden; }
.cd-unit::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; opacity: .08; }
.cd-num { font-size: 1.75rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; }
.cd-word { font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: .3rem; opacity: .75; }
.cd-flip { animation: cd-flip .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes cd-flip { 0% { transform: translateY(-40%) rotateX(70deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cd-closed { font-weight: 700; padding: .6rem 1rem; border-radius: 10px; }

/* On the blue page heads */
.cd-dark { color: #fff; }
.cd-dark .cd-unit { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(4px);
                    box-shadow: 0 8px 22px rgba(0, 0, 0, .15); }
.cd-dark .cd-closed { background: rgba(255, 255, 255, .15); }
.cd-dark.cd-urgent .cd-unit { background: rgba(240, 165, 0, .28); border-color: rgba(240, 165, 0, .6); }

/* On white cards */
.cd-light { color: #002447; background: #F1F5FA; border: 1px solid #D3E0EE; border-radius: 14px; padding: .8rem .6rem; }
.cd-light .cd-label { color: var(--tevet-green); }
.cd-light .cd-unit { background: #fff; border: 1px solid #D3E0EE; box-shadow: 0 4px 12px rgba(0, 42, 80, .08); min-width: 54px; }
.cd-light .cd-num { font-size: 1.45rem; color: var(--tevet-green); }
.cd-light.cd-urgent { background: #fff8e6; border-color: #f5d27a; }
.cd-light.cd-urgent .cd-label, .cd-light.cd-urgent .cd-num { color: #9a5b00; }
.cd-light .cd-closed { background: #F1F3F6; color: #5C6876; }
@media (max-width: 400px) { .cd-unit { min-width: 52px; } .cd-num { font-size: 1.4rem; } }
@media (prefers-reduced-motion: reduce) { .cd-flip { animation: none; } }

/* ==== Application form: preview bar, programmes, formula ==== */
.apply-preview-bar { background: #b36b00; color: #fff; font-size: .875rem; position: sticky; top: 0; z-index: 1030; }
.apply-prog td, .apply-prog th { vertical-align: middle; }
.apply-prog thead th { font-weight: 600; white-space: nowrap; }
.apply-formula { background: #F1F5FA; border: 1px solid #D3E0EE; border-radius: 12px; padding: 1rem 1.1rem; }

/* ==== Application form steps (apply.php) ==== */
.apply-stepper { display: flex; gap: .25rem; background: #fff; border: 1px solid #E4E9EF; border-radius: 14px; padding: .75rem; margin-bottom: 1.25rem; overflow-x: auto; scroll-margin-top: 90px; }
.apply-stepper-item { flex: 1 0 auto; display: flex; align-items: center; gap: .5rem; background: none; border: 0; padding: .35rem .6rem; border-radius: 10px; color: #7A8592; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.apply-stepper-item:hover { background: #F3F6FA; }
.apply-stepper-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #D4DDE7; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; background: #fff; flex-shrink: 0; }
.apply-stepper-item.active { color: var(--tevet-green); }
.apply-stepper-item.active .apply-stepper-dot { background: var(--tevet-green); border-color: var(--tevet-green); color: #fff; box-shadow: 0 0 0 4px rgba(0, 56, 106, .15); }
.apply-stepper-item.done .apply-stepper-dot { background: #E6EEF6; border-color: var(--tevet-green); color: var(--tevet-green); }
@media (max-width: 767.98px) { .apply-stepper-item:not(.active) .apply-stepper-name { display: none; } }
.tor-box { height: 100%; border: 1px solid #E4E9EF; border-radius: 10px; padding: .75rem .9rem; background: #FBFCFE; }
.tor-h { font-weight: 700; color: var(--tevet-green); margin-bottom: .35rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.apply-tor-frame { border: 1px solid #E4E9EF; border-radius: 10px; overflow: hidden; background: #F5F7FA; }
.apply-tor-frame iframe { display: block; width: 100%; height: 520px; border: 0; }
.apply-nav { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; }
.apply-nav.apply-nav-last { margin-top: -.5rem; }
.apply-review-block { border: 1px solid #E4E9EF; border-radius: 10px; padding: .75rem .9rem; margin-bottom: .75rem; }
.apply-pane { animation: wiz-in .2s ease-out; }
@keyframes wiz-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

/* ---- News (news.php, home page) ---- */
.nw-card { overflow: hidden; color: inherit; }
.nw-card-img { aspect-ratio: 16/9; background: #EEF2F6; display: flex; align-items: center; justify-content: center;
               color: #9BB2CA; font-size: 2.6rem; position: relative; overflow: hidden; }
.nw-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.nw-card:hover .nw-card-img img { transform: scale(1.04); }
.nw-card-play { position: absolute; right: .75rem; bottom: .75rem; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .6);
                color: #fff; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.nw-card-title { line-height: 1.35; }
.nw-cat { background: #E6EEF6; color: var(--tevet-green); font-weight: 600; border-radius: 99px; padding: .15rem .6rem; font-size: .75rem; }
.nw-article { font-size: 1.06rem; line-height: 1.75; color: #232F3B; overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.nw-article p { white-space: normal; }
.nw-article img, .nw-article video, .nw-article iframe, .nw-article table { max-width: 100%; height: auto; }
.nw-article img { display: block; margin: 1rem auto; border-radius: 10px; }
.nw-article table { display: block; overflow-x: auto; }
.nw-page { overflow-x: clip; }
.nw-main { min-width: 0; }
.nw-side { position: sticky; top: 90px; }
.nw-trend { overflow: hidden; }
.nw-trend-head { font-weight: 800; padding: .85rem 1rem; border-bottom: 1px solid #E4E9EF; color: var(--tevet-navy, #00386A); }
.nw-trend-head .bi-fire { color: #d9480f; }
.nw-trend-list { list-style: none; margin: 0; padding: 0; }
.nw-trend-list li + li { border-top: 1px solid #EEF2F6; }
.nw-trend-list a { display: grid; grid-template-columns: 22px 64px 1fr; gap: .7rem; align-items: center; padding: .7rem 1rem; color: inherit; text-decoration: none; }
.nw-trend-list a:has(.nw-trend-img:empty), .nw-trend-list a:not(:has(.nw-trend-img)) { grid-template-columns: 22px 1fr; }
.nw-trend-list a:hover { background: #F6F8FB; }
.nw-trend-n { font-weight: 800; color: #9AA5B1; font-size: .95rem; }
.nw-trend-img { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: #EEF2F6; display: block; }
.nw-trend-img img { width: 100%; height: 100%; object-fit: cover; }
.nw-trend-body { min-width: 0; display: block; }
.nw-trend-title { display: block; font-weight: 600; line-height: 1.3; font-size: .92rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nw-trend-meta { display: block; font-size: .75rem; color: #6B7785; margin-top: .15rem; }
@media (max-width: 991.98px) { .nw-side { position: static; } }
.nw-article h2, .nw-article h3 { font-weight: 700; margin-top: 1.8rem; }
.nw-article blockquote { border-left: 4px solid var(--tevet-green); padding: .3rem 0 .3rem 1rem; color: #4A5664; font-style: italic; }
.nw-cover { border-radius: 16px; overflow: hidden; aspect-ratio: 16/8; background: #EEF2F6; }
.nw-cover img { width: 100%; height: 100%; object-fit: cover; }
.nw-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.nw-gallery button { border: 0; padding: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: #EEF2F6; }
.nw-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.nw-gallery button:hover img { transform: scale(1.05); }
.nw-video { border-radius: 14px; overflow: hidden; background: #000; }
.nw-article .nw-inline-video > iframe { height: 100%; }   /* a YouTube / Vimeo link in the text, played in place (news_render) */
.nw-light .modal-content { background: transparent; border: 0; }
.nw-light img { max-height: 82vh; width: auto; max-width: 100%; border-radius: 8px; }

/* ---- Contact us (contact.php) ---- */
.ct-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid #E4E9EF; border-radius: 16px; padding: 1.25rem 1.4rem;
           box-shadow: 0 10px 26px -14px rgba(0, 42, 80, .25); }
.ct-ic { flex: 0 0 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.25rem;
         background: radial-gradient(circle at 32% 26%, #4C8BD0 0%, #1A5A96 45%, #00386A 75%, #001F3D 100%);
         box-shadow: inset -3px -4px 7px rgba(0, 0, 0, .3), inset 2px 3px 5px rgba(255, 255, 255, .35), 0 8px 14px rgba(0, 42, 80, .3); }
.ct-h { font-size: 1.05rem; font-weight: 700; color: #002447; margin: .15rem 0 .4rem; }
.pub a.ct-link { font-size: 1.1rem; font-weight: 600; color: #00386A; text-decoration: none; }
.ct-map { border-radius: 16px; overflow: hidden; border: 1px solid #E4E9EF; box-shadow: 0 10px 26px -14px rgba(0, 42, 80, .25); background: #EEF2F6; }
.ct-map iframe { display: block; width: 100%; height: 300px; border: 0; }
.ct-form { background: #fff; border: 1px solid #E4E9EF; border-radius: 18px; padding: 2rem; box-shadow: 0 14px 34px -18px rgba(0, 42, 80, .3); }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-done { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: #fff;
           background: radial-gradient(circle at 32% 26%, #4C8BD0 0%, #1A5A96 45%, #00386A 75%, #001F3D 100%); box-shadow: 0 12px 24px rgba(0, 42, 80, .3); }
@media (max-width: 575.98px) { .ct-form { padding: 1.25rem; } }

/* ---- Brand lockup: "TEVET FUND" spread to exactly the width of the line under it ----
   Markup: <span class="brand-lockup"><span class="bl-title">TEVET Fund</span><span class="bl-sub">Management Information System (TFMIS)</span></span>
   The letter spacing is fitted by fitBrandLockups() in the page footer (includes/public.php); without it a wide spacing is used. */
.brand-lockup { display: inline-flex; flex-direction: column; line-height: 1; }
.bl-title { display: inline-block; align-self: flex-start; font-weight: 800; text-transform: uppercase; color: var(--tevet-green);
            font-size: 1.55rem; line-height: 1.05; letter-spacing: .12em; white-space: nowrap; }
.bl-sub { font-size: .72rem; color: #5C6876; white-space: nowrap; margin-top: 3px; }
@media (max-width: 575.98px) { .bl-title { font-size: 1.3rem; } .bl-sub { font-size: .66rem; } }
.apply-kept { list-style: none; margin: .2rem 0 .3rem; padding: 0; display: grid; gap: .25rem; }
.apply-kept li { display: flex; align-items: center; gap: .4rem; font-size: .83rem; color: #1f5a3a; background: #eef7f1; border: 1px solid #cfe6d8; border-radius: 8px; padding: .3rem .6rem; min-width: 0; }
.apply-kept li .apply-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.apply-kept li .apply-file-size { flex: 0 0 auto; color: #5c6b7a; font-weight: 400; }
.apply-kept li .apply-rm { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .25rem; font-size: .78rem; color: #9b1c1c; margin: 0; cursor: pointer; }
.apply-kept li.rm { background: #fdf1f1; border-color: #f1c4c4; color: #9b1c1c; }
.apply-kept li.rm .apply-file-name { text-decoration: line-through; }
