:root {
    --brand: #1f5eff;
    --brand-dark: #123aa2;
    --brand-soft: #dce8ff;
    --accent: #58a6ff;
    --accent-soft: #e8f3ff;
    --ink: #1b2840;
    --muted: #687792;
    --surface: #eef4ff;
    --surface-2: #f8fbff;
    --card: rgba(255, 255, 255, 0.92);
    --border: rgba(31, 94, 255, 0.12);
    --shadow: 0 24px 60px rgba(15, 28, 41, 0.09);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}
body {
    font-family: Manrope, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(88, 166, 255, 0.15), transparent 22%),
        radial-gradient(circle at right 20%, rgba(31, 94, 255, 0.1), transparent 24%),
        linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
}
.site-header,
.auth-body {
    background: linear-gradient(180deg, rgba(246, 250, 255, 0.97), rgba(242, 247, 255, 0.96));
    backdrop-filter: blur(12px);
}
.top-strip {
    background: linear-gradient(90deg, #102f82, var(--brand));
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.83rem;
    padding: 0.7rem 0;
}
.top-strip-links {
    display: flex;
    gap: 1rem;
}
.top-strip-links a {
    color: #fff;
    text-decoration: none;
}
.site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(27, 40, 54, 0.04);
}
.site-header a,
.brand-link,
.footer-links a,
.nav-link,
.site-nav a {
    
    text-decoration: none;
}
.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}
.site-nav a {
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.site-nav a:hover {
    background: rgba(31, 94, 255, 0.08);
    color: var(--brand-dark);
}
.brand-link,
.brand-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
    color: var(--ink);
}
.brand-link strong,
.brand-block strong {
    font-size: 1.25rem;
    line-height: 1.15;
}
.public-site-logo {
    display: block;
    width: clamp(250px, 25vw, 360px);
    height: auto;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
}
.brand-chip,
.eyebrow,
.brand-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand);
    font-weight: 800;
}
.hero-section {
    padding: 4.2rem 0 2rem;
}
.hero-panel,
.panel-card,
.metric-card,
.auth-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}
.hero-panel {
    padding: 2.5rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
    position: relative;
    overflow: hidden;
}
.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(88, 166, 255, 0.18), transparent 25%),
        linear-gradient(135deg, rgba(31, 94, 255, 0.08), transparent 35%);
    pointer-events: none;
}
.hero-panel > * {
    position: relative;
    z-index: 1;
}
.hero-panel h1 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 0.98;
    max-width: 11ch;
    margin-bottom: 1rem;
}
.hero-panel p {
    max-width: 62ch;
    font-size: 1.05rem;
    color: #475667;
}
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.35rem;
}
.hero-tags span,
.status-pill,
.section-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}
.hero-tags span {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(31, 94, 255, 0.12);
    color: var(--brand-dark);
}
.search-bar {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.6rem;
}
.search-bar input,
.filter-bar .form-control,
.filter-bar .form-select,
.form-control,
.form-select {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 0.95rem 1rem;
    box-shadow: none;
}
.search-bar input {
    flex: 1;
    min-height: 58px;
}
.search-bar button,
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-color: transparent;
    border-radius: var(--radius-md);
    padding: 0.9rem 1.25rem;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(31, 94, 255, 0.2);
}
.btn-outline-secondary {
    border-radius: var(--radius-md);
}
.hero-stats {
    display: grid;
    gap: 1rem;
    align-content: start;
}
.hero-stats div {
    padding: 1.15rem 1.15rem 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.94));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(31, 94, 255, 0.08);
}
.hero-stats strong {
    display: block;
    font-size: 2rem;
}
.hero-stats span {
    display: block;
    font-weight: 700;
}
.hero-stats small {
    color: var(--muted);
}
.feature-ribbon {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 1.5rem;
}
.feature-ribbon > div {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 94, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
}
.feature-ribbon strong,
.mini-section-head h2 {
    display: block;
    margin-bottom: 0.15rem;
}
.feature-ribbon span,
.mini-section-head span {
    color: var(--muted);
    font-size: 0.9rem;
}
.content-section {
    padding: 2rem 0 4rem;
}
.public-card,
.panel-card {
    padding: 1.5rem;
}
.section-head,
.mini-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.section-head h2,
.section-head h1,
.mini-section-head h2 {
    margin: 0;
}
.section-head a {
    color: var(--brand);
    font-weight: 700;
}
.listing-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(31, 94, 255, 0.08);
}
.listing-item-rich {
    position: relative;
    padding-left: 4rem;
}
.listing-item:last-child {
    border-bottom: 0;
}
.listing-item a {
    color: var(--ink);
    text-decoration: none;
}
.listing-item h3 {
    font-size: 1.12rem;
    margin-bottom: 0.45rem;
}
.listing-badge {
    position: absolute;
    left: 0;
    top: 1rem;
    width: 2.8rem;
    height: 2.8rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-dark);
    background: var(--brand-soft);
}
.result-badge {
    background: var(--accent-soft);
    color: #1556ad;
}
.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.tag-cloud a {
    text-decoration: none;
    color: var(--brand-dark);
    background: rgba(31, 94, 255, 0.08);
    padding: 0.62rem 0.92rem;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.2s ease;
}
.tag-cloud a:hover {
    background: var(--brand-dark);
    color: #fff;
}
.site-footer {
    background: linear-gradient(180deg, rgba(232, 241, 255, 0.76), rgba(220, 232, 252, 0.96));
    border-top: 1px solid rgba(31, 94, 255, 0.08);
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}
.admin-body {
    background:
        radial-gradient(circle at top left, rgba(31, 94, 255, 0.1), transparent 18%),
        radial-gradient(circle at top right, rgba(88, 166, 255, 0.14), transparent 20%),
        linear-gradient(180deg, #f3f7ff 0%, #eaf1fd 100%);
}
.admin-shell {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    padding: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    background: linear-gradient(180deg, rgba(12, 31, 79, 0.99), rgba(22, 64, 161, 0.96));
    color: #fff;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar .brand-block,
.admin-sidebar .brand-kicker,
.admin-sidebar .nav-link {
    color: #f8fbfd;
}
.admin-profile-card {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem;
    margin: 1.4rem 0 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-avatar {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), #a9d2ff);
    color: #163f86;
    font-weight: 800;
}
.admin-sidebar .nav-link {
    padding: 0.82rem 1rem;
    border-radius: 14px;
    font-weight: 600;
    opacity: 0.95;
}
.admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}
.admin-main {
    padding: 1.75rem;
}
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.2rem 1.35rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(31, 94, 255, 0.08);
    box-shadow: 0 12px 32px rgba(27, 40, 54, 0.04);
}
.page-head-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.status-pill {
    background: rgba(31, 94, 255, 0.1);
    color: var(--brand-dark);
}
.section-pill {
    background: rgba(88, 166, 255, 0.14);
    color: #1556ad;
}
.metric-card {
    padding: 1.35rem;
}
.metric-card span {
    color: var(--muted);
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
}
.metric-card strong {
    font-size: 1.95rem;
    line-height: 1.05;
    display: block;
    margin-bottom: 0.25rem;
}
.metric-card small {
    color: var(--muted);
}
.panel-card {
    border-radius: var(--radius-xl);
}
.panel-card .table {
    margin-bottom: 0;
}
.panel-card .table thead th {
    background: rgba(31, 94, 255, 0.05);
    border-bottom-width: 0;
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.list-group-item {
    border-color: rgba(31, 94, 255, 0.08);
    padding-left: 0;
    padding-right: 0;
    background: transparent;
}
.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
}
.auth-card {
    width: min(480px, 92vw);
    padding: 2.25rem;
}
.permission-check {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fbfcfa;
}
.content-copy {
    line-height: 1.8;
    color: #344551;
}
.filter-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(31, 94, 255, 0.08);
}
.alert {
    border-radius: 16px;
    border: 0;
}
.breadcrumb {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    display: inline-flex;
    padding: 0.6rem 1rem;
}
.detail-page {
    padding-top: 1.35rem;
}
.detail-breadcrumb .breadcrumb {
    padding: 0.9rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(31, 94, 255, 0.08);
    display: inline-flex;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.detail-hero {
    padding: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.9fr);
    gap: 1.4rem;
    position: relative;
    overflow: hidden;
}
.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(88, 166, 255, 0.2), transparent 28%),
        linear-gradient(135deg, rgba(31, 94, 255, 0.08), transparent 40%);
    pointer-events: none;
}
.detail-hero-copy,
.detail-hero-side {
    position: relative;
    z-index: 1;
}
.detail-hero h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.03;
    margin: 1rem 0 0.8rem;
    max-width: 14ch;
}
.detail-hero p {
    color: #4b5b73;
    max-width: 72ch;
    font-size: 1.02rem;
}
.detail-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.35rem;
}
.detail-highlights div,
.detail-stat-card,
.detail-date-item,
.detail-info-item,
.detail-link-list a,
.detail-related-list a {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(31, 94, 255, 0.08);
    border-radius: 18px;
}
.detail-highlights div,
.detail-stat-card {
    padding: 1rem 1.1rem;
}
.detail-highlights span,
.detail-stat-card span,
.detail-info-item span,
.detail-date-item span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}
.detail-highlights strong,
.detail-stat-card strong,
.detail-info-item strong,
.detail-date-item strong {
    display: block;
    margin-top: 0.45rem;
    font-size: 1rem;
    line-height: 1.45;
}
.detail-hero-side {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}
.detail-section-card,
.detail-sidebar-card {
    border: 1px solid rgba(31, 94, 255, 0.08);
    background: rgba(255, 255, 255, 0.88);
}
.detail-info-grid,
.detail-date-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.detail-info-item,
.detail-date-item {
    padding: 1rem 1.1rem;
}
.detail-info-item-wide {
    grid-column: 1 / -1;
}
.detail-copy p:last-child {
    margin-bottom: 0;
}
.detail-copy table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}
.detail-copy th,
.detail-copy td {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    vertical-align: top;
}
.detail-copy img {
    max-width: 100%;
    height: auto;
}
.detail-link-list,
.detail-related-list {
    display: grid;
    gap: 0.9rem;
}
.detail-link-list a,
.detail-related-list a {
    padding: 1rem 1.05rem;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.detail-link-list a:hover,
.detail-related-list a:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(31, 94, 255, 0.1);
}
.detail-link-list span,
.detail-related-list span {
    display: block;
    color: var(--muted);
    margin-top: 0.2rem;
    font-size: 0.92rem;
}
.detail-link-list strong,
.detail-related-list strong {
    display: block;
}
.empty-note {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(31, 94, 255, 0.05);
    color: var(--muted);
}

/* Public homepage refresh: a clearer, editorial treatment for a high-trust portal. */
.site-body {
    --brand: #1557d6;
    --brand-dark: #0d2865;
    --brand-soft: #dce9ff;
    --accent: #5b8ef3;
    --accent-soft: #edf4ff;
    --ink: #10254a;
    --muted: #60708b;
    --surface: #eff5ff;
    --surface-2: #f8fbff;
    --card: #ffffff;
    --border: rgba(21, 87, 214, 0.14);
    background:
        radial-gradient(circle at 4% 7%, rgba(71, 132, 243, 0.15), transparent 21rem),
        radial-gradient(circle at 94% 27%, rgba(79, 139, 244, 0.12), transparent 24rem),
        #f4f7fc;
}
.site-body .top-strip {
    padding: 0.58rem 0;
    background: #0d2e77;
    font-size: 0.8rem;
}
.site-body .site-header {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 5px 18px rgba(19, 43, 88, 0.06);
}
.site-body .site-header > .container {
    min-height: 94px;
}
.site-body .brand-link {
    position: relative;
    padding-left: 3.25rem;
}
.site-body .brand-link::before {
    content: "NCD";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2.45rem;
    height: 2.45rem;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 2px solid var(--brand);
    border-radius: 50%;
    color: var(--brand-dark);
    font-family: Georgia, serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.site-body .brand-link strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}
.site-body .brand-chip,
.site-body .eyebrow,
.site-body .brand-kicker {
    color: var(--brand);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
}
.site-body .site-nav {
    gap: 0.15rem;
}
.site-body .site-nav a {
    border-radius: 8px;
    font-size: 0.95rem;
    padding: 0.64rem 0.82rem;
}
.site-body .site-nav a:hover {
    background: var(--accent-soft);
    color: var(--brand-dark);
}
.site-body .hero-section {
    padding: 4.5rem 0 2.5rem;
}
.site-body .hero-panel {
    grid-template-columns: minmax(0, 1.5fr) minmax(295px, 0.8fr);
    gap: 3rem;
    min-height: 485px;
    padding: clamp(2rem, 4vw, 4rem);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(29, 62, 126, 0.13);
    background:
        linear-gradient(115deg, rgba(236, 243, 255, 0.92) 0%, rgba(255, 255, 255, 0.96) 53%, rgba(238, 246, 255, 0.9) 100%);
}
.site-body .hero-panel::after {
    content: "";
    position: absolute;
    right: -8rem;
    bottom: -12rem;
    width: 28rem;
    height: 28rem;
    border: 1px solid rgba(21, 87, 214, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 0 3rem rgba(21, 87, 214, 0.025), 0 0 0 6rem rgba(21, 87, 214, 0.02);
    pointer-events: none;
}
.site-body .hero-panel h1 {
    max-width: 12ch;
    margin: 1rem 0 1.25rem;
    color: #102752;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.9rem, 5vw, 5.15rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.96;
}
.site-body .hero-panel p {
    max-width: 57ch;
    color: #52637c;
    font-size: 1rem;
    line-height: 1.7;
}
.site-body .search-bar {
    max-width: 690px;
    margin-top: 1.8rem;
    padding: 0.45rem;
    border: 1px solid rgba(21, 87, 214, 0.15);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(22, 57, 118, 0.08);
}
.site-body .search-bar input {
    min-height: 48px;
    border: 0;
    padding: 0.65rem 0.8rem;
    outline: 0;
}
.site-body .search-bar input:focus {
    box-shadow: none;
}
.site-body .search-bar button {
    min-height: 48px;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    box-shadow: none;
    white-space: nowrap;
}
.site-body .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 1.15rem;
}
.site-body .hero-actions a {
    color: var(--brand-dark);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}
.site-body .hero-actions a span {
    color: var(--brand);
    font-size: 1.1rem;
    margin-left: 0.2rem;
}
.site-body .hero-tags {
    margin-top: 1.6rem;
}
.site-body .hero-tags span {
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.76);
    font-size: 0.75rem;
}
.site-body .hero-stats {
    gap: 0.85rem;
   
}
.site-body .hero-stats div {
    position: relative;
    overflow: hidden;
    padding: 1.15rem 1.25rem 1.1rem 1.55rem;
    border-radius: 14px;
    border: 1px solid rgba(21, 87, 214, 0.12);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 24px rgba(29, 62, 126, 0.05);
}
.site-body .hero-stats div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    
}
.site-body .hero-stats strong {
    color: var(--brand-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.35rem;
    line-height: 1;
}
.site-body .feature-ribbon {
    gap: 0;
    margin: 0 0 2rem;
    border: 1px solid rgba(21, 87, 214, 0.1);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(22, 57, 118, 0.05);
    overflow: hidden;
}
.site-body .feature-ribbon > div {
    padding: 1.25rem 1.4rem;
    border: 0;
    border-right: 1px solid rgba(21, 87, 214, 0.1);
    border-radius: 0;
    background: transparent;
}
.site-body .feature-ribbon > div:last-child {
    border-right: 0;
}
.site-body .public-card {
    border-radius: 18px;
    border: 1px solid rgba(21, 87, 214, 0.1);
    box-shadow: 0 14px 35px rgba(22, 57, 118, 0.06);
}
.site-body .section-head h2,
.site-body .mini-section-head h2 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--brand-dark);
}
.site-body .listing-item {
    border-color: rgba(21, 87, 214, 0.09);
}
.site-body .listing-item h3 a:hover,
.site-body .section-head a:hover {
    color: var(--brand);
}
.site-body .listing-badge {
    border-radius: 8px;
}
.site-body .tag-cloud a {
    border-radius: 6px;
    font-size: 0.86rem;
}
.site-body .site-footer {
    margin-top: 1rem;
    background: #eaf1fc;
}
@media (max-width: 991px) {
    .site-body .site-header > .container {
        min-height: 0;
    }
    .site-body .hero-panel {
        min-height: 0;
    }
    .site-body .feature-ribbon > div {
        border-right: 0;
        border-bottom: 1px solid rgba(21, 87, 214, 0.1);
    }
    .site-body .feature-ribbon > div:last-child {
        border-bottom: 0;
    }
}
@media (max-width: 575px) {
    .site-body .hero-section {
        padding-top: 1.5rem;
    }
    .site-body .hero-panel {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .site-body .hero-panel h1 {
        font-size: 2.85rem;
    }
    .site-body .search-bar {
        display: grid;
    }
    .site-body .search-bar button {
        width: 100%;
    }
}

.analytics-panel {
    margin-bottom: 1.25rem;
}
.analytics-filter {
    padding: 1.1rem 1.2rem;
}
.analytics-table th,
.analytics-log-table th {
    white-space: nowrap;
}
.analytics-table td,
.analytics-log-table td {
    vertical-align: middle;
}
.analytics-url {
    display: block;
    max-width: 30rem;
    margin-top: 0.2rem;
    overflow: hidden;
    color: #71829a;
    font-size: 0.75rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.analytics-number {
    color: #123d78;
    font-size: 1rem;
    font-weight: 800;
}
.analytics-referrer {
    display: block;
    max-width: 20rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.analytics-log-table td small {
    display: block;
    max-width: 18rem;
    margin-top: 0.18rem;
    overflow: hidden;
    color: #71829a;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Professional catalogue pages, using the supplied Iowan/Palatino display stack. */
.site-body {
    --portal-display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --portal-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
    font-family: var(--portal-body);
}
.site-body .catalogue-section { padding: 4rem 0 5rem; }
.site-body .catalogue-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(21, 87, 214, 0.14); }
.site-body .catalogue-intro h1 { max-width: 30ch; margin: 0.45rem 0 0.75rem; color: var(--brand-dark); font-family: var(--portal-display); font-size: clamp(2.35rem, 2vw, 4rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.site-body .catalogue-intro p { max-width: 57ch; margin: 0; color: var(--muted); line-height: 1.65; }
.site-body .catalogue-intro-note { min-width: 230px; padding: 1.15rem 1.25rem; border-left: 3px solid #e8a13c; background: rgba(255, 255, 255, 0.65); }
.site-body .catalogue-intro-note span, .site-body .catalogue-intro-note strong { display: block; }
.site-body .catalogue-intro-note span { margin-bottom: 0.3rem; color: var(--muted); font-size: 0.77rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.site-body .catalogue-intro-note strong { color: var(--brand-dark); font-family: var(--portal-display); font-size: 1.06rem; font-weight: 500; line-height: 1.25; }
.site-body .directory-breadcrumb { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.5rem; color: var(--muted); font-size: .9rem; }
.site-body .directory-breadcrumb a { color: var(--brand-blue); }
.site-body .directory-hero { padding: 2.25rem; border: 1px solid rgba(21, 87, 214, .14); border-radius: 1.25rem; background: linear-gradient(135deg, #fff, #f1f6ff); }
.site-body .directory-hero h1 { margin: .35rem 0 .75rem; color: var(--brand-dark); font-family: var(--portal-display); font-size: clamp(1.85rem, 3vw, 2.75rem); letter-spacing: -.045em; }
.site-body .directory-profile-image { position: relative; display: flex; width: 5.5rem; height: 5.5rem; align-items: center; justify-content: center; margin-bottom: 1rem; overflow: hidden; border-radius: 1.25rem; background: linear-gradient(135deg, #dceaff, #eef5ff); color: var(--brand-blue); font-size: 1.45rem; font-weight: 800; }
.site-body .directory-profile-image img { position: absolute; inset: 0; width: 100%; height: 100%; background: #eef5ff; object-fit: cover; }
.site-body .directory-hero > p, .site-body .directory-description { max-width: 70ch; color: var(--muted); line-height: 1.7; }
.site-body .directory-page .directory-description, .site-body .directory-page .directory-hero > p { max-width: 100%; }
.site-body .directory-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.35rem; }
.site-body .directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.site-body .directory-card { display: flex; min-height: 14rem; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .55rem; padding: 1.35rem; border: 1px solid rgba(21, 87, 214, .14); border-radius: 1rem; background: #fff; box-shadow: 0 12px 30px rgba(14, 53, 110, .06); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.site-body .directory-card:hover { transform: translateY(-3px); border-color: rgba(21, 87, 214, .45); }
.site-body .directory-card strong { color: var(--brand-dark); font-size: 1.08rem; }
.site-body .directory-card-image { position: relative; display: flex; align-self: center; width: 4.4rem; height: 4.4rem; align-items: center; justify-content: center; margin-bottom: .45rem; padding: .35rem; overflow: hidden; border: 1px solid rgba(21, 87, 214, .1); border-radius: 1rem; background: linear-gradient(135deg, #f7fbff, #e8f1ff); color: var(--brand-blue); font-size: 1.05rem; font-weight: 800; letter-spacing: .05em; }
.site-body .directory-card-image img { position: absolute; inset: .35rem; width: calc(100% - .7rem); height: calc(100% - .7rem); background: #f2f7ff; object-fit: contain; }
.site-body [data-directory-image][hidden] { display: none; }
.site-body .directory-card small { min-height: 2.7rem; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.site-body .directory-pagination { margin-top: 2rem; }
.site-body .directory-card span { color: var(--brand-blue); font-size: .86rem; }
.site-body .directory-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 2.5rem; }
.site-body .directory-summary > div { padding: 1rem 1.2rem; border-radius: .9rem; background: #fff; border: 1px solid rgba(21, 87, 214, .12); }
.site-body .directory-summary strong, .site-body .directory-summary span { display: block; }
.site-body .directory-summary strong { color: var(--brand-dark); font-size: 1.55rem; }
.site-body .directory-summary span { color: var(--muted); font-size: .83rem; }
.site-body .directory-list-section { margin-top: 2.5rem; }
.site-body .directory-context-card { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 1.5rem 0; padding: 1.35rem 1.5rem; border: 1px solid rgba(21, 87, 214, .14); border-radius: 1rem; background: #fff; }
.site-body .directory-context-card h2 { margin: .25rem 0 .45rem; color: var(--brand-dark); font-family: var(--portal-display); }
.site-body .directory-context-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.site-body .job-share-card h2 { margin-bottom: 1.1rem; color: var(--brand-dark); }
.site-body .job-share-links { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: 1rem; border-top: 1px solid rgba(21, 87, 214, .14); }
.site-body .job-share-link { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 1.25rem; font-weight: 800; text-decoration: none; transition: transform .2s ease, opacity .2s ease; }
.site-body .job-share-link:hover { color: #fff; opacity: .85; transform: translateY(-2px); }
.site-body .job-share-facebook { background: #2754b7; font-family: Arial, sans-serif; }
.site-body .job-share-x { background: #050505; }
.site-body .job-share-whatsapp { background: #1dc56b; font-size: 1.45rem; }
.site-body .job-share-telegram { background: #20a9e0; }
.site-body .job-share-disclaimer { display: inline-block; margin-top: 1rem; color: var(--brand-blue); }
@media (max-width: 767px) { .site-body .directory-grid, .site-body .directory-summary { grid-template-columns: 1fr; } .site-body .directory-hero { padding: 1.35rem; } .site-body .directory-context-card { align-items: flex-start; flex-direction: column; } }
.site-body .catalogue-filter { display: grid; grid-template-columns: 1.45fr repeat(3, 1fr) auto; gap: 0.8rem; align-items: end; margin: 2rem 0 1.15rem; padding: 1.15rem; border: 1px solid rgba(21, 87, 214, 0.12); border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(22, 57, 118, 0.05); }
.site-body .filter-field { min-width: 0; }
.site-body .filter-field > span { display: block; margin: 0 0 0.4rem; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.site-body .catalogue-filter .form-control, .site-body .catalogue-filter .form-select { min-height: 46px; border-color: #dfe6f1; border-radius: 8px; color: var(--ink); font-size: 0.9rem; }
.site-body .catalogue-submit { min-height: 46px; padding-inline: 1rem; border-radius: 8px; box-shadow: none; white-space: nowrap; }
.site-body .catalogue-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.35rem 0; }
.site-body .catalogue-type-links { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.5rem 0 0; }
.site-body .catalogue-type-links a { padding: 0.55rem 0.85rem; border: 1px solid #dfe6f1; border-radius: 999px; background: #fff; color: var(--brand-dark); font-size: 0.82rem; font-weight: 800; text-decoration: none; }
.site-body .catalogue-type-links a.is-active, .site-body .catalogue-type-links a:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.site-body .catalogue-toolbar p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.site-body .catalogue-toolbar p strong { color: var(--brand-dark); font-family: var(--portal-display); font-size: 1.35rem; font-weight: 500; }
.site-body .catalogue-toolbar a { color: var(--brand); font-size: 0.87rem; font-weight: 800; text-decoration: none; }
.site-body .opportunity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.site-body .opportunity-card { display: flex; min-height: 290px; flex-direction: column; padding: 1.45rem; border: 1px solid rgba(21, 87, 214, 0.12); border-radius: 14px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 9px 24px rgba(22, 57, 118, 0.045); transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.site-body .opportunity-card:hover { transform: translateY(-3px); border-color: rgba(21, 87, 214, 0.45); box-shadow: 0 17px 34px rgba(22, 57, 118, 0.11); }
.site-body .opportunity-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.site-body .opportunity-mark { width: 2.45rem; height: 2.45rem; display: grid; place-items: center; border-radius: 9px; background: #e8f0ff; color: var(--brand-dark); font-family: var(--portal-display); font-size: 1.15rem; font-weight: 700; }
.site-body .opportunity-card-result .opportunity-mark { background: #fbead0; color: #815316; }
.site-body .opportunity-card-expired { border-color: rgba(21, 87, 214, 0.14); background: #fff; }
.site-body .opportunity-card-expired .opportunity-mark { background: #eef4ff; color: var(--brand-blue); }
.site-body .status-badge { margin-left: auto; padding: 0.28rem 0.55rem; border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.site-body .status-badge-closed { background: #f8e2d8; color: #9a482d; }
.site-body .catalogue-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.site-body .catalogue-section-heading h2 { margin: 0.35rem 0 0; color: var(--brand-dark); font-family: var(--portal-display); font-size: 2rem; font-weight: 500; }
.site-body .catalogue-section-heading p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.site-body .opportunity-kind { color: var(--brand); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-align: right; text-transform: uppercase; }
.site-body .opportunity-card h2 { margin: 0; font-family: var(--portal-display); font-size: 1.38rem; font-weight: 500; letter-spacing: -0.025em; line-height: 1.16; }
.site-body .opportunity-card h2 a { color: var(--brand-dark); text-decoration: none; }
.site-body .opportunity-card h2 a:hover, .site-body .opportunity-card-footer a:hover { color: var(--brand); }
.site-body .opportunity-org { margin: 0.45rem 0 0; color: #52637c; font-size: 0.86rem; font-weight: 700; }
.site-body .opportunity-copy { margin: 0.95rem 0 1rem; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.site-body .opportunity-meta { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; padding: 0.75rem 0; border-top: 1px solid #edf0f5; color: var(--muted); font-size: 0.78rem; }
.site-body .opportunity-meta span::before { content: "•"; margin-right: 0.35rem; color: #e8a13c; }
.site-body .opportunity-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 0.65rem; }
.site-body .opportunity-card-footer > span { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.site-body .opportunity-card-footer a { color: var(--brand-dark); font-size: 0.84rem; font-weight: 800; text-decoration: none; }
.site-body .opportunity-card-footer a span { color: var(--brand); font-size: 1.08rem; }
.site-body .catalogue-empty { padding: 4rem 1.5rem; border: 1px solid rgba(21, 87, 214, 0.12); border-radius: 14px; background: #fff; text-align: center; }
.site-body .catalogue-empty > span { color: #e8a13c; font-family: var(--portal-display); font-size: 2rem; }
.site-body .catalogue-empty h2 { margin: 0.45rem 0; color: var(--brand-dark); font-family: var(--portal-display); font-size: 1.5rem; font-weight: 500; }
.site-body .catalogue-empty p { margin: 0; color: var(--muted); }
.site-body .catalogue-pagination { margin-top: 2rem; }
.site-body .catalogue-pagination .pagination { gap: 0.25rem; }
.site-body .catalogue-pagination .page-link { border: 1px solid #dfe6f1; border-radius: 7px; color: var(--brand-dark); }
.site-body .catalogue-pagination .active .page-link { border-color: var(--brand); background: var(--brand); }
@media (max-width: 991px) { .site-body .catalogue-intro { align-items: start; flex-direction: column; } .site-body .catalogue-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-body .filter-field-search { grid-column: 1 / -1; } }
@media (max-width: 575px) { .site-body .catalogue-section { padding: 2.25rem 0 3rem; } .site-body .catalogue-intro h1 { font-size: 2.45rem; } .site-body .catalogue-filter, .site-body .opportunity-grid { grid-template-columns: 1fr; } .site-body .catalogue-toolbar { align-items: flex-start; flex-direction: column; } .site-body .catalogue-toolbar p span { display: none; } }

/* Mobile layout safeguards for the public homepage. */
.site-body {
    overflow-x: hidden;
}

@media (max-width: 991px) {
    .site-body .top-strip .container,
    .site-body .site-header > .container {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .site-body .hero-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-body .feature-ribbon {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575px) {
    .site-body .top-strip {
        padding: 0.75rem 0;
    }

    .site-body .top-strip-links {
        gap: 1.25rem;
    }

    .site-body .site-header > .container {
        padding-top: 1.15rem;
        padding-bottom: 1.15rem;
        gap: 1rem !important;
    }

    .site-body .brand-link {
        width: 100%;
        padding-left: 3.1rem;
    }

    .site-body .brand-link strong {
        font-size: 1.45rem;
    }

    .site-body .site-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.25rem;
    }

    .site-body .site-nav a {
        padding: 0.58rem 0.45rem;
        font-size: 0.92rem;
        text-align: center;
    }

    .site-body .hero-panel h1 {
        max-width: none;
        font-size: clamp(2.35rem, 12vw, 3.15rem);
        line-height: 1;
    }

    .site-body .hero-panel p {
        font-size: 0.98rem;
    }

    .site-body .hero-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-body .search-bar {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    .site-body .search-bar button {
        width: 100%;
        margin-top: 0 !important;
    }

    .site-body .feature-ribbon > div {
        padding: 1rem 1.1rem;
    }

    .site-body .public-card {
        padding: 1.1rem;
    }
}

/* Job detail: content-first application view. */
.site-body .job-detail-page {
    padding-top: 2.5rem;
}
.site-body .job-detail-page .detail-breadcrumb .breadcrumb {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.88rem;
}
.site-body .job-detail-page .detail-breadcrumb a {
    color: var(--brand);
}
.site-body .job-detail-page .detail-hero {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.62fr);
    gap: clamp(2rem, 4vw, 4rem);
    padding: clamp(2rem, 3.5vw, 3.25rem);
    border: 1px solid rgba(21, 87, 214, 0.13);
    border-radius: 20px;
    background: linear-gradient(115deg, #ffffff 0%, #fbfdff 60%, #eff5ff 100%);
    box-shadow: 0 22px 48px rgba(22, 57, 118, 0.09);
}
.site-body .job-detail-page .detail-hero::before {
    background: radial-gradient(circle at 100% 5%, rgba(21, 87, 214, 0.14), transparent 30%);
}
.site-body .job-detail-page .hero-tags {
    margin: 0;
}
.site-body .job-detail-page .hero-tags span {
    border-radius: 5px;
    background: #fff;
    color: var(--brand-dark);
    font-size: 0.73rem;
}
.site-body .job-detail-page .detail-hero h1 {
    max-width: 32ch;
    margin: 1.15rem 0 1rem;
    color: #253b63;
    font-family: var(--portal-display);
    font-size: clamp(2rem, 2.5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.06;
}
.site-body .detail-featured-image { width: min(100%, 25rem); margin-bottom: 1.15rem; overflow: hidden; border-radius: 1rem; background: rgba(255, 255, 255, .85); }
.site-body .detail-featured-image img { display: block; width: 100%; max-height: 14rem; object-fit: contain; }
.site-body .job-overview-image { margin: 0; padding: .75rem; border: 1px solid rgba(21, 87, 214, .12); border-radius: 1rem; background: #f8fbff; text-align: center; }
.site-body .job-overview-image img { display: block; width: auto; max-width: 100%; height: auto; max-height: 28rem; margin: 0 auto; object-fit: contain; border-radius: .65rem; }
.site-body .job-detail-page .detail-info-item a { overflow-wrap: anywhere; }
.site-body .job-detail-page .detail-hero p {
    max-width: 100ch;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}
.site-body .detail-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin: 1.6rem 0 0;
}
.site-body .detail-hero-actions .btn {
    padding: 0.8rem 1.15rem;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(21, 87, 214, 0.18);
}
.site-body .detail-hero-secondary {
    color: var(--brand-dark);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}
.site-body .job-detail-page .detail-highlights {
    gap: 0.65rem;
    margin-top: 0;
}
.site-body .job-detail-page .detail-highlights div {
    padding: 0.8rem 0.95rem;
    border: 1px solid #e8edf5;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.82);
}
.site-body .job-detail-page .detail-highlights span,
.site-body .job-detail-page .detail-stat-card span {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
}
.site-body .job-detail-page .detail-highlights strong {
    font-size: 0.9rem;
}
.site-body .job-detail-page .detail-hero-side {
    gap: 0.75rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(21, 87, 214, 0.1);
    border-radius: 14px;
    background: rgba(247, 250, 255, 0.94);
}

/* Distinct detail banners keep recruitment and result updates visually separate. */
.site-body .job-detail-view .job-detail-hero,
.site-body .result-detail-view .result-detail-hero {
    isolation: isolate;
}

.site-body .job-detail-view .job-detail-hero {
    background: linear-gradient(118deg, #102d62 0%, #1e5fc3 62%, #4ca9e8 100%);
    border-color: rgba(126, 190, 255, 0.3);
    box-shadow: 0 24px 52px rgba(16, 53, 116, 0.22);
}

.site-body .job-detail-view .job-detail-hero::before {
    background:
        radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.22), transparent 24%),
        radial-gradient(circle at 65% 110%, rgba(121, 215, 255, 0.24), transparent 33%);
}

.site-body .job-detail-view .job-detail-hero::after,
.site-body .result-detail-view .result-detail-hero::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -8rem;
    z-index: 0;
    width: 21rem;
    height: 21rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 0 2.5rem rgba(255, 255, 255, 0.04), 0 0 0 5rem rgba(255, 255, 255, 0.025);
}

.site-body .job-detail-view .job-detail-hero h1,
.site-body .result-detail-view .result-detail-hero h1 {
    color: #fff;
    font-size: clamp(1.85rem, 3vw, 2.75rem);
}

.site-body .job-detail-view .job-detail-hero p,
.site-body .result-detail-view .result-detail-hero p {
    color: rgba(255, 255, 255, 0.86);
}

.site-body .job-detail-view .job-detail-hero .hero-tags span,
.site-body .result-detail-view .result-detail-hero .hero-tags span {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.site-body .job-detail-view .job-detail-hero .detail-hero-secondary,
.site-body .result-detail-view .result-detail-hero .detail-hero-secondary {
    color: #fff;
}

.site-body .job-detail-view .job-detail-hero .detail-hero-side {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(8, 35, 83, 0.32);
}

.site-body .job-detail-view .job-detail-hero .detail-hero-side-label,
.site-body .job-detail-view .job-detail-hero .detail-stat-card span,
.site-body .job-detail-view .job-detail-hero .detail-stat-card strong {
    color: #fff;
}

.site-body .job-detail-view .job-detail-hero .detail-stat-card {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

.site-body .result-detail-view .result-detail-hero {
    background: linear-gradient(118deg, #2b174e 0%, #713170 57%, #c95768 100%);
    border-color: rgba(255, 188, 195, 0.34);
    box-shadow: 0 24px 52px rgba(74, 28, 87, 0.2);
}

.site-body .result-detail-view .result-detail-hero::before {
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.2), transparent 26%),
        radial-gradient(circle at 95% 95%, rgba(255, 191, 202, 0.25), transparent 30%);
}

.site-body .result-detail-view .result-detail-hero .detail-hero-side {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(55, 20, 66, 0.34);
}

.site-body .result-detail-view .result-detail-hero .detail-hero-side-label,
.site-body .result-detail-view .result-detail-hero .detail-stat-card span,
.site-body .result-detail-view .result-detail-hero .detail-stat-card strong {
    color: #fff;
}

.site-body .result-detail-view .result-detail-hero .detail-stat-card {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}
.site-body .detail-hero-side-label {
    color: var(--brand);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.site-body .job-detail-page .detail-stat-card {
    padding: 1rem 0;
    border: 0;
    border-bottom: 1px solid #e9eef6;
    border-radius: 0;
    background: transparent;
}
.site-body .job-detail-page .detail-stat-card:last-child {
    border-bottom: 0;
}
.site-body .job-detail-page .detail-stat-card strong {
    color: var(--brand-dark);
    font-family: var(--portal-display);
    font-size: 1.22rem;
    font-weight: 500;
}
.site-body .job-detail-page .detail-section-card,
.site-body .job-detail-page .detail-sidebar-card {
    border: 1px solid rgba(21, 87, 214, 0.1);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(22, 57, 118, 0.05);
}
.site-body .job-detail-page .detail-section-card {
    padding: clamp(1.35rem, 2vw, 2rem);
}
.site-body .job-detail-page .detail-section-kicker {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--brand);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.site-body .job-detail-page .detail-section-intro {
    margin: -0.25rem 0 1.2rem;
    color: var(--muted);
    font-size: 0.88rem;
}
.site-body .job-detail-page .detail-group-title {
    margin: 1.5rem 0 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8edf5;
    color: #355179;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.site-body .job-detail-page .section-head h2 {
    font-family: var(--portal-display);
    font-weight: 500;
}
.site-body .job-detail-page .section-pill {
    border-radius: 5px;
    background: #eef4ff;
    color: var(--brand);
    font-size: 0.68rem;
}
.site-body .job-detail-page .detail-info-item,
.site-body .job-detail-page .detail-date-item {
    padding: 1rem 1.1rem;
    border: 1px solid #e5ebf4;
    border-radius: 8px;
    background: #fbfcfe;
}
.site-body .job-detail-page .detail-info-item {
    box-shadow: inset 3px 0 0 #d5e5fb;
}
.site-body .job-detail-page .detail-info-item span {
    color: #6b7d98;
    font-size: 0.67rem;
    letter-spacing: 0.09em;
}
.site-body .job-detail-page .detail-info-item strong {
    margin-top: 0.38rem;
    color: #1c355d;
    font-size: 0.94rem;
}
.site-body .job-detail-page .detail-copy {
    color: #41516a;
    font-size: 0.96rem;
    line-height: 1.75;
}
.site-body .job-detail-page .detail-sidebar-card:first-child {
    position: static;
}
.site-body .job-detail-page .detail-sidebar-card .btn {
    border-radius: 8px;
    padding-block: 0.76rem;
}
.site-body .job-detail-page .detail-link-list {
    gap: 0.7rem;
}
.site-body .job-detail-page .detail-action-link {
    display: grid;
    grid-template-columns: 2.55rem minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem;
    border: 1px solid #e2eaf6;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 4px 14px rgba(20, 59, 124, 0.035);
}
.site-body .job-detail-page .detail-action-link:hover {
    border-color: #bfd4f5;
    box-shadow: 0 12px 24px rgba(21, 87, 214, 0.1);
    transform: translateY(-2px);
}
.site-body .job-detail-page .detail-link-icon {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    margin: 0;
    place-items: center;
    border-radius: 9px;
    background: #eaf2ff;
    color: var(--brand);
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0;
}
.site-body .job-detail-page .detail-link-copy {
    min-width: 0;
    margin: 0;
}
.site-body .job-detail-page .detail-link-copy small {
    display: block;
    margin-bottom: 0.18rem;
    color: var(--brand);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.site-body .job-detail-page .detail-link-copy strong {
    overflow-wrap: anywhere;
    color: #18345f;
    font-size: 0.88rem;
    line-height: 1.3;
}
.site-body .job-detail-page .detail-link-copy em {
    display: block;
    margin-top: 0.2rem;
    overflow: hidden;
    color: #7a889e;
    font-size: 0.7rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.site-body .job-detail-page .detail-link-arrow {
    margin: 0;
    color: #8aa5cd;
    font-size: 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}
.site-body .job-detail-page .detail-action-link:hover .detail-link-arrow {
    color: var(--brand);
    transform: translate(2px, -2px);
}
.site-body .document-viewer-page {
    min-height: 72vh;
    padding: 2.25rem 0 4rem;
}
.site-body .document-viewer-shell {
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(21, 87, 214, 0.12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(22, 57, 118, 0.09);
}
.site-body .document-viewer-head {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.4rem;
    border-bottom: 1px solid #e3eaf4;
    background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 100%);
}
.site-body .document-viewer-title {
    display: flex;
    gap: 1rem;
    align-items: center;
    min-width: 0;
}
.site-body .document-type-badge,
.site-body .document-file-mark {
    display: grid;
    flex: 0 0 auto;
    width: 3.25rem;
    height: 3.75rem;
    place-items: center;
    border-radius: 9px;
    background: #e7f0ff;
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}
.site-body .document-viewer-title h1 {
    margin: 0;
    overflow: hidden;
    color: #17335e;
    font-family: var(--portal-display);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.site-body .document-viewer-title p {
    margin: 0.28rem 0 0;
    color: #71809a;
    font-size: 0.78rem;
}
.site-body .document-viewer-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.65rem;
}
.site-body .document-viewer-actions .btn {
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
}
.site-body .document-frame-wrap {
    height: min(76vh, 920px);
    min-height: 620px;
    background: #dfe5ee;
}
.site-body .document-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}
.site-body .document-preview-fallback {
    display: grid;
    min-height: 480px;
    padding: 3rem 1.5rem;
    place-items: center;
    align-content: center;
    text-align: center;
}
.site-body .document-preview-fallback h2 {
    margin: 1rem 0 0.5rem;
    color: #17335e;
    font-size: 1.35rem;
}
.site-body .document-preview-fallback p {
    max-width: 580px;
    margin-bottom: 1.25rem;
    color: var(--muted);
}
@media (max-width: 1199px) {
    .site-body .job-detail-page .detail-sidebar-card:first-child { position: static; }
}
@media (max-width: 991px) {
    .site-body .job-detail-page .detail-hero { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 575px) {
    .site-body .job-detail-page { padding-top: 1.5rem; }
    .site-body .job-detail-page .detail-hero { padding: 1.5rem; border-radius: 14px; }
    .site-body .job-detail-page .detail-hero h1 { font-size: 2.35rem; }
    .site-body .job-detail-page .detail-highlights { grid-template-columns: 1fr; }
    .site-body .document-viewer-head { align-items: flex-start; flex-direction: column; }
    .site-body .document-viewer-title h1 { white-space: normal; }
    .site-body .document-viewer-actions { width: 100%; }
    .site-body .document-viewer-actions .btn { flex: 1; }
    .site-body .document-frame-wrap { min-height: 520px; }
}

/* Keep display type prominent without overpowering the page. */
.site-body .hero-panel h1 {
    max-width: 30ch;
    color: #263c64;
    font-size: clamp(2.55rem, 2vw, 4rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.045em;
}
.site-body .job-detail-page .detail-hero h1,
.site-body .catalogue-intro h1,
.site-body .opportunity-card h2 {
    color: #263c64;
}

/* Banner image and final contrast overrides. Keep copy readable over the student photo. */
.site-body .job-detail-view .job-detail-hero {
    background-image:
        linear-gradient(90deg, rgba(8, 35, 83, 0.96) 0%, rgba(18, 73, 153, 0.88) 48%, rgba(18, 73, 153, 0.28) 100%),
        url("../images/student-banner.png");
    background-position: center, right center;
    background-size: cover, auto 135%;
    background-repeat: no-repeat;
}

.site-body .result-detail-view .result-detail-hero {
    background-image:
        linear-gradient(90deg, rgba(38, 17, 69, 0.96) 0%, rgba(91, 35, 93, 0.88) 48%, rgba(91, 35, 93, 0.28) 100%),
        url("../images/student-banner.png");
    background-position: center, right center;
    background-size: cover, auto 135%;
    background-repeat: no-repeat;
}

.site-body .job-detail-view .job-detail-hero h1,
.site-body .result-detail-view .result-detail-hero h1 {
    color: #fff !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2);
}

/* PDF viewer header inspired by the compact 9Curry document layout. */
.site-body .document-viewer-page {
    padding: 0 0 3rem;
    background: #e7edf5;
}

.site-body .document-viewer-page > .container-fluid {
    max-width: 100%;
}

.site-body .document-viewer-shell {
    min-height: 80vh;
    border: 0;
    border-radius: 0;
    background: #252525;
    box-shadow: none;
}

.site-body .document-viewer-head {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.7fr) minmax(240px, 0.9fr) auto;
    gap: 1.25rem;
    align-items: center;
    padding: 0.85rem clamp(1rem, 3vw, 2.4rem);
    border: 0;
    background: linear-gradient(105deg, #07518e 0%, #0969ad 58%, #07518e 100%);
    color: #fff;
}

.site-body .document-viewer-brand,
.site-body .document-viewer-title,
.site-body .document-viewer-actions {
    display: flex;
    min-width: 0;
    align-items: center;
}

.site-body .document-viewer-brand {
    gap: 0.65rem;
}

.site-body .document-viewer-brand-mark {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.site-body .document-viewer-brand strong,
.site-body .document-viewer-brand small {
    display: block;
}

.site-body .document-viewer-brand strong {
    font-size: 0.92rem;
}

.site-body .document-viewer-brand small {
    margin-top: 0.12rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
}

.site-body .document-viewer-title {
    gap: 0.85rem;
}

.site-body .document-viewer-back {
    flex: 0 0 auto;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.site-body .document-viewer-back:hover,
.site-body .document-viewer-source:hover {
    color: #fff;
    text-decoration: underline;
}

.site-body .document-viewer-title h1 {
    max-width: 52ch;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-family: var(--portal-body);
    font-size: clamp(0.95rem, 1.35vw, 1.2rem);
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-body .document-viewer-title p {
    margin: 0.2rem 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.72rem;
}

.site-body .document-viewer-source {
    justify-self: end;
    color: #fff;
    font-size: 0.78rem;
    text-align: right;
    text-decoration: underline;
    text-underline-offset: 0.15rem;
}

.site-body .document-viewer-actions {
    justify-content: flex-end;
    gap: 0.55rem;
}

.site-body .document-viewer-actions .document-type-badge {
    width: auto;
    height: auto;
    padding: 0.35rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.16);
    color: #fff;
    font-size: 0.62rem;
}

.site-body .document-viewer-download {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
}

.site-body .document-viewer-download:hover {
    background: rgba(255, 255, 255, 0.14);
}

.site-body .document-frame-wrap {
    height: min(84vh, 1100px);
    min-height: 680px;
    padding: 0.65rem clamp(0.35rem, 2vw, 1.1rem) 1.1rem;
    background: #2c2c2c;
}

.site-body .document-frame-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

@media (max-width: 991px) {
    .site-body .document-viewer-head {
        grid-template-columns: 1fr auto;
    }

    .site-body .document-viewer-title {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .site-body .document-viewer-source {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        text-align: left;
    }

    .site-body .document-viewer-actions {
        grid-column: 2;
        grid-row: 3;
    }
}

@media (max-width: 575px) {
    .site-body .document-viewer-head {
        gap: 0.75rem;
        padding: 0.8rem 0.9rem;
    }

    .site-body .document-viewer-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .site-body .document-viewer-title h1 {
        white-space: normal;
    }

    .site-body .document-viewer-back span {
        display: none;
    }

    .site-body .document-viewer-source {
        max-width: 72vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-body .document-frame-wrap {
        height: 76vh;
        min-height: 520px;
        padding: 0.25rem;
    }
}

.site-body .job-detail-view .job-detail-hero .detail-hero-side,
.site-body .result-detail-view .result-detail-hero .detail-hero-side {
    color: #fff;
}

@media (max-width: 575px) {
    .site-body .job-detail-view .job-detail-hero,
    .site-body .result-detail-view .result-detail-hero {
        background-size: cover, auto 100%;
        background-position: center, 86% center;
    }
}

/* Shared public-page type and surface treatment. */
.site-body .content-section:not(.detail-page) {
    padding: 3rem 0 4rem;
}
.site-body .content-section .section-head h1,
.site-body .content-section .public-card > h1,
.site-body .content-section .public-card > h2 {
    color: #263c64;
    font-family: var(--portal-display);
    font-weight: 500;
    letter-spacing: -0.025em;
}
.site-body .content-section .public-card .content-copy {
    color: #4e607b;
    line-height: 1.75;
}
.site-body .content-section .public-card .content-copy h2,
.site-body .content-section .public-card .content-copy h3 {
    color: #263c64;
    font-family: var(--portal-display);
    font-weight: 500;
}
@media (max-width: 991px) {
    .admin-shell,
    .hero-panel,
    .feature-ribbon {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        position: relative;
        height: auto;
    }
    .filter-bar {
        grid-template-columns: 1fr;
    }
    .detail-hero,
    .detail-info-grid,
    .detail-date-grid,
    .detail-highlights {
        grid-template-columns: 1fr;
    }
    .site-nav,
    .top-strip-links,
    .page-head-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Shared pagination for public catalogues and administration tables. */
.portal-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-top: 1.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(21, 87, 214, 0.1);
}
.portal-pagination-summary {
    color: var(--muted);
    font-size: 0.83rem;
    font-weight: 700;
}
.portal-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0;
}
.portal-pagination .page-link {
    min-width: 2.2rem;
    border: 1px solid #d8e1f0;
    border-radius: 7px;
    background: #fff;
    color: var(--brand-dark);
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}
.portal-pagination a.page-link:hover {
    border-color: var(--brand);
    background: #eef4ff;
    color: var(--brand);
}
.portal-pagination .active .page-link {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}
.portal-pagination .disabled .page-link {
    color: #a3afc0;
    pointer-events: none;
}
.admin-body .portal-pagination {
    margin-top: 1rem;
    border-top-color: rgba(31, 94, 255, 0.1);
}
@media (max-width: 575px) {
    .portal-pagination { align-items: flex-start; flex-direction: column; }
}

/* Application-wide foundation: Inter typography and a consistent blue action theme. */
body,
button,
input,
select,
textarea {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-body {
    --portal-display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-body .hero-panel h1,
.site-body .catalogue-intro h1,
.site-body .job-detail-page .detail-hero h1,
.site-body .opportunity-card h2,
.site-body .section-head h2,
.site-body .mini-section-head h2 {
    font-family: var(--portal-display);
    font-weight: 700;
}
.btn,
.site-body .btn,
.admin-body .btn {
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
}
.btn-primary,
.site-body .btn-primary,
.admin-body .btn-primary {
    background: #2165bd;
    border-color: #2165bd;
    box-shadow: none;
}
.btn-primary:hover,
.site-body .btn-primary:hover,
.admin-body .btn-primary:hover {
    background: #174d95;
    border-color: #174d95;
}
.btn-outline-primary {
    border-color: #aac7ed;
    color: #2165bd;
}
.btn-outline-primary:hover {
    background: #edf5ff;
    border-color: #2165bd;
    color: #174d95;
}

/* Administration shell inspired by the supplied reference. */
.admin-body {
    background: #f4f7fb;
    color: #14233d;
}
.admin-shell {
    grid-template-columns: 300px minmax(0, 1fr);
}
.admin-sidebar {
    display: flex;
    flex-direction: column;
    padding: 1.65rem 1rem 1.15rem;
    border: 0;
    background: linear-gradient(180deg, #102f57 0%, #092343 100%);
    box-shadow: 12px 0 28px rgba(16, 47, 87, 0.08);
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 0.5rem 1.6rem;
    color: #fff;
    text-decoration: none;
}
.admin-brand-mark {
    width: 2.7rem;
    height: 2.7rem;
    display: grid;
    place-items: center;
    border: 2px solid #b8d8ff;
    border-radius: 9px;
    background: #fff;
    color: #165baf;
    font-size: 0.78rem;
    font-weight: 800;
}
.admin-brand strong,
.admin-brand small {
    display: block;
}
.admin-brand strong {
    font-size: 1rem;
    font-weight: 800;
}
.admin-brand small {
    margin-top: 0.2rem;
    color: #9ec6f8;
    font-size: 0.76rem;
}
.admin-sidebar .admin-profile-card {
    margin: 0 0.35rem 1.4rem;
    padding: 0.82rem;
    border: 1px solid rgba(199, 224, 255, 0.15);
    border-radius: 12px;
    background: rgba(117, 165, 222, 0.16);
}
.admin-sidebar .admin-profile-card .small {
    color: #a8c6eb !important;
}
.admin-sidebar .admin-avatar {
    width: 2.55rem;
    height: 2.55rem;
    background: #7ab4f7;
    color: #113566;
}
.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow-y: auto;
    padding: 0 0.15rem 1rem;
}
.admin-nav-label {
    margin: 1rem 0.55rem 0.4rem;
    color: #77a9e5;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 9px;
    color: #eaf3ff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}
.admin-nav > a:hover,
.admin-nav > a.active {
    background: rgba(139, 185, 242, 0.22);
    color: #fff;
}
.admin-nav > a.active {
    box-shadow: inset 3px 0 0 #5ba5ff;
}
.admin-nav-icon {
    width: 1.1rem;
    color: #bedbff;
    font-size: 1.15rem;
    line-height: 1;
    text-align: center;
}
.admin-subnav {
    display: block;
    margin: -0.05rem 0 0.35rem 2.3rem;
    border-left: 1px solid rgba(169, 207, 249, 0.22);
}
.admin-nav > a.active + .admin-subnav,
.admin-subnav:hover {
    display: block;
}
.admin-subnav a {
    min-height: 1.9rem;
    padding: 0.35rem 0.7rem;
    border-radius: 0;
    color: #b9d4f4;
    font-size: 0.77rem;
    font-weight: 600;
}
.admin-subnav a:hover {
    color: #fff;
}
.admin-subnav a.active {
    color: #fff;
    font-weight: 800;
}
.admin-subnav a.active::before {
    content: "";
    width: 0.35rem;
    height: 0.35rem;
    margin-left: -0.88rem;
    border-radius: 50%;
    background: #5ba5ff;
}
.admin-sidebar-footer {
    margin-top: auto;
    padding: 1rem 0.55rem 0;
    border-top: 1px solid rgba(194, 221, 250, 0.13);
}
.admin-sidebar-footer a {
    color: #c5dcf5;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}
.admin-main {
    padding: 1.25rem 2.25rem 2.5rem;
}
.admin-main .page-head {
    margin: -1.25rem -2.25rem 1.75rem;
    padding: 1.1rem 2.25rem;
    border: 0;
    border-bottom: 1px solid #dbe4ef;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}
.admin-main .page-head .h3 {
    font-size: 1.35rem;
    font-weight: 800;
}
.admin-main .page-head .eyebrow {
    color: #6f89aa;
    font-size: 0.67rem;
}
.admin-main .panel-card,
.admin-main .metric-card {
    border: 1px solid #dfe7f1;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(22, 54, 94, 0.05);
}
.admin-main .table thead th {
    background: #f7f9fc;
    color: #64748b;
    font-size: 0.73rem;
}
.admin-main .panel-card,
.admin-main .panel-card .table,
.admin-main .panel-card .form-control,
.admin-main .panel-card .form-select,
.admin-main .panel-card .form-label,
.admin-main .panel-card .form-check-label {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.admin-main .panel-card .table {
    color: #16263f;
    font-size: 0.9rem;
}
.admin-main .panel-card .table th {
    padding: 0.78rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.055em;
}
.admin-main .panel-card .table td {
    padding: 0.76rem 0.65rem;
    font-size: 0.9rem;
    line-height: 1.35;
}
.admin-main .panel-card .form-label {
    margin-bottom: 0.38rem;
    color: #526984;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}
.admin-main .panel-card .form-control,
.admin-main .panel-card .form-select {
    min-height: 43px;
    border-color: #cfdaea;
    border-radius: 8px;
    color: #16263f;
    font-size: 0.9rem;
    font-weight: 500;
}
.admin-main .panel-card textarea.form-control {
    min-height: auto;
    line-height: 1.55;
}
.admin-main .ck-editor__editable_inline {
    min-height: 220px;
    border-bottom-left-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
}
.admin-main .ck.ck-toolbar {
    border-color: #cfdaea !important;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}
.admin-main .ck.ck-editor__main > .ck-editor__editable {
    border-color: #cfdaea !important;
}
.admin-main .cke {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #cfdaea;
}
.admin-main .cke_top {
    background: #f7f9fc;
    border-bottom: 1px solid #dfe7f1;
}
.admin-main .cke_inner,
.admin-main .cke_contents {
    border-radius: 0 0 14px 14px;
}
.admin-main .cke_contents {
    min-height: 220px;
}
.admin-main .admin-rich-editor {
    border: 1px solid #cfdaea;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.admin-main .admin-rich-editor textarea {
    display: none !important;
}
.admin-main .admin-rich-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.7rem;
    background: #f7f9fc;
    border-bottom: 1px solid #dfe7f1;
}
.admin-main .admin-rich-editor__button {
    border: 1px solid #cbd8ea;
    border-radius: 999px;
    background: #fff;
    color: #274264;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.45rem 0.75rem;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.admin-main .admin-rich-editor__button:hover,
.admin-main .admin-rich-editor__button[data-active="1"] {
    background: #2165bd;
    border-color: #2165bd;
    color: #fff;
}
.admin-main .admin-rich-editor__body {
    min-height: 220px;
    padding: 1rem 1.05rem;
    line-height: 1.65;
    color: #16263f;
    outline: none;
}
.admin-main .admin-rich-editor__body:focus {
    box-shadow: inset 0 0 0 2px rgba(33, 101, 189, 0.08);
}
.admin-main .admin-rich-editor__body p {
    margin-bottom: 0.85rem;
}
.admin-main .admin-rich-editor__body blockquote {
    margin: 0 0 0.85rem;
    padding-left: 1rem;
    border-left: 3px solid #5f9be3;
    color: #4a5f7c;
}
.admin-main .panel-card .form-control:focus,
.admin-main .panel-card .form-select:focus {
    border-color: #5f9be3;
    box-shadow: 0 0 0 3px rgba(33, 101, 189, 0.12);
}
.admin-main .panel-card .form-check-label {
    color: #3f536e;
    font-size: 0.88rem;
    font-weight: 600;
}
.admin-main .panel-card .btn {
    min-height: 40px;
    font-size: 0.86rem;
}
.admin-panel {
    margin-bottom: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #dfe7f1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(22, 54, 94, 0.05);
}
.admin-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.admin-panel-header h2 {
    margin: 0 0 0.25rem;
    color: #16263f;
    font-size: 1.08rem;
    font-weight: 800;
}
.admin-panel-header p {
    max-width: 48rem;
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.5;
}
.crawler-url-form {
    max-width: 58rem;
}
.crawler-url-form .form-control {
    min-height: 44px;
    border-color: #cfdaea;
    border-radius: 8px;
    color: #16263f;
    font-size: 0.9rem;
}
.crawler-url-form .form-control:focus {
    border-color: #5f9be3;
    box-shadow: 0 0 0 3px rgba(33, 101, 189, 0.12);
}
.crawler-source {
    margin-bottom: 1.25rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #d8e6f8;
    border-radius: 9px;
    background: #f6faff;
    color: #526984;
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}
.crawler-preview-group {
    margin-top: 1.2rem;
}
.crawler-preview-group h3 {
    margin: 0 0 0.65rem;
    color: #526984;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.crawler-field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0;
}
.crawler-field-grid > div {
    min-width: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e3ebf4;
    border-radius: 9px;
    background: #fbfcfe;
}
.crawler-field-grid dt {
    margin-bottom: 0.34rem;
    color: #71829a;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}
.crawler-field-grid dd {
    margin: 0;
    color: #1b2b43;
    font-size: 0.87rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.crawler-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1rem;
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.86rem;
}
.crawler-links a { overflow-wrap: anywhere; }
.crawler-description {
    margin-top: 1.25rem;
    padding: 0.9rem;
    border: 1px solid #dfe7f1;
    border-radius: 9px;
    color: #40536c;
    font-size: 0.86rem;
    line-height: 1.6;
}
.crawler-description summary {
    cursor: pointer;
    color: #1e5dab;
    font-weight: 800;
}
.crawler-description > div { margin-top: 0.85rem; }

.import-review-form {
    display: grid;
    gap: 1.15rem;
}
.import-review-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.15rem;
    padding: 1rem 1.15rem;
    border: 1px solid #bfe5d2;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0fbf6 0%, #f8fcff 100%);
    color: #214b3a;
}
.import-review-icon {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 50%;
    background: #16845b;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}
.import-review-banner strong { display: block; font-size: 0.96rem; }
.import-review-banner p { margin: 0.15rem 0 0; color: #5b7469; font-size: 0.84rem; }
.admin-main .import-section { padding: 1.35rem; }
.import-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #e5ebf3;
}
.import-section-head > div { display: flex; align-items: center; gap: 0.65rem; }
.import-section-head > div > span {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #2469bd;
    font-size: 0.72rem;
    font-weight: 900;
}
.import-section-head h2 { margin: 0; color: #172c49; font-size: 1.02rem; font-weight: 800; }
.import-section-head p { margin: 0; color: #74849a; font-size: 0.8rem; }
.import-check {
    padding: 0.85rem 1rem 0.85rem 2.6rem;
    border: 1px solid #dce6f3;
    border-radius: 10px;
    background: #f8fbff;
}
.import-save-bar {
    position: sticky;
    bottom: 1rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid #d6e1ef;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(25, 52, 86, 0.16);
    backdrop-filter: blur(8px);
}
.import-save-bar strong, .import-save-bar small { display: block; }
.import-save-bar strong { color: #172c49; }
.import-save-bar small { margin-top: 0.12rem; color: #74849a; }
.import-upload-card { max-width: 780px; margin: 2rem auto; padding: 2rem; text-align: center; }
.import-upload-icon { display: grid; width: 4rem; height: 4rem; margin: 0 auto 1rem; place-items: center; border-radius: 18px; background: #e9f2ff; color: #2165b9; font-size: 1.8rem; font-weight: 800; }
.import-upload-copy h2 { margin: 0; color: #172c49; font-size: 1.35rem; }
.import-upload-copy p { max-width: 580px; margin: 0.55rem auto 1.25rem; color: #697b92; }
.import-file-drop { display: grid; gap: 0.25rem; margin-bottom: 1rem; padding: 1.4rem; border: 2px dashed #b9cee8; border-radius: 14px; background: #f7faff; cursor: pointer; }
.import-file-drop strong { color: #1e5dab; }
.import-file-drop span { color: #78899d; font-size: 0.8rem; }
.import-file-drop input { max-width: 420px; margin: 0.65rem auto 0; }
@media (max-width: 991px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: relative; height: auto; }
    .admin-subnav { display: block; }
    .admin-main { padding: 1.25rem; }
    .admin-main .page-head { margin: -1.25rem -1.25rem 1.25rem; padding: 1rem 1.25rem; }
    .crawler-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .import-section-head { align-items: start; flex-direction: column; }
}
@media (max-width: 575px) {
    .admin-panel { padding: 1rem; }
    .admin-panel-header { flex-direction: column; }
    .crawler-field-grid,
    .crawler-links { grid-template-columns: 1fr; }
    .import-review-banner { grid-template-columns: auto 1fr; }
    .import-review-banner .badge { grid-column: 2; justify-self: start; }
    .import-save-bar { align-items: stretch; flex-direction: column; }
    .import-save-bar .d-flex { display: grid !important; grid-template-columns: 1fr; }
}
.url-preview { max-width: 1180px; margin: 0 auto; }
.url-extractor-page { max-width:1180px; margin:0 auto; }
.url-extractor-hero { display:flex; align-items:center; gap:20px; margin-bottom:22px; padding:28px 32px; border-radius:18px; background:linear-gradient(135deg,#123b78,#1f5eff); color:#fff; box-shadow:0 14px 30px rgba(18,59,120,.18); }
.url-extractor-hero .eyebrow { color:#cfe0ff; }
.url-extractor-hero h1 { margin:5px 0 6px; color:#fff; font-size:2.25rem; }
.url-extractor-hero p { margin:0; color:#e3edff; font-size:1rem; }
.url-extractor-icon { display:grid; place-items:center; width:58px; height:58px; border-radius:16px; background:rgba(255,255,255,.16); font-size:2rem; }
.url-extractor-card { padding:32px; }
.url-extractor-step { display:flex; gap:16px; align-items:flex-start; margin-bottom:26px; }
.url-extractor-step > span { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:#e8f0ff; color:#1f5eff; font-weight:800; }
.url-extractor-step h2 { margin:0 0 4px; font-size:1.25rem; }
.url-extractor-step p { margin:0; color:#687792; }
.url-extractor-form { display:grid; grid-template-columns:minmax(0,1fr) 180px 150px; gap:14px; align-items:end; }
.url-extractor-form label { display:flex; flex-direction:column; gap:8px; font-weight:700; color:#334155; }
.url-extractor-form small { color:#8a97ab; font-weight:400; }
.url-type-field { display:flex; flex-direction:column; gap:8px; font-weight:700; color:#334155; }
.content-type-options { display:flex; gap:8px; }
.content-type-option { position:relative; display:flex; align-items:center; gap:9px; min-height:48px; padding:7px 11px; border:1px solid #dbe4f1; border-radius:10px; background:#fff; cursor:pointer; transition:.2s; }
.content-type-option input { position:absolute; opacity:0; }
.content-type-option:has(input:checked) { border-color:#2d6bdb; background:#edf4ff; box-shadow:0 0 0 2px rgba(45,107,219,.12); }
.content-type-icon { display:grid; place-items:center; width:28px; height:28px; border-radius:8px; background:#e8f0ff; color:#1f5eff; font-weight:800; }
.content-type-option strong { display:block; font-size:.9rem; }
.content-type-option small { display:block; color:#8a97ab; font-size:.72rem; font-weight:500; }
.url-extract-button { min-height:48px; display:flex; align-items:center; justify-content:center; gap:12px; }
.url-extractor-note { display:flex; gap:10px; margin-top:24px; padding:14px 16px; border-radius:10px; background:#f5f8ff; color:#536176; }
.url-extractor-note p { margin:0; font-size:.92rem; }
@media(max-width:760px){.url-extractor-hero{padding:24px;}.url-extractor-form{grid-template-columns:1fr;}.url-extract-button{width:100%;}.url-extractor-card{padding:22px;}}
.faq-list { display:grid; gap:10px; }
.faq-item { border:1px solid #e5ebf4; border-radius:10px; padding:14px 18px; background:#fbfdff; }
.faq-item summary { cursor:pointer; font-weight:700; color:#1b2840; }
.faq-answer { margin-top:12px; color:#536176; line-height:1.65; }
.faq-answer p { margin:0; }
.faq-answer p + p, .faq-answer ol + p { margin-top:10px; }
.faq-answer ol { margin:8px 0 0; padding-left:1.4rem; }
.faq-answer li + li { margin-top:5px; }
.url-preview-head { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; padding-bottom:24px; border-bottom:1px solid #e5ebf4; margin-bottom:24px; }
.url-preview-head h1 { margin:.35rem 0; }
.url-preview-head p { color:#64748b; margin:0; }
.url-type-badge { background:#e8f0ff; color:#1d5fc4; border-radius:999px; padding:8px 14px; font-weight:700; }
.url-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.url-field { display:flex; flex-direction:column; gap:7px; font-weight:600; color:#334155; }
.url-field-full_description { grid-column:1/-1; }
.url-field-short_description,.url-field-important_links { grid-column:1/-1; }
.url-field textarea { resize:vertical; min-height:110px; }
.url-field-full_description textarea { min-height:420px; }
.url-preview-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:24px; padding-top:20px; border-top:1px solid #e5ebf4; }
@media (max-width: 760px) { .url-fields { grid-template-columns:1fr; } .url-field-full_description,.url-field-short_description,.url-field-important_links { grid-column:auto; } .url-preview-head { flex-direction:column; } }
