/*
 * entrance.css — CareerZoneHub Entrance Exams
 * Mobile-first, production-grade, no inline styles
 */

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.en-hero {
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 60%, #6366f1 100%);
    padding: 44px 0 56px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.en-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 100%; height: 32px;
    background: #f8fafc;
    clip-path: ellipse(55% 100% at 50% 100%);
}

.en-hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.en-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
}

.en-shape-1 { width: 380px; height: 380px; top: -100px; right: -60px; }
.en-shape-2 { width: 200px; height: 200px; bottom: -50px; left: -50px; }

.en-hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.en-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.92);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 14px;
}

.en-hero-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.en-hero-content > p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 22px;
    line-height: 1.55;
}

/* Search */
.en-search-form { max-width: 560px; margin-bottom: 22px; }

.en-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.en-search-box:focus-within { border-color: #fbbf24; }

.en-search-box > i {
    padding: 0 12px 0 18px;
    color: #94a3b8;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.en-search-box input {
    flex: 1;
    border: none;
    padding: 13px 6px;
    font-size: 16px;
    color: #0f172a;
    outline: none;
    background: transparent;
    min-width: 0;
}

.en-search-box input::placeholder { color: #94a3b8; }

.en-search-clear {
    padding: 0 10px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: color 0.2s;
}

.en-search-clear:hover { color: #ef4444; }

.en-search-box button {
    padding: 13px 22px;
    background: linear-gradient(135deg, #4f46e5, #3730a3);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

.en-search-box button:hover { background: linear-gradient(135deg, #3730a3, #312e81); }

/* Hero stats */
.en-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 14px 8px;
    max-width: 480px;
}

.en-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    flex: 1;
    min-width: 90px;
    justify-content: center;
}

.en-stat i     { font-size: 1rem; color: rgba(255,255,255,0.7); }
.en-stat strong{ font-size: 1.2rem; font-weight: 800; color: #fff; }
.en-stat span  { font-size: 0.72rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.4px; }

.en-stat-div {
    width: 1px; height: 28px;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

@media (max-width: 479px) {
    .en-stats { gap: 4px; }
    .en-stat  { padding: 5px 8px; min-width: 70px; }
    .en-stat strong { font-size: 1rem; }
}

/* ══════════════════════════════════════
   FILTER BAR
══════════════════════════════════════ */
.en-filter-bar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 60px;
    z-index: 30;
}

.en-filter-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    width: max-content;
    max-width: 100%;
}

.en-filter-scroll::-webkit-scrollbar { display: none; }

.en-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.en-tab:hover     { background: #ede9fe; border-color: #a5b4fc; color: #4338ca; }
.en-tab-active    { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.en-tab i         { font-size: 0.78rem; }

/* ══════════════════════════════════════
   SECTION + LAYOUT
══════════════════════════════════════ */
.en-section {
    padding: 28px 0 52px;
    background: #f8fafc;
}

.en-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1023px) {
    .en-layout { grid-template-columns: 1fr; }
    .en-sidebar { order: -1; }
}

/* Results bar */
.en-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}

.en-results-info {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.en-results-info strong { color: #4f46e5; font-size: 1.05rem; }

.en-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 600;
    background: #ede9fe;
    color: #3730a3;
}

.en-tag a         { color: inherit; text-decoration: none; }
.en-tag a:hover   { color: #ef4444; }
.en-tag-type      { background: #dbeafe; color: #1e40af; }
.en-tag-status    { background: #d1fae5; color: #065f46; }

/* ══════════════════════════════════════
   ENTRANCE EXAM GRID
══════════════════════════════════════ */
.en-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

@media (max-width: 639px)  { .en-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ══════════════════════════════════════
   ENTRANCE CARD
══════════════════════════════════════ */
.en-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    opacity: 0;
    transform: translateY(14px);
}

.en-card.card-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.38s ease, transform 0.38s ease, box-shadow 0.22s, border-color 0.22s;
}

.en-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.en-card-ongoing  { border-top: 4px solid #10b981; }
.en-card-ongoing:hover { border-color: #6ee7b7; }

.en-card-upcoming { border-top: 4px solid #f59e0b; }
.en-card-upcoming:hover { border-color: #fcd34d; }

.en-card-closed   { border-top: 4px solid #9ca3af; opacity: 0.85; }
.en-card-closed:hover  { transform: none; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

/* Card head */
.en-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    gap: 8px;
    flex-wrap: wrap;
}

.en-type-badge,
.en-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.en-type-national   { background: #ede9fe; color: #3730a3; }
.en-type-state      { background: #d1fae5; color: #065f46; }
.en-type-university { background: #fef3c7; color: #92400e; }

.en-status-ongoing  { background: #d1fae5; color: #065f46; }
.en-status-upcoming { background: #fef3c7; color: #92400e; }
.en-status-closed   { background: #f3f4f6; color: #4b5563; }

/* Card body */
.en-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.en-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.en-card-title a { color: inherit; text-decoration: none; transition: color 0.18s; }
.en-card-title a:hover { color: #4f46e5; }

.en-card-org {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: #4f46e5;
    font-weight: 600;
}

.en-card-org i { font-size: 0.78rem; }

/* Dates */
.en-dates {
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.en-date-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: #475569;
}

.en-date-row i { color: #818cf8; font-size: 0.78rem; margin-top: 2px; width: 14px; flex-shrink: 0; }
.en-date-row.date-urgent { color: #dc2626; }
.en-date-row.date-urgent i { color: #dc2626; }

.en-days-pill {
    display: inline-flex;
    align-items: center;
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 7px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 5px;
}

.pill-urgent { background: #fee2e2; color: #dc2626; }

/* Eligibility */
.en-eligibility {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    background: #ede9fe;
    border-left: 3px solid #6366f1;
    border-radius: 0 8px 8px 0;
    padding: 9px 12px;
    font-size: 0.81rem;
    color: #3730a3;
    line-height: 1.5;
}

.en-eligibility i { font-size: 0.78rem; color: #4f46e5; margin-top: 2px; flex-shrink: 0; }

/* Card footer */
.en-card-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

/* Buttons */
.en-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex: 1;
}

.en-btn-info    { background: #4f46e5; color: #fff; }
.en-btn-info:hover    { background: #3730a3; transform: translateY(-1px); }

.en-btn-success { background: #10b981; color: #fff; }
.en-btn-success:hover { background: #059669; transform: translateY(-1px); }

.en-btn-upcoming { background: #fef3c7; color: #92400e; cursor: default; }
.en-btn-closed   { background: #f3f4f6; color: #9ca3af; cursor: default; }

@media (max-width: 479px) {
    .en-card-footer { flex-direction: column; }
    .en-btn { width: 100%; flex: none; }
}

/* ══════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════ */
.en-empty {
    text-align: center;
    padding: 64px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.en-empty-icon {
    width: 72px; height: 72px;
    background: #ede9fe;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem; color: #4f46e5;
}

.en-empty h3 { font-size: 1.2rem; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.en-empty p  { font-size: 0.9rem; color: #64748b; margin-bottom: 24px; line-height: 1.6; }

/* ══════════════════════════════════════
   PAGINATION (reuses jobs.css names)
══════════════════════════════════════ */
.en-pagination {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pag-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; justify-content: center; }

.pag-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 9px 16px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600;
    text-decoration: none; color: #334155;
    background: #fff; border: 1.5px solid #e2e8f0;
    transition: all 0.2s; min-width: 40px; justify-content: center;
}

.pag-btn:hover:not(.pag-disabled):not(.pag-active) { background: #ede9fe; border-color: #a5b4fc; color: #3730a3; }
.pag-active   { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.pag-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.pag-dots     { display: inline-flex; align-items: center; padding: 9px 6px; color: #94a3b8; font-size: 0.85rem; }
.pag-info     { font-size: 0.8rem; color: #94a3b8; margin: 0; }

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.en-sidebar { display: flex; flex-direction: column; gap: 20px; }

.en-sidebar-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.en-sidebar-heading {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.92rem; font-weight: 700; color: #0f172a;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    margin: 0;
}

.en-sidebar-heading i { color: #4f46e5; font-size: 0.9rem; }

/* Quick links */
.en-quick-links { display: flex; flex-direction: column; }

.en-quick-link {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    text-decoration: none; color: #334155;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.en-quick-link:last-child { border-bottom: none; }
.en-quick-link:hover { background: #f8fafc; }
.en-quick-link:hover .eq-arrow { color: #4f46e5; transform: translateX(3px); }

.eq-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #fff; flex-shrink: 0;
}

.eq-national   { background: linear-gradient(135deg, #4f46e5, #3730a3); }
.eq-state      { background: linear-gradient(135deg, #059669, #047857); }
.eq-university { background: linear-gradient(135deg, #d97706, #b45309); }

.en-quick-link > div:nth-child(2) { flex: 1; min-width: 0; }
.en-quick-link > div:nth-child(2) strong { display: block; font-size: 0.88rem; font-weight: 700; color: #0f172a; }
.en-quick-link > div:nth-child(2) span   { display: block; font-size: 0.75rem; color: #94a3b8; margin-top: 2px; }

.eq-arrow { font-size: 0.75rem; color: #cbd5e1; flex-shrink: 0; transition: all 0.2s; }

/* Upcoming dates */
.en-dates-list { display: flex; flex-direction: column; }

.en-date-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    text-decoration: none; color: inherit;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.en-date-item:last-child { border-bottom: none; }
.en-date-item:hover { background: #f8fafc; }

.en-date-cal {
    width: 44px; text-align: center; flex-shrink: 0;
    background: #ede9fe; border-radius: 10px;
    padding: 6px 4px;
}

.cal-day { display: block; font-size: 1.1rem; font-weight: 800; color: #4f46e5; line-height: 1.1; }
.cal-mon { display: block; font-size: 0.65rem; font-weight: 600; color: #818cf8; text-transform: uppercase; letter-spacing: 0.4px; }

.en-date-info { flex: 1; min-width: 0; }
.en-date-info strong { display: block; font-size: 0.82rem; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.en-date-info span   { display: block; font-size: 0.74rem; color: #94a3b8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.en-date-status {
    padding: 3px 8px; border-radius: 50px;
    font-size: 0.68rem; font-weight: 700; flex-shrink: 0;
}

.ds-open   { background: #d1fae5; color: #065f46; }
.ds-closed { background: #f3f4f6; color: #9ca3af; }

.en-sidebar-empty { padding: 16px; font-size: 0.85rem; color: #94a3b8; margin: 0; }