:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #eef4f8;
    --text: #172033;
    --muted: #5f6f85;
    --line: #d9e2ec;
    --primary: #124a7c;
    --primary-dark: #0b355b;
    --teal: #0f766e;
    --saffron: #d97706;
    --red: #b42318;
    --shadow: 0 12px 28px rgba(15, 31, 55, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Noto Sans Gujarati", Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 1.5;
    margin: 0;
    min-height: 100%;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

form {
    min-height: 100vh;
}

.top-strip {
    background: linear-gradient(90deg, #d97706 0 33%, #ffffff 33% 66%, #0f766e 66% 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    height: 6px;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1180px;
    padding: 16px 24px;
}

.brand {
    align-items: center;
    color: var(--text);
    display: inline-flex;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}

.brand:hover {
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    align-items: center;
    background: var(--primary);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.brand strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
}

.brand small {
    color: var(--muted);
    display: block;
    font-size: 13px;
    margin-top: 2px;
}

.main-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.main-nav a {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    text-decoration: none;
}

.main-nav a:hover {
    background: var(--surface-soft);
    border-color: var(--line);
    color: var(--primary);
}

.site-main {
    margin: 0 auto;
    max-width: 1180px;
    padding: 32px 24px 56px;
}

.page-hero {
    align-items: center;
    background: var(--primary);
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
    min-height: 190px;
    overflow: hidden;
    padding: 32px;
    position: relative;
}

.page-hero::after {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    content: "";
    height: 130px;
    position: absolute;
    right: 32px;
    top: 30px;
    transform: rotate(8deg);
    width: 130px;
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero-compact {
    min-height: 150px;
}

.eyebrow {
    color: #fcd34d;
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.page-hero h1,
.section-heading h2 {
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
}

.page-hero h1 {
    font-size: 34px;
    line-height: 1.15;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
    margin: 10px 0 0;
    max-width: 650px;
}

.hero-badge {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    flex: 0 0 136px;
    min-height: 116px;
    justify-content: center;
}

.hero-badge span {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.hero-badge small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    margin-top: 8px;
}

.notice-band {
    align-items: flex-start;
    background: #fff8e8;
    border: 1px solid #f3d18d;
    border-left: 5px solid var(--saffron);
    border-radius: 8px;
    display: flex;
    gap: 14px;
    margin-bottom: 30px;
    padding: 16px 18px;
}

.notice-icon {
    align-items: center;
    background: #ffffff;
    border: 1px solid #f3d18d;
    border-radius: 8px;
    display: inline-flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.notice-icon img {
    height: auto;
    max-width: 30px;
}

.notice-band strong {
    color: #6f4200;
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.notice-band a {
    color: #274c2e;
    font-weight: 600;
    text-decoration: none;
}

.notice-band a:hover {
    text-decoration: underline;
}

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

.section-heading .eyebrow {
    color: var(--teal);
    margin-bottom: 4px;
}

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

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

.service-card {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: var(--text);
    display: grid;
    gap: 14px;
    grid-template-columns: 52px minmax(0, 1fr) 28px;
    min-height: 128px;
    padding: 20px;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-card:hover {
    border-color: rgba(18, 74, 124, 0.4);
    box-shadow: 0 16px 34px rgba(15, 31, 55, 0.12);
    color: var(--text);
    text-decoration: none;
    transform: translateY(-2px);
}

.service-icon {
    align-items: center;
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-size: 22px;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.service-transfer .service-icon {
    background: var(--teal);
}

.service-recruitment .service-icon {
    background: var(--primary);
}

.service-other .service-icon {
    background: var(--saffron);
}

.service-special .service-icon {
    background: #7c3aed;
}

.service-postponed {
    background: #fffbeb;
    border-color: #f1c46b;
}

.service-postponed:hover {
    border-color: #d97706;
}

.service-postponed .service-icon {
    background: #92400e;
}

.service-gr .service-icon {
    background: var(--red);
}

.service-content {
    min-width: 0;
}

.service-content strong {
    display: block;
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.service-content small {
    color: var(--muted);
    display: block;
    font-size: 14px;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.status-pill {
    background: #fef3c7;
    border: 1px solid #f1c46b;
    border-radius: 8px;
    color: #7c2d12;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    margin-top: 10px;
    padding: 3px 8px;
    text-transform: uppercase;
}

.card-arrow {
    color: var(--muted);
    justify-self: end;
}

.back-link {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 700;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    text-decoration: none;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    text-decoration: none;
}

.document-summary {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 22px;
}

.document-summary div {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 18px;
}

.document-summary strong {
    color: var(--primary);
    display: block;
    font-size: 26px;
    line-height: 1;
}

.document-summary span {
    color: var(--muted);
    display: block;
    font-size: 14px;
    margin-top: 7px;
}

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

.document-card {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: grid;
    gap: 10px;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    min-height: 54px;
    padding: 12px 14px;
    text-decoration: none;
}

.document-card:hover {
    border-color: rgba(180, 35, 24, 0.45);
    color: var(--primary);
    text-decoration: none;
}

.document-card i {
    color: var(--red);
    font-size: 18px;
}

.document-card span {
    font-size: 14px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.document-card small {
    background: var(--surface-soft);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
}

.site-footer {
    align-items: center;
    background: #172033;
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    justify-content: space-between;
    padding: 18px 24px;
}

.site-footer strong,
.site-footer span {
    margin-right: 8px;
}

.site-footer a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fcd34d;
}

input,
select,
textarea {
    max-width: 280px;
}

@media (max-width: 900px) {
    .header-inner,
    .page-hero,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        justify-content: flex-start;
    }

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

@media (max-width: 640px) {
    .header-inner {
        padding: 14px 16px;
    }

    .site-main {
        padding: 22px 16px 40px;
    }

    .page-hero {
        min-height: 0;
        padding: 24px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .hero-badge {
        align-items: flex-start;
        min-height: 86px;
        width: 100%;
    }

    .notice-band,
    .service-card {
        align-items: flex-start;
    }

    .service-grid,
    .document-summary,
    .document-list {
        grid-template-columns: 1fr;
    }

    .service-card {
        grid-template-columns: 48px minmax(0, 1fr) 24px;
        min-height: 112px;
        padding: 16px;
    }

    .service-icon {
        height: 48px;
        width: 48px;
    }
}
