:root {
    --blue-950: #082145;
    --blue-900: #0b2d5c;
    --blue-800: #123f7a;
    --blue-700: #1559a8;
    --blue-50: #eef6ff;
    --red: #c91f2d;
    --gold: #f0c84b;
    --ink: #14213d;
    --muted: #64748b;
    --line: #d9e3ee;
    --surface: #ffffff;
    --soft: #f6f9fc;
    --shadow: 0 18px 45px rgba(8, 33, 69, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: "Segoe UI", Candara, Calibri, Arial, sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    animation: pageFadeIn 520ms ease both;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(112deg, #8f111f 0%, #b7192a 58%, #6f0c18 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    animation: headerDrop 640ms ease both;
    box-shadow: 0 12px 32px rgba(95, 7, 19, 0.18);
}

.header-inner,
.footer-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.brand strong,
.brand em {
    display: block;
}

.brand strong {
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.1px;
}

.brand em {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.top-nav a,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 7px;
    font-weight: 700;
}

.top-nav a {
    color: rgba(255, 255, 255, 0.9);
}

.top-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(112deg, #071f43 0%, #0b2d5c 58%, #123f7a 100%);
    color: #fff;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 33, 69, 0.12), rgba(8, 33, 69, 0.74)),
        radial-gradient(circle at 16% 18%, rgba(240, 200, 75, 0.12), transparent 30%),
        linear-gradient(180deg, transparent, rgba(4, 18, 38, 0.28));
    pointer-events: none;
    animation: heroGlow 1200ms ease both;
}

.hero-content,
.content-band,
.detail-hero {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-slider {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 32px));
    min-height: 520px;
    margin: 0 auto;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    align-items: center;
    gap: 64px;
    z-index: 1;
    width: 100%;
    padding: 74px 0 118px;
    max-width: none;
    margin: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 420ms ease, transform 420ms ease;
    pointer-events: none;
}

.hero-copy {
    max-width: 700px;
}

.hero-square {
    width: min(340px, 30vw);
    aspect-ratio: 1 / 1;
    display: block;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
}

.hero-square-link {
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero-square-link:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.48);
    box-shadow: 0 28px 68px rgba(0, 0, 0, 0.32);
}

.hero-square img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 54px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.slider-arrow,
.slider-dots button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.slider-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.slider-dots button.active {
    width: 26px;
    background: var(--gold);
}

.hero-content.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-content.active .eyebrow,
.hero-content.active h1,
.hero-content.active p {
    animation: heroTextUp 780ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-content.active h1 {
    animation-delay: 120ms;
}

.hero-content.active p {
    animation-delay: 240ms;
}

.hero-mark {
    position: absolute;
    z-index: 0;
    right: max(32px, calc((100vw - 1120px) / 2));
    top: 50%;
    width: min(360px, 34vw);
    transform: translateY(-50%);
    opacity: 0.24;
    animation: logoReveal 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) both, logoFloat 7s ease-in-out 1200ms infinite;
}

.hero-mark img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--gold);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: clamp(34px, 4.6vw, 54px);
    line-height: 1.1;
}

h2 {
    margin-bottom: 0;
    color: var(--blue-950);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.2;
}

h3 {
    color: var(--blue-950);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.35;
}

.hero p {
    max-width: 640px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
}

.content-band {
    padding: 56px 0 72px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading .eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-800), var(--red));
    border-radius: 7px;
    box-shadow: 0 12px 26px rgba(8, 33, 69, 0.14);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
}

.recruitment-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.recruitment-card {
    position: relative;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    min-height: 0;
    padding: 24px 26px 24px 30px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(8, 33, 69, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    animation: cardRise 620ms ease both;
}

.selection-thumb {
    width: 118px;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #f5f8fc);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.selection-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selection-thumb img[src$="logo-unhas.png"] {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.selection-flat-icon {
    position: relative;
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff 0%, #edf4ff 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 16px 30px rgba(9, 37, 76, 0.14);
}

.selection-flat-icon::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 20px;
    opacity: 0.14;
    background: currentColor;
}

.selection-flat-icon::after,
.flat-icon-shape,
.flat-icon-shape::before,
.flat-icon-shape::after {
    content: "";
    position: absolute;
    display: block;
}

.selection-icon-leadership {
    color: #b9132d;
}

.selection-icon-leadership .flat-icon-shape {
    width: 48px;
    height: 34px;
    left: 17px;
    top: 33px;
    border-radius: 8px;
    background: #c91734;
    box-shadow: inset 0 -10px 0 rgba(104, 14, 40, 0.18);
}

.selection-icon-leadership .flat-icon-shape::before {
    width: 22px;
    height: 13px;
    left: 13px;
    top: -13px;
    border: 5px solid #264f86;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}

.selection-icon-leadership .flat-icon-shape::after {
    width: 16px;
    height: 5px;
    left: 16px;
    top: 13px;
    border-radius: 999px;
    background: #ffd35d;
}

.selection-icon-structure {
    color: #1c5d99;
}

.selection-icon-structure .flat-icon-shape {
    width: 22px;
    height: 22px;
    left: 30px;
    top: 18px;
    border-radius: 7px;
    background: #1f66ad;
    box-shadow: -25px 34px 0 #c91734, 25px 34px 0 #13a06f;
}

.selection-icon-structure .flat-icon-shape::before {
    width: 48px;
    height: 28px;
    left: -13px;
    top: 22px;
    border: 4px solid #d8a21b;
    border-top: 0;
    border-radius: 0 0 10px 10px;
}

.selection-icon-structure .flat-icon-shape::after {
    width: 4px;
    height: 21px;
    left: 9px;
    top: 21px;
    border-radius: 999px;
    background: #d8a21b;
}

.selection-icon-staff {
    color: #13a06f;
}

.selection-icon-staff .flat-icon-shape {
    width: 50px;
    height: 40px;
    left: 16px;
    top: 23px;
    border-radius: 9px;
    background: #ffffff;
    border: 4px solid #16895f;
}

.selection-icon-staff .flat-icon-shape::before {
    width: 14px;
    height: 14px;
    left: 8px;
    top: 9px;
    border-radius: 50%;
    background: #c91734;
    box-shadow: 0 13px 0 -3px #c91734;
}

.selection-icon-staff .flat-icon-shape::after {
    width: 17px;
    height: 4px;
    right: 8px;
    top: 12px;
    border-radius: 999px;
    background: #1f66ad;
    box-shadow: 0 10px 0 #d8a21b, 0 20px 0 #d8e6f3;
}

.selection-icon-health {
    color: #c91734;
}

.selection-icon-health .flat-icon-shape {
    width: 46px;
    height: 46px;
    left: 18px;
    top: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 5px solid #1f66ad;
}

.selection-icon-health .flat-icon-shape::before {
    width: 12px;
    height: 30px;
    left: 17px;
    top: 8px;
    border-radius: 5px;
    background: #c91734;
}

.selection-icon-health .flat-icon-shape::after {
    width: 30px;
    height: 12px;
    left: 8px;
    top: 17px;
    border-radius: 5px;
    background: #c91734;
}

.selection-icon-security {
    color: #184b85;
}

.selection-icon-security .flat-icon-shape {
    width: 46px;
    height: 54px;
    left: 18px;
    top: 14px;
    border-radius: 13px 13px 18px 18px;
    background: linear-gradient(145deg, #1f66ad 0%, #143f73 100%);
    clip-path: polygon(50% 0, 92% 14%, 85% 70%, 50% 100%, 15% 70%, 8% 14%);
}

.selection-icon-security .flat-icon-shape::before {
    width: 24px;
    height: 24px;
    left: 11px;
    top: 15px;
    border-radius: 50%;
    background: #ffd35d;
}

.selection-icon-security .flat-icon-shape::after {
    width: 18px;
    height: 5px;
    left: 14px;
    top: 30px;
    border-radius: 999px;
    background: #c91734;
    transform: rotate(-18deg);
}

.selection-icon-academic {
    color: #2f5f8f;
}

.selection-icon-academic .flat-icon-shape {
    width: 56px;
    height: 24px;
    left: 13px;
    top: 28px;
    border-radius: 4px;
    background: #1f66ad;
    transform: skew(-18deg);
}

.selection-icon-academic .flat-icon-shape::before {
    width: 35px;
    height: 16px;
    left: 12px;
    top: 20px;
    border-radius: 0 0 14px 14px;
    background: #c91734;
    transform: skew(18deg);
}

.selection-icon-academic .flat-icon-shape::after {
    width: 5px;
    height: 26px;
    right: -1px;
    top: 12px;
    border-radius: 999px;
    background: #d8a21b;
    transform: skew(18deg);
    box-shadow: 0 23px 0 2px #d8a21b;
}

.selection-icon-finance {
    color: #d8a21b;
}

.selection-icon-finance .flat-icon-shape {
    width: 38px;
    height: 48px;
    left: 19px;
    top: 16px;
    border-radius: 8px;
    background: #ffffff;
    border: 4px solid #1f66ad;
}

.selection-icon-finance .flat-icon-shape::before {
    width: 18px;
    height: 18px;
    right: -14px;
    bottom: -5px;
    border-radius: 50%;
    background: #d8a21b;
    border: 4px solid #fff2be;
}

.selection-icon-finance .flat-icon-shape::after {
    width: 20px;
    height: 4px;
    left: 7px;
    top: 13px;
    border-radius: 999px;
    background: #c91734;
    box-shadow: 0 10px 0 #13a06f, 0 20px 0 #d8e6f3;
}

.selection-icon-protection {
    color: #7b2352;
}

.selection-icon-protection .flat-icon-shape {
    width: 42px;
    height: 50px;
    left: 20px;
    top: 15px;
    border-radius: 14px 14px 18px 18px;
    background: #7b2352;
    clip-path: polygon(50% 0, 92% 14%, 84% 67%, 50% 100%, 16% 67%, 8% 14%);
}

.selection-icon-protection .flat-icon-shape::before {
    width: 13px;
    height: 13px;
    left: 15px;
    top: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: -10px 10px 0 -2px #ffffff, 10px 10px 0 -2px #ffffff;
}

.selection-icon-protection .flat-icon-shape::after {
    width: 30px;
    height: 12px;
    left: 6px;
    top: 31px;
    border-radius: 12px 12px 5px 5px;
    background: #ffd35d;
}

.selection-icon-document {
    color: #1f66ad;
}

.selection-icon-document .flat-icon-shape {
    width: 42px;
    height: 52px;
    left: 20px;
    top: 15px;
    border-radius: 8px;
    background: #ffffff;
    border: 4px solid #1f66ad;
}

.selection-icon-document .flat-icon-shape::before {
    width: 17px;
    height: 17px;
    right: -4px;
    top: -4px;
    background: #d8a21b;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.selection-icon-document .flat-icon-shape::after {
    width: 22px;
    height: 4px;
    left: 8px;
    top: 19px;
    border-radius: 999px;
    background: #c91734;
    box-shadow: 0 11px 0 #13a06f, 0 22px 0 #d8e6f3;
}

.selection-card-body {
    min-width: 0;
}

.recruitment-card:nth-child(1) {
    animation-delay: 80ms;
}

.recruitment-card:nth-child(2) {
    animation-delay: 150ms;
}

.recruitment-card:nth-child(3) {
    animation-delay: 220ms;
}

.recruitment-card:nth-child(4) {
    animation-delay: 290ms;
}

.recruitment-card:nth-child(5) {
    animation-delay: 360ms;
}

.recruitment-card:nth-child(n+6) {
    animation-delay: 430ms;
}

.recruitment-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(var(--blue-700), var(--red));
}

.recruitment-card:hover {
    transform: translateY(-3px);
    border-color: rgba(21, 89, 168, 0.35);
    box-shadow: var(--shadow);
}

.recruitment-card p {
    color: var(--muted);
}

.status {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--blue-900);
    background: var(--blue-50);
    font-size: 12px;
    font-weight: 800;
}

.status.open {
    color: #fff;
    background: var(--red);
}

.status.closed {
    color: var(--blue-800);
    background: #e6edf6;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    color: var(--blue-800);
    font-size: 14px;
    font-weight: 600;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    color: var(--blue-900);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-weight: 600;
}

.pagination a.active,
.pagination a:hover {
    color: #fff;
    background: var(--blue-800);
    border-color: var(--blue-800);
}

.admin-pagination {
    margin-top: 18px;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes headerDrop {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroGlow {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes heroTextUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoReveal {
    from {
        opacity: 0;
        transform: translateY(-46%) scale(0.96);
    }
    to {
        opacity: 0.24;
        transform: translateY(-50%) scale(1);
    }
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-52%) scale(1.015);
    }
}

@keyframes cardRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    padding: 58px 0 36px;
    align-items: start;
}

.detail-hero h1 {
    color: var(--blue-950);
    font-size: clamp(30px, 4vw, 48px);
}

.detail-hero p {
    max-width: 820px;
    color: var(--muted);
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--blue-700);
    font-weight: 600;
}

.detail-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.registration-button {
    background: var(--red);
    box-shadow: 0 12px 26px rgba(201, 31, 45, 0.2);
}

.timeline {
    display: grid;
    gap: 14px;
}

.document-block {
    margin-bottom: 34px;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(8, 33, 69, 0.07);
}

.document-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.document-heading h2 {
    font-size: 24px;
}

.document-heading span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    color: var(--blue-800);
    background: var(--blue-50);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.document-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 16px;
    color: var(--blue-950);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(8, 33, 69, 0.06);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.document-item:hover {
    transform: translateY(-2px);
    border-color: rgba(21, 89, 168, 0.35);
    box-shadow: 0 16px 34px rgba(8, 33, 69, 0.1);
}

.document-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    background: var(--red);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.document-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.document-text strong {
    color: var(--blue-950);
    font-weight: 600;
    line-height: 1.35;
}

.document-text em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.announcement {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.announcement-date strong,
.announcement-date span {
    display: block;
}

.date-icon {
    width: 118px;
    min-height: 132px;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 16px 12px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid var(--line);
    border-top: 4px solid var(--red);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(8, 33, 69, 0.08);
}

.date-day {
    color: var(--red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    margin-top: 6px;
    color: var(--blue-950);
    font-size: 18px;
    font-weight: 600;
}

.date-year {
    margin-top: 2px;
    color: var(--muted);
    font-size: 14px;
}

.date-category {
    width: 118px;
    margin-top: 10px;
    color: var(--blue-800);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.announcement p {
    margin-bottom: 0;
    color: #334155;
}

.pdf-actions {
    margin-top: 18px;
}

.pdf-preview {
    margin-top: 14px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.pdf-preview object,
.pdf-preview iframe {
    display: block;
    width: 100%;
    height: 620px;
    border: 0;
}

.empty-state {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.button {
    border: 0;
    color: #fff;
    background: var(--red);
    cursor: pointer;
}

.button.secondary {
    color: var(--blue-900);
    background: var(--blue-50);
}

.site-footer {
    padding: 28px 0;
    color: rgba(255, 255, 255, 0.82);
    background: var(--blue-950);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.admin-body {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 100vh;
    background: #f4f7fb;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    color: #fff;
    background: var(--blue-950);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 600;
}

.admin-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar a {
    border-radius: 7px;
}

.admin-sidebar nav a {
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.admin-main {
    padding: 34px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-header h1 {
    margin-bottom: 0;
    color: var(--blue-950);
    font-size: 34px;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(120deg, rgba(8, 33, 69, 0.95), rgba(18, 63, 122, 0.9)),
        var(--blue-950);
}

.login-shell {
    width: min(460px, 100%);
}

.login-card {
    padding: 30px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.login-brand img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.login-brand h1 {
    margin-bottom: 0;
    color: var(--blue-950);
    font-size: 30px;
}

.login-form {
    padding: 0;
    border: 0;
    box-shadow: none;
}

.notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    color: var(--blue-950);
    background: #fff8dd;
    border: 1px solid #f1dc91;
    border-radius: 8px;
    font-weight: 500;
}

.notice.error {
    color: #7f1d1d;
    background: #fff1f2;
    border-color: #fecdd3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(8, 33, 69, 0.07);
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    color: var(--blue-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
    gap: 18px;
    margin-bottom: 18px;
}

.chart-panel {
    padding: 22px;
}

.chart-panel h2 {
    margin-bottom: 18px;
    font-size: 22px;
}

.bar-chart {
    display: grid;
    gap: 14px;
}

.bar-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 12px;
}

.bar-row span,
.bar-row strong {
    color: var(--blue-950);
    font-size: 14px;
    font-weight: 600;
}

.bar-track {
    height: 12px;
    overflow: hidden;
    background: var(--blue-50);
    border-radius: 999px;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue-700), var(--red));
    border-radius: inherit;
}

.donut-wrap {
    display: flex;
    align-items: center;
    gap: 22px;
}

.donut-chart {
    width: 142px;
    height: 142px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: conic-gradient(var(--red) 0 64%, var(--blue-700) 64% 100%);
    border-radius: 50%;
    position: relative;
}

.donut-chart::after {
    content: "";
    position: absolute;
    inset: 22px;
    background: #fff;
    border-radius: 50%;
}

.donut-chart span {
    position: relative;
    z-index: 1;
    color: var(--blue-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 700;
}

.legend-list {
    display: grid;
    gap: 10px;
    color: var(--blue-950);
}

.legend-list span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 3px;
}

.legend.announcement {
    background: var(--red);
}

.legend.document {
    background: var(--blue-700);
}

.admin-panel,
.admin-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(8, 33, 69, 0.08);
}

.admin-panel {
    overflow: hidden;
}

.admin-panel.compact {
    margin-top: 22px;
    padding: 22px;
}

.admin-panel.compact h2 {
    margin-bottom: 16px;
    font-size: 22px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

th {
    color: var(--blue-900);
    background: var(--blue-50);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

td strong,
td span {
    display: block;
}

td strong {
    font-weight: 600;
}

td span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.actions {
    min-width: 240px;
}

.actions a,
.mini-row a {
    display: inline-flex;
    margin: 0 8px 8px 0;
    color: var(--blue-700);
    font-weight: 600;
}

.actions .action-pill {
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 10px;
    color: var(--blue-900);
    background: var(--blue-50);
    border: 1px solid #d7e7f8;
    border-radius: 999px;
    font-size: 13px;
}

.actions .action-pill span {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--blue-700);
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
}

.actions .action-pill:hover {
    color: #fff;
    background: var(--blue-800);
    border-color: var(--blue-800);
}

.actions .action-pill:hover span {
    color: var(--blue-800);
    background: #fff;
}

.admin-form {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.admin-form label {
    display: grid;
    gap: 8px;
    color: var(--blue-950);
    font-weight: 600;
}

.slide-fieldset {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.slider-tab-shell {
    display: grid;
    gap: 18px;
}

.slider-tab-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    background: var(--blue-50);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.slider-tab-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px;
    color: var(--blue-900);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 600;
}

.slider-tab-list a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--blue-800), var(--red));
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(8, 33, 69, 0.14);
}

.slide-tab-panel {
    display: none;
}

.slide-tab-panels {
    min-width: 0;
}

.slide-tab-panel.active {
    display: grid;
}

.slide-fieldset legend {
    padding: 0 8px;
    color: var(--red);
    font-weight: 600;
}

.field-hint {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.admin-image-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--blue-50);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-image-preview img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 7px;
}

.admin-image-preview span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    word-break: break-all;
}

.no-photo-box {
    min-height: 86px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background:
        linear-gradient(135deg, rgba(21, 89, 168, 0.06), rgba(201, 23, 52, 0.06)),
        #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.danger-check {
    color: var(--red) !important;
}

.admin-file-preview {
    display: grid;
    gap: 6px;
    padding: 12px;
    background: var(--blue-50);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-file-preview strong {
    color: var(--blue-950);
    font-weight: 600;
}

.admin-file-preview a {
    color: var(--blue-700);
    font-size: 13px;
    word-break: break-all;
}

.check-label {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
}

.check-label input {
    width: 18px;
    min-height: 18px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(21, 89, 168, 0.16);
    border-color: var(--blue-700);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-credentials {
    align-items: start;
}

.user-credentials label {
    align-self: start;
}

.mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.mini-row span {
    color: var(--muted);
}

.mini-row strong {
    display: block;
    color: var(--blue-950);
}

.selection-checks {
    display: grid;
    gap: 10px;
    max-height: 340px;
    overflow: auto;
    padding-right: 8px;
}

@media (max-width: 860px) {
    .header-inner,
    .section-heading,
    .footer-inner,
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        min-height: 620px;
    }

    .hero-slider {
        min-height: 620px;
    }

    .hero-mark {
        right: 18px;
        width: 260px;
        opacity: 0.12;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
        align-content: center;
        padding: 52px 0 112px;
    }

    .hero-square {
        width: min(220px, 62vw);
    }

    .slider-controls {
        bottom: 44px;
    }

    .recruitment-list,
    .detail-hero,
    .announcement,
    .document-list,
    .admin-body,
    .stats-grid,
    .dashboard-grid,
    .form-grid,
    .form-grid.two {
        grid-template-columns: 1fr;
    }

    .donut-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .document-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .slider-tab-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recruitment-card {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 16px;
    }

    .selection-thumb {
        width: 88px;
    }

    .pdf-preview object,
    .pdf-preview iframe {
        height: 460px;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
    }

    .admin-main {
        padding: 22px 16px;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        border-bottom: 1px solid var(--line);
    }

    td {
        border-bottom: 0;
    }
}

@media (max-width: 560px) {
    .brand strong {
        font-size: 14px;
    }

    .brand em {
        font-size: 13px;
    }

    .top-nav {
        width: 100%;
    }

    .top-nav a {
        flex: 1;
    }

    h1 {
        font-size: 31px;
    }
}
