/* =========================================================
   Sarkari Naukri Portal — Design tokens (2026 refresh)
   Palette: cool digital-govt blue/indigo, customizable accent,
            warm amber used sparingly for the "seal" details.
   Type: Fraunces (display/serif), IBM Plex Sans (body),
         IBM Plex Mono (dates, numbers, form data)
   Signature: admit-card style job tickets with a perforated
              stub, circular category "seal" marks, soft
              elevation instead of hard borders.
   --accent is overridden per-request from Site Settings, so
   keep every interactive color referencing it (not a literal).
   ========================================================= */

:root {
    --paper: #F3F5FA;
    --paper-raised: #FFFFFF;
    --ink: #101B34;
    --ink-soft: #566079;
    --line: #E4E8F1;
    --accent: #2F6FED;
    --gold: #F0A202;
    --gold-bg: #FDF1DA;
    --active: #12946B;
    --active-bg: #E1F6EC;
    --upcoming: #7C5CFC;
    --upcoming-bg: #F0EBFF;
    --closed: #E23E57;
    --closed-bg: #FDE8EB;

    --shadow-sm: 0 1px 2px rgba(16, 27, 52, 0.05), 0 1px 1px rgba(16, 27, 52, 0.04);
    --shadow-md: 0 10px 28px rgba(16, 27, 52, 0.09);
    --shadow-lift: 0 16px 36px rgba(16, 27, 52, 0.14);

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.55;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ---------- Topbar ---------- */
.topbar {
    background: linear-gradient(90deg, var(--ink) 0%, #1B2C56 100%);
    color: #C9D3EA;
    font-size: 12.5px;
    font-family: var(--font-mono);
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    padding: 7px 20px;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--paper-raised);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 5;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    gap: 24px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-seal {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent), var(--ink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); }
.brand-tagline { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

.search-form {
    display: flex;
    flex: 1;
    max-width: 440px;
    min-width: 240px;
}
.search-form input {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid var(--line);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--paper);
}
.search-form input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.search-form button {
    padding: 0 22px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: filter 0.15s ease;
}
.search-form button:hover { filter: brightness(0.9); }

.main-nav { background: #000; }
.nav-inner {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 0 20px;
}
.main-nav a {
    color: #FFD84D;
    padding: 13px 16px;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover, .main-nav a.active {
    color: #000;
    background: #FFD84D;
}

/* ---------- Homepage: welcome banner ---------- */
.welcome-banner {
    background: linear-gradient(90deg, #FFE066, #FFD23F);
    border-bottom: 3px solid #F0A202;
}
.welcome-banner-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    flex-wrap: wrap;
}
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 2px solid #E23E57;
    color: #E23E57;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    padding: 5px 14px;
    border-radius: 20px;
    flex-shrink: 0;
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E23E57;
    animation: livePulse 1.4s infinite ease-in-out;
}
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.welcome-text { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.welcome-text p { margin: 0; font-weight: 600; font-size: 15px; color: var(--ink); }
.welcome-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.tagline-strip {
    text-align: center;
    font-size: 14px;
    color: var(--ink-soft);
    padding: 20px 0 6px;
    margin: 0;
}

/* ---------- Homepage: colorful highlight button grid ---------- */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 22px 0 34px;
}
.highlight-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.3;
    padding: 20px 16px;
    border-radius: 10px;
    min-height: 74px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.highlight-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

/* ---------- Homepage: 3-column New Update / Admit Card / Top Online Form ---------- */
.home-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 44px;
}
.home-col {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.home-col-head {
    margin: 0;
    padding: 14px 18px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}
.head-green { background: linear-gradient(90deg, #0B3D2E, #12946B); }
.head-red { background: linear-gradient(90deg, #7A1030, #E23E57); }
.head-purple { background: linear-gradient(90deg, #2A1B4D, #7C5CFC); }
.home-col-list { list-style: none; margin: 0; padding: 10px 18px 18px; }
.home-col-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13.5px;
}
.home-col-list li:last-child { border-bottom: none; }
.home-col-list a:hover { color: var(--accent); text-decoration: underline; }
.col-empty { color: var(--ink-soft); font-style: italic; }

@media (max-width: 900px) {
    .highlight-grid { grid-template-columns: repeat(2, 1fr); }
    .home-columns { grid-template-columns: 1fr; }
}

/* ---------- Page heading strip ---------- */
.page-hero {
    padding: 40px 0 22px;
    margin-bottom: 28px;
    background: linear-gradient(180deg, rgba(47,111,237,0.06), transparent);
    border-bottom: 1px solid var(--line);
}
.page-hero h1 {
    font-family: var(--font-display);
    font-size: 32px;
    margin: 0 0 6px;
}
.page-hero p { color: var(--ink-soft); margin: 0; }
.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

/* ---------- Job ticket cards ---------- */
.job-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }

.job-ticket {
    display: flex;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.job-ticket:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: transparent; }

.job-ticket-main { flex: 1; padding: 20px 22px; }
.job-ticket-org { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.job-ticket-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 4px 0 10px; }
.job-ticket-title a:hover { color: var(--accent); }

.job-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-soft); }
.job-meta span { display: flex; align-items: center; gap: 5px; }
.job-meta strong { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }

.job-ticket-stub {
    width: 158px;
    flex-shrink: 0;
    border-left: 2px dashed var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 12px;
    background: var(--gold-bg);
    text-align: center;
}
.job-ticket-stub .last-date-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.job-ticket-stub .last-date-value { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: #8A5B02; }

/* Status badges */
.badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-active { background: var(--active-bg); color: var(--active); }
.badge-upcoming { background: var(--upcoming-bg); color: var(--upcoming); }
.badge-closed { background: var(--closed-bg); color: var(--closed); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { filter: brightness(0.92); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-danger { background: var(--closed); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }

/* ---------- Job detail page ---------- */
.job-detail-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}
.job-detail-header { border-bottom: 1px dashed var(--line); padding-bottom: 20px; margin-bottom: 20px; }
.job-detail-header h1 { font-family: var(--font-display); font-size: 28px; margin: 8px 0; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.detail-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    background: var(--paper);
}
.detail-item .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); display: block; margin-bottom: 4px; }
.detail-item .value { font-family: var(--font-mono); font-weight: 500; font-size: 14.5px; }

.important-dates {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 24px 0;
}
.date-pill {
    border: 1.5px solid var(--ink);
    border-radius: 10px;
    padding: 10px 18px;
    text-align: center;
    min-width: 140px;
}
.date-pill .label { font-size: 10.5px; text-transform: uppercase; color: var(--ink-soft); }
.date-pill .value { font-family: var(--font-mono); font-weight: 600; font-size: 15px; }

.action-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--ink-soft);
    border: 1.5px dashed var(--line);
    border-radius: 14px;
    background: var(--paper-raised);
}

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 20px 0 40px; }
.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C7CEDE; margin-top: 60px; }
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding: 40px 20px;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tagline { color: #93A0BC; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { font-size: 13.5px; color: #A6AFC5; }
.footer-contact a { color: #C7CEDE; font-weight: 600; font-size: 13.5px; }
.footer-contact a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: #C7CEDE;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 14px 0; font-size: 12.5px; text-align: center; color: #8792AA; }

/* ---------- Floating widgets ---------- */
.floating-widget {
    position: fixed;
    right: 22px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lift);
    border: none;
    cursor: pointer;
    z-index: 60;
    transition: transform 0.15s ease, opacity 0.2s ease;
}
.floating-whatsapp {
    bottom: 22px;
    background: #25D366;
    color: #fff;
}
.floating-whatsapp:hover { transform: scale(1.06); }
.floating-top {
    bottom: 86px;
    background: var(--ink);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}
.floating-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.floating-top:hover { background: var(--accent); }

@media (max-width: 720px) {
    .footer-inner { grid-template-columns: 1fr; }
    .job-ticket { flex-direction: column; }
    .job-ticket-stub { width: 100%; border-left: none; border-top: 2px dashed var(--line); flex-direction: row; justify-content: space-between; }
    .floating-widget { right: 14px; width: 48px; height: 48px; }
    .floating-whatsapp { bottom: 14px; }
    .floating-top { bottom: 70px; }
}

/* =========================================================
   Admin panel
   ========================================================= */
.admin-body { background: #EEF1F7; font-family: var(--font-body); margin: 0; }
.admin-wrap { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 232px;
    background: linear-gradient(180deg, var(--ink) 0%, #1B2C56 100%);
    color: #C7CEDE;
    flex-shrink: 0;
    padding: 24px 0;
}
.admin-sidebar .brand { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 16px; }
.admin-sidebar .brand-name { color: #fff; }
.admin-nav a {
    display: block;
    padding: 11px 20px;
    font-size: 14px;
    color: #C7CEDE;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.08); color: #fff; border-left-color: var(--accent); }

.admin-main { flex: 1; padding: 28px 34px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-topbar h1 { font-family: var(--font-display); font-size: 24px; margin: 0; }
.admin-user { font-size: 13.5px; color: var(--ink-soft); }
.admin-user a { color: var(--closed); font-weight: 600; margin-left: 10px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 30px; }
.stat-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.stat-card .num { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--accent); }
.stat-card .lbl { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }

.admin-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.admin-card h2 { font-family: var(--font-display); font-size: 19px; margin-top: 0; }

table.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.admin-table th, table.admin-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
table.admin-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
table.admin-table tr:hover { background: var(--paper); }
.table-actions { display: flex; gap: 8px; }

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--paper) 0%, #E7ECF8 100%); }
.login-card {
    width: 100%; max-width: 380px;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--shadow-md);
}
.login-card .brand { justify-content: center; margin-bottom: 24px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--paper);
    accent-color: var(--accent);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

.alert { padding: 12px 16px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; }
.alert-success { background: var(--active-bg); color: var(--active); border: 1px solid var(--active); }
.alert-error { background: var(--closed-bg); color: var(--closed); border: 1px solid var(--closed); }

@media (max-width: 800px) {
    .admin-wrap { flex-direction: column; }
    .admin-sidebar { width: 100%; padding: 12px 0; }
    .admin-nav { display: flex; overflow-x: auto; }
    .admin-nav a { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
    .admin-nav a.active { border-left: none; border-bottom-color: var(--accent); }
}
