/* =====================================================================
   Government Post Graduate Jahanzeb College — public website
   Colours are set from Website → Settings (--brand, --accent, --dark).
   ===================================================================== */
:root {
  --brand: #0b4f3c; --brand-2: #083d2e; --brand-soft: #e7f0ed; --accent: #c8a24a; --accent-2: #967837; --dark: #082a21;
  --ink: #18221f; --muted: #5d6b67; --line: #e3e8e6; --paper: #ffffff; --paper-2: #f6f7f4;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px; --shadow: 0 1px 2px rgba(16,24,22,.06), 0 12px 32px -14px rgba(16,24,22,.22);
}
body.site { font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 1rem; line-height: 1.65; }
.site h1, .site h2, .site h3, .site .serif { font-family: var(--serif); letter-spacing: -.01em; }
.site a { color: var(--brand); }
.site a:hover { color: var(--brand-2); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #111; padding: 8px 14px; z-index: 2000; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- 3D buttons ---------- */
.btn-3d-site { --b: var(--brand); --b2: var(--brand-2); --fg: #fff;
  display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1.35rem; border-radius: 12px; border: 0; cursor: pointer;
  font-weight: 700; letter-spacing: .01em; text-decoration: none; color: var(--fg) !important; background: linear-gradient(180deg, color-mix(in srgb, var(--b) 88%, #fff), var(--b));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 5px 0 var(--b2), 0 12px 22px -10px color-mix(in srgb, var(--b) 75%, transparent);
  transform: translateY(0); transition: transform .14s ease, box-shadow .14s ease, filter .14s ease; }
.btn-3d-site:hover { transform: translateY(-2px); filter: brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 7px 0 var(--b2), 0 18px 28px -12px color-mix(in srgb, var(--b) 75%, transparent); }
.btn-3d-site:active { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 0 var(--b2), 0 4px 10px -6px rgba(0,0,0,.4); }
.btn-3d-site.btn-accent { --b: var(--accent); --b2: var(--accent-2); --fg: #1c1608; }
.btn-3d-site.btn-ghost { --b: #ffffff; --b2: #c9d2cf; --fg: var(--brand); }
.btn-3d-site.btn-sm-site { padding: .5rem 1rem; font-size: .9rem; border-radius: 10px; }
.btn-3d-site.btn-lg-site { padding: .95rem 1.7rem; font-size: 1.05rem; }

/* ---------- top bar & header ---------- */
.topbar-site { background: var(--dark); color: rgba(255,255,255,.82); padding: 7px 0; font-size: .85rem; }
.topbar-site a { color: rgba(255,255,255,.9); text-decoration: none; }
.topbar-site a:hover { color: var(--accent); }
.social { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff !important; text-decoration: none; transition: background .2s, transform .2s; }
.social:hover { background: var(--accent); color: #111 !important; transform: translateY(-2px); }
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(0,0,0,.35); }
.site-brand { display: flex; align-items: center; gap: 12px; white-space: normal; max-width: 470px; }
.site-brand img { height: 56px; width: auto; }
.brand-seal { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: .78rem; letter-spacing: .04em;
  color: var(--accent); background: radial-gradient(circle at 30% 25%, var(--brand), var(--dark)); box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 5px var(--brand); }
.brand-name { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.12rem; line-height: 1.2; color: var(--dark); }
.brand-tag { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .03em; }
.site .navbar { padding-top: 10px; padding-bottom: 10px; }
.site .nav-link { font-weight: 600; color: var(--ink); padding: .55rem .8rem !important; border-radius: 8px; position: relative; }
.site .nav-link:hover, .site .nav-link.active { color: var(--brand); background: var(--brand-soft); }
.site .dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.site .dropdown-item { border-radius: 8px; padding: .5rem .9rem; font-weight: 500; }
.site .dropdown-item:hover { background: var(--brand-soft); color: var(--brand); }
.navbar-toggler { border: 1px solid var(--line); font-size: 1.6rem; padding: 4px 10px; }
@media (min-width: 1400px) { .site .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; } }

/* ---------- hero slider ---------- */
.hero-slider { position: relative; background: var(--dark); }
.hero-slider .carousel-item { height: var(--h, 560px); background-color: var(--slide-bg, var(--brand)); }
.hero-slider .slide-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-slider .slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,var(--ov)) 0%, rgba(0,0,0,calc(var(--ov) * .55)) 60%, rgba(0,0,0,calc(var(--ov) * .3)) 100%); }
.hero-slider .slide-pattern { position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 1.4px); background-size: 22px 22px; }
.hero-slider .slide-body { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; max-width: 760px; padding: 0 12px; }
.hero-slider .align-center .slide-body { margin: 0 auto; text-align: center; align-items: center; }
.hero-slider .align-right .slide-body { margin-left: auto; text-align: right; align-items: flex-end; }
.hero-slider .slide-kicker { display: inline-block; align-self: flex-start; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.hero-slider .align-center .slide-kicker { align-self: center; } .hero-slider .align-right .slide-kicker { align-self: flex-end; }
.hero-slider h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); font-weight: 700; line-height: 1.12; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-slider p { font-size: clamp(1rem, 1.6vw, 1.22rem); opacity: .93; max-width: 640px; margin-top: 12px; }
.hero-slider .slide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-slider .carousel-indicators [data-bs-target] { width: 34px; height: 5px; border-radius: 3px; }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 7%; }
.hero-slider.effect-zoom .carousel-item.active .slide-img { animation: kenburns var(--dur, 7s) ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero-slider .carousel-item.active .slide-body > * { animation: rise .8s ease both; }
.hero-slider .carousel-item.active .slide-body > *:nth-child(2) { animation-delay: .12s; }
.hero-slider .carousel-item.active .slide-body > *:nth-child(3) { animation-delay: .24s; }
.hero-slider .carousel-item.active .slide-body > *:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) { .hero-slider .carousel-item { height: var(--hm, 420px); } .hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { display: none; } }
.preview-banner { position: sticky; top: 0; z-index: 1100; background: #fff3cd; color: #5c4400; text-align: center; padding: 8px; font-weight: 600; border-bottom: 2px solid #e0b100; }

/* ---------- notice ticker ---------- */
.ticker { background: var(--accent); color: #1c1608; }
.ticker .container { display: flex; align-items: center; gap: 14px; overflow: hidden; }
.ticker-label { flex: none; background: var(--dark); color: #fff; font-weight: 700; padding: 10px 16px; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.ticker-track { white-space: nowrap; overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-block; padding-left: 100%; animation: tick var(--tick, 40s) linear infinite; }
.ticker-move a { color: #1c1608; font-weight: 600; text-decoration: none; margin-right: 46px; }
.ticker-move a:hover { text-decoration: underline; }
.ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-tint { background: var(--paper-2); }
.section-dark { background: linear-gradient(135deg, var(--dark), var(--brand)); color: #fff; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); }
.section-dark .eyebrow { color: var(--accent); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 700; margin: 6px 0 12px; color: var(--dark); }
.section-dark .section-title { color: #fff; }
.section-lead { color: var(--muted); max-width: 720px; font-size: 1.06rem; }
.title-rule { width: 64px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--brand)); margin-bottom: 18px; }
.page-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--brand) 100%); color: #fff; padding: 56px 0 46px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.18) 1px, transparent 1.4px); background-size: 22px 22px; opacity: .35; pointer-events: none; }
.page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; position: relative; z-index: 1; }
.page-hero p { opacity: .9; max-width: 760px; position: relative; z-index: 1; margin: 8px 0 0; }
.crumbs { position: relative; z-index: 1; font-size: .85rem; margin-bottom: 8px; }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; } .crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: .6; margin: 0 6px; }

/* ---------- cards ---------- */
.card-site { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; height: 100%; transition: transform .22s ease, box-shadow .22s ease; }
a.card-site, .card-site.hover { text-decoration: none; color: inherit; display: block; }
a.card-site:hover, .card-site.hover:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 24px 40px -18px rgba(16,24,22,.35); }
.card-site .card-img { aspect-ratio: 16/10; background: var(--brand-soft) center/cover no-repeat; position: relative; }
.card-site .card-img.ph { display: grid; place-items: center; color: var(--brand); font-size: 2.4rem; background: linear-gradient(135deg, var(--brand-soft), #fff); }
.card-site .card-pad { padding: 20px 22px; }
.card-site h3 { font-size: 1.18rem; font-weight: 700; margin: 0 0 6px; color: var(--dark); }
.card-site p { color: var(--muted); margin: 0; font-size: .95rem; }
.icon-tile { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 80%, #fff), var(--brand)); box-shadow: 0 4px 0 var(--brand-2), 0 12px 18px -10px var(--brand); margin-bottom: 14px; }
.dept-card { padding: 22px; display: flex; flex-direction: column; }
.dept-card .meta { margin-top: auto; padding-top: 12px; font-size: .85rem; color: var(--muted); display: flex; gap: 14px; }
.chip { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); letter-spacing: .02em; }
.chip-accent { background: color-mix(in srgb, var(--accent) 22%, #fff); color: var(--accent-2); }
.chip-danger { background: #fde8e6; color: #9c2117; }

/* ---------- stats band ---------- */
.stats-band { background: linear-gradient(135deg, var(--brand), var(--dark)); color: #fff; border-radius: 22px; padding: 30px; box-shadow: 0 30px 50px -30px var(--dark); margin-top: -64px; position: relative; z-index: 5; }
.stat-num { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; color: var(--accent); line-height: 1; }
.stat-lbl { font-size: .86rem; opacity: .86; margin-top: 6px; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- notices ---------- */
.notice-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.notice-row:last-child { border-bottom: 0; }
.date-badge { flex: none; width: 62px; text-align: center; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 3px 0 var(--line); }
.date-badge .m { background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: 3px 0; letter-spacing: .08em; }
.date-badge .d { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--dark); line-height: 1.4; }
.notice-title { font-weight: 700; color: var(--dark); text-decoration: none; }
.notice-title:hover { color: var(--brand); text-decoration: underline; }

/* ---------- prose ---------- */
.prose { font-size: 1.06rem; color: #24302c; }
.prose h2, .prose h3 { color: var(--dark); margin-top: 1.6em; }
.prose h2 { font-size: 1.6rem; } .prose h3 { font-size: 1.3rem; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; margin: 10px 0; }
.prose blockquote { border-left: 4px solid var(--accent); padding: 6px 18px; background: var(--paper-2); border-radius: 0 10px 10px 0; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; }
.prose th { background: var(--brand-soft); }
.side-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.side-box h2 { font-size: 1.1rem; font-family: var(--sans); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.side-box li a:hover, .side-box li a.active { color: var(--brand); padding-left: 6px; transition: padding .2s; }

/* ---------- people ---------- */
.person { text-align: center; padding: 26px 18px; }
.avatar-lg { width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 14px; background: var(--brand-soft) center/cover; display: grid; place-items: center; font-size: 2.6rem; color: var(--brand);
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px color-mix(in srgb, var(--accent) 60%, #fff), 0 18px 28px -16px rgba(0,0,0,.4); }
.person .role { color: var(--accent-2); font-weight: 700; font-size: .9rem; }
.principal-box { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: center; }
.principal-box .avatar-lg { width: 200px; height: 240px; border-radius: 18px; }
@media (max-width: 767px) { .principal-box { grid-template-columns: 1fr; text-align: center; } .principal-box .avatar-lg { margin: 0 auto; } }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-grid a { display: block; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; position: relative; background: var(--brand-soft); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid a:hover img { transform: scale(1.07); }
.gallery-grid .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .3s; }
.gallery-grid a:hover .cap, .gallery-grid a:focus .cap { opacity: 1; }
.lightbox { position: fixed; inset: 0; background: rgba(5,10,9,.92); z-index: 2000; display: none; align-items: center; justify-content: center; flex-direction: column; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.lightbox .lb-cap { color: #fff; margin-top: 12px; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; }
.lightbox .lb-close { top: 18px; right: 18px; } .lightbox .lb-prev { left: 18px; top: 50%; } .lightbox .lb-next { right: 18px; top: 50%; }

/* ---------- forms ---------- */
.site .form-control, .site .form-select { border-radius: 10px; padding: .7rem .9rem; border-color: #cfd8d5; }
.site .form-control:focus, .site .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 18%, transparent); }
.site .form-label { font-weight: 600; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.map-frame { width: 100%; min-height: 340px; border: 0; border-radius: var(--r); box-shadow: var(--shadow); }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.78); padding: 64px 0 22px; margin-top: 0; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-name { font-family: var(--serif); font-size: 1.3rem; color: #fff; font-weight: 700; }
.footer-h { font-family: var(--sans) !important; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; }
.footer-contact i { color: var(--accent); margin-right: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 18px; font-size: .86rem; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: #111; font-size: 1.2rem;
  box-shadow: 0 4px 0 var(--accent-2), 0 10px 20px -8px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; transform: translateY(10px); z-index: 1040; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- misc ---------- */
.empty-site { text-align: center; color: var(--muted); padding: 40px 10px; }
.empty-site i { font-size: 2.4rem; display: block; margin-bottom: 8px; color: color-mix(in srgb, var(--brand) 45%, #fff); }
.pager-site .page-link { color: var(--brand); border-radius: 8px !important; margin: 0 3px; }
.pager-site .active > .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-move { padding-left: 0; white-space: normal; }
}
@media (max-width: 1399px) {
  .site .navbar-collapse { max-height: 75vh; overflow-y: auto; padding-bottom: 12px; }
  .site .dropdown-menu { box-shadow: none; border: 0; padding-left: 14px; }
}
@media (max-width: 575px) {
  .section { padding: 54px 0; }
  .brand-name { font-size: .98rem; } .brand-tag { display: none; } .site-brand img, .brand-seal { height: 44px; width: 44px; }
  .stats-band { margin-top: -40px; padding: 22px 16px; }
  .topbar-site .d-flex.small span:first-child { display: none; }
}
@media print {
  .topbar-site, .site-header, .site-footer, .to-top, .ticker, .hero-slider { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0 0 12px; } .page-hero::after { display: none; }
}

/* ---------- small screens: keep wide gutters inside the viewport ---------- */
@media (max-width: 767px) { .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; } }
.ticker, .ticker-track { overflow: hidden; }
@media (max-width: 1399px) {
  .site-header .navbar { flex-wrap: wrap; }
  .site-brand { flex: 1 1 0; min-width: 0; max-width: none; margin-right: 8px; }
  .site-brand > span { min-width: 0; }
  .navbar-toggler { flex: 0 0 auto; }
}
@media (max-width: 420px) { .brand-name { font-size: .86rem; } }
.site-header .navbar.container { padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5); padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5); }

/* v22: affiliation logos in the footer (official files uploaded in Institutional Logos) */
.footer-partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); }
.footer-partners .fp-logo { background: #fff; border-radius: 12px; padding: 6px 10px; display: inline-flex; }
.footer-partners img { display: block; width: auto; object-fit: contain; }
.brand-seal-img { height: 56px; width: auto; }

/* ---------- v23: downloads, jobs, admissions ---------- */
.dl-section { display: flex; gap: 16px; align-items: flex-start; padding: 22px; height: 100%; text-decoration: none; color: inherit; border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.dl-section .icon-tile { flex: 0 0 auto; margin: 0; }
.dl-section p { color: var(--muted, #5b6b66); }
.dl-section:hover { transform: translateY(-3px); }
.dl-section.is-active { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.dl-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line, #e5ebe8); }
.dl-row:last-child { border-bottom: 0; }
.dl-row:hover { background: color-mix(in srgb, var(--brand) 4%, #fff); }
.dl-icon { width: 52px; height: 60px; border-radius: 10px; display: grid; place-items: center; align-content: center; background: #fdecec; color: #c0262d; font-size: 1.5rem; line-height: 1; box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); }
.dl-icon span { font-size: .62rem; font-weight: 800; letter-spacing: .06em; margin-top: 2px; }
.dl-icon.ext-doc, .dl-icon.ext-docx { background: #e8f0fe; color: #1a56c4; }
.dl-icon.ext-xls, .dl-icon.ext-xlsx { background: #e6f5ec; color: #157a3c; }
.dl-icon-lg { width: 64px; height: 74px; font-size: 1.9rem; }
.dl-title { font-weight: 700; color: var(--ink, #10231d); text-decoration: none; }
.dl-title:hover { color: var(--brand); text-decoration: underline; }
.dl-desc { font-size: .88rem; color: var(--muted, #5b6b66); margin-top: 2px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .78rem; color: var(--muted, #5b6b66); margin-top: 6px; }
.dl-actions { display: flex; gap: 8px; }
.chip-lock { background: #fff4e0; color: #8a5a00; }
.chip-radio { display: inline-flex; gap: 4px; align-items: center; padding: 3px 10px; border-radius: 99px; background: var(--brand-soft); cursor: pointer; }
.dl-cat { display: flex; gap: 14px; align-items: center; padding: 16px 18px; text-decoration: none; color: inherit; }
.dl-cat > i { font-size: 1.6rem; color: var(--brand); }
.dl-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.dl-badge i { font-size: .7rem; }
.dl-open { background: #e3f6ea; color: #136c37; }
.dl-soon { background: #fff1d6; color: #8a5300; }
.dl-upcoming { background: #e5efff; color: #1d4fa8; }
.dl-closed { background: #eceff1; color: #4b5563; }
.job-card h2 a, .adm-card h2 a { color: var(--ink, #10231d); text-decoration: none; }
.job-card h2 a:hover, .adm-card h2 a:hover { color: var(--brand); }
.job-org { font-size: .88rem; margin-top: 4px; }
.job-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: var(--muted, #5b6b66); margin: 12px 0; }
.adm-card.is-featured { border-left: 5px solid var(--accent); }
.dl-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .9rem; }
.dl-facts dt { color: var(--muted, #5b6b66); font-weight: 600; }
.dl-facts dd { margin: 0; }
.pdf-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line, #e5ebe8); background: #f4f6f5; box-shadow: 0 16px 34px -24px rgba(0,0,0,.45); }
.pdf-frame iframe { display: block; width: 100%; border: 0; background: #fff; }
.pdf-fallback { padding: 8px 14px; border-top: 1px solid var(--line, #e5ebe8); background: #fff; }
.advert-img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 16px 34px -24px rgba(0,0,0,.45); }
.site-pills .nav-link { border-radius: 99px; font-weight: 600; color: var(--ink, #10231d); padding: 8px 18px; }
.site-pills .nav-link.active { background: var(--brand); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--brand) 70%, #000); }
.tb-list { padding-left: 1.2rem; }
.tb-list li { margin-bottom: 4px; }
@media (max-width: 575px) {
  .dl-row { grid-template-columns: auto 1fr; padding: 14px 16px; }
  .dl-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .pdf-frame iframe { height: 480px !important; }
}
@media (prefers-reduced-motion: reduce) { .dl-section, .dl-section:hover { transition: none; transform: none; } }

.adm-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 20px; border-radius: 16px; margin-bottom: 10px; text-decoration: none; color: #fff;
  background: linear-gradient(110deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 0 color-mix(in srgb, var(--brand) 60%, #000), 0 18px 30px -18px rgba(0,0,0,.5); transition: transform .15s ease, box-shadow .15s ease; }
.adm-strip:hover { color: #fff; transform: translateY(-2px); }
.adm-strip:active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--brand) 60%, #000); }
.adm-strip-tag { background: var(--accent); color: #1c1608; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 5px 12px; border-radius: 99px; }
.adm-strip-title { font-weight: 700; font-size: 1.05rem; }
.adm-strip-date { opacity: .85; font-size: .9rem; }
.adm-strip-go { margin-left: auto; font-weight: 700; }
.qa-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.qa-card .icon-tile { margin: 0; flex: 0 0 auto; }
.qa-card small { display: block; color: var(--muted, #5b6b66); font-size: .82rem; }
.qa-card:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .adm-strip, .qa-card { transition: none; } .adm-strip:hover, .qa-card:hover { transform: none; } }
.site .navbar-nav .nav-link { white-space: nowrap; }
.job-card, .adm-card, .card-site.h-auto { height: auto; }
@media (max-width: 767px) { .dl-section { padding: 14px 16px; align-items: center; } .dl-section p.small { display: none; } .dl-section .icon-tile { width: 44px; height: 44px; font-size: 1.1rem; } }
a.card-site.dl-section, a.card-site.dl-cat, a.card-site.qa-card { display: flex; }
.site a.adm-strip, .site a.adm-strip:hover, .site a.adm-strip:focus { color: #fff; text-decoration: none; } .site a.adm-strip .adm-strip-title, .site a.adm-strip .adm-strip-date, .site a.adm-strip .adm-strip-go { color: #fff; }

/* developer credit (v24) */
.dev-credit { text-align: center; font-size: .8rem; line-height: 1.5; padding: 12px 0 4px; }
.dev-credit .dc-who { white-space: normal; }
.dev-credit .dc-q { opacity: .8; }
.dc-site { border-top: 1px solid rgba(255,255,255,.08); margin-top: 14px; color: rgba(255,255,255,.72); }
.dc-site b { color: #fff; font-weight: 600; }

/* ---------- v26 training videos ---------- */
.section-videos { background: radial-gradient(900px 400px at 10% 0%, rgba(184,145,62,.10), transparent 60%), linear-gradient(180deg, #f6f8f6, #eef3f0); }
.vid-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: stretch; perspective: 1400px; }
.vid-layout.vid-single { grid-template-columns: minmax(0, 860px); justify-content: center; }
.vid-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-content: start; }
.vid-all { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; perspective: 1400px; }
.vid-note { font-size: .88rem; color: var(--muted, #5b6b65); margin: 10px 4px 0; }
.vid-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; border-radius: 18px; background: #fff; padding: 10px 10px 14px;
  border: 1px solid rgba(11,79,60,.10); transform-style: preserve-3d; will-change: transform;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 6px 0 #d9e3de, 0 18px 30px -14px rgba(8,36,27,.35);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; height: 100%; }
.vid-card:hover, .vid-card:focus-visible { color: inherit; text-decoration: none; transform: translateY(-6px) rotateX(4deg) rotateY(-3deg);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 10px 0 #cbd8d1, 0 34px 46px -18px rgba(8,36,27,.45); }
.vid-card:focus-visible { outline: 3px solid var(--accent, #b8913e); outline-offset: 4px; }
.vid-frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #0b4f3c, #06261c);
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(11,79,60,.18), inset 0 0 0 1px rgba(255,255,255,.08); transform: translateZ(30px); }
.vid-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; }
.vid-frame.noimg img { display: none; }
.vid-card:hover .vid-frame img { transform: scale(1.07); filter: saturate(1.1); }
.vid-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(6,38,28,.55)); }
.vid-shine { position: absolute; inset: 0; z-index: 2; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 45%, transparent 60%); transform: translateX(-120%); transition: transform .8s; }
.vid-card:hover .vid-shine { transform: translateX(120%); }
.vid-play { position: absolute; z-index: 3; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; display: grid; place-items: center;
  font-size: 2rem; color: #fff; background: radial-gradient(circle at 35% 30%, #e05050, #b91c1c 70%);
  box-shadow: 0 5px 0 #7f1414, 0 12px 22px rgba(0,0,0,.4), inset 0 2px 0 rgba(255,255,255,.35); transition: transform .3s, box-shadow .3s; }
.vid-play i { margin-left: 4px; }
.vid-card:hover .vid-play { transform: scale(1.12) translateY(-2px); box-shadow: 0 7px 0 #7f1414, 0 18px 28px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,255,255,.35); }
.vid-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 6px 0; transform: translateZ(18px); }
.vid-prog { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary, #0b4f3c);
  background: rgba(11,79,60,.08); border: 1px solid rgba(11,79,60,.14); padding: 2px 10px; border-radius: 999px; }
.vid-title { font-weight: 700; line-height: 1.3; font-size: .98rem; color: #102a21; }
.vid-desc { font-size: .9rem; color: #4d5f58; }
.vid-big { padding: 12px 12px 18px; }
.vid-big .vid-play { width: 84px; height: 84px; margin: -42px 0 0 -42px; font-size: 2.7rem; }
.vid-big .vid-title { font-family: var(--serif); font-size: 1.35rem; }
.vid-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.vid-filter a { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(11,79,60,.2); background: #fff; color: var(--primary, #0b4f3c); font-weight: 600; font-size: .86rem;
  box-shadow: 0 3px 0 #d9e3de; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.vid-filter a:hover { transform: translateY(-1px); }
.vid-filter a.active { background: var(--primary, #0b4f3c); color: #fff; box-shadow: 0 3px 0 #06261c; }
/* player */
.vid-modal { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; padding: 20px; background: rgba(4,20,15,.82); backdrop-filter: blur(6px); }
.vid-modal.open { display: grid; animation: vidIn .3s ease; }
@keyframes vidIn { from { opacity: 0 } to { opacity: 1 } }
.vid-modal .vm-box { width: min(1000px, 100%); }
.vid-modal .vm-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 40px 80px rgba(0,0,0,.6); animation: vidPop .4s cubic-bezier(.2,.8,.2,1); }
@keyframes vidPop { from { transform: scale(.92) rotateX(8deg) } to { transform: none } }
.vid-modal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-modal .vm-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #fff; margin-bottom: 10px; }
.vid-modal .vm-title { font-weight: 700; font-size: 1.05rem; }
.vid-modal .vm-actions { display: flex; gap: 8px; }
.vid-modal .vm-actions a, .vid-modal .vm-actions button { border: 0; border-radius: 10px; padding: 7px 12px; background: rgba(255,255,255,.12); color: #fff; font-size: .85rem; text-decoration: none; }
.vid-modal .vm-actions button:hover, .vid-modal .vm-actions a:hover { background: rgba(255,255,255,.22); }
@media (max-width: 991.98px) { .vid-layout { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) {
  .vid-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .vid-grid .vid-card { padding: 7px 7px 10px; border-radius: 14px; }
  .vid-grid .vid-title { font-size: .84rem; }
  .vid-grid .vid-prog { font-size: .6rem; padding: 1px 7px; }
  .vid-grid .vid-play { width: 44px; height: 44px; margin: -22px 0 0 -22px; font-size: 1.4rem; }
  .vid-big .vid-title { font-size: 1.12rem; }
  .vid-card:hover { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) { .vid-card, .vid-frame img, .vid-shine, .vid-play { transition: none; } .vid-card:hover { transform: none; } }

/* =====================================================================
   v27 Themes & layout (Website → Theme & layout / setup wizard step 9)
   body classes: theme-* btn-* cards-* header-* footer-*  · fonts: --serif / --sans
   ===================================================================== */
body.btn-pill .btn-3d-site { border-radius: 999px; }
body.btn-square .btn-3d-site { border-radius: 3px; }
body.btn-flat .btn-3d-site { border-radius: 8px; background: var(--b); box-shadow: none; }
body.btn-flat .btn-3d-site:hover { transform: none; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--b) 70%, transparent); filter: brightness(1.08); }
body.btn-flat .btn-3d-site:active { transform: none; box-shadow: none; filter: brightness(.95); }
body.btn-flat .btn-3d-site.btn-ghost { box-shadow: inset 0 0 0 1px var(--line); }
body.cards-flat .card-site { box-shadow: none; }
body.cards-flat a.card-site:hover { box-shadow: 0 10px 24px -18px rgba(0,0,0,.4); }
body.cards-border .card-site { box-shadow: none; border: 2px solid var(--line); border-radius: 6px; }
body.cards-border a.card-site:hover { border-color: var(--brand); box-shadow: none; }
body.cards-3d .card-site { box-shadow: 0 6px 0 color-mix(in srgb, var(--brand) 22%, #fff), 0 20px 32px -18px rgba(0,0,0,.4); }
body.cards-3d a.card-site:hover { transform: perspective(900px) translateY(-6px) rotateX(3deg); box-shadow: 0 10px 0 color-mix(in srgb, var(--brand) 30%, #fff), 0 30px 40px -20px rgba(0,0,0,.45); }
body.header-dark .site-header { background: var(--brand); border-bottom-color: transparent; }
body.header-dark .site-header .nav-link, body.header-dark .site-header .brand-name { color: #fff; }
body.header-dark .site-header .brand-tag { color: rgba(255,255,255,.75); }
body.header-dark .site-header .nav-link:hover, body.header-dark .site-header .nav-link.active { color: var(--dark); background: rgba(255,255,255,.88); }
body.header-dark .navbar-toggler { color: #fff; border-color: rgba(255,255,255,.4); }
body.header-dark .site-brand img { background: #fff; border-radius: 10px; padding: 3px; }
@media (min-width: 1400px) {
  body.header-centered .site-header .navbar { flex-wrap: wrap; justify-content: center; }
  body.header-centered .site-brand { flex: 0 0 100%; max-width: none; justify-content: center; margin: 0 0 6px; text-align: center; }
  body.header-centered #siteNav { justify-content: center; }
  body.header-centered .site-header .navbar-nav { margin: 0 auto !important; }
}
body.theme-minimal .topbar-site { background: #fff; color: var(--muted); border-bottom: 1px solid var(--line); }
body.theme-minimal .topbar-site a { color: var(--ink); }
body.theme-minimal .social { background: var(--paper-2); color: var(--ink) !important; }
body.theme-technical .eyebrow, body.theme-technical .footer-h { letter-spacing: .2em; }
body.theme-technical .icon-tile { border-radius: 4px; }
body.theme-vocational .icon-tile { border-radius: 50%; }
body.footer-compact .site-footer { padding-top: 26px; }
body.footer-compact .footer-bottom { margin-top: 0; border-top: 0; }
.footer-logo { height: 64px; width: auto; margin-bottom: 12px; background: #fff; border-radius: 10px; padding: 4px; }
.principal-intro { font-size: 1.05rem; }
.principal-sign img { display: block; margin-bottom: 4px; }
.is-app .pwa-install{display:none!important}
