/* ================================================================
   public.css – Full-width public landing page styles
   Bahria University Recruitment Portal
   ================================================================ */

/* ── Public Navbar ───────────────────────────────────────── */
.pub-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: rgba(10, 14, 26, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

[data-theme="light"] .pub-navbar {
    background: rgba(255, 255, 255, 0.88);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.pub-navbar.scrolled {
    background: rgba(10, 14, 26, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .pub-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pub-navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
    height: 68px;
}

.pub-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.pub-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
}

.pub-brand-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

[data-theme="light"] .pub-brand-name {
    color: #1a2234;
}

.pub-brand-tag {
    font-size: 10px;
    color: var(--clr-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.pub-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.pub-nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

[data-theme="light"] .pub-nav-link {
    color: #5a6a85;
}

.pub-nav-link:hover,
.pub-nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .pub-nav-link:hover,
[data-theme="light"] .pub-nav-link.active {
    color: #1a2234;
    background: rgba(0, 0, 0, 0.05);
}

.pub-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pub-icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

[data-theme="light"] .pub-icon-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #5a6a85;
}

.pub-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.pub-btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    background: transparent;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-theme="light"] .pub-btn-outline {
    border-color: rgba(0, 63, 143, 0.3);
    color: #003f8f;
}

.pub-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .pub-btn-outline:hover {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
}

.pub-btn-ghost {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.2s;
}

[data-theme="light"] .pub-btn-ghost {
    color: #5a6a85;
}

.pub-btn-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .pub-btn-ghost:hover {
    color: #1a2234;
    background: rgba(0, 0, 0, 0.06);
}

.pub-btn-primary {
    background: linear-gradient(135deg, #003f8f, #0060d0);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 63, 143, 0.3);
}

.pub-btn-primary:hover {
    opacity: .88;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 63, 143, .4);
    color: #fff;
}

.pub-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.pub-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: all .2s;
}

@media (max-width: 768px) {
    .pub-nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 14, 26, .97);
        padding: 12px;
        gap: 4px;
    }

    .pub-nav-links.open {
        display: flex;
    }

    .pub-hamburger {
        display: flex;
    }
}

/* ── Page body (no sidebar) ──────────────────────────────── */
body.public-page {
    margin: 0;
    padding: 0;
    padding-top: 68px;
    background: var(--clr-bg);
}

/* ── Hero ─────────────────────────────────────────────────── */
.pub-hero {
    position: relative;
    min-height: 94vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #020617 0%, #001e4d 50%, #001233 100%);
}

.pub-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140vw;
    height: 140vh;
    background: radial-gradient(circle at center, rgba(0, 63, 143, 0.15) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.pub-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.pub-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1)
    }

    50% {
        transform: translateY(-30px) scale(1.05)
    }
}

.pub-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.pub-hero-text {
    color: #fff;
}

.pub-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 63, 143, 0.15);
    border: 1px solid rgba(0, 63, 143, 0.35);
    color: #0060d0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.pub-hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.pub-hero-title span {
    background: linear-gradient(135deg, #0060d0 0%, #f0c040 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.pub-hero-sub {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 36px;
    max-width: 480px;
}

.pub-hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.pub-hero-primary {
    background: linear-gradient(135deg, #0060d0, #f0c040);
    color: #001233;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
}

.pub-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 63, 143, .45);
    color: #001233;
}

.pub-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    transition: all 0.25s;
}

.pub-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: translateY(-2px);
}

/* Stats strip in hero */
.pub-hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}

.pub-stat-item .num {
    font-size: 28px;
    font-weight: 900;
    color: #0060d0;
}

.pub-stat-item .lbl {
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
}

/* Right graphic */
.pub-hero-graphic {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pub-info-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 24px 28px;
    cursor: default;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.pub-info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
    pointer-events: none;
}

.card-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
}

/* ── Section base ─────────────────────────────────────────── */
.pub-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.pub-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.pub-section-tag {
    display: inline-block;
    background: rgba(0, 63, 143, 0.1);
    border: 1px solid rgba(0, 63, 143, 0.3);
    color: #0060d0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.pub-section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--clr-text);
    margin-bottom: 14px;
}

.pub-section-sub {
    font-size: 16px;
    color: var(--clr-muted);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Why Join strip ──────────────────────────────────────── */
.pub-why {
    background: linear-gradient(135deg, rgba(0, 63, 143, 0.06), rgba(0, 63, 143, 0.04));
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}

.pub-why-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
}

.pub-why-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--clr-text);
    margin-bottom: 16px;
}

.pub-why-text p {
    font-size: 16px;
    color: var(--clr-muted);
    line-height: 1.8;
    margin-bottom: 0;
}

.pub-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.pub-why-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 18px 16px;
    transition: all 0.25s;
}

.pub-why-item:hover {
    border-color: rgba(0, 63, 143, 0.4);
    transform: translateY(-2px);
}

.pub-why-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.pub-why-item h6 {
    font-size: 13px;
    font-weight: 700;
    color: var(--clr-text);
    margin: 0 0 3px;
}

.pub-why-item p {
    font-size: 12px;
    color: var(--clr-muted);
    margin: 0;
    line-height: 1.5;
}

/* ── Job Cards ────────────────────────────────────────────── */
.pub-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.pub-job-card {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    padding: 28px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.pub-job-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .pub-job-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.pub-job-dept {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #0060d0;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 12px;
}

.pub-job-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--clr-text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.pub-job-desc {
    font-size: 13px;
    color: var(--clr-muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.pub-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--clr-muted);
    margin-bottom: 20px;
}

.pub-job-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pub-job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pub-job-deadline {
    font-size: 11px;
    color: #f87171;
    font-weight: 600;
}

.pub-job-apply {
    background: linear-gradient(135deg, #003f8f, #0060d0);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.pub-job-apply:hover {
    opacity: .88;
    color: #fff;
    transform: translateY(-1px);
}

.pub-tag-open {
    background: rgba(16, 185, 129, .12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, .25);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    text-transform: uppercase;
}

/* ── Process Steps ────────────────────────────────────────── */
.pub-steps {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    counter-reset: step;
}

.pub-step {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 32px 16px;
    position: relative;
}

.pub-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -1px;
    width: 2px;
    height: 40%;
    background: linear-gradient(to bottom, var(--clr-accent), transparent);
}

.pub-step:last-child::after {
    display: none;
}

.pub-step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    position: relative;
}

.pub-step-num {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0060d0;
    color: #001233;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-step h5 {
    font-size: 14px;
    font-weight: 800;
    color: var(--clr-text);
    margin-bottom: 6px;
}

.pub-step p {
    font-size: 12px;
    color: var(--clr-muted);
    line-height: 1.5;
}

/* ── Reveal animation ─────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.reveal.delay-1 {
    transition-delay: 0.1s;
}

.reveal.delay-2 {
    transition-delay: 0.2s;
}

.reveal.delay-3 {
    transition-delay: 0.3s;
}

/* ── Impact Numbers (Counters) ───────────────────────────── */
.impact-strip {
    background: var(--clr-bg-alt);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    padding: 60px 0;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.impact-item {
    padding: 20px;
}

.impact-val {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--clr-primary);
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.impact-lbl {
    font-size: 14px;
    font-weight: 700;
    color: var(--clr-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Partners Carousel ──────────────────────────────────── */
.partners-section {
    padding: 60px 0;
    overflow: hidden;
    background: transparent;
}

.partners-slider {
    display: flex;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.partners-track {
    display: flex;
    gap: 60px;
    animation: scroll-partners 30s linear infinite;
    align-items: center;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    height: 40px;
    filter: grayscale(1) opacity(0.6);
    transition: all 0.3s ease;
    object-fit: contain;
}

.partner-logo:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 4));
    }
}

/* ── Rector Video Section ──────────────────────────────── */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Footer ───────────────────────────────────────────────── */
.pub-footer {
    background: linear-gradient(180deg, #0d1928 0%, #060c18 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 60px 24px 0;
}

.pub-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pub-footer-brand {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-shrink: 0;
}

.pub-footer-cols {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    flex: 1;
}

.pub-footer-cols>div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}

.pub-footer-heading {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, .4);
    margin-bottom: 4px;
}

.pub-footer-cols a,
.pub-footer-cols span {
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    transition: color.2s;
}

.pub-footer-cols a:hover {
    color: #0060d0;
}

.pub-social {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    font-size: 15px;
    transition: all.2s;
}

.pub-social:hover {
    background: rgba(0, 63, 143, .15);
    border-color: rgba(0, 63, 143, .4);
    color: #0060d0;
}

.pub-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, .3);
    text-align: center;
}

@media (max-width: 900px) {
    .pub-hero-inner {
        grid-template-columns: 1fr;
    }

    .pub-hero-graphic {
        display: none;
    }
}