@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

:root {
    --kps-navy: #12385f;
    --kps-navy-2: #1c527f;
    --kps-gold: #d6a329;
    --kps-gold-dark: #b88918;
    --kps-bg: #f6f8fb;
    --kps-surface: #ffffff;
    --kps-text: #172438;
    --kps-muted: #68778a;
    --kps-line: #e4eaf1;
    --kps-shadow: 0 16px 42px rgba(17, 45, 76, .09);
    --kps-radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--kps-text);
    background: #fff;
    font-family: Inter, Arial, sans-serif;
    line-height: 1.65;
}

body.public-urdu {
    font-family: "Noto Nastaliq Urdu", serif;
    direction: rtl;
    line-height: 2.05;
}

img {
    max-width: 100%;
}

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

.public-container {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
}

.top-strip {
    background: #0e2c4d;
    color: #dce8f4;
    font-size: 12px;
}

.top-strip-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}

.top-actions a {
    opacity: .82;
}

.top-actions a:hover,
.top-actions .active-lang {
    opacity: 1;
    color: #fff;
}

.urdu-link {
    font-family: "Noto Nastaliq Urdu", serif;
    line-height: 1.3;
}

.public-header {
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--kps-line);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.public-brand img,
.public-logo-placeholder {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 14px;
}

.public-logo-placeholder {
    background: var(--kps-navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: .06em;
}

.brand-copy strong,
.brand-copy span {
    display: block;
}

.brand-copy strong {
    font-size: 17px;
    color: var(--kps-navy);
}

.brand-copy span {
    color: var(--kps-muted);
    font-size: 11px;
    margin-top: 2px;
}

.public-urdu .brand-copy strong {
    font-size: 20px;
}

.public-nav > ul,
.public-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-nav > ul {
    display: flex;
    align-items: center;
    gap: 3px;
}

.public-nav li {
    position: relative;
}

.public-nav > ul > li > a {
    display: block;
    padding: 10px 11px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #32475e;
}

.public-nav > ul > li > a:hover {
    background: #f0f5fa;
    color: var(--kps-navy);
}

.submenu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-start: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--kps-line);
    border-radius: 14px;
    box-shadow: var(--kps-shadow);
    padding: 7px !important;
}

.public-nav li:hover > .submenu {
    display: block;
}

.submenu a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #42576c;
}

.submenu a:hover {
    background: #f3f7fb;
}

.mobile-menu-toggle {
    display: none;
    border: 1px solid var(--kps-line);
    background: #fff;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    color: var(--kps-navy);
    font-size: 20px;
}

.kps-hero {
    min-height: 560px;
    background:
        linear-gradient(120deg, #12385f, #1d567f);
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
}

.hero-inner {
    padding-block: 90px;
    max-width: 850px;
}

.public-urdu .hero-inner {
    margin-right: max(18px, calc((100vw - 1180px) / 2));
    margin-left: auto;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf4fb;
    color: var(--kps-navy-2);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.public-urdu .hero-kicker,
.public-urdu .section-kicker {
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
}

.kps-hero .hero-kicker {
    background: rgba(255,255,255,.14);
    color: #fff;
}

.kps-hero h1 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.08;
    margin: 18px 0 16px;
    max-width: 820px;
}

.public-urdu .kps-hero h1 {
    line-height: 1.55;
}

.hero-copy {
    font-size: 17px;
    max-width: 720px;
    opacity: .9;
    margin-bottom: 28px;
}

.public-urdu .hero-copy {
    font-size: 19px;
}

.public-section {
    padding: 72px 0;
}

.tinted-section {
    background: var(--kps-bg);
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 54px;
    align-items: center;
}

.split-grid.rtl-layout {
    direction: rtl;
}

.split-copy h2,
.narrow-content h2,
.center-intro h2,
.cta-box h2 {
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.18;
    color: var(--kps-navy);
    margin: 14px 0 17px;
}

.public-urdu .split-copy h2,
.public-urdu .narrow-content h2,
.public-urdu .center-intro h2,
.public-urdu .cta-box h2 {
    line-height: 1.7;
}

.rich-copy {
    color: #526274;
    font-size: 15px;
    line-height: 1.85;
}

.public-urdu .rich-copy {
    font-size: 17px;
    line-height: 2.25;
}

.split-media img,
.content-wide-image,
.intro-image {
    display: block;
    width: 100%;
    border-radius: var(--kps-radius);
    box-shadow: var(--kps-shadow);
}

.split-media img {
    min-height: 390px;
    object-fit: cover;
}

.placeholder-media {
    min-height: 390px;
    border-radius: var(--kps-radius);
    background:
        radial-gradient(circle at top right, rgba(214,163,41,.20), transparent 40%),
        linear-gradient(135deg, #12385f, #1d567f);
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.75);
    font-size: 54px;
    font-weight: 800;
    letter-spacing: .09em;
}

.narrow-content {
    max-width: 900px;
}

.content-wide-image {
    margin: 26px 0;
    max-height: 520px;
    object-fit: cover;
}

.center-intro {
    text-align: center;
    max-width: 900px;
}

.centered-copy {
    max-width: 760px;
    margin-inline: auto;
}

.intro-image {
    max-width: 760px;
    margin: 30px auto 0;
    max-height: 430px;
    object-fit: cover;
}

.public-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 22px;
    transition: transform .15s ease, background .15s ease;
}

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

.public-btn-primary {
    background: var(--kps-navy);
    color: #fff;
}

.public-btn-primary:hover {
    background: var(--kps-navy-2);
}

.public-btn-gold {
    background: var(--kps-gold);
    color: #18283a;
}

.public-btn-gold:hover {
    background: #e0b33e;
}

.cta-box {
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(214,163,41,.18), transparent 38%),
        linear-gradient(135deg, #11375e, #194d77);
    color: #fff;
    padding: 38px 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    box-shadow: var(--kps-shadow);
}

.cta-box h2 {
    color: #fff;
    margin-bottom: 8px;
}

.cta-copy {
    color: #d9e5ef;
    max-width: 760px;
}

.light-kicker {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.page-title-band {
    background:
        radial-gradient(circle at top right, rgba(214,163,41,.16), transparent 35%),
        linear-gradient(120deg, #12385f, #1d567f);
    color: #fff;
    padding: 64px 0;
}

.page-title-band h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.15;
}

.public-urdu .page-title-band h1 {
    line-height: 1.65;
}

.page-title-band p {
    margin: 12px 0 0;
    opacity: .85;
}

.empty-public-content {
    border: 1px dashed #cbd6e2;
    border-radius: 16px;
    padding: 36px;
    text-align: center;
    color: var(--kps-muted);
    background: #fafcfe;
}

.error-page {
    text-align: center;
    padding-block: 70px;
}

.error-code {
    font-size: 90px;
    line-height: 1;
    font-weight: 800;
    color: #dfe7ef;
}

.error-page h1 {
    color: var(--kps-navy);
}

.public-footer {
    background: #0e2c4d;
    color: #d7e3ed;
    margin-top: 30px;
}

.footer-grid {
    padding-block: 52px;
    display: grid;
    grid-template-columns: 1.2fr 1fr .8fr;
    gap: 46px;
}

.footer-brand {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.public-urdu .footer-brand {
    font-size: 23px;
}

.public-footer h3 {
    color: #fff;
    font-size: 14px;
    margin-top: 0;
}

.public-footer p {
    font-size: 12px;
    opacity: .82;
}

.public-urdu .public-footer p {
    font-size: 14px;
}

.footer-links {
    display: grid;
    gap: 8px;
    font-size: 12px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.10);
    padding: 15px 0;
    color: #9eb3c5;
    font-size: 11px;
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header-inner {
        position: relative;
    }

    .public-nav {
        display: none;
        position: absolute;
        top: 76px;
        inset-inline: 0;
        background: #fff;
        border: 1px solid var(--kps-line);
        border-radius: 14px;
        box-shadow: var(--kps-shadow);
        padding: 10px;
    }

    .public-nav.open {
        display: block;
    }

    .public-nav > ul {
        display: grid;
    }

    .public-nav > ul > li > a {
        padding: 10px;
    }

    .submenu {
        position: static;
        box-shadow: none;
        border: 0;
        padding: 3px 0 3px 14px !important;
        display: none !important;
    }

    .has-children.submenu-open > .submenu {
        display: block !important;
    }

    .split-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cta-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .public-container {
        width: min(100% - 26px, 1180px);
    }

    .top-strip-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding-block: 7px;
    }

    .top-actions {
        justify-content: space-between;
    }

    .top-tagline {
        display: none;
    }

    .header-inner {
        min-height: 72px;
    }

    .public-brand {
        min-width: 0;
    }

    .public-brand img,
    .public-logo-placeholder {
        width: 46px;
        height: 46px;
    }

    .brand-copy strong {
        font-size: 14px;
    }

    .brand-copy span {
        display: none;
    }

    .kps-hero {
        min-height: 470px;
    }

    .hero-inner {
        padding-block: 70px;
    }

    .kps-hero h1 {
        font-size: 39px;
    }

    .public-section {
        padding: 52px 0;
    }

    .split-media img,
    .placeholder-media {
        min-height: 270px;
    }

    .cta-box {
        padding: 28px 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}
