/**
 * Modern Clean & Minimal Enterprise Frontend Design System
 * PKSF e-Recruitment System
 * Font: Roboto Condensed + Nikosh
 * Signature Green-to-Blue PKSF Gradient Header & Footer
 */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand-primary: #159957;
    --brand-blue: #155799;
    --brand-primary-hover: #117a45;
    --brand-primary-light: #e8f5e9;
    --brand-primary-border: #c8e6c9;
    --brand-dark: #0f172a;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --font-sans: "Roboto Condensed", sans-serif;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 6px;
}

/* Base & Typography Override */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: var(--slate-700) !important;
    background-color: var(--slate-50) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-sans) !important;
    color: var(--slate-900) !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

/* ========================================================
   Header: Signature Green-to-Blue Gradient (Matches Reference)
   ======================================================== */
.pksf-gradient-header {
    background: #159957;
    background: -webkit-linear-gradient(to left, #155799, #159957) !important;
    background: linear-gradient(to left, #155799, #159957) !important;
    padding: 8px 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.pksf-gradient-header .navbar {
    padding: 0 !important;
}

.pksf-header-logo {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Nav Links in Gradient Header */
.pksf-gradient-header .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    padding: 6px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    border-radius: 4px !important;
    transition: all 0.15s ease !important;
}

.pksf-gradient-header .nav-link:hover,
.pksf-gradient-header .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

.pksf-gradient-header .nav-link i {
    font-size: 13px;
    color: #ffffff;
}

/* ========================================================
   Hero Banner with career.jpg (Matches Reference)
   ======================================================== */
.page-header.page-header_align_center {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    padding: 100px 0;
    margin-bottom: 24px;
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.55);
}

.page-header_align_center h2,
.page-header_align_center h3 {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========================================================
   Tables & Cards with Signature Gradient Headers
   ======================================================== */
.blueGradient,
.pksf-table-header {
    background: #159957;
    background: -webkit-linear-gradient(to left, #155799, #159957) !important;
    background: linear-gradient(to left, #155799, #159957) !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 10px 18px !important;
    border-radius: 4px 4px 0 0 !important;
}

.pksf-card-wrapper {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pksf-table-body {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.circular-row {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.circular-row:last-child {
    border-bottom: none;
}

.circular-row:hover {
    background: #f8fafc;
}

.circular-row .job-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.4;
}

.circular-row .job-title:hover {
    color: #159957;
}

.circular-row .deadline-date {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.empty-circular-row {
    padding: 24px 18px;
    color: #334155;
    font-size: 13.5px;
    font-weight: 500;
    background: #ffffff;
}

/* Notice Board Card */
.pksf-notice-card {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pksf-notice-body {
    background: #f8fafc;
    border: 1px solid #eef0f3;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 10px;
}

.notice-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-link-item {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
    margin-bottom: 4px;
}

.notice-link-item:hover {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.notice-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.notice-date-badge {
    font-size: 11.5px;
    color: #64748b;
    padding-left: 20px;
}

/* ========================================================
   Buttons (Crisp 6px Standard)
   ======================================================== */
.btn {
    font-family: var(--font-sans) !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    padding: 5px 14px !important;
    font-size: 12.5px !important;
    height: 32px !important;
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
}

.btn-sm,
.btn-xs {
    padding: 3px 10px !important;
    font-size: 11.5px !important;
    height: 28px !important;
    min-height: 28px !important;
    border-radius: 4px !important;
}

.btn-primary,
.btn-success,
.main-btn.success-btn {
    background-color: #159957 !important;
    border-color: #159957 !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-success:hover,
.main-btn.success-btn:hover {
    background-color: #117a45 !important;
    border-color: #117a45 !important;
    color: #ffffff !important;
    transform: none !important;
}

.btn-outline-primary,
.btn-outline-secondary {
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background-color: #f9fafb !important;
    border-color: #9ca3af !important;
    color: #111827 !important;
    transform: none !important;
}

.btn-danger {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

/* ========================================================
   Form Inputs & Controls (Height 34px, Radius 6px)
   ======================================================== */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    font-family: var(--font-sans) !important;
    font-size: 13px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 5px 10px !important;
    height: 34px !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease !important;
}

textarea.form-control {
    height: auto !important;
    min-height: 80px !important;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #159957 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(21, 153, 87, 0.15) !important;
}

.form-label {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 4px !important;
}

/* ========================================================
   Cards & Layout Components
   ======================================================== */
.card,
.card-style {
    background: #ffffff !important;
    border: 1px solid #eef0f3 !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #eef0f3 !important;
    padding: 12px 18px !important;
}

.card-body {
    padding: 18px !important;
}

/* ========================================================
   Tables (Crisp Enterprise)
   ======================================================== */
.table {
    font-family: var(--font-sans) !important;
    font-size: 12.5px !important;
    margin-bottom: 0 !important;
    color: #1e293b !important;
}

.table thead th {
    background-color: #f8fafc !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 10px 14px !important;
    border-top: none !important;
    border-bottom: 1px solid #eef0f3 !important;
}

.table tbody td {
    padding: 10px 14px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.table tbody tr:hover td {
    background-color: #f8fafc !important;
}

/* Badges */
.badge {
    font-family: var(--font-sans) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
}

.badge.bg-success {
    background-color: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
}

.badge.bg-secondary {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

.badge.bg-danger {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

.badge.bg-warning {
    background-color: #fefce8 !important;
    color: #854d0e !important;
    border: 1px solid #fef08a !important;
}

/* ========================================================
   Footer: Signature Green-to-Blue Gradient (Matches Reference)
   ======================================================== */
.footer.pksf-gradient-footer {
    background: #159957;
    background: -webkit-linear-gradient(to left, #155799, #159957) !important;
    background: linear-gradient(to left, #155799, #159957) !important;
    color: #ffffff !important;
    padding: 10px 0 !important;
    margin-top: auto !important;
    border-top: none !important;
}

.footer.pksf-gradient-footer .copyright {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: var(--font-sans) !important;
}
/* ========================================================
   Welcome page polish (visual only - same palette & content)
   ======================================================== */
.pksf-card-wrapper,
.pksf-notice-card {
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pksf-card-wrapper:hover,
.pksf-notice-card:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}

.pksf-card-wrapper .pksf-table-header,
.pksf-notice-card .pksf-table-header {
    border-radius: 0 !important;
    padding: 14px 22px !important;
    font-size: 14px !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
}

.pksf-card-wrapper .pksf-table-header::after,
.pksf-notice-card .pksf-table-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.28);
}

.pksf-card-wrapper .pksf-table-body,
.pksf-notice-card .pksf-notice-body {
    border: none;
    border-radius: 0;
}

/* Circular rows */
.circular-row {
    padding: 16px 22px;
    position: relative;
    border-left: 3px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}

.circular-row:hover {
    background: linear-gradient(90deg, var(--brand-primary-light), #ffffff 70%);
    border-left-color: var(--brand-primary);
}

.circular-row .job-title {
    display: inline-block;
    transition: color 0.2s ease;
}

.circular-row .job-title i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.circular-row:hover .job-title i {
    transform: translateX(3px);
}

.circular-row .deadline-date {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--slate-100);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.circular-row .badge {
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.empty-circular-row {
    padding: 48px 22px;
    text-align: center;
    color: var(--slate-500);
}

/* Notice board */
.pksf-notice-body {
    background: #ffffff;
    padding: 12px;
}

.notice-link-item {
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid var(--slate-100);
    margin-bottom: 8px;
    background: var(--slate-50);
    transition: all 0.2s ease;
}

.notice-link-item:hover {
    background: #ffffff;
    border-color: var(--brand-primary-border);
    box-shadow: 0 4px 12px rgba(21, 153, 87, 0.12);
    transform: translateY(-1px);
}

.notice-item-title {
    line-height: 1.4;
    align-items: flex-start;
}

.notice-item-title i {
    margin-top: 2px;
}

.notice-date-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px 2px 8px;
    margin-left: 20px;
    padding-left: 8px;
    border-radius: 999px;
    background: var(--brand-primary-light);
    color: var(--brand-primary-hover);
    font-weight: 500;
}

@media (max-width: 575.98px) {
    .circular-row { padding: 14px 16px; }
    .pksf-card-wrapper .pksf-table-header,
    .pksf-notice-card .pksf-table-header { padding: 12px 16px !important; }
}

/* ========================================================
   Nav menu polish (visual only - same palette & content)
   ======================================================== */
.pksf-gradient-header .navbar-nav {
    gap: 4px !important;
}

.pksf-gradient-header .nav-link {
    position: relative;
    padding: 9px 16px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.pksf-gradient-header .nav-link i {
    font-size: 12.5px;
    opacity: 0.9;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.pksf-gradient-header .nav-link:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    transform: translateY(-1px);
}

.pksf-gradient-header .nav-link:hover i {
    transform: scale(1.15);
    opacity: 1;
}

.pksf-gradient-header .nav-link.active {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--brand-primary-hover) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.pksf-gradient-header .nav-link.active i {
    color: var(--brand-primary) !important;
    opacity: 1;
}

.pksf-gradient-header .nav-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.pksf-gradient-header .navbar-toggler {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    transition: background 0.2s ease;
}

.pksf-gradient-header .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.24);
}

@media (max-width: 991.98px) {
    .pksf-gradient-header .navbar-collapse {
        margin-top: 8px;
        padding: 10px;
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.25);
        backdrop-filter: blur(6px);
    }

    .pksf-gradient-header .navbar-nav {
        gap: 2px !important;
    }

    .pksf-gradient-header .nav-link {
        width: 100%;
        border-radius: 8px !important;
        padding: 10px 14px !important;
    }

    .pksf-gradient-header .nav-link:hover {
        transform: none;
    }
}

/* ========================================================
   Page height & responsiveness
   ======================================================== */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* Sticky-footer layout: footer sits at the bottom on short pages, content never forced taller */
.app-layout {
    min-height: 100vh;
    min-height: 100dvh;
}

.app-layout > main {
    flex: 1 0 auto;
    width: 100%;
}

.app-layout .page-content {
    min-height: 0 !important;
    padding: 0 !important;
}

/* Hero banner scales with the viewport instead of a fixed 100px padding */
.page-header.page-header_align_center {
    padding: clamp(36px, 8vw, 100px) 0;
    margin-bottom: clamp(14px, 2.5vw, 24px);
    background-attachment: scroll;
}

.page-header_align_center h2,
.page-header_align_center h3 {
    font-size: clamp(20px, 3.4vw, 28px) !important;
    line-height: 1.25;
}

/* Cards are only as tall as their content (no empty space under a single circular); notice board scrolls instead of stretching the page */
@media (min-width: 992px) {
    .row.g-4 { align-items: flex-start; }
    .row.g-4 > [class*="col-lg-"] {
        display: flex;
        flex-direction: column;
    }

    .pksf-card-wrapper,
    .pksf-notice-card {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    .pksf-table-body,
    .pksf-notice-body {
        flex: 1 1 auto;
    }

    .pksf-notice-body {
        max-height: 70vh;
        overflow-y: auto;
        scrollbar-width: thin;
    }
}

.pksf-notice-body { min-height: 120px; }

/* Tablet */
@media (max-width: 991.98px) {
    main.container { margin-top: 16px !important; margin-bottom: 16px !important; }
    .pksf-notice-body { max-height: 420px; overflow-y: auto; }
    .pksf-gradient-header { padding: 6px 0 !important; }
    .pksf-header-logo { height: 48px; }
}

/* Phone */
@media (max-width: 575.98px) {
    body { font-size: 14px !important; }
    .container { padding-left: 14px; padding-right: 14px; }
    .pksf-header-logo { height: 40px; }

    .circular-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .circular-row .circular-deadline-wrap { text-align: left !important; }
    .circular-row .job-title { word-break: break-word; }

    .pksf-card-wrapper .pksf-table-header { font-size: 12.5px !important; }
    .footer.pksf-gradient-footer .copyright { font-size: 12px !important; text-align: center; }
}

/* Short landscape screens: keep sticky header from eating the viewport */
@media (max-height: 480px) and (orientation: landscape) {
    .pksf-gradient-header { position: static; }
}

/* Active nav indicator: beat Bootstrap's .text-white !important */
.pksf-gradient-header .navbar-nav .nav-link.text-white.active,
.pksf-gradient-header .navbar-nav .nav-link.active {
    color: var(--brand-primary-hover) !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.pksf-gradient-header .navbar-nav .nav-link.active i {
    color: var(--brand-primary) !important;
}





/* =========================================================
   Frontend regular text size: 14px
   ========================================================= */
body,
p, li, td, th, label, small.text-sm,
input, select, textarea, .form-control, .form-select,
.table, .dropdown-item, .alert,
.circular-row .job-title,
.circular-row .deadline-date,
.notice-item-title,
.empty-circular-row,
.footer.pksf-gradient-footer .copyright {
    font-size: 14px !important;
}

.pksf-gradient-header .nav-link {
    font-size: 14px !important;
}

.notice-date-badge,
.text-xs,
.text-sm {
    font-size: 12.5px !important;
}

/* Nikosh (Bangla) - local web font */
@font-face {
    font-family: "Nikosh";
    src: url("../fonts/nikosh.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   Base font size: 15px (public site)
   ========================================================= */
body,
p, li, td, th, label,
input, select, textarea, .form-control, .form-select,
.table, .dropdown-item, .alert,
.circular-row .job-title,
.circular-row .deadline-date,
.notice-item-title,
.empty-circular-row,
.footer.pksf-gradient-footer .copyright,
.pksf-gradient-header .nav-link {
    font-size: 15px !important;
}

.notice-date-badge,
.text-xs,
.text-sm {
    font-size: 13.5px !important;
}

@media (max-width: 575.98px) {
    body { font-size: 15px !important; }
}
