:root {
    --bg: #f4efe6;
    --bg-strong: #efe4d2;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: #ffffff;
    --text: #162121;
    --muted: #5f6c68;
    --line: rgba(18, 33, 33, 0.12);
    --primary: #0f766e;
    --primary-dark: #0b5752;
    --accent: #d97706;
    --danger: #b42318;
    --success: #0f8c61;
    --shadow: 0 16px 45px rgba(22, 33, 33, 0.1);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans Malayalam", "Nirmala UI", "Kartika", sans-serif;
    font-weight: 400;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(217, 119, 6, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 24%),
        linear-gradient(180deg, #f8f4ec 0%, #f4efe6 100%);
}

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

img {
    max-width: 100%;
}

code {
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    font-size: 0.92rem;
}

.site-shell {
    min-height: 100vh;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: rgba(248, 244, 236, 0.72);
    border-bottom: 1px solid rgba(18, 33, 33, 0.08);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-copy strong {
    font-size: 1.02rem;
}

.brand-copy small {
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--muted);
    font-weight: 600;
}

.nav-pill {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--primary-dark) !important;
}

.inline-form {
    margin: 0;
}

.nav-button {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.page-content {
    padding: 2rem 0 4rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 1.5rem;
    align-items: stretch;
    padding: 1.5rem 0 2rem;
}

.hero h1,
.section-heading h1,
.auth-intro h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.16;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.hero-copy {
    max-width: 46rem;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-panel,
.card,
.job-card,
.stat-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-panel,
.card {
    padding: 1.5rem;
}

.panel-label,
.eyebrow {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    font-weight: 700;
}

.feature-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--muted);
}

.feature-list li + li {
    margin-top: 0.55rem;
}

.hero-actions,
.form-actions,
.detail-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.btn-secondary {
    background: rgba(15, 118, 110, 0.09);
    color: var(--primary-dark);
}

.text-link {
    color: var(--primary-dark);
    font-weight: 700;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

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

.job-card {
    padding: 1.35rem;
}

.job-card-top,
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.job-card h3 {
    margin: 0.9rem 0 0.4rem;
    font-size: 1.2rem;
}

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

.job-org {
    margin: 0 0 0.6rem;
    font-weight: 700;
    color: var(--text) !important;
}

.job-card-meta,
.meta-stack {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-active {
    background: rgba(15, 140, 97, 0.12);
    color: var(--success);
}

.badge-expired {
    background: rgba(180, 35, 24, 0.1);
    color: var(--danger);
}

.badge-featured {
    background: rgba(217, 119, 6, 0.15);
    color: #9a5a05;
}

.badge-neutral {
    background: rgba(22, 33, 33, 0.08);
    color: var(--muted);
}

.muted,
.table-subtext {
    color: var(--muted);
}

.flash,
.alert-box {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.flash-success {
    background: rgba(15, 140, 97, 0.1);
    color: var(--success);
}

.flash-error,
.alert-box {
    background: rgba(180, 35, 24, 0.08);
    color: var(--danger);
}

.flash-info {
    background: rgba(15, 118, 110, 0.08);
    color: var(--primary-dark);
}

.auth-shell {
    max-width: 560px;
    margin: 2rem auto 0;
}

.auth-intro p:last-child {
    color: var(--muted);
}

.form-shell {
    padding: 1.5rem;
}

.form-stack,
.form-section {
    display: grid;
    gap: 1rem;
}

.form-section + .form-section {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

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

.field {
    display: grid;
    gap: 0.45rem;
}

.field-span-2 {
    grid-column: span 2;
}

.field label {
    font-weight: 700;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid rgba(18, 33, 33, 0.14);
    border-radius: 16px;
    background: var(--surface-strong);
    padding: 0.85rem 0.95rem;
    font: inherit;
    color: var(--text);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: rgba(15, 118, 110, 0.5);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
}

.checkbox-field {
    align-content: end;
}

.checkbox-field input {
    width: 22px;
    height: 22px;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    padding: 1.4rem;
}

.stat-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 0.45rem;
}

.stat-card strong {
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.table-wrap {
    overflow-x: auto;
}

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

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

th {
    color: var(--muted);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.empty-state {
    text-align: center;
}

.empty-state p {
    color: var(--muted);
}

.inset {
    padding: 1.2rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
}

.detail-shell {
    display: grid;
    gap: 1rem;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.75fr);
    gap: 1.4rem;
    align-items: start;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.85fr);
    gap: 1rem;
}

.prose-card p {
    line-height: 1.7;
    color: var(--muted);
}

.sidebar-card h2,
.prose-card h2 {
    margin-top: 0;
}

.info-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
}

.info-list div {
    display: grid;
    gap: 0.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
}

.info-list dt {
    color: var(--muted);
    font-weight: 700;
}

.info-list dd {
    margin: 0;
}

.date-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.date-grid div {
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(15, 118, 110, 0.05);
}

@media (max-width: 920px) {
    .hero,
    .detail-hero,
    .detail-grid,
    .job-grid,
    .stats-grid,
    .date-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .nav-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-span-2 {
        grid-column: auto;
    }

    .page-content {
        padding-top: 1.2rem;
    }

    .hero-panel,
    .card,
    .job-card,
    .stat-card {
        padding: 1.2rem;
    }
}
