.recruitment-page:has(.recruitment-intro-header) { padding-top: 28px; }
.recruitment-section .section-card-header.recruitment-intro-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding: 24px 28px; background: linear-gradient(110deg, #f8faff, #fff); }
.recruitment-intro-title { display: flex; align-items: center; gap: 16px; flex: 1 1 320px; min-width: 0; }
.recruitment-intro-title .section-icon { flex-shrink: 0; }
/* Put the notification first whenever the header uses stacked rows. */
@media (max-width: 991px) {
  .recruitment-section .section-card-header.recruitment-intro-header { flex-direction: column; align-items: flex-start; }
  .recruitment-intro-header .recruitment-notification-box { order: -1; }
  .recruitment-intro-header .recruitment-intro-title { flex: 0 1 auto; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .recruitment-section .section-card-header.recruitment-intro-header { flex-wrap: nowrap; gap: 16px; padding: 20px; }
  .recruitment-intro-header .recruitment-intro-title { flex: 1 1 0; gap: 12px; }
  .recruitment-intro-header .recruitment-notification-box { flex: 0 0 auto; gap: 10px; padding: 13px; }
}
.recruitment-notification-box { font-family: inherit; text-align: left; cursor: pointer; position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 13px; max-width: 100%; padding: 14px 16px; border: 1px solid #f3c3c7; border-radius: 50px; background: linear-gradient(120deg, #fff0f1, #fff8f8); color: #fff; font-size: .875rem; line-height: 1.45; text-decoration: none; box-shadow: 0 6px 20px rgba(190,18,60,.10); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; animation: notice-enter .55s ease-out backwards; }
.recruitment-notification-box::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 0 0, rgba(251,113,133,.15), transparent 65%); pointer-events: none; }
.recruitment-notification-box::after { content: ''; position: absolute; inset: -50% 0; width: 35%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); transform: translateX(-150%) skewX(-20deg); animation: notice-sheen 2.4s ease-in-out .5s 2; pointer-events: none; }
.recruitment-notification-box .notice-bell { position: relative; display: grid; place-items: center; flex: 0 0 40px; height: 40px; border: 1px solid #ff9a9a; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #ffb0a6 0%, #ff4b4b 28%, #e11d35 60%, #9f0925 100%); color: #fff; font-size: 16px; box-shadow: inset -3px -5px 9px rgba(108,0,20,.35), inset 2px 3px 6px rgba(255,255,255,.4), 0 0 15px rgba(239,35,60,.55); }
.recruitment-notification-box .notice-bell::before { content: ''; position: absolute; inset: -6px; border: 1px solid rgba(244,63,94,.4); border-radius: 50%; box-shadow: 0 0 14px rgba(244,63,94,.35); animation: notice-orb-pulse 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes notice-orb-pulse { 0%, 100% { transform: scale(.92); opacity: .45; } 50% { transform: scale(1.12); opacity: .85; } }
.notice-bell > i { transform-origin: 50% 15%; animation: notice-ring 2.4s ease-in-out .5s 2; }
.notice-bell .notice-dot { display: none; }
.recruitment-notification-box .notice-copy { min-width: 0; }
.recruitment-notification-box strong { display: block; color: #881337; font-size: .88rem; font-weight: 700; letter-spacing: .15px; }
.recruitment-notification-box .notice-description { display: block; margin-top: 4px; color: #9f2944; }
.recruitment-notification-box .notice-arrow { display: grid; place-items: center; flex: 0 0 auto; margin-left: 2px; color: #be123c; font-size: 14px; line-height: 1; transition: transform .25s ease; }
.recruitment-notification-box:hover, .recruitment-notification-box:focus-visible { color: #fff; transform: translateY(-2px); border-color: #f87187; box-shadow: 0 10px 25px rgba(190,18,60,.18); }
.recruitment-notification-box:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }
.recruitment-notification-box:hover .notice-arrow, .recruitment-notification-box:focus-visible .notice-arrow { transform: scale(1.08); }
@keyframes notice-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes notice-sheen { 0%, 20% { transform: translateX(-150%) skewX(-20deg); } 75%, 100% { transform: translateX(420%) skewX(-20deg); } }
@keyframes notice-ring { 0%, 35%, 100% { transform: rotate(0); } 8%, 22% { transform: rotate(12deg); } 15%, 28% { transform: rotate(-10deg); } }
.recruitment-job-details { display: block; margin-top: 6px; font-size: .875rem; color: #475569; }
.recruitment-notifications > h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: #08163c; margin: 20px 0 12px; }
.recruitment-notifications > p { line-height: 1.7; margin-bottom: 24px; }
.recruitment-notifications .section-card-header h3 { font-size: 1.2rem; font-weight: 700; color: #08163c; margin: 0; }
.recruitment-notifications > .portal-link-btn { margin-bottom: 20px; }
.recruitment-notifications .recruitment-table { table-layout: auto; }
.recruitment-notifications .dl-btn { white-space: normal; }
.recruitment-back-button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px; margin-bottom: 24px; border: 1px solid #cbd8eb; border-radius: 10px; background: #fff; color: #193c70; font-size: .9rem; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s; }
.recruitment-back-button:hover { background: #eaf1ff; border-color: #6693d5; color: #102d58; }
.recruitment-back-button:focus-visible, .recruitment-notifications .apply-btn:focus-visible, .recruitment-notifications .dl-btn:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }
.notices-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.notices-heading-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 14px; color: #1e40af; background: #e2ebff; font-size: 22px; }
.notices-heading h2 { margin: 0; font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700; line-height: 1.3; color: #0b2248; }
.recruitment-notifications > p { color: #52657d; max-width: 80ch; }
.recruitment-notifications .recruitment-section { border: 1px solid #dbe5f1; box-shadow: 0 8px 28px rgba(20,47,87,.06); }
.recruitment-notifications .section-card-header.notices-group-header { padding: 20px 24px; gap: 12px; background: linear-gradient(110deg, #102d58, #244c82); }
.recruitment-notifications .notices-group-header h3 { color: #fff; }
.notices-group-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #d7e7ff; background: rgba(255,255,255,.12); flex-shrink: 0; }
.recruitment-notifications .recruitment-table th { background: #eef3fa; color: #536783; font-size: .75rem; padding: 16px 20px; letter-spacing: .6px; }
.recruitment-notifications .recruitment-table td { padding: 24px 20px; color: #32455f; }
.recruitment-notifications .recruitment-table td strong { color: #122c50; font-size: 1.05rem; }
.recruitment-notifications .employment-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; margin-top: 10px; border-radius: 20px; background: #edf4fb; color: #355779; font-size: .8rem; }
.recruitment-notifications .apply-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 12px 20px; background: #0b8067; }
.recruitment-notifications .dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border: 1px solid #b8cdee; background: #edf4ff; color: #1d4b90; box-shadow: none; }
.recruitment-notifications .dl-btn:hover { background: #dceaff; color: #13366a; }
@media (max-width: 767px) {
  .recruitment-notifications .recruitment-table td { padding: 12px 4px; }
  .recruitment-notifications .recruitment-table td:first-child { display: block; padding-bottom: 18px; border-bottom: 1px solid #e5edf5; }
  .recruitment-notifications .recruitment-table td:first-child::before { display: none; }
  .recruitment-notifications .section-card-header.notices-group-header { padding: 18px 16px; }
}
@media (max-width: 767px) { .recruitment-notification-box { width: 100%; padding: 13px; } .recruitment-notifications .recruitment-table td { min-width: 0; flex-wrap: wrap; gap: 8px; overflow-wrap: anywhere; } }
@media (prefers-reduced-motion: reduce) {
  .recruitment-notification-box .notice-bell::before, .recruitment-notification-box, .recruitment-notification-box::after, .recruitment-notification-box .notice-bell > i, .recruitment-notification-box .notice-arrow { animation: none; transition: none; }
  .recruitment-notification-box:hover, .recruitment-notification-box:focus-visible, .recruitment-notification-box:hover .notice-arrow, .recruitment-notification-box:focus-visible .notice-arrow { transform: none; }
}
@media (max-width: 767px) {
  .recruitment-section .section-card-header.recruitment-intro-header { padding: 20px 16px; gap: 18px; }
  .recruitment-intro-title { flex-basis: 100%; }
  .recruitment-notification-box { gap: 10px; }
  .recruitment-notification-box .notice-copy { flex: 1; }
}

/* ── Full-screen notification viewer ── */
body.notification-viewer-open { overflow: hidden; }
.notification-viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0f172a; color: #fff; }
.notification-viewer:focus { outline: none; }
.notification-viewer[open] { display: flex; flex-direction: column; animation: nv-in .2s ease-out; }
.notification-viewer::backdrop { background: rgba(3,8,23,.75); }
@keyframes nv-in { from { opacity: 0; } to { opacity: 1; } }

.notification-viewer-bar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 12px 20px; background: linear-gradient(100deg, #08163c 0%, #102a6b 55%, #1e40af 100%); border-bottom: 1px solid rgba(147,197,253,.25); box-shadow: 0 4px 18px rgba(3,8,23,.35); flex-shrink: 0; }
.notification-viewer-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.notification-viewer-badge { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #f43f5e, #be123c); color: #fff; font-size: 19px; box-shadow: 0 4px 12px rgba(190,18,60,.45), inset 0 1px 0 rgba(255,255,255,.25); }
.notification-viewer-titles { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.notification-viewer-titles h2 { margin: 0; font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: .1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notification-viewer-subtitle { margin-top: 2px; font-size: .8rem; color: #bfdbfe; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.notification-viewer-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.notification-viewer-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: 999px; font-family: inherit; font-size: .92rem; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.notification-viewer-btn:hover { text-decoration: none; transform: translateY(-1px); }
.notification-viewer-btn:focus-visible, .notification-viewer-close:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.notification-viewer-btn-ghost { border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.08); color: #fff; }
.notification-viewer-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.16); color: #fff; }
.notification-viewer-btn-apply { border: 0; background: linear-gradient(135deg, #059669 0%, #10b981 100%); color: #fff; padding-inline: 22px; box-shadow: 0 6px 18px rgba(16,185,129,.4); }
.notification-viewer-btn-apply:hover { color: #fff; box-shadow: 0 8px 24px rgba(16,185,129,.55); }
.notification-viewer-btn-light { border: 0; background: #fff; color: #08163c; }
.notification-viewer-btn-light:hover { background: #e0ecff; color: #08163c; }
.notification-viewer-divider { width: 1px; height: 28px; margin: 0 2px; background: rgba(255,255,255,.25); }
.notification-viewer-close { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 1.15rem; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.notification-viewer-close:hover { background: rgba(244,63,94,.85); transform: rotate(90deg); }

.notification-viewer-body { position: relative; flex: 1 1 auto; min-height: 0; background: #334155; }
.notification-viewer-body iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.notification-viewer-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; height: 100%; padding: 24px 16px; text-align: center; }
.notification-viewer-fallback[hidden] { display: none; }
.notification-viewer-fallback > i { font-size: 3rem; color: #fca5a5; }
.notification-viewer-fallback p { max-width: 40ch; margin: 0; color: #e2e8f0; line-height: 1.6; }

@media (max-width: 767px) {
  .notification-viewer-bar { gap: 10px; min-height: 60px; padding: 10px 12px; }
  .notification-viewer-subtitle { display: none; }
  .notification-viewer-badge { flex-basis: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
  .notification-viewer-titles h2 { font-size: 1rem; }
  .notification-viewer-actions { gap: 8px; }
  .notification-viewer-divider { display: none; }
  /* Download collapses to an icon; Apply keeps its label as the main action. */
  .notification-viewer-btn-ghost { width: 40px; min-height: 40px; padding: 0; }
  .notification-viewer-btn-ghost .notification-viewer-btn-label { display: none; }
  .notification-viewer-btn-apply { min-height: 40px; padding: 8px 16px; }
  .notification-viewer-close { width: 40px; height: 40px; }
}
@media (max-width: 359px) {
  .notification-viewer-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .notification-viewer[open], .notification-viewer-close, .notification-viewer-btn { animation: none; transition: none; }
  .notification-viewer-close:hover, .notification-viewer-btn:hover { transform: none; }
}
