@font-face {
    font-family: "Jameel Noori Nastaleeq";
    src: url("../fonts/JameelNooriNastaleeq.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #0b1f4d;
    --color-primary-dark: #071536;
    --color-primary-light: #15306e;
    --color-accent: #2eb8e6;
    --color-accent-dark: #0e93c0;
    --color-gold: #c9a227;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-surface: #ffffff;
    --color-canvas: #f4f7fb;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --font-urdu: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", Tahoma, serif;
    --font-sans: "Jameel Noori Nastaleeq", "Segoe UI", Tahoma, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-urdu);
    color: var(--color-text);
    background: var(--color-canvas);
    -webkit-font-smoothing: antialiased;
    line-height: 2.15;
}

.public-body {
    font-size: 1.02rem;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
}

.public-nav {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.public-nav-inner {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 5.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 640px) {
    .public-nav-inner { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .public-nav-inner { padding: 0 2rem; }
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.brand-logo {
    width: 3.6rem;
    height: auto;
    display: block;
    background: none;
    border: 0;
    padding: 0;
}

.public-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.125rem;
}

.brand-mark-accent { background: var(--color-accent); }
.brand-mark-primary { background: var(--color-primary); }

.public-brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-primary-dark);
    line-height: 1.5;
}

.public-brand-sub {
    font-size: 0.78rem;
    color: var(--color-accent-dark);
    font-weight: 600;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    cursor: pointer;
}

.public-nav-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.public-nav-actions.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 5.25rem;
    inset-inline: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 0.85rem 1rem 1rem;
    z-index: 40;
}

@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .public-nav-actions,
    .public-nav-actions.is-open {
        display: flex;
        flex-direction: row;
        position: static;
        border: 0;
        padding: 0;
        background: transparent;
        gap: 0.65rem;
    }
}

.nav-ghost.is-active {
    color: var(--color-primary);
    background: #eef6fb;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 150ms ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-light);
    color: #fff;
}

.btn-secondary {
    background: var(--color-accent);
    color: #07314a;
}

.btn-secondary:hover {
    background: #4ac8ef;
    color: #07314a;
}

.btn-outline {
    border-color: #cbd5e1;
    color: #334155;
    background: transparent;
}

.btn-outline:hover {
    background: #f8fafc;
    color: #334155;
}

.btn-ghost {
    background: transparent;
    color: #475569;
}

.btn-ghost:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn-block {
    width: 100%;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
}

.badge-hero {
    background: rgba(255, 255, 255, 0.1);
    color: #fcd34d;
    border-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

.public-footer {
    background: #071536;
    color: #d7e6f7;
    padding: 2.5rem 1rem 1.25rem;
    text-align: center;
    font-size: 0.95rem;
    border-top: 4px solid var(--color-accent);
}

.public-footer-inner {
    max-width: 80rem;
    margin: 0 auto 1.5rem;
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .public-footer-inner {
        grid-template-columns: 1fr 1fr;
        text-align: right;
        align-items: center;
    }
}

.footer-logo { width: 7rem; height: auto; display: block; background: none; border: 0; padding: 0; }
.footer-company { margin: 0.4rem 0 0; font-weight: 700; color: #fff; }
.footer-program { margin: 0.15rem 0; color: #9bdcf3; }
.footer-tagline { margin: 0.4rem 0 0; color: #f6d889; }
.footer-meta p { margin: 0.4rem 0; }
.footer-meta a { color: #9bdcf3; }

.phone-ltr {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}
.footer-links { margin-top: 0.75rem; }
.footer-copy {
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #8aa4c4;
    font-size: 0.82rem;
}

.auth-section {
    direction: ltr;
    text-align: left;
    font-family: "Segoe UI", Arial, sans-serif;
    min-height: calc(100vh - 5rem - 5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 28rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    padding: 2rem;
}

.auth-card-wide {
    max-width: 40rem;
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-brand .brand-mark {
    margin: 0 auto 1rem;
}

.auth-brand h1 {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
}

.auth-brand p {
    margin: 0;
    color: var(--color-text-muted);
}

.auth-form .form-group {
    margin-bottom: 1.15rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    font: inherit;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 1.15rem;
}

.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    border: 1px solid;
}

.alert-success {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.alert-danger {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.auth-hint {
    margin-top: 1.25rem;
    padding: 0.875rem;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.auth-hint p {
    margin: 0.25rem 0;
}

.auth-footer-link {
    text-align: center;
    margin: 1.25rem 0 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
