/* Shared Gen-Z look used by /apply and the homepage. */
.apx-logo { width: 52px; height: 52px; border-radius: var(--radius-lg); flex-shrink: 0; background: var(--gradient-vibrant); color: #fff; font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.apx-logo.has-img { width: auto; min-width: 52px; max-width: 150px; background: #fff; border: 1px solid var(--border-color); }
.apx-logo.has-img img { width: auto; max-width: 100%; height: 52px; }
.apx-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.apx-chip { font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: var(--radius-full); background: var(--gradient-soft); color: var(--primary-dark); }
.apx-chip.quiz { background: #ecfdf5; color: #065f46; }
.apx-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }

/* ===== /apply board (student-vibe list page) ===== */
.apl-hero { position: relative; padding: 7rem 0 3.5rem; text-align: center; overflow: hidden; isolation: isolate; }
.apl-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(168,85,247,0.16) 1.2px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.apl-blob { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; opacity: 0.32; }
.apl-blob-1 { width: 420px; height: 420px; top: -140px; left: -80px; background: #ec4899; }
.apl-blob-2 { width: 380px; height: 380px; top: -60px; right: -100px; background: #06b6d4; }
.apl-eyebrow { display: inline-block; padding: 0.45rem 1rem; border-radius: var(--radius-full); background: #fff; border: 2px dashed rgba(236,72,153,0.45); color: var(--primary-dark); font-weight: 700; font-size: 0.82rem; margin-bottom: 1.4rem; }
.apl-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; font-weight: 900; letter-spacing: -0.035em; margin-bottom: 1.2rem; }
.apl-scribble { position: relative; display: inline-block; background: var(--gradient-vibrant); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.apl-scribble::after { content: ''; position: absolute; left: 2%; right: 2%; bottom: -0.12em; height: 0.16em; border-radius: 99px; background: var(--gradient-vibrant); opacity: 0.35; transform: rotate(-1.5deg); }
.apl-lead { max-width: 58ch; margin: 0 auto 1.75rem; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--text-secondary); }
.apl-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.apl-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.9rem 1.6rem; border-radius: var(--radius-full); font-weight: 800; font-size: 0.95rem; text-decoration: none; border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease; }
.apl-btn:hover { transform: translateY(-3px) rotate(-1deg); }
.apl-btn-primary { background: var(--gradient-vibrant); color: #fff; box-shadow: 0 12px 28px -10px rgba(168,85,247,0.7); }
.apl-btn-ghost { background: #fff; color: var(--text-primary); border-color: var(--border-color); }
.apl-btn-light { background: #fff; color: #7e22ce; }
.apl-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.apl-stats { display: flex; justify-content: center; gap: clamp(1.2rem, 4vw, 3rem); margin-top: 2.5rem; flex-wrap: wrap; }
.apl-stats div { text-align: center; }
.apl-stats strong { display: block; font-size: 2.2rem; font-weight: 900; line-height: 1; background: var(--gradient-vibrant); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.apl-stats span { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.apl-sticker { position: absolute; padding: 0.55rem 0.95rem; border-radius: 14px; background: #fff; border: 2px solid #0f172a; box-shadow: 4px 4px 0 #0f172a; font-weight: 800; font-size: 0.85rem; white-space: nowrap; animation: apl-bob 5s ease-in-out infinite; }
.apl-sticker s { text-decoration-thickness: 2px; text-decoration-color: #ef4444; opacity: 0.75; }
.apl-st-1 { top: 22%; left: 6%; transform: rotate(-8deg); }
.apl-st-2 { top: 14%; right: 8%; transform: rotate(7deg); animation-delay: -1.2s; background: #fef9c3; }
.apl-st-3 { bottom: 24%; left: 10%; transform: rotate(5deg); animation-delay: -2.4s; background: #dcfce7; }
.apl-st-4 { bottom: 30%; right: 7%; transform: rotate(-6deg); animation-delay: -3.3s; background: #fce7f3; }
@keyframes apl-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.apl-marquee-wrap { overflow: hidden; padding: 14px 0; }
.apl-marquee { overflow: hidden; background: #0f172a; color: #fff; padding: 0.85rem 0; transform: rotate(-1deg); margin: 0 -2%; box-shadow: 0 10px 30px -12px rgba(15,23,42,0.5); }
.apl-marquee-track { display: flex; width: max-content; gap: 2.5rem; animation: apl-scroll 32s linear infinite; }
.apl-marquee-track span { font-weight: 800; font-size: 0.95rem; white-space: nowrap; }
@keyframes apl-scroll { to { transform: translateX(-50%); } }

.apl-roles { padding: 4.5rem 0 3rem; scroll-margin-top: 80px; }
.apl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.apl-head-center { flex-direction: column; align-items: center; text-align: center; }
.apl-tag { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--secondary-color); margin-bottom: 0.4rem; }
.apl-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 900; letter-spacing: -0.02em; margin: 0; }
.apl-head p { color: var(--text-secondary); max-width: 38ch; margin: 0; }
.apl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-bottom: 1.5rem; }
.apl-search { flex: 1 1 260px; display: flex; align-items: center; gap: 0.6rem; background: #fff; border: 2px solid var(--border-color); border-radius: var(--radius-full); padding: 0.2rem 1.1rem; transition: border-color .2s ease, box-shadow .2s ease; }
.apl-search:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(236,72,153,0.12); }
.apl-search i { color: var(--text-secondary); }
.apl-search input { flex: 1; border: none; outline: none; background: transparent; padding: 0.7rem 0; font-size: 1rem; min-width: 0; }
.apl-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.apl-chip { padding: 0.6rem 1.05rem; border-radius: var(--radius-full); border: 2px solid var(--border-color); background: #fff; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: all .15s ease; }
.apl-chip:hover { border-color: rgba(236,72,153,0.5); }
.apl-chip.is-on { background: #0f172a; border-color: #0f172a; color: #fff; }
.apl-count { font-size: 0.85rem; font-weight: 700; color: var(--text-secondary); margin-left: auto; }
.apl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 1.5rem; }
.apl-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 2px solid var(--border-color); border-radius: 22px; text-decoration: none; color: inherit; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.apl-card:hover { transform: translateY(-6px) rotate(-0.4deg); border-color: #0f172a; box-shadow: 8px 8px 0 #0f172a; }
.apl-card[hidden] { display: none; }
.apl-card-strip { height: 8px; background: var(--accent); }
.apl-card-body { display: flex; gap: 1rem; justify-content: space-between; padding: 1.4rem 1.4rem 1rem; flex: 1; }
.apl-card-main { min-width: 0; }
.apl-company { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; font-weight: 700; font-size: 0.9rem; color: var(--text-secondary); }
.apl-company .apx-logo { height: 34px; min-width: 34px; border-radius: 10px; font-size: 1rem; }
.apl-company .apx-logo.has-img img { height: 34px; }
.apl-badge { display: inline-block; padding: 0.25rem 0.65rem; border-radius: var(--radius-full); background: #fef9c3; color: #854d0e; border: 1.5px solid #facc15; font-size: 0.72rem; font-weight: 800; margin-bottom: 0.55rem; }
.apl-card h3 { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.5rem; }
.apl-salary { font-size: 1.35rem; font-weight: 900; background: var(--accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; width: fit-content; }
.apl-rupee { margin-right: 0.15rem; }
.apl-salary-note { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.1rem; }
.apl-polaroid { flex-shrink: 0; width: 92px; height: 116px; padding: 5px 5px 16px; background: #fff; border: 1px solid var(--border-color); border-radius: 6px; box-shadow: 0 8px 20px -6px rgba(15,23,42,0.35); transform: rotate(5deg); transition: transform .3s ease; align-self: flex-start; }
.apl-polaroid img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 3px; display: block; }
.apl-card:hover .apl-polaroid { transform: rotate(-3deg) scale(1.08); }
.apl-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.95rem 1.4rem; border-top: 2px dashed var(--border-color); background: #fafafa; }
.apl-test { font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); }
.apl-go { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 800; font-size: 0.9rem; color: #fff; background: #0f172a; padding: 0.5rem 1rem; border-radius: var(--radius-full); white-space: nowrap; transition: background .2s ease; }
.apl-card:hover .apl-go { background: var(--primary-color); }
.apl-go i { transition: transform .2s ease; }
.apl-card:hover .apl-go i { transform: translateX(4px); }
.apl-nomatch, .apl-empty { text-align: center; padding: 3.5rem 1rem; color: var(--text-secondary); }
.apl-nomatch[hidden] { display: none; }
.apl-empty { background: #fff; border: 2px dashed var(--border-color); border-radius: 22px; }
.apl-empty h3 { color: var(--text-primary); font-weight: 900; margin: 0.5rem 0; }
.apl-empty .apl-btn { margin-top: 1rem; }

.apl-how { padding: 3.5rem 0; }
.apl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1rem; }
.apl-step { position: relative; background: #fff; border: 2px solid #0f172a; border-radius: 22px; padding: 1.75rem 1.4rem 1.5rem; box-shadow: 6px 6px 0 #0f172a; }
.apl-step:nth-child(1) { transform: rotate(-1.2deg); } .apl-step:nth-child(3) { transform: rotate(1.2deg); }
.apl-step-n { position: absolute; top: -16px; left: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--gradient-vibrant); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; border: 2px solid #0f172a; }
.apl-step-emoji { font-size: 2.4rem; margin-bottom: 0.5rem; }
.apl-step h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 0.4rem; }
.apl-step p { color: var(--text-secondary); margin: 0; font-size: 0.95rem; }

.apl-memes { padding: 3rem 0; }
.apl-meme-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; margin-top: 1rem; }
.apl-meme { background: #fff; border: 2px solid #0f172a; border-radius: 18px; overflow: hidden; box-shadow: 6px 6px 0 #0f172a; }
.apl-drake { display: flex; align-items: center; gap: 1rem; padding: 1.1rem; }
.apl-drake p { margin: 0; font-weight: 800; font-size: 1rem; line-height: 1.3; }
.apl-drake-no { background: #fee2e2; border-bottom: 2px solid #0f172a; }
.apl-drake-yes { background: #dcfce7; }
.apl-face { font-size: 2.6rem; flex-shrink: 0; }
.apl-ev { padding: 1.2rem; background: #fef2f2; border-bottom: 2px solid #0f172a; position: relative; }
.apl-ev-good { background: #ecfdf5; border-bottom: none; }
.apl-ev small { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; color: var(--text-secondary); }
.apl-ev p { margin: 0.35rem 0 0; font-weight: 800; font-size: 1.05rem; line-height: 1.35; padding-right: 2.6rem; }
.apl-ev span { position: absolute; right: 1rem; bottom: 0.8rem; font-size: 2rem; }
.apl-meme-note { background: #efeae2; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.apl-note-title { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #667781; text-align: center; margin-bottom: 0.2rem; }
.apl-bubble { max-width: 86%; padding: 0.55rem 0.8rem; border-radius: 12px; font-size: 0.92rem; font-weight: 600; box-shadow: 0 1px 1px rgba(0,0,0,0.12); }
.apl-bubble-in { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.apl-bubble-out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 2px; }

.apl-final { padding: 2.5rem 0 5rem; }
.apl-final-card { text-align: center; color: #fff; background: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #3b82f6 100%); border-radius: 30px; padding: clamp(2rem, 5vw, 3.5rem) 1.5rem; box-shadow: 0 30px 60px -20px rgba(168,85,247,0.6); position: relative; overflow: hidden; }
.apl-final-card::before { content: '🎓'; position: absolute; font-size: 9rem; opacity: 0.12; right: -1rem; bottom: -2rem; transform: rotate(-14deg); }
.apl-final-card h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.apl-final-card p { opacity: 0.92; margin-bottom: 1.5rem; }
.apl-final-card small { display: block; margin-top: 1.2rem; opacity: 0.9; }
.apl-final-card small a { color: #fff; font-weight: 800; }

@media (max-width: 900px) {
    .apl-steps, .apl-meme-row { grid-template-columns: 1fr; }
    .apl-step:nth-child(1), .apl-step:nth-child(3) { transform: none; }
    .apl-sticker { display: none; }
    .apl-hero { padding-top: 5.5rem; }
}
@media (max-width: 520px) {
    .apl-stats { flex-wrap: nowrap; gap: 0.9rem; }
    .apl-stats strong { font-size: 1.7rem; }
    .apl-stats span { font-size: 0.64rem; letter-spacing: 0.03em; }
    .apl-polaroid { width: 72px; height: 92px; }
    .apl-card h3 { font-size: 1.3rem; }
    .apl-count { margin-left: 0; width: 100%; }
    .apl-card-foot { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .apl-sticker, .apl-marquee-track { animation: none; }
    .apl-btn:hover, .apl-card:hover { transform: none; }
}
