/* 15 Nov 2026: partner cards (animated), partner detail window, drop-down menus and professional radio buttons. */

@keyframes ppRise { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ppSheen { to { transform: translateX(130%); } }
@keyframes pmIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Home: Partners band ---------- */
html body #proPartners .pp-grid { gap: 20px; }
html body .pp-card {
  position: relative; overflow: hidden; width: 100%; font: inherit; text-align: left; cursor: pointer;
  -webkit-appearance: none; appearance: none; margin: 0;
  border: 1px solid rgba(0, 101, 57, .12); border-bottom: 4px solid #DF9137; border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5faf7 100%); color: var(--brand-deep,#235934) !important;
  padding: 20px 20px 20px; box-shadow: 0 18px 36px -28px rgba(4, 48, 35, .45);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
  animation: ppRise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 110ms);
}
html body .pp-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .8) 50%, transparent 70%);
  transform: translateX(-120%);
}
html body .pp-card:hover, html body .pp-card:focus-visible {
  transform: translateY(-8px); border-color: rgba(0, 101, 57, .35);
  box-shadow: 0 30px 48px -26px rgba(0, 60, 35, .55);
}
html body .pp-card:hover::after { animation: ppSheen .9s ease; }
html body .pp-card:focus-visible { outline: 3px solid #C9DC4B; outline-offset: 3px; }
html body .pp-card .pp-logo {
  display: grid; place-items: center; width: 100%; height: 88px; margin: 0 0 14px; border-radius: 14px;
  background: #fff; border: 1px solid rgba(0, 101, 57, .08); overflow: hidden;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
}
html body .pp-card:hover .pp-logo { transform: scale(1.04); box-shadow: 0 14px 24px -18px rgba(0, 60, 35, .6); }
html body .pp-card .pp-logo img { max-width: 78%; max-height: 66px; object-fit: contain; }
html body .pp-card .pp-logo.pp-mono { background: linear-gradient(135deg, var(--pc, var(--brand-primary,#307C48)), #0b3d2a) !important; border: 0 !important; }
html body .pp-card .pp-logo.pp-mono b {
  color: #fff !important; font: 800 1.2rem/1 "Helvetica Neue", Arial, sans-serif; letter-spacing: .08em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
html body .pp-card b { display: block; font-size: 1.2rem; line-height: 1.15; font-weight: 700; color: var(--brand-primary,#307C48); }
html body .pp-card span:not(.pp-logo) { display: block; font-size: .9rem; line-height: 1.35; color: var(--brand-deep,#235934); }
html body .pp-card small { display: block; margin-top: 6px; font-size: .8rem; line-height: 1.4; color: #5b6b63; }
html body .pp-card .pp-more-i {
  display: inline-flex; gap: 6px; margin-top: 14px; font-style: normal; font-size: .8rem; font-weight: 700;
  color: var(--brand-primary,#307C48); transition: transform .3s, color .3s;
}
html body .pp-card:hover .pp-more-i { transform: translateX(6px); color: #DF9137; }
@media (max-width: 980px) { html body #proPartners .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { html body #proPartners .pp-grid { grid-template-columns: 1fr; } }

/* ---------- Partners page cards ---------- */
html body .idm-pt-card { cursor: pointer; animation: ppRise .6s cubic-bezier(.2, .7, .2, 1) both; transition: transform .35s, box-shadow .35s; }
html body .idm-pt-card:hover, html body .idm-pt-card:focus-visible { transform: translateY(-6px); box-shadow: 0 26px 44px -26px rgba(0, 60, 35, .5); }
html body .idm-pt-card:focus-visible { outline: 3px solid #C9DC4B; outline-offset: 3px; }
html body .idm-pt-logo img { transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
html body .idm-pt-card:hover .idm-pt-logo img { transform: scale(1.07); }

/* Top-bar donate button: show the wording exactly as written */
html body .tb-donate { text-transform: none !important; }

/* ---------- Partner detail window ---------- */
.pm-dialog { border: 0; padding: 0; background: transparent; width: min(680px, 94vw); max-width: 94vw; color: var(--brand-deep,#235934); }
.pm-dialog::backdrop { background: rgba(3, 30, 20, .62); backdrop-filter: blur(3px); }
.pm-dialog[open] { animation: pmIn .35s cubic-bezier(.2, .7, .2, 1) both; }
.pm-box { position: relative; background: #fff; border-radius: 22px; padding: 28px 28px 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.pm-x {
  position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: #eef5f1; color: var(--brand-primary,#307C48); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: transform .25s, background .25s;
}
.pm-x:hover { transform: rotate(90deg); background: #dcebe3; }
.pm-top { display: flex; align-items: center; gap: 18px; padding-right: 40px; }
.pm-logo {
  flex: 0 0 96px; height: 96px; display: grid; place-items: center; overflow: hidden; border-radius: 18px;
  background: #fff; border: 1px solid rgba(0, 101, 57, .1); box-shadow: 0 12px 24px -16px rgba(0, 60, 35, .5);
}
.pm-logo img { max-width: 82%; max-height: 76%; object-fit: contain; }
.pm-logo .pm-mono { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-primary,#307C48), #0b3d2a); color: #fff; font: 800 1.2rem/1 Arial, sans-serif; letter-spacing: .06em; }
.pm-cat { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #fbf1e4; color: #8a4b16; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pm-top h3 { margin: 8px 0 4px; font-size: 1.25rem; line-height: 1.25; color: var(--brand-primary,#307C48); }
.pm-where { margin: 0; font-size: .9rem; color: #5b6b63; }
.pm-body { margin-top: 18px; }
.pm-body p { margin: 0 0 12px; font-size: .98rem; line-height: 1.6; }
.pm-note { padding: 12px 14px; border-left: 4px solid #DF9137; border-radius: 8px; background: #f3f8f5; }
.pm-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.pm-facts div { padding: 10px 12px; border-radius: 12px; background: #f5faf7; }
.pm-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #5b6b63; }
.pm-facts dd { margin: 3px 0 0; font-size: .92rem; line-height: 1.35; }
.pm-act { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.pm-web { color: var(--brand-primary,#307C48); font-weight: 700; text-decoration: none; }
.pm-web:hover { text-decoration: underline; }
.pm-close {
  appearance: none; border: 0; border-radius: 999px; padding: 11px 22px; background: var(--brand-primary,#307C48); color: #fff;
  font-weight: 700; cursor: pointer; transition: transform .2s, background .2s;
}
.pm-close:hover { background: #004d2b; transform: translateY(-2px); }
@media (max-width: 560px) { .pm-facts { grid-template-columns: 1fr; } .pm-top { flex-direction: column; align-items: flex-start; } }

/* ---------- Drop-down menus (used where the choices are limited) ---------- */
html body #appForm select,
html body #trainForm select,
html body .sel-field select,
html body select.scb-type {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  width: 100%; min-height: 48px; padding: 10px 44px 10px 14px !important; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007F48' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px 18px !important;
  border-radius: 12px !important; transition: box-shadow .2s, border-color .2s;
}
html body select:focus { outline: none !important; box-shadow: 0 0 0 4px rgba(201, 220, 75, .45) !important; }
html body .radios:has(> select) { display: block; }
html body .sel-field .hint { display: block; margin-top: 8px; font-size: .85rem; color: #5b6b63; }

/* ---------- Professional radio buttons (circle with a filled dot) ---------- */
html body input[type=radio] {
  -webkit-appearance: none; appearance: none; display: inline-grid; place-content: center;
  width: 20px; height: 20px; min-width: 20px; margin: 0 10px 0 0; padding: 0;
  border: 2px solid #7fb39a; border-radius: 50%; background: #fff; box-shadow: none; outline: none !important;
  transition: border-color .2s, box-shadow .2s;
}
html body input[type=radio]::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-primary,#307C48);
  transform: scale(0); transition: transform .22s cubic-bezier(.3, 1.4, .5, 1);
}
html body input[type=radio]:checked { border-color: var(--brand-primary,#307C48); box-shadow: 0 0 0 4px rgba(0, 127, 72, .14); }
html body input[type=radio]:checked::before { transform: scale(1); }
html body input[type=radio]:focus-visible { box-shadow: 0 0 0 4px rgba(201, 220, 75, .6); }

@media (prefers-reduced-motion: reduce) {
  html body .pp-card, html body .idm-pt-card, .pm-dialog[open] { animation: none !important; }
  html body .pp-card, html body .pp-card .pp-logo, html body .pp-card .pp-more-i, html body .idm-pt-card { transition: none !important; }
}

/* ===== Partners stay on the slider: one row inside the slider at every width (16 Nov 2026) ===== */
html body .hs .hs-nav { position: relative !important; left: auto !important; right: auto !important; bottom: auto !important; margin-top: 14px !important; display: flex !important; justify-content: center !important; }
html body .hs .hs-pt { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: center !important; width: 100%; max-width: 100%; min-width: 0; }
html body .hs .hs-pt-l { flex-wrap: nowrap !important; justify-content: center !important; width: 100%; max-width: 100%; min-width: 0; gap: 8px !important; }
html body .hs .hs-pt-c { flex: 1 1 0 !important; min-width: 0 !important; max-width: 170px; height: auto !important; justify-content: center; padding: 6px 8px !important; }
html body .hs .hs-pt-i { width: 100% !important; height: 36px !important; min-width: 0 !important; }
html body .hs .hs-pt-i img { max-width: 100% !important; max-height: 36px !important; }
html body .hs .hs-pt-i strong { font-size: .9rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { html body .hs .hs-pt-c { padding: 4px 4px !important; } html body .hs .hs-pt-i { height: 30px !important; } }


/* Partner cards sit right against the orange divider beside "Our Partners" (16 Nov 2026) */
html body .hs .hs-pt { justify-content: flex-start !important; gap: 10px !important; }
html body .hs .hs-pt-h { padding-right: 10px !important; }
html body .hs .hs-pt-l { justify-content: flex-start !important; flex: 1 1 auto !important; }

/* Apply Now buttons with a green background: white text in every state (16 Nov 2026) */
html body a.apb-btn:not(.line), html body a.apb-btn:not(.line) *, html body .btn-primary, html body .btn-primary *, html body .hdr-apply, html body .hdr-apply *, html body .hs-b2, html body .hs-b2 *, html body .hs-st-btn, html body .hs-st-btn * { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html body #applyBar a.apb-btn:not(.line) { background: var(--brand-primary,#307C48) !important; }
html body #applyBar a.apb-btn:not(.line):hover, html body #applyBar a.apb-btn:not(.line):focus-visible { background: var(--brand-primary,#307C48) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }


/* Top-bar donate button: "Give to IDM Foundation" in bold, dark text on orange, clearly visible (16 Nov 2026) */
html body div.topbar.idm-tb .r a.tb-donate[href], html body div.topbar.idm-tb .r a.tb-donate[href]:visited, html body div.topbar.idm-tb .r a.tb-donate[href]:active { background: #DF9137 !important; background-image: none !important; color: #0b1f16 !important; font-weight: 700 !important; font-size: .92rem !important; line-height: 1.2 !important; text-transform: none !important; text-shadow: none !important; opacity: 1 !important; border: 0 !important; }
html body div.topbar.idm-tb .r a.tb-donate[href] span, html body div.topbar.idm-tb .r a.tb-donate[href] .tb-ic, html body div.topbar.idm-tb .r a.tb-donate[href] * { color: #0b1f16 !important; -webkit-text-fill-color: #0b1f16 !important; text-shadow: none !important; }
html body div.topbar.idm-tb .r a.tb-donate[href]:hover, html body div.topbar.idm-tb .r a.tb-donate[href]:focus-visible { background: #C9DC4B !important; background-image: none !important; color: #0b1f16 !important; }
