:root {
    --primary-color: #103c74;
    --secondary-color: #1f8b4c;
    --accent-color: #d9a404;
    --danger-color: #d64545;
    --light-bg: #f4f7fb;
    --dark-text: #1b2533;
    --muted-text: #667085;
    --white: #ffffff;
    --shadow: 0 18px 40px rgba(16, 60, 116, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

nav {
    background: var(--primary-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    flex-wrap: wrap;
    gap: 10px;
}

nav a {
    color: var(--white);
    margin-left: 15px;
    font-weight: 600;
}

.container {
    width: min(100%, 1100px);
    margin: 2rem auto;
    padding: 24px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
select,
textarea,
button,
.btn {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d7e2;
    border-radius: 10px;
    background: #fff;
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: var(--secondary-color);
    color: var(--white);
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(31, 139, 76, 0.18);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 14px;
}

th,
td {
    padding: 12px;
    text-align: left;
    border: 1px solid #e8edf4;
}

th {
    background: #eef4fb;
    color: var(--primary-color);
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #2563a6);
    color: var(--white);
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.voted {
    background: #d7f5de;
    color: #0f6b33;
}

.pending {
    background: #fde2e2;
    color: #a12626;
}

.landing-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(217, 164, 4, 0.2), transparent 25%),
        linear-gradient(135deg, #0a2648 0%, #103c74 45%, #1761a8 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
}

.landing-hero {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    overflow: hidden;
}

.landing-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 20, 36, 0.25), rgba(7, 20, 36, 0.55));
}

.landing-content {
    position: relative;
    width: min(1100px, 100%);
    text-align: center;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.08);
    margin-bottom: 18px;
}

.eyebrow.dark {
    border-color: rgba(16, 60, 116, 0.12);
    background: rgba(16, 60, 116, 0.06);
    color: var(--primary-color);
}

.landing-content h1,
.portal-header-card h1 {
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 4.4rem);
    line-height: 1.08;
}

.landing-content p,
.portal-header-card p {
    width: min(760px, 100%);
    margin: 18px auto 0;
    font-size: 1.06rem;
    color: rgba(255,255,255,0.9);
}

.portal-header-card p {
    color: var(--muted-text);
}

.landing-actions {
    margin-top: 34px;
}

.landing-main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    padding: 18px 32px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #f7c948, var(--accent-color));
    color: #1f2937;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.landing-main-btn:hover {
    transform: translateY(-2px) scale(1.01);
}

.landing-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 42px;
}

.mini-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.mini-card h3 {
    margin: 0 0 8px;
    font-size: 1.12rem;
}

.mini-card p {
    margin: 0;
    width: 100%;
    color: rgba(255,255,255,0.85);
    font-size: 0.96rem;
}

.landing-footer,
.portal-footer {
    text-align: center;
    padding: 16px 20px 24px;
    color: rgba(255,255,255,0.86);
    font-size: 0.95rem;
}

.portal-body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, #eff5fb 0%, #f8fbff 100%);
    display: flex;
    flex-direction: column;
}

.portal-shell {
    width: min(1120px, calc(100% - 28px));
    margin: 28px auto;
}

.portal-header-card {
    background: var(--white);
    border-radius: 28px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.back-link {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 700;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.portal-card {
    background: var(--white);
    border-radius: 24px;
    padding: 26px;
    color: var(--dark-text);
    box-shadow: var(--shadow);
    border: 1px solid rgba(16, 60, 116, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(16, 60, 116, 0.18);
}

.portal-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.portal-card h3 {
    margin: 0 0 10px;
    font-size: 1.28rem;
    color: var(--primary-color);
}

.portal-card p {
    margin: 0 0 16px;
    color: var(--muted-text);
}

.portal-link {
    display: inline-block;
    font-weight: 800;
    color: var(--secondary-color);
}

.portal-note {
    margin-top: 22px;
    background: #fff8e2;
    border: 1px solid #f2df9b;
    color: #6b5200;
    padding: 18px 20px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(107, 82, 0, 0.06);
}

@media (max-width: 900px) {
    .landing-mini-grid,
    .portal-grid {
        grid-template-columns: 1fr;
    }

    .landing-content h1,
    .portal-header-card h1 {
        font-size: clamp(2rem, 9vw, 3rem);
    }
}

@media (max-width: 640px) {
    .container {
        width: calc(100% - 20px);
        padding: 18px;
    }

    .landing-hero {
        padding: 30px 16px;
    }

    .landing-main-btn {
        width: 100%;
        min-width: 0;
        padding: 16px 22px;
    }

    .portal-shell {
        width: calc(100% - 18px);
        margin: 18px auto;
    }

    .portal-header-card,
    .portal-card {
        padding: 20px;
        border-radius: 20px;
    }
}


/* ===== PROFESSIONAL INDEX PAGE UPGRADE ===== */
.landing-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(7, 18, 34, 0.7);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.landing-topbar-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: #0f2544;
    background: linear-gradient(135deg, #f7c948, #ffd76d);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.brand-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.brand-subtitle {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.72);
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-weight: 700;
    background: rgba(255,255,255,0.06);
}

.topbar-link:hover {
    background: rgba(255,255,255,0.12);
}

.landing-hero-pro {
    min-height: calc(100vh - 78px);
    padding: 70px 20px 54px;
}

.landing-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.15));
    opacity: 0.28;
}

.landing-content-pro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
    gap: 30px;
    align-items: center;
    text-align: left;
}

.landing-content-pro p {
    margin-left: 0;
}

.hero-copy {
    max-width: 720px;
}

.pro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.landing-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    padding: 18px 24px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 14px 30px rgba(0,0,0,0.14);
}

.landing-secondary-btn:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.14);
}

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

.hero-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.94);
    font-size: 0.94rem;
}

.hero-panel {
    position: relative;
    z-index: 1;
}

.hero-panel-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(14px);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 22px 45px rgba(0,0,0,0.18);
}

.status-badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(247, 201, 72, 0.16);
    color: #ffe082;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-bottom: 14px;
}

.hero-panel-card h3 {
    margin: 0 0 14px;
    font-size: 1.5rem;
    color: #fff;
}

.hero-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.hero-checklist li {
    position: relative;
    padding-left: 28px;
    color: rgba(255,255,255,0.92);
}

.hero-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 900;
    color: #0f2544;
    background: linear-gradient(135deg, #f7c948, #ffd76d);
}

.panel-btn {
    display: inline-flex;
    margin-top: 22px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #fff;
    color: #103c74;
    font-weight: 800;
}

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

.landing-feature-section {
    background: linear-gradient(180deg, #f5f8fc 0%, #edf3fa 100%);
    color: var(--dark-text);
    padding: 72px 20px 82px;
}

.feature-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 32px;
}

.section-heading h2 {
    margin: 14px 0 10px;
    color: var(--primary-color);
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 1.14;
}

.section-heading p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted-text);
}

.pro-grid {
    margin-top: 0;
}

.pro-card {
    background: #fff;
    color: var(--dark-text);
    border: 1px solid rgba(16, 60, 116, 0.08);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.08);
    backdrop-filter: none;
    min-height: 100%;
}

.mini-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    background: rgba(16, 60, 116, 0.08);
}

.pro-card h3 {
    color: var(--primary-color);
}

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

@media (max-width: 980px) {
    .landing-content-pro {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-copy {
        max-width: none;
    }

    .landing-content-pro p {
        margin-left: auto;
        margin-right: auto;
    }

    .pro-actions,
    .hero-trust-row {
        justify-content: center;
    }
}

@media (max-width: 680px) {
    .landing-topbar-inner {
        min-height: auto;
        padding: 14px 0;
        flex-direction: column;
        align-items: stretch;
    }

    .brand-block {
        justify-content: center;
        text-align: center;
    }

    .topbar-link,
    .landing-main-btn,
    .landing-secondary-btn,
    .panel-btn {
        width: 100%;
    }

    .landing-hero-pro {
        padding-top: 48px;
    }

    .hero-panel-card {
        padding: 22px;
        border-radius: 22px;
    }

    .hero-trust-row span {
        width: 100%;
        justify-content: center;
    }
}
<style>
.candidate-photo{
    width:90px;
    height:90px;
    object-fit:cover;
    border-radius:50%;
    border:3px solid #0b4ea2;
    background:#f1f5f9;
    box-shadow:0 8px 20px rgba(15,23,42,.08);
}
.candidate-card{
    background:#fff;
    border:1px solid #dbe5ef;
    border-radius:18px;
    padding:18px;
    box-shadow:0 12px 28px rgba(15,23,42,.06);
}
.candidate-meta{
    color:#5b6b7c;
    font-size:14px;
}
</style>