/* path: artikleapp/static/css/opp.css */
/* Jobs / Funded PhD pages, homepage board (card scroller + ticker), popup, NEW tooltip on the menu */

/* ---- menu: red NEW tooltip above Jobs ------------------------------------------------- */
.nav-links a.has-new{position:relative}
.nav-new{position:absolute;top:-6px;left:50%;transform:translateX(-50%);background:#D92D20;color:#fff;font-size:9px;font-weight:800;
  letter-spacing:.06em;line-height:1;padding:3px 6px;border-radius:5px;pointer-events:none;white-space:nowrap;animation:opp-bob 1.8s ease-in-out infinite}
.nav-new::after{content:"";position:absolute;left:50%;bottom:-4px;margin-left:-4px;border:4px solid transparent;border-top-color:#D92D20;border-bottom:0}
@keyframes opp-bob{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,-3px)}}

/* ---- homepage board ------------------------------------------------------------------- */
.hb{padding:28px 0 8px}
.hb-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:20px;align-items:start}
.hb-grid>*{min-width:0}
.hb-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.hb-head h2{font-family:var(--ak-serif,Georgia,serif);font-size:22px;margin:0;font-weight:600}
.hb-ctl{display:flex;gap:6px}
.hb-ctl button{width:32px;height:32px;border-radius:50%;border:1px solid var(--ak-line,#D6D0C2);background:#fff;cursor:pointer;font-size:15px;color:var(--ak-teal,#0F3B3C)}
.hb-ctl button:hover{background:var(--ak-teal,#0F3B3C);color:#fff}
.hb-track{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:2px 2px 6px}
.hb-track::-webkit-scrollbar{display:none}
.hb-card{flex:0 0 84%;scroll-snap-align:start;min-height:268px;border-radius:16px;padding:22px 24px;display:flex;flex-direction:column;gap:10px;
  background:#fff;border:1px solid var(--ak-line,#D6D0C2);box-shadow:0 8px 22px -14px rgba(15,59,60,.45);position:relative;overflow:hidden}
.hb-card.hl{background:linear-gradient(140deg,#0F3B3C 0%,#16504F 60%,#1d6361 100%);color:#fff;border-color:#0F3B3C}
.hb-card.hl .hb-tag{background:#B8894A;color:#fff}
.hb-card.hl p{color:#D9E5E1}
.hb-card.hl .hb-cta{background:#fff;color:#0F3B3C}
.hb-card img.hb-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.18;pointer-events:none}
.hb-card>*{position:relative}
.hb-tag{align-self:flex-start;background:#E3E8E4;color:#0F3B3C;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:4px 10px;border-radius:999px}
.hb-card h3{font-family:var(--ak-serif,Georgia,serif);font-size:23px;line-height:1.2;margin:0;font-weight:600}
.hb-card p{margin:0;color:#4A5552;font-size:14.5px;line-height:1.5;flex:1;white-space:pre-line}
.hb-cta{align-self:flex-start;background:#0F3B3C;color:#fff;border-radius:999px;padding:9px 18px;font-size:13px;font-weight:600;text-decoration:none}
.hb-cta:hover{text-decoration:none;opacity:.9}
.ak a.hb-cta,.opp-pop-box a.hb-cta{color:#fff}
.ak .hb-card.hl a.hb-cta{color:#0F3B3C}
.ak .hb-card.hl h3,.ak .hb-card.hl .hb-meta{color:#fff}
.ak .hb-card h3{color:#16211F}
.ak .hb-card.hl h3{color:#fff}
.hb-meta{font-size:12.5px;opacity:.85}
.hb-dots{display:flex;justify-content:center;gap:7px;margin-top:8px}
.hb-dots button{width:8px;height:8px;border-radius:50%;border:0;background:#CFC8B6;padding:0;cursor:pointer}
.hb-dots button[aria-current="true"]{background:#0F3B3C;width:22px;border-radius:6px}

.hb-tick{background:#0F3B3C;color:#fff;border-radius:16px;display:flex;flex-direction:column;overflow:hidden;height:372px;margin-top:0}
.hb-tick-h{display:flex;align-items:center;gap:8px;padding:14px 18px;border-bottom:1px solid rgba(255,255,255,.14);font-weight:700;font-size:14px;letter-spacing:.04em}
.hb-live{width:9px;height:9px;border-radius:50%;background:#F04438;box-shadow:0 0 0 0 rgba(240,68,56,.7);animation:opp-pulse 1.6s infinite}
@keyframes opp-pulse{70%{box-shadow:0 0 0 8px rgba(240,68,56,0)}100%{box-shadow:0 0 0 0 rgba(240,68,56,0)}}
.hb-tick-b{position:relative;flex:1;min-height:0;overflow:hidden}
.hb-tick-b::before,.hb-tick-b::after{content:"";position:absolute;left:0;right:0;height:26px;z-index:2;pointer-events:none}
.hb-tick-b::before{top:0;background:linear-gradient(#0F3B3C,rgba(15,59,60,0))}
.hb-tick-b::after{bottom:0;background:linear-gradient(rgba(15,59,60,0),#0F3B3C)}
.hb-tick-list{list-style:none;margin:0;padding:0;animation:opp-scroll var(--tick-s,30s) linear infinite}
.hb-tick-b:hover .hb-tick-list,.hb-tick-b:focus-within .hb-tick-list{animation-play-state:paused}
.hb-tick-list li{padding:13px 18px;border-bottom:1px solid rgba(255,255,255,.1);font-size:14px;line-height:1.4}
.hb-tick-list a{color:#fff;text-decoration:none;display:block}
.hb-tick-list a:hover{text-decoration:underline}
.hb-tick-list small{display:block;color:#D9C29A;font-size:11.5px;margin-top:3px;letter-spacing:.02em}
.hb-new{background:#D92D20;color:#fff;font-size:9.5px;font-weight:800;padding:2px 6px;border-radius:4px;margin-right:6px;vertical-align:1px}
@keyframes opp-scroll{from{transform:translateY(0)}to{transform:translateY(-50%)}}
@media (prefers-reduced-motion:reduce){.hb-tick-list{animation:none}.hb-tick-b{overflow-y:auto;max-height:300px}.nav-new{animation:none}.hb-live{animation:none}}
@media (max-width:860px){.hb-grid{grid-template-columns:1fr}.hb-card{flex-basis:90%}.hb-tick{height:300px}}

/* ---- popup ---------------------------------------------------------------------------- */
.opp-pop{position:fixed;inset:0;background:rgba(10,24,24,.55);z-index:400;display:none;align-items:center;justify-content:center;padding:18px}
.opp-pop.on{display:flex}
.opp-pop-box{background:#fff;border-radius:18px;max-width:460px;width:100%;padding:28px 28px 24px;position:relative;box-shadow:0 30px 60px -20px rgba(0,0,0,.5);animation:opp-in .35s ease}
@keyframes opp-in{from{transform:translateY(14px) scale(.97);opacity:0}to{transform:none;opacity:1}}
.opp-pop-box img{width:100%;max-height:170px;object-fit:cover;border-radius:10px;margin-bottom:14px}
.opp-pop-box h3{font-family:var(--ak-serif,Georgia,serif);font-size:25px;line-height:1.2;margin:8px 0 10px}
.opp-pop-box p{color:#4A5552;margin:0 0 18px;white-space:pre-line;line-height:1.55}
.opp-pop-x{position:absolute;top:10px;right:12px;border:0;background:#F4F1E8;border-radius:50%;width:32px;height:32px;font-size:18px;cursor:pointer;line-height:1}
.opp-pop-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.opp-pop-skip{background:none;border:0;color:#4A5552;cursor:pointer;font-size:13px;text-decoration:underline}

/* ---- listing pages -------------------------------------------------------------------- */
.op-hero{padding:44px 0 26px}
.op-hero h1{font-family:var(--ak-serif,Georgia,serif);font-size:clamp(32px,4vw,46px);margin:0 0 10px;font-weight:600}
.op-hero p{color:#4A5552;max-width:46em;font-size:17px;margin:0}
.op-filters{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0 18px;align-items:center}
.op-filters input,.op-filters select{padding:10px 12px;border:1px solid var(--ak-line,#D6D0C2);border-radius:10px;background:#fff;font:inherit;font-size:14px;min-width:150px}
.op-filters input[type=search]{flex:1;min-width:220px}
.op-filters button{padding:10px 20px;border-radius:10px;border:0;background:#0F3B3C;color:#fff;font-weight:600;cursor:pointer}
.op-count{color:#4A5552;font-size:14px;margin-bottom:12px}
.op-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px}
.op-card{background:#fff;border:1px solid var(--ak-line,#D6D0C2);border-radius:14px;padding:18px 20px;display:flex;flex-direction:column;gap:8px;position:relative;transition:box-shadow .2s,transform .2s}
.op-card:hover{box-shadow:0 12px 26px -16px rgba(15,59,60,.6);transform:translateY(-2px)}
.op-card.ft{border-color:#B8894A;box-shadow:inset 0 3px 0 #B8894A}
.op-top{display:flex;gap:6px;flex-wrap:wrap}
.op-pill{font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:999px;background:#E3E8E4;color:#0F3B3C}
.op-pill.gold{background:#F3E6CE;color:#7A5320}
.op-pill.red{background:#FDE7E4;color:#B42318}
.op-pill.grey{background:#EEE;color:#555}
.op-card h3{margin:2px 0 0;font-size:18px;line-height:1.3;font-family:var(--ak-serif,Georgia,serif);font-weight:600}
.op-card h3 a{color:inherit;text-decoration:none}
.op-card h3 a:hover{text-decoration:underline}
.op-inst{color:#16211F;font-weight:600;font-size:14.5px}
.op-loc{color:#4A5552;font-size:13.5px}
.op-facts{display:flex;gap:6px 16px;flex-wrap:wrap;font-size:13px;color:#4A5552;margin-top:2px}
.op-facts b{color:#16211F}
.op-foot{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:10px;border-top:1px solid #EEE9DC;gap:8px;flex-wrap:wrap}
.op-foot a.btn{background:#0F3B3C;color:#fff;border-radius:999px;padding:8px 16px;font-size:13px;font-weight:600;text-decoration:none}
.op-pager{display:flex;justify-content:center;gap:14px;align-items:center;margin:26px 0;color:#4A5552}
.op-pager a{padding:8px 16px;border:1px solid var(--ak-line,#D6D0C2);border-radius:999px;background:#fff;text-decoration:none;color:#0F3B3C;font-weight:600}
.op-empty{padding:46px 20px;text-align:center;background:#fff;border:1px dashed var(--ak-line,#D6D0C2);border-radius:14px;color:#4A5552}
.op-note{font-size:12.5px;color:#6B746F;margin:26px 0 0}

.op-detail{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:26px;padding:10px 0 50px}
.op-detail h1{font-family:var(--ak-serif,Georgia,serif);font-size:clamp(26px,3.2vw,36px);line-height:1.2;margin:8px 0 6px;font-weight:600}
.op-box{background:#fff;border:1px solid var(--ak-line,#D6D0C2);border-radius:14px;padding:20px 22px;margin-bottom:16px}
.op-box h2{font-size:15px;margin:0 0 10px;letter-spacing:.04em;text-transform:uppercase;color:#4A5552}
.op-box dl{display:grid;grid-template-columns:130px 1fr;gap:8px 12px;margin:0;font-size:14.5px}
.op-box dt{color:#6B746F}
.op-box dd{margin:0}
.op-txt{white-space:pre-line;line-height:1.6;font-size:15px}
.op-btn{display:inline-flex;gap:8px;align-items:center;padding:12px 22px;border-radius:999px;background:#0F3B3C;color:#fff;font-weight:700;text-decoration:none;border:0;cursor:pointer;font-size:15px}
.op-btn.alt{background:#fff;color:#0F3B3C;border:1px solid #0F3B3C}
.op-btn:hover{text-decoration:none;opacity:.92}
.op-side .op-btn{width:100%;justify-content:center;margin-bottom:10px}
.op-form input,.op-form textarea{width:100%;padding:10px 12px;border:1px solid var(--ak-line,#D6D0C2);border-radius:10px;font:inherit;margin-bottom:8px;box-sizing:border-box}
.op-warn{background:#FFF6E0;border:1px solid #F0D58A;border-radius:10px;padding:10px 14px;font-size:13px;color:#6B4A00;margin-bottom:14px}

/* ---- cards: clickable, corner tags (published date left, status right) ---------------------- */
.op-card{position:relative;padding-top:30px;cursor:pointer}
.op-cover{position:absolute;inset:0;z-index:2;border-radius:14px}
.op-cover:focus-visible{outline:3px solid #B8894A;outline-offset:2px}
.op-tip{position:absolute;top:-1px;font-size:11px;font-weight:700;line-height:1;padding:6px 10px;color:#fff;background:#0F3B3C;z-index:3;pointer-events:none;white-space:nowrap}
.op-tip.tl{left:14px;border-radius:0 0 8px 8px;background:#4A5552}
.op-tip.tr{right:14px;border-radius:0 0 8px 8px}
.op-tip.open{background:#1B7F4B}
.op-tip.soon{background:#C2410C}
.op-tip.exp{background:#B42318}
.op-tip.inline{position:static;display:inline-block;border-radius:999px;pointer-events:auto;padding:4px 10px;background:#4A5552}
.op-tip.inline.open{background:#1B7F4B}.op-tip.inline.soon{background:#C2410C}.op-tip.inline.exp{background:#B42318}
.op-card.is-exp{background:#FAF8F3}
.op-card.is-exp h3,.op-card.is-exp .op-inst{color:#6B746F}
.op-sum{margin:2px 0 0;font-size:13.5px;line-height:1.5;color:#4A5552}
.op-more{font-size:13px;font-weight:700;color:#0F3B3C}
.op-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.op-tabs a{padding:7px 14px;border-radius:999px;border:1px solid var(--ak-line,#D6D0C2);background:#fff;color:#0F3B3C;font-size:13.5px;font-weight:600;text-decoration:none}
.op-tabs a i{font-style:normal;opacity:.7;margin-left:4px}
.op-tabs a.on{background:#0F3B3C;color:#fff;border-color:#0F3B3C}

/* ---- popup (falls back to the full page when JavaScript is off) ---------------------------- */
.op-modal{position:fixed;inset:0;z-index:9000;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(10,24,24,.62)}
.op-modal.on{display:flex}
.op-m-box{position:relative;background:#fff;border-radius:18px;max-width:760px;width:100%;max-height:calc(100vh - 36px);overflow:auto;padding:26px 28px 24px;box-shadow:0 30px 80px -30px rgba(0,0,0,.7)}
.op-m-x{position:sticky;float:right;top:0;margin:-8px -10px 0 8px;border:0;background:#F4F1E8;border-radius:50%;width:34px;height:34px;font-size:20px;line-height:1;cursor:pointer;z-index:2}
.op-m-box h2{font-family:var(--ak-serif,Georgia,serif);font-size:clamp(22px,3vw,28px);line-height:1.2;margin:10px 0 4px;font-weight:600}
.op-m-top{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.op-m-dl{display:grid;grid-template-columns:150px 1fr;gap:8px 12px;margin:0 0 6px;font-size:14.5px}
.op-m-dl dt{color:#6B746F}.op-m-dl dd{margin:0}
.op-m-h{font-size:13px;margin:18px 0 6px;letter-spacing:.05em;text-transform:uppercase;color:#4A5552}
.op-m-notice{max-height:280px;overflow:auto;background:#FAF8F3;border:1px solid #EEE9DC;border-radius:10px;padding:12px 14px;font-size:14px}
.op-m-foot{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.op-m-foot .op-btn{margin:0}
.op-m-load{padding:50px 0;text-align:center;color:#4A5552}
body.op-noscroll{overflow:hidden}
@media (max-width:860px){.op-detail{grid-template-columns:1fr}.op-box dl{grid-template-columns:1fr}.op-grid{grid-template-columns:1fr}.op-m-dl{grid-template-columns:1fr;gap:2px}.op-m-dl dd{margin-bottom:8px}.op-m-box{padding:20px 18px}}

/* ---- Funded PhD cards: funding colour, fellowship highlight, subject ---------------------- */
.op-pill.fund-full{background:#E3F2E8;color:#1B6B3F}
.op-pill.fund-partial{background:#FBEFD3;color:#8A5A12}
.op-pill.fund-self{background:#E6EDFA;color:#2B4C8C}
.op-card:has(.fund-full){border-top:3px solid #2D7A4F}
.op-card:has(.fund-partial){border-top:3px solid #B8894A}
.op-card:has(.fund-self){border-top:3px solid #2B4C8C}
.op-subj{display:inline-block;align-self:flex-start;font-size:12.5px;font-weight:700;color:#0F3B3C;background:#E3EEEC;border-radius:6px;padding:3px 9px}
.op-stip{display:flex;justify-content:space-between;align-items:baseline;gap:10px;background:#FAF9F6;border:1px solid #E8E4DF;border-radius:10px;padding:8px 12px;font-size:13px;color:#4A5552}
.op-stip b{color:#0F3B3C;font-size:14px;text-align:right}
.op-tip.info{background:#2B4C8C}
.op-filters select[name=subject]{min-width:190px}
.op-card h3{font-size:17.5px}
@media (max-width:860px){.op-filters select,.op-filters input[type=search]{flex:1 1 100%}}

/* ---- Corporate Funded PhD Program block ---------------------------------------------------- */
.cp{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px;margin:18px 0 6px;padding:30px;border-radius:18px;background:linear-gradient(140deg,#0F3B3C 0%,#16504F 62%,#1d6361 100%);color:#fff;box-shadow:0 18px 40px -26px rgba(15,59,60,.8)}
.cp-tag{display:inline-block;background:#B8894A;color:#fff;font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;padding:4px 11px;border-radius:999px}
.cp h1{font-family:var(--ak-serif,Georgia,serif);font-size:34px;line-height:1.15;margin:12px 0 4px;color:#fff;font-weight:600}
.cp-by{margin:0 0 14px;color:#D9C29A;font-weight:600;font-size:14px}
.cp p{color:#DCE8E4;font-size:15.5px;line-height:1.6;margin:0 0 14px}
.cp-chips{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 14px}
.cp-chips span{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);color:#fff;font-weight:600;font-size:13.5px;padding:6px 13px;border-radius:999px}
.cp p.cp-small{font-size:13px;color:#B9CFC9;margin:0}
.cp-form{background:#fff;color:#16211F;border-radius:14px;padding:22px 22px 20px;align-self:start}
.cp-form h2{font-family:var(--ak-serif,Georgia,serif);font-size:21px;margin:0 0 12px;color:#0F3B3C}
.cp-form form{display:grid;gap:9px;position:relative}
.cp-form input,.cp-form select,.cp-form textarea{padding:10px 12px;border:1px solid var(--ak-line,#D6D0C2);border-radius:10px;background:#fff;font:inherit;font-size:14px;width:100%;box-sizing:border-box}
.cp-form button{padding:11px 18px;border:0;border-radius:10px;background:#B8894A;color:#fff;font-weight:700;font-size:15px;cursor:pointer}
.cp-form button:hover{background:#A57A3F}
.cp-thanks h2{margin-bottom:8px}.cp-thanks p{color:#4A5552;margin:0}
@media (max-width:860px){.cp{grid-template-columns:1fr;padding:22px 18px}.cp h1{font-size:27px}}
