/*
 * admit-cards.css — CareerZoneHub
 * Mobile-first, production-grade, no inline styles
 */

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.ac-hero {
    background: linear-gradient(135deg, #065f46 0%, #059669 60%, #10b981 100%);
    padding: 44px 0 56px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ac-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 32px;
    background: #f8fafc;
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* Decorative shapes */
.ac-hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.ac-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
}

.ac-shape-1 { width: 360px; height: 360px; top: -100px; right: -60px; }
.ac-shape-2 { width: 180px; height: 180px; bottom: -40px; left: -40px; }

.ac-hero-content {
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.ac-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;
}

.ac-hero-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.ac-hero-content > p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.82);
    margin-bottom: 22px;
    line-height: 1.55;
    max-width: 540px;
}

/* Search */
.ac-search-form { max-width: 540px; margin-bottom: 18px; }

.ac-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;
}

.ac-search-box:focus-within { border-color: #fbbf24; }

.ac-search-box > i {
    padding: 0 12px 0 18px;
    color: #94a3b8;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.ac-search-box input {
    flex: 1;
    border: none;
    padding: 13px 6px;
    font-size: 16px; /* prevent iOS zoom */
    color: #0f172a;
    outline: none;
    background: transparent;
    min-width: 0;
}

.ac-search-box input::placeholder { color: #94a3b8; }

.ac-search-clear {
    padding: 0 10px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: color 0.2s;
}

.ac-search-clear:hover { color: #ef4444; }

.ac-search-box button {
    padding: 13px 22px;
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}

.ac-search-box button:hover { background: linear-gradient(135deg, #047857, #065f46); }

/* Quick filters */
.ac-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qf-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    transition: all 0.2s;
}

.qf-pill:hover { background: rgba(255,255,255,0.22); color: #fff; }

.qf-active {
    background: #fff;
    color: #059669;
    border-color: #fff;
}

/* ══════════════════════════════════════
   FILTERS BAR
══════════════════════════════════════ */
.ac-filters-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;
}

.ac-filters-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.ac-filters-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ac-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ac-filter-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ac-filter-label i { color: #059669; font-size: 0.72rem; }

.ac-filter-select {
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 7px 28px 7px 12px;
    font-size: 0.82rem;
    color: #334155;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748b' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.ac-filter-select:focus { outline: none; border-color: #059669; }

.ac-filter-btn,
.ac-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.ac-filter-btn { background: #059669; color: #fff; border-color: #059669; }
.ac-filter-btn:hover { background: #047857; }

.ac-clear-btn { background: #fff; color: #64748b; }
.ac-clear-btn:hover { background: #fee2e2; color: #dc2626; border-color: #fecaca; }

.ac-results-count {
    font-size: 0.88rem;
    color: #334155;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ac-results-count strong { color: #059669; font-size: 1rem; }

.ac-search-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #d1fae5;
    color: #065f46;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.76rem;
}

.ac-search-tag a { color: inherit; text-decoration: none; }
.ac-search-tag a:hover { color: #ef4444; }

/* ══════════════════════════════════════
   SECTION
══════════════════════════════════════ */
.ac-section {
    padding: 28px 0 52px;
    background: #f8fafc;
}

/* ══════════════════════════════════════
   GRID
══════════════════════════════════════ */
.ac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

@media (max-width: 639px)  { .ac-grid { grid-template-columns: 1fr; gap: 12px; } }
@media (min-width: 640px) and (max-width: 1023px) { .ac-grid { grid-template-columns: repeat(2, 1fr); } }

/* ══════════════════════════════════════
   ADMIT CARD
══════════════════════════════════════ */
.ac-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);
}

.ac-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;
}

.ac-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
    border-color: #6ee7b7;
}

/* Top bar */
.ac-card-bar      { height: 4px; flex-shrink: 0; }
.bar-released     { background: linear-gradient(90deg, #059669, #34d399); }
.bar-examcity     { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.bar-upcoming     { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

/* Body */
.ac-card-body {
    padding: 16px 16px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* Badges */
.ac-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.acbadge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #fff;
}

.acbadge-admit        { background: #7c3aed; }
.acbadge-ac-released  { background: #059669; }
.acbadge-ac-examcity  { background: #2563eb; }
.acbadge-ac-upcoming  { background: #f59e0b; }
.acbadge-ac-pending   { background: #6b7280; }

/* Title */
.ac-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ac-card-title a { color: inherit; text-decoration: none; transition: color 0.18s; }
.ac-card-title a:hover { color: #059669; }

/* Org */
.ac-card-org {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: #059669;
    font-weight: 600;
}

.ac-card-org i { font-size: 0.78rem; flex-shrink: 0; }

/* Linked job */
.ac-card-job {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #64748b;
}

.ac-card-job i { font-size: 0.75rem; color: #059669; flex-shrink: 0; }
.ac-card-job a { color: inherit; text-decoration: none; }
.ac-card-job a:hover { color: #059669; }

/* Dates */
.ac-dates {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 4px;
}

.ac-date-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: #475569;
    position: relative;
}

.ac-date-row i {
    color: #94a3b8;
    font-size: 0.78rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 14px;
}

.ac-date-row.date-done { color: #065f46; }
.ac-date-row.date-done i { color: #059669; }

.date-tick {
    margin-left: auto;
    color: #059669;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.ac-city-name {
    display: block;
    font-style: normal;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.ac-inline-link {
    color: #059669;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
}

.ac-inline-link:hover { text-decoration: underline; }

/* Footer */
.ac-card-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

/* Buttons */
.acbtn {
    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;
}

.acbtn-primary  { background: #059669; color: #fff; }
.acbtn-primary:hover  { background: #047857; transform: translateY(-1px); }

.acbtn-outline  { background: #fff; color: #059669; border: 1.5px solid #a7f3d0; }
.acbtn-outline:hover  { background: #ecfdf5; }

.acbtn-examcity { background: #2563eb; color: #fff; }
.acbtn-examcity:hover { background: #1d4ed8; transform: translateY(-1px); }

@media (max-width: 479px) {
    .ac-card-footer { flex-direction: column; }
    .acbtn { width: 100%; flex: none; }
}

/* ══════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════ */
.ac-empty {
    text-align: center;
    padding: 64px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ac-empty-icon {
    width: 72px;
    height: 72px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: #059669;
}

.ac-empty h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.ac-empty p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ══════════════════════════════════════
   PAGINATION
══════════════════════════════════════ */
.ac-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: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.pag-active  { background: #059669; border-color: #059669; 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;
}