/* ================================================================
   EMPLOYER PORTAL — Complete Design System
   Built from scratch. Scoped to avoid Bootstrap 4/5 conflicts.
   ================================================================ */

/* ---- GOOGLE FONTS - Modern Hebrew & English ---- */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- DESIGN TOKENS ---- */
:root {
    --ep-font: 'Heebo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ep-font-english: 'Inter', 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ep-blue: #4a7fb5;
    --ep-blue-dark: #3a6a9b;
    --ep-blue-light: #e8f0f8;
    --ep-blue-50: #f0f5fb;
    --ep-text: #1e293b;
    --ep-text-mid: #475569;
    --ep-text-light: #94a3b8;
    --ep-bg: #f8fafc;
    --ep-white: #ffffff;
    --ep-border: #e2e8f0;
    --ep-border-strong: #cbd5e1;
    --ep-radius: 6px;
    --ep-radius-lg: 10px;
    --ep-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --ep-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --ep-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --ep-ease: 0.2s ease;
    --ep-success: #16a34a;
    --ep-warning: #d97706;
    --ep-danger: #dc2626;
}

/* ---- SCOPED RESET ----
   Prevents Bootstrap's box-model, margin, padding from leaking in */
.portal-page,
.portal-page *,
.portal-page *::before,
.portal-page *::after,
.admin-header,
.admin-header *,
.portal-promo-section,
.portal-promo-section *,
.portal-specializations-section,
.portal-specializations-section *,
.portal-articles-section,
.portal-articles-section *,
.portal-bento-section,
.portal-bento-section *,
.portal-book-section,
.portal-book-section *,
.portal-actions-section,
.portal-actions-section *,
.portal-hero-expanded,
.portal-hero-expanded *,
.portal-hero-sidecards,
.portal-hero-sidecards *,
.portal-partners-section,
.portal-partners-section *,
.login-page,
.login-page *,
.portal-modal-overlay,
.portal-modal-overlay * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Override Bootstrap .container inside our portal */
.portal-page .container,
.admin-header .container,
.portal-promo-section .container,
.portal-specializations-section .container,
.portal-articles-section .container,
.portal-bento-section .container,
.portal-book-section .container,
.portal-actions-section .container,
.portal-hero-expanded .container,
.portal-hero-sidecards .container,
.portal-partners-section .container {
    max-width: 1100px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    float: none !important;
}

/* ---- BOOTSTRAP FORM NUCLEAR OVERRIDE ----
   Bootstrap 4 + 5 both set global styles on bare form elements.
   We must use !important on every property they touch. */
.portal-page select,
.portal-page input,
.portal-page textarea,
.portal-page button,
.portal-modal-overlay select,
.portal-modal-overlay input,
.portal-modal-overlay textarea,
.portal-modal-overlay button,
.admin-header select,
.admin-header input,
.admin-header button {
    box-sizing: border-box !important;
    height: auto !important;
    line-height: normal !important;
    margin: 0 !important;
    font-family: var(--ep-font) !important;
    border-radius: var(--ep-radius) !important;
    box-shadow: none !important;
    background-image: none !important;
}

.portal-page select,
.portal-modal-overlay select {
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 8px center !important;
    background-size: 12px !important;
    padding-left: 28px !important;
}


/* ================================================================
   1. HERO
   ================================================================ */
.portal-hero {
    background: var(--ep-white);
    border-bottom: 1px solid var(--ep-border);
    padding: 28px 0 24px;
    text-align: center;
}

.portal-hero-content {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 20px;
}

.portal-hero h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ep-text);
    margin: 0 0 6px 0;
    line-height: 1.35;
    font-family: var(--ep-font);
}

.portal-hero h1 i {
    color: var(--ep-blue);
    margin-left: 8px;
    font-size: 0.85em;
}

.portal-hero p {
    font-size: 0.8rem;
    color: var(--ep-text-mid);
    line-height: 1.6;
    margin: 0;
    font-family: var(--ep-font);
}


/* ================================================================
   2. SECTION HEADERS
   ================================================================ */
.portal-section-header {
    text-align: center;
    margin-bottom: 20px;
}

.portal-section-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ep-text);
    margin: 0 0 4px 0;
    font-family: var(--ep-font);
}

.portal-section-header p {
    font-size: 0.78rem;
    color: var(--ep-text-mid);
    margin: 0;
    font-family: var(--ep-font);
}


/* ================================================================
   3. CARDS SECTION (shared wrapper)
   ================================================================ */
.portal-cards-section {
    padding: 28px 0;
    background: var(--ep-bg);
}


/* ================================================================
   4. PRIMARY CARDS (Student / Graduate)
   ================================================================ */
.portal-primary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 620px;
    margin: 0 auto;
    padding: 0 20px;
}

.portal-primary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    color: var(--ep-text) !important;
    background: var(--ep-white);
    border: 2px solid var(--ep-blue);
    border-radius: var(--ep-radius-lg);
    padding: 24px 18px;
    min-height: 140px;
    box-shadow: 0 2px 8px rgba(74,127,181,0.10);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.portal-primary-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74,127,181,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.portal-primary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74,127,181,0.18);
    border-color: var(--ep-blue-dark);
}

.portal-primary-card-icon {
    width: 44px;
    height: 44px;
    background: var(--ep-blue-light);
    border-radius: var(--ep-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--ep-blue);
    transition: all 0.3s ease;
}

.portal-primary-card:hover .portal-primary-card-icon {
    background: var(--ep-blue);
    color: var(--ep-white);
    transform: scale(1.05);
}

.portal-primary-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 3px 0;
    color: var(--ep-text);
    font-family: var(--ep-font);
}

.portal-primary-card p {
    font-size: 0.76rem;
    color: var(--ep-text-mid);
    margin: 0;
    font-family: var(--ep-font);
}


/* ================================================================
   5. SECONDARY CARDS (Employer / Admin)
   ================================================================ */
.portal-secondary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

.portal-secondary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    color: var(--ep-text) !important;
    background: var(--ep-white);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    padding: 18px 14px;
    min-height: 105px;
    box-shadow: var(--ep-shadow-sm);
    transition: all var(--ep-ease);
}

.portal-secondary-card:hover {
    box-shadow: var(--ep-shadow-md);
    border-color: var(--ep-blue);
    transform: translateY(-2px);
}

.portal-secondary-card-icon {
    width: 36px;
    height: 36px;
    background: var(--ep-blue-light);
    border-radius: var(--ep-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--ep-blue);
    transition: all var(--ep-ease);
}

.portal-secondary-card:hover .portal-secondary-card-icon {
    background: var(--ep-blue);
    color: var(--ep-white);
}

.portal-secondary-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: var(--ep-text);
    font-family: var(--ep-font);
}

.portal-secondary-card p {
    font-size: 0.74rem;
    color: var(--ep-text-mid);
    margin: 0;
    line-height: 1.45;
    font-family: var(--ep-font);
}


/* ================================================================
   6. STATS BAR
   ================================================================ */
.portal-stats {
    padding: 24px 0;
    background: var(--ep-white);
    border-bottom: 1px solid var(--ep-border);
}

.portal-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 20px;
}

.portal-stat-item { text-align: center; }

.portal-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ep-blue);
    line-height: 1;
    margin-bottom: 4px;
    font-family: var(--ep-font);
}

.portal-stat-label {
    font-size: 0.7rem;
    color: var(--ep-text-mid);
    font-weight: 500;
    font-family: var(--ep-font);
}


/* ================================================================
   7. SPECIALIZATIONS
   ================================================================ */
.portal-specializations-section {
    padding: 28px 0;
    background: var(--ep-bg);
}

.portal-specializations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 20px;
}

.portal-spec-card {
    background: var(--ep-white);
    padding: 14px 10px;
    border-radius: var(--ep-radius);
    text-align: center;
    border: 1px solid var(--ep-border);
    transition: all var(--ep-ease);
}

.portal-spec-card:hover {
    border-color: var(--ep-blue);
    box-shadow: var(--ep-shadow-sm);
    transform: translateY(-1px);
}

.portal-spec-card i {
    font-size: 1rem;
    color: var(--ep-blue);
    display: block;
    margin-bottom: 6px;
}

.portal-spec-card span {
    font-weight: 500;
    color: var(--ep-text);
    font-size: 0.7rem;
    display: block;
    line-height: 1.35;
    font-family: var(--ep-font);
}


/* ================================================================
   7.5 BENTO GRID LAYOUT
   ================================================================ */
.portal-bento-section {
    padding: 32px 0 48px;
    background: var(--ep-bg);
}

.portal-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    gap: 16px;
}

.bento-card {
    background: var(--ep-white);
    border-radius: 16px;
    padding: 20px;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* Main CTA - spans 2 columns, 2 rows */
.bento-main {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--ep-blue) 0%, #1e40af 100%);
    color: var(--ep-white) !important;
    padding: 32px;
    justify-content: center;
    min-height: 280px;
}

.bento-main .bento-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.bento-main h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--ep-white);
    font-family: var(--ep-font);
}

.bento-main p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0 0 20px;
    color: var(--ep-white);
    font-family: var(--ep-font);
}

.bento-main .bento-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
    color: var(--ep-white);
    font-family: var(--ep-font);
}

.bento-main:hover .bento-action {
    background: rgba(255,255,255,0.3);
}

/* Stats card - spans 2 columns */
.bento-stats {
    grid-column: span 2;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 24px;
}

.bento-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    height: 100%;
    align-items: center;
}

.bento-stat {
    text-align: center;
}

.bento-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ep-white);
    font-family: var(--ep-font);
}

.bento-stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
    font-family: var(--ep-font);
}

/* Regular action cards */
.bento-students,
.bento-graduates,
.bento-employers {
    justify-content: center;
    text-align: center;
    min-height: 140px;
}

.bento-students { background: linear-gradient(135deg, #059669 0%, #047857 100%); color: var(--ep-white) !important; }
.bento-graduates { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); color: var(--ep-white) !important; }
.bento-employers { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); color: var(--ep-white) !important; }

.bento-students .bento-icon,
.bento-graduates .bento-icon,
.bento-employers .bento-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.bento-students h3,
.bento-graduates h3,
.bento-employers h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--ep-white);
    font-family: var(--ep-font);
}

.bento-students p,
.bento-graduates p,
.bento-employers p {
    font-size: 0.78rem;
    opacity: 0.85;
    margin: 0;
    color: var(--ep-white);
    font-family: var(--ep-font);
}

/* Specializations card - spans 2 columns */
.bento-specs {
    grid-column: span 2;
    background: #f1f5f9;
}

.bento-specs h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--ep-text);
    font-family: var(--ep-font);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bento-specs h4 i {
    color: var(--ep-blue);
}

.bento-specs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bento-specs-tags span {
    background: var(--ep-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--ep-text);
    font-family: var(--ep-font);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Responsive bento */
@media (max-width: 992px) {
    .portal-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-main { grid-column: span 2; grid-row: span 1; min-height: 200px; }
    .bento-stats { grid-column: span 2; }
    .bento-specs { grid-column: span 2; }
}

@media (max-width: 576px) {
    .portal-bento-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .bento-main,
    .bento-stats,
    .bento-specs { grid-column: span 1; }
    .bento-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-main { min-height: 180px; padding: 24px; }
    .bento-main h2 { font-size: 1.3rem; }
}


/* ================================================================
   8. CTA / PROMO
   ================================================================ */
.portal-promo-section {
    padding: 32px 0;
    background: linear-gradient(135deg, var(--ep-blue) 0%, var(--ep-blue-dark) 100%);
}

.portal-promo-content {
    text-align: center;
    color: var(--ep-white);
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

.portal-promo-content h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--ep-white);
    font-family: var(--ep-font);
}

.portal-promo-content p {
    font-size: 0.82rem;
    opacity: 0.9;
    margin: 0 0 18px 0;
    color: var(--ep-white);
    font-family: var(--ep-font);
}

.portal-promo-btn {
    background: var(--ep-white);
    color: var(--ep-blue) !important;
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--ep-radius);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--ep-ease);
    font-family: var(--ep-font);
}

.portal-promo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


/* ================================================================
   8.5 ARTICLES SECTION
   ================================================================ */
.portal-articles-section {
    padding: 48px 0;
    background: #f8fafc;
}

.portal-articles-section .portal-section-header h2 i {
    margin-left: 8px;
    color: var(--ep-blue);
}

.portal-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.portal-article-card {
    background: var(--ep-white);
    border-radius: var(--ep-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.portal-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.portal-article-img {
    height: 150px;
    overflow: hidden;
    background: #e2e8f0;
}

.portal-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portal-article-card:hover .portal-article-img img {
    transform: scale(1.05);
}

.portal-article-content {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portal-article-content h4 {
    margin: 0 0 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ep-text);
    line-height: 1.4;
    font-family: var(--ep-font);
}

.portal-article-content p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--ep-muted);
    line-height: 1.5;
    font-family: var(--ep-font);
}

@media (max-width: 768px) {
    .portal-articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .portal-article-card {
        flex-direction: row;
    }
    
    .portal-article-img {
        width: 120px;
        height: auto;
        min-height: 100px;
        flex-shrink: 0;
    }
    
    .portal-article-content {
        padding: 12px 14px;
    }
}


/* ================================================================
   9. BUTTONS (global)
   ================================================================ */
.portal-btn {
    padding: 6px 14px !important;
    border-radius: var(--ep-radius) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all var(--ep-ease) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    border: none !important;
    white-space: nowrap !important;
    font-family: var(--ep-font) !important;
    line-height: 1.4 !important;
    height: auto !important;
    box-shadow: none !important;
}

.portal-btn-primary {
    background: #2563eb !important;
    color: #ffffff !important;
}
.portal-btn-primary:hover { background: #1d4ed8 !important; }

.portal-btn-outline {
    background: var(--ep-white) !important;
    color: var(--ep-blue) !important;
    border: 1px solid var(--ep-blue) !important;
}
.portal-btn-outline:hover { background: var(--ep-blue-50) !important; }

.portal-btn-secondary {
    background: var(--ep-white) !important;
    color: var(--ep-text-mid) !important;
    border: 1px solid var(--ep-border-strong) !important;
}
.portal-btn-secondary:hover {
    background: var(--ep-bg) !important;
    color: var(--ep-text) !important;
}

.portal-btn-lg {
    padding: 8px 18px !important;
    font-size: 0.82rem !important;
}


/* ================================================================
   10. FILTER BAR (jobs.aspx)
   ================================================================ */
.portal-jobs-section {
    padding: 24px 0 40px;
    background: var(--ep-bg);
}

.portal-jobs-section > .container {
    max-width: 900px;
}

.portal-filters {
    background: var(--ep-white) !important;
    padding: 14px 16px !important;
    border-radius: var(--ep-radius) !important;
    box-shadow: var(--ep-shadow-sm) !important;
    margin-bottom: 16px !important;
    border: 1px solid var(--ep-border) !important;
}

.portal-filters-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr auto !important;
    gap: 10px !important;
    align-items: end !important;
}

.portal-filter-group {
    min-width: 0 !important;
}

/* Hide Select2 generated containers inside portal filters - we use our own styling */
.portal-filter-group .select2-container,
.portal-filters .select2-container,
.admin-toolbar .select2-container,
.portal-form-group .select2-container {
    display: none !important;
}

/* Ensure our selects are visible and properly styled */
.portal-filter-group select.portal-filter-select,
.portal-filter-group select,
.admin-toolbar select,
.portal-form-group select {
    display: block !important;
    opacity: 1 !important;
    position: relative !important;
    visibility: visible !important;
}

.portal-filter-group label {
    display: block !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    color: var(--ep-text-light) !important;
    margin-bottom: 3px !important;
    letter-spacing: 0.2px !important;
    font-family: var(--ep-font) !important;
    padding: 0 !important;
}

.portal-page select.portal-filter-select,
select.portal-filter-select {
    width: 100% !important;
    padding: 0 10px 0 28px !important;
    height: 36px !important;
    border: 1px solid var(--ep-border-strong) !important;
    border-radius: 8px !important;
    font-size: 0.78rem !important;
    font-family: var(--ep-font) !important;
    background-color: var(--ep-white) !important;
    color: var(--ep-text) !important;
    cursor: pointer !important;
    transition: border-color var(--ep-ease) !important;
    line-height: 36px !important;
    display: block !important;
    box-sizing: border-box !important;
}

.portal-page select.portal-filter-select:focus,
select.portal-filter-select:focus {
    outline: none !important;
    border-color: var(--ep-blue) !important;
    box-shadow: 0 0 0 2px rgba(74,127,181,0.1) !important;
}

.portal-filter-actions {
    display: flex !important;
    gap: 6px !important;
    align-items: flex-end !important;
    flex-shrink: 0 !important;
}

.portal-page button.portal-filter-btn,
button.portal-filter-btn {
    background: var(--ep-blue) !important;
    color: var(--ep-white) !important;
    border: none !important;
    padding: 0 14px !important;
    height: 32px !important;
    border-radius: var(--ep-radius) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    font-family: var(--ep-font) !important;
    cursor: pointer !important;
    transition: background var(--ep-ease) !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    line-height: 1 !important;
}
button.portal-filter-btn:hover { background: var(--ep-blue-dark) !important; }

.portal-page button.portal-filter-reset,
button.portal-filter-reset {
    background: var(--ep-white) !important;
    color: var(--ep-text-light) !important;
    border: 1px solid var(--ep-border-strong) !important;
    padding: 0 10px !important;
    height: 32px !important;
    border-radius: var(--ep-radius) !important;
    font-size: 0.78rem !important;
    font-family: var(--ep-font) !important;
    cursor: pointer !important;
    transition: all var(--ep-ease) !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}
button.portal-filter-reset:hover {
    background: var(--ep-bg) !important;
    color: var(--ep-text-mid) !important;
}


/* ================================================================
   11. JOBS TOOLBAR (count + post)
   ================================================================ */
.portal-jobs-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.portal-jobs-count {
    color: var(--ep-text-mid);
    font-size: 0.78rem;
    font-family: var(--ep-font);
}

.portal-jobs-count strong {
    font-weight: 700;
    color: var(--ep-blue);
}


/* ================================================================
   12. LOADING
   ================================================================ */
.portal-loading {
    width: 24px;
    height: 24px;
    border: 3px solid var(--ep-border);
    border-radius: 50%;
    border-top-color: var(--ep-blue);
    animation: ep-spin 0.6s linear infinite;
    margin: 0 auto;
}

@keyframes ep-spin { to { transform: rotate(360deg); } }

.portal-loading-block {
    text-align: center;
    padding: 40px 16px;
    display: none;
}

.portal-loading-block p {
    margin-top: 10px;
    color: var(--ep-text-light);
    font-size: 0.75rem;
    font-family: var(--ep-font);
}


/* ================================================================
   13. JOB CARDS
   ================================================================ */
.portal-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.portal-job-card {
    background: var(--ep-white);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    padding: 16px;
    box-shadow: var(--ep-shadow-sm);
    transition: all var(--ep-ease);
    display: flex;
    flex-direction: column;
}

.portal-job-card:hover {
    box-shadow: var(--ep-shadow-md);
    border-color: var(--ep-border-strong);
    transform: translateY(-2px);
}

.portal-job-header { margin-bottom: 8px; }

.portal-job-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ep-text);
    margin: 0 0 2px 0;
    line-height: 1.4;
    font-family: var(--ep-font);
}

.portal-job-company {
    font-size: 0.76rem;
    color: var(--ep-blue);
    font-weight: 500;
    font-family: var(--ep-font);
}

.portal-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.portal-job-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 500;
    background: var(--ep-bg);
    color: var(--ep-text-mid);
    border: 1px solid var(--ep-border);
    font-family: var(--ep-font);
}

.portal-job-badge i { font-size: 0.55rem; }

.portal-job-badge.type-fulltime  { background: var(--ep-blue-50); color: var(--ep-blue); border-color: #bdd4ec; }
.portal-job-badge.type-parttime  { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.portal-job-badge.type-internship { background: #f0fdf4; color: #065f46; border-color: #a7f3d0; }
.portal-job-badge.type-project   { background: #f5f3ff; color: #5b21b6; border-color: #ddd6fe; }

.portal-job-description {
    color: var(--ep-text-mid);
    font-size: 0.76rem;
    line-height: 1.55;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    font-family: var(--ep-font);
}

.portal-job-date {
    font-size: 0.7rem;
    color: var(--ep-text-light);
    margin-bottom: 10px;
    font-family: var(--ep-font);
}

.portal-job-date i { margin-left: 3px; }

.portal-job-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.portal-job-actions .portal-btn {
    flex: 1;
    padding: 5px 10px;
    font-size: 0.75rem;
}

/* Business filter notice */
.business-filter-notice {
    display: none;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    border: 1px solid #93c5fd;
    border-radius: var(--ep-radius);
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: #1e40af;
    font-family: var(--ep-font);
}

.business-filter-notice i {
    font-size: 1.1rem;
}

.business-filter-notice strong {
    color: #1e3a8a;
}

.business-filter-notice .clear-filter {
    margin-right: auto;
    margin-left: 15px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.business-filter-notice .clear-filter:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.business-filter-notice .clear-filter i {
    font-size: 0.75rem;
}

/* See more from business link in job modal */
.see-more-from-business {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: var(--ep-radius);
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--ep-font);
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.see-more-from-business:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-color: #3b82f6;
    transform: translateX(-4px);
}

.see-more-from-business i {
    font-size: 0.9rem;
}


/* ================================================================
   14. NO RESULTS
   ================================================================ */
.portal-no-results {
    text-align: center;
    padding: 40px 16px;
    display: none;
}

.portal-no-results.ep-open { display: block; }

.portal-no-results i {
    font-size: 1.6rem;
    color: var(--ep-border-strong);
    display: block;
    margin-bottom: 10px;
}

.portal-no-results h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ep-text);
    margin-bottom: 4px;
    font-family: var(--ep-font);
}

.portal-no-results p {
    font-size: 0.78rem;
    color: var(--ep-text-mid);
    font-family: var(--ep-font);
}


/* ================================================================
   15. FORMS (employer-contact + modals)
   ================================================================ */
.portal-form-section {
    padding: 28px 0;
    background: var(--ep-bg);
}

.portal-form-container {
    max-width: 580px;
    margin: 0 auto;
    background: var(--ep-white);
    border-radius: var(--ep-radius-lg);
    padding: 24px;
    box-shadow: var(--ep-shadow-md);
    border: 1px solid var(--ep-border);
}

.portal-form-header {
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ep-border);
}

.portal-form-header:last-child {
    margin-bottom: 14px;
    padding-bottom: 0;
    border-bottom: none;
}

.portal-form-header h2 {
    font-size: 1rem;
    color: var(--ep-text);
    margin: 0 0 4px 0;
    font-weight: 700;
    font-family: var(--ep-font);
}

.portal-form-header h2 i {
    color: var(--ep-blue);
    margin-left: 6px;
    font-size: 0.85em;
}

.portal-form-header p {
    color: var(--ep-text-mid);
    font-size: 0.78rem;
    margin: 0;
    font-family: var(--ep-font);
}

.portal-form-group {
    margin-bottom: 14px;
}

.portal-form-group label {
    display: block;
    font-weight: 600;
    color: var(--ep-text);
    margin-bottom: 4px;
    font-size: 0.78rem;
    font-family: var(--ep-font);
}

.portal-form-group label .required {
    color: var(--ep-danger);
    margin-right: 2px;
}

.optional-badge {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--ep-text-light);
    margin-right: 4px;
}

.portal-page input.portal-form-input,
.portal-page select.portal-form-select,
.portal-page textarea.portal-form-textarea,
.portal-modal-overlay input.portal-form-input,
.portal-modal-overlay select.portal-form-select,
.portal-modal-overlay textarea.portal-form-textarea,
input.portal-form-input,
select.portal-form-select,
textarea.portal-form-textarea {
    width: 100% !important;
    padding: 0 10px 0 28px !important;
    height: 32px !important;
    border: 1px solid var(--ep-border-strong) !important;
    border-radius: var(--ep-radius) !important;
    font-size: 0.78rem !important;
    transition: border-color var(--ep-ease) !important;
    font-family: var(--ep-font) !important;
    background-color: var(--ep-white) !important;
    color: var(--ep-text) !important;
    line-height: 32px !important;
    display: block !important;
}

input.portal-form-input {
    padding: 0 10px !important;
}

.portal-page input.portal-form-input:focus,
.portal-page select.portal-form-select:focus,
.portal-page textarea.portal-form-textarea:focus,
.portal-modal-overlay input.portal-form-input:focus,
.portal-modal-overlay select.portal-form-select:focus,
.portal-modal-overlay textarea.portal-form-textarea:focus {
    outline: none !important;
    border-color: var(--ep-blue) !important;
    box-shadow: 0 0 0 2px rgba(74,127,181,0.1) !important;
}

.portal-page textarea.portal-form-textarea,
.portal-modal-overlay textarea.portal-form-textarea,
textarea.portal-form-textarea {
    height: auto !important;
    min-height: 90px !important;
    padding: 8px 10px !important;
    resize: vertical !important;
    line-height: 1.55 !important;
}

.portal-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.portal-ltr-input {
    direction: ltr;
    text-align: left;
}

.portal-form-file {
    padding: 22px 14px;
    border: 2px dashed var(--ep-border-strong);
    border-radius: var(--ep-radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--ep-ease);
    background: var(--ep-bg);
}

.portal-form-file:hover {
    border-color: var(--ep-blue);
    background: var(--ep-blue-50);
}

.portal-form-file input[type="file"] { display: none; }

.portal-form-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.portal-form-file-label i { font-size: 1.2rem; color: var(--ep-blue); }
.portal-form-file-label span { color: var(--ep-text); font-size: 0.78rem; font-weight: 500; font-family: var(--ep-font); }
.portal-form-file-label small { font-size: 0.7rem; color: var(--ep-text-light); font-family: var(--ep-font); }

.portal-form-file-name {
    font-size: 0.76rem;
    color: var(--ep-success);
    margin-top: 8px;
    font-weight: 500;
    font-family: var(--ep-font);
}

.portal-form-submit {
    width: 100%;
    padding: 8px;
    font-size: 0.82rem;
    margin-top: 8px;
}

.portal-form-submit .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: ep-spin 0.6s linear infinite;
}

.portal-form-submit.loading .spinner { display: inline-block; }
.portal-form-submit.loading .btn-text { opacity: 0; }

.portal-form-input.error,
.portal-form-select.error,
.portal-form-textarea.error {
    border-color: var(--ep-danger);
}

.portal-form-error {
    color: var(--ep-danger);
    font-size: 0.72rem;
    margin-top: 4px;
    display: none;
    font-family: var(--ep-font);
}

.portal-form-error.ep-open { display: block; }

.portal-form-divider {
    border: none;
    border-top: 1px solid var(--ep-border);
    margin: 18px 0;
}

.portal-form-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--ep-border);
    text-align: center;
}

.portal-form-footer p {
    color: var(--ep-text-light);
    font-size: 0.74rem;
    margin-bottom: 8px;
    font-family: var(--ep-font);
}

.portal-form-footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.portal-form-footer-links a {
    color: var(--ep-blue) !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--ep-font);
}

.portal-form-footer-links a:hover { text-decoration: underline !important; }

.portal-btn-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}


/* ================================================================
   16. BANNERS (info, success, warning, error)
   ================================================================ */
.portal-banner {
    border-radius: var(--ep-radius);
    padding: 10px 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.78rem;
    font-family: var(--ep-font);
    line-height: 1.5;
}

.portal-banner i {
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.portal-banner--success  { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.portal-banner--success i { color: #16a34a; }
.portal-banner--info     { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.portal-banner--info i    { color: #2563eb; }
.portal-banner--warning  { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.portal-banner--warning i { color: #d97706; }
.portal-banner--error    { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.portal-banner--error i   { color: #dc2626; }

.portal-banner-title {
    font-weight: 600;
    font-size: 0.78rem;
}

.portal-banner-subtitle {
    font-size: 0.72rem;
    opacity: 0.85;
    margin-top: 1px;
}


/* ================================================================
   17. SUCCESS STEP
   ================================================================ */
.portal-success-step {
    text-align: center;
    padding: 24px 10px;
}

.portal-success-step i {
    font-size: 2.2rem;
    color: var(--ep-success);
    display: block;
    margin-bottom: 12px;
}

.portal-success-step h2,
.portal-success-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ep-text);
    margin-bottom: 6px;
    font-family: var(--ep-font);
}

.portal-success-step p {
    color: var(--ep-text-mid);
    font-size: 0.78rem;
    font-family: var(--ep-font);
}


/* ================================================================
   18. MESSAGE (employer-contact inline)
   ================================================================ */
.portal-message {
    display: none;
    padding: 10px 14px;
    border-radius: var(--ep-radius);
    font-size: 0.78rem;
    margin-top: 12px;
    font-family: var(--ep-font);
    align-items: center;
    gap: 6px;
}

.portal-message.ep-open.error {
    display: flex;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}


/* ================================================================
   19. MODALS
   ================================================================ */
.portal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.portal-modal-overlay.ep-open { display: flex; }

.portal-modal {
    background: var(--ep-white);
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    direction: rtl;
    text-align: right;
    overflow: hidden;
}

.portal-modal-lg {
    max-width: 700px;
}

.portal-modal-header {
    padding: 18px 24px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.portal-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    font-family: var(--ep-font);
}

.portal-modal-header h3 i {
    color: #93c5fd;
    margin-left: 8px;
    font-size: 0.9em;
}

.portal-modal-subtitle {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-family: var(--ep-font);
    margin-top: 4px;
}

.portal-modal-close {
    background: rgba(255,255,255,0.15) !important;
    border: none !important;
    font-size: 1.4rem;
    color: #ffffff !important;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.2s ease;
    font-weight: bold;
}

.portal-modal-close:hover {
    background: rgba(255,255,255,0.25) !important;
    color: #ffffff !important;
    transform: scale(1.05);
}

.portal-modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.88rem;
    line-height: 1.7;
    font-family: var(--ep-font);
    color: var(--ep-text);
}

.portal-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ================================================================
   APPLICATION DETAIL MODAL (modern card layout)
   ================================================================ */

/* Application Modal - Section Layout */
.apm-section {
    padding: 16px 24px;
    border-bottom: 1px solid #eef2f6;
}
.apm-section:last-child { border-bottom: none; }

.apm-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.apm-section-label i {
    margin-left: 4px;
    font-size: 0.65rem;
}

/* Student Section */
.apm-student {
    background: linear-gradient(135deg, #f0f5ff 0%, #f8fafc 100%);
    border-bottom: 2px solid #dbeafe;
}
.apm-student-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}
.apm-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}
.apm-info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #475569;
    padding: 4px 0;
}
.apm-info-item i {
    font-size: 0.7rem;
    color: #94a3b8;
    width: 14px;
    text-align: center;
}
.apm-cv-item a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.apm-cv-item a:hover { color: #1d4ed8; text-decoration: underline; }

/* Job Section */
.apm-job { background: #fff; }
.apm-job-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}
.apm-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.apm-job-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 14px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.apm-job-tag i { font-size: 0.65rem; color: #94a3b8; }

.apm-job-desc, .apm-job-req {
    font-size: 0.82rem;
    line-height: 1.65;
    color: #334155;
    margin-top: 8px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #eef2f6;
}
.apm-job-desc-label, .apm-job-req-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}

/* Status + Date Row */
.apm-status-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.apm-status-col { flex: 1; }
.apm-date-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    padding: 7px 0;
}

.app-modal-section {
    padding: 18px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.app-modal-section:last-child {
    border-bottom: none;
}

.app-modal-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.app-modal-section-title i {
    margin-left: 5px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.app-modal-notes-list {
    max-height: 200px;
    overflow-y: auto;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e9edf2;
    min-height: 48px;
}

.app-modal-note-item {
    padding: 11px 16px;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    transition: background 0.15s ease;
}

.app-modal-note-item:last-child {
    border-bottom: none;
}

.app-modal-note-item:hover {
    background: #eef2f6;
}

.app-modal-note-text {
    font-size: 0.84rem;
    color: #1e293b;
    line-height: 1.5;
}

.app-modal-note-date {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 3px;
}

.app-modal-note-date i {
    margin-left: 3px;
}

.app-modal-note-delete {
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    padding: 4px;
    font-size: 0.72rem;
    border-radius: 6px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.app-modal-note-delete:hover {
    color: #ef4444;
    background: #fef2f2;
}

.app-modal-notes-empty {
    padding: 24px 16px;
    text-align: center;
    color: #b0bec5;
    font-size: 0.8rem;
}

.app-modal-notes-empty i {
    display: block;
    margin-bottom: 6px;
    font-size: 1.1rem;
    opacity: 0.4;
}

.app-modal-note-input {
    display: flex;
    gap: 0;
    margin-top: 10px;
    border: 1px solid #dde3ea;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-modal-note-input:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}

.app-modal-note-input input {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
    font-size: 0.84rem;
    font-family: var(--ep-font);
    background: transparent;
    color: #1e293b;
    height: auto !important;
    min-height: 0 !important;
}

.app-modal-note-input input::placeholder {
    color: #b0bec5;
}

.app-modal-note-add-btn {
    width: 42px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #3b82f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.15s ease;
    border-radius: 0;
}

.app-modal-note-add-btn:hover {
    background: #eff6ff;
    color: #2563eb;
}

.app-modal-note-add-btn:active {
    background: #dbeafe;
}

/* ================================================================
   JOB MODAL CONTENT (jobs.aspx detail modal)
   ================================================================ */
.job-modal-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.job-modal-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 10px;
    font-size: 0.88rem;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.job-modal-detail i {
    width: 18px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.job-modal-section {
    margin-bottom: 24px;
}

.job-modal-section:last-child {
    margin-bottom: 0;
}

.job-modal-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.job-modal-section-title i {
    color: #3b82f6;
    font-size: 16px;
}

.job-modal-section-content {
    font-size: 0.92rem;
    line-height: 1.8;
    color: #475569;
    white-space: pre-wrap;
}

.job-modal-section-content ul,
.job-modal-section-content ol {
    margin: 10px 0;
    padding-right: 24px;
}

.job-modal-section-content li {
    margin-bottom: 6px;
}


/* ================================================================
   20. ADMIN HEADER
   ================================================================ */
.admin-header {
    background: var(--ep-white);
    border-bottom: 1px solid var(--ep-border);
    padding: 16px 0;
}

.admin-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-header-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ep-text);
    line-height: 1.3;
    font-family: var(--ep-font);
}

.admin-header-title i {
    color: var(--ep-blue);
    margin-left: 6px;
    font-size: 0.85em;
}

.admin-header-subtitle {
    margin: 2px 0 0 0;
    color: var(--ep-text-mid);
    font-size: 0.76rem;
    font-family: var(--ep-font);
}


/* ================================================================
   21. ADMIN CONTAINER
   ================================================================ */
.admin-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px;
}


/* ================================================================
   22. ADMIN STATS
   ================================================================ */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: var(--ep-white);
    padding: 14px;
    border-radius: var(--ep-radius);
    text-align: center;
    box-shadow: var(--ep-shadow-sm);
    border: 1px solid var(--ep-border);
    transition: box-shadow var(--ep-ease);
}

.admin-stat-card:hover { box-shadow: var(--ep-shadow-md); }

.admin-stat-card i {
    font-size: 0.95rem;
    margin-bottom: 6px;
    display: block;
    color: var(--ep-blue);
}

.admin-stat-card:nth-child(1) i { color: var(--ep-blue); }
.admin-stat-card:nth-child(2) i { color: #8b5cf6; }
.admin-stat-card:nth-child(3) i { color: #10b981; }
.admin-stat-card:nth-child(4) i { color: #f59e0b; }

.admin-stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ep-text);
    line-height: 1;
    margin-bottom: 4px;
    font-family: var(--ep-font);
}

.admin-stat-label {
    color: var(--ep-text-mid);
    font-size: 0.7rem;
    font-weight: 500;
    font-family: var(--ep-font);
}


/* ================================================================
   23. ADMIN TABS
   ================================================================ */
.admin-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid var(--ep-border);
    margin-bottom: 20px;
}

.admin-tab {
    padding: 8px 16px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ep-text-mid);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all var(--ep-ease);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--ep-font);
}

.admin-tab:hover { color: var(--ep-blue); }

.admin-tab.active {
    color: var(--ep-blue);
    border-bottom-color: var(--ep-blue);
    font-weight: 600;
}


/* ================================================================
   24. ADMIN PANELS
   ================================================================ */
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.admin-toolbar-wrap {
    row-gap: 10px;
}

.admin-toolbar .portal-filter-select,
.admin-toolbar .portal-form-input {
    min-width: 140px !important;
    max-width: 180px !important;
    height: 36px !important;
    font-size: 0.78rem !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
}

.admin-toolbar .portal-btn {
    height: 36px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    font-size: 0.78rem !important;
    white-space: nowrap;
    border-radius: 8px !important;
}


/* ================================================================
   25. ADMIN TABLES
   ================================================================ */
.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
    font-family: var(--ep-font);
    direction: rtl;
    text-align: right;
}

.admin-table thead {
    background: var(--ep-bg);
}

.admin-table th {
    padding: 8px 10px;
    text-align: right;
    font-weight: 600;
    color: var(--ep-text-mid);
    border-bottom: 1px solid var(--ep-border);
    white-space: nowrap;
    font-size: 0.72rem;
}

.admin-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--ep-border);
    color: var(--ep-text);
    vertical-align: middle;
    text-align: right;
}

.admin-table tbody tr:last-child td { border-bottom: none; }

.admin-table tbody tr:hover { background: var(--ep-blue-50); }

.admin-table a {
    color: var(--ep-blue);
    text-decoration: none;
}
.admin-table a:hover { text-decoration: underline; }


/* ================================================================
   26. ADMIN ACTION BUTTONS
   ================================================================ */
.admin-actions {
    display: flex;
    gap: 2px;
    align-items: center;
}

.admin-btn-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    background: transparent;
    color: #64748b;
    box-shadow: none;
    padding: 0;
}

.admin-btn-sm:hover {
    transform: scale(1.12);
}

.admin-btn-sm:active {
    transform: scale(0.95);
}

.admin-btn-sm:focus,
.admin-btn-sm:focus-visible {
    outline: none;
    box-shadow: none;
}

.admin-btn-view { background: transparent; color: #64748b; }
.admin-btn-view:hover { background: #eff6ff; color: #3b82f6; }

.admin-btn-edit { background: transparent; color: #64748b; }
.admin-btn-edit:hover { background: #eff6ff; color: #3b82f6; }

.admin-btn-delete { background: transparent; color: #94a3b8; }
.admin-btn-delete:hover { background: #fef2f2; color: #ef4444; }

.admin-btn-notes { background: transparent; color: #94a3b8; }
.admin-btn-notes:hover { background: #f5f3ff; color: #7c3aed; }
.admin-btn-notes-filled { background: #f5f3ff !important; color: #7c3aed !important; box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15) !important; }
.admin-btn-notes-filled:hover { background: #ede9fe !important; color: #6d28d9 !important; }

.admin-btn-send { background: transparent; color: #64748b; }
.admin-btn-send:hover { background: #f5f3ff; color: #7c3aed; }
.admin-btn-send-green { background: transparent; color: #64748b; }
.admin-btn-send-green:hover { background: #f0fdf4; color: #16a34a; }
.admin-btn-sent { background: #f0fdf4 !important; color: #16a34a !important; box-shadow: 0 0 0 2px rgba(22, 163, 106, 0.15) !important; }
.admin-btn-sent:hover { background: #dcfce7 !important; color: #15803d !important; }

.admin-btn-published { background: transparent; color: #3b82f6; }
.admin-btn-published:hover { background: #eff6ff; }
.admin-btn-unpublished { background: transparent; color: #94a3b8; }
.admin-btn-unpublished:hover { background: #f8fafc; color: #64748b; }

.admin-btn-toggle-on { background: transparent; color: #16a34a; }
.admin-btn-toggle-on:hover { background: #f0fdf4; }
.admin-btn-toggle-off { background: transparent; color: #94a3b8; }
.admin-btn-toggle-off:hover { background: #f8fafc; color: #64748b; }
.admin-btn-approve { 
    background: transparent; color: #64748b; border: none; cursor: pointer;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 0.7rem;
    transition: all var(--ep-ease);
}
.admin-btn-approve:hover { background: #f0fdf4; color: #16a34a; }
.admin-btn-deactivate {
    background: transparent; color: #64748b; border: none; cursor: pointer;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 0.7rem;
    transition: all var(--ep-ease);
}
.admin-btn-deactivate:hover { background: #fffbeb; color: #d97706; }


/* ================================================================
   27. ADMIN BADGES
   ================================================================ */
.admin-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: var(--ep-font);
}

.badge-new     { background: var(--ep-blue-light); color: var(--ep-blue); }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-active  { background: #d1fae5; color: #065f46; }
.badge-expired { background: #fee2e2; color: #991b1b; }

/* Status Dropdowns (inline in admin tables) */
.app-status-select {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    outline: none;
    appearance: auto;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 110px;
}

.app-status-select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.app-status-select.app-status-new {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.app-status-select.app-status-in_progress {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.app-status-select.app-status-accepted {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.app-status-select.app-status-rejected {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.app-status-select option {
    background: #fff;
    color: #1e293b;
    font-weight: 500;
}

/* Business status dropdown */
.admin-status-dropdown {
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: auto;
    outline: none;
}
.admin-status-dropdown:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.admin-status-dropdown.status-0 {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}
.admin-status-dropdown.status-1 {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}
.admin-status-dropdown option {
    background: #fff;
    color: #1e293b;
    font-weight: 500;
}


/* ================================================================
   28. DETAIL GRID (student modal)
   ================================================================ */
.portal-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.portal-detail-grid-item {
    background: var(--ep-bg);
    border-radius: var(--ep-radius);
    padding: 8px 10px;
}

.portal-detail-grid-item label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--ep-text-light);
    margin-bottom: 2px;
    font-family: var(--ep-font);
}

.portal-detail-grid-item span {
    font-size: 0.78rem;
    color: var(--ep-text);
    font-weight: 500;
    font-family: var(--ep-font);
}


/* ================================================================
   29. REQUEST CARDS (student modal)
   ================================================================ */
.portal-request-card {
    background: var(--ep-bg);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    padding: 10px 12px;
    margin-bottom: 8px;
}

.portal-request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.portal-request-card-header strong {
    font-size: 0.8rem;
    font-family: var(--ep-font);
}

.portal-request-card-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.portal-request-card-actions select,
.portal-request-card-actions input[type="text"] {
    height: 28px !important;
    padding: 0 8px !important;
    border: 1px solid var(--ep-border-strong) !important;
    border-radius: var(--ep-radius) !important;
    font-size: 0.72rem !important;
    font-family: var(--ep-font) !important;
    background-color: var(--ep-white) !important;
    color: var(--ep-text) !important;
    line-height: 28px !important;
}

.portal-request-card-actions select { min-width: 100px; }
.portal-request-card-actions input[type="text"] { flex: 1; min-width: 100px; }

.portal-request-card-actions .portal-btn {
    height: 28px;
    padding: 0 10px;
    font-size: 0.72rem;
}

/* Notes display */
.portal-request-notes {
    margin-bottom: 8px;
    padding: 6px 8px;
    background: var(--ep-white);
    border-radius: var(--ep-radius);
    border: 1px dashed var(--ep-border);
}
.portal-request-note {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 3px 0;
    font-size: 0.72rem;
    border-bottom: 1px solid var(--ep-border);
}
.portal-request-note:last-child { border-bottom: none; }
.portal-request-note-text {
    color: var(--ep-text);
    flex: 1;
}
.portal-request-note-date {
    color: var(--ep-text-mid);
    font-size: 0.65rem;
    white-space: nowrap;
    direction: ltr;
}

/* ================================================================
   30. STUDENT MODAL - MASTER/DETAIL DESIGN
   ================================================================ */

/* Compact student info bar */
.student-quick-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #ffffff !important;
    flex-wrap: wrap;
}

.student-quick-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    color: #ffffff !important;
}

.student-quick-name {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff !important;
}

.student-quick-detail {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.9) !important;
}

.student-quick-detail i {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.8) !important;
}

.student-quick-cv {
    background: #16a34a !important;
    color: #ffffff !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.student-quick-cv:hover {
    background: #15803d;
    transform: translateY(-1px);
}

/* Requests Section */
.student-requests-section {
    margin-top: 8px;
}

.student-requests-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b !important;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.student-requests-header i {
    color: #2563eb !important;
}

.student-requests-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Individual Request Item */
.student-request-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.student-request-item:hover {
    border-color: #93c5fd !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.student-request-item.expanded {
    border-color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

/* Summary row (always visible) */
.student-request-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    gap: 12px;
    background: #ffffff;
}

.student-request-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.student-request-job {
    font-weight: 600;
    font-size: 0.88rem;
    color: #1e293b !important;
}

.student-request-company {
    font-size: 0.78rem;
    color: #64748b !important;
}

.student-request-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.student-request-date {
    font-size: 0.72rem;
    color: #94a3b8 !important;
    direction: ltr;
}

.student-request-has-notes {
    color: #f59e0b !important;
    font-size: 0.75rem;
}

.student-request-chevron {
    color: #94a3b8 !important;
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.student-request-item.expanded .student-request-chevron {
    transform: rotate(180deg);
    color: #2563eb !important;
}

/* Details panel (expandable) */
.student-request-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #ffffff;
}

.student-request-item.expanded .student-request-details {
    max-height: 500px;
}

.request-detail-content {
    padding: 12px 14px 14px 14px;
    border-top: 1px dashed #e2e8f0;
    background: #ffffff;
}

/* Notes in detail view */
.request-detail-notes {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 10px 0 12px 0;
}

.request-detail-notes-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #92400e !important;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.request-detail-notes-title i {
    font-size: 0.7rem;
    color: #f59e0b !important;
}

.request-detail-note {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #fde68a;
}

.request-detail-note:last-child {
    border-bottom: none;
}

.request-detail-note-text {
    flex: 1;
    font-size: 0.78rem;
    color: #78350f !important;
}

.request-detail-note-date {
    font-size: 0.68rem;
    color: #b45309 !important;
    direction: ltr;
    white-space: nowrap;
}

/* Action bar in detail view */
.request-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 8px;
}

.request-detail-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.request-detail-status-row label {
    font-size: 0.78rem;
    color: #475569 !important;
    white-space: nowrap;
    font-weight: 600;
}

.request-detail-status-row select {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px;
    font-size: 0.78rem;
    font-family: inherit;
    background: #ffffff !important;
    color: #1e293b !important;
    min-width: 110px;
}

.request-detail-note-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.request-detail-note-row input[type="text"] {
    flex: 1;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px;
    font-size: 0.78rem;
    font-family: inherit;
    background: #ffffff !important;
    color: #1e293b !important;
}

.request-detail-note-row input[type="text"]::placeholder {
    color: #94a3b8;
}

.request-detail-note-row .admin-btn-sm {
    width: 32px;
    height: 32px;
}

/* Send to employer section */
.request-send-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 8px;
    flex-wrap: wrap;
}

.request-send-label {
    font-size: 0.8rem;
    color: #475569 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.request-send-label i {
    color: #2563eb !important;
}

.request-send-label strong {
    color: #1e293b !important;
}

.request-send-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.request-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.request-send-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ================================================================
   SEND JOBS MODAL
   ================================================================ */
.send-jobs-modal-content {
    padding: 0;
}

.send-jobs-student-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-bottom: 1px solid #bae6fd;
    font-weight: 600;
    color: #1e293b !important;
}

.send-jobs-student-info > i {
    color: #0284c7 !important;
    font-size: 1.1rem;
}

.send-jobs-student-info > span {
    color: #1e293b !important;
}

.send-jobs-cv-badge {
    margin-right: auto;
    background: #dcfce7 !important;
    color: #16a34a !important;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.send-jobs-list {
    padding: 8px;
    max-height: 400px;
    overflow-y: auto;
    background: #f8fafc;
}

.send-jobs-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.send-jobs-item:last-child {
    margin-bottom: 0;
}

.send-jobs-item:hover {
    border-color: #93c5fd !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.send-jobs-item.sent {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
}

.send-jobs-item-info {
    flex: 1;
    min-width: 0;
}

.send-jobs-item-job {
    font-weight: 600;
    font-size: 0.88rem;
    color: #1e293b !important;
    margin-bottom: 3px;
}

.send-jobs-item-company {
    font-size: 0.78rem;
    color: #64748b !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.send-jobs-item-company i {
    font-size: 0.7rem;
    color: #2563eb !important;
}

.send-jobs-item-meta {
    flex-shrink: 0;
}

.send-jobs-item-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 50%;
    border: 2px solid #1d4ed8 !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    opacity: 1 !important;
    visibility: visible !important;
}

.send-jobs-item-btn i {
    color: #ffffff !important;
}

.send-jobs-item-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.send-jobs-item-btn:disabled {
    cursor: not-allowed;
    transform: none;
    opacity: 0.7 !important;
}

.send-jobs-item.sent .send-jobs-item-btn {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    border-color: #15803d !important;
}

/* No requests state */
.student-no-requests {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8 !important;
}

.student-no-requests i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #cbd5e1 !important;
}

.student-no-requests p {
    font-size: 0.9rem;
    margin: 0;
    color: #64748b !important;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .student-quick-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .student-quick-info {
        justify-content: center;
    }
    
    .student-quick-cv {
        justify-content: center;
    }
    
    .student-request-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .student-request-meta {
        justify-content: space-between;
    }
    
    .request-detail-status-row {
        flex-wrap: wrap;
    }
    
    .request-detail-status-row select {
        flex: 1;
    }
    
    .request-send-section {
        flex-direction: column;
        text-align: center;
    }
    
    .request-send-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================================================
   30. JOB DETAIL MODAL STYLES
   ================================================================ */
.job-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ep-border);
}

.job-detail-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ep-text);
    margin: 0;
    font-family: var(--ep-font);
    flex: 1;
}

.job-detail-section {
    margin-bottom: 20px;
}

.job-detail-section h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ep-blue);
    margin: 0 0 12px;
    font-family: var(--ep-font);
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-detail-section h4 i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.job-detail-text {
    font-size: 0.85rem;
    color: var(--ep-text);
    line-height: 1.7;
    font-family: var(--ep-font);
    background: var(--ep-bg);
    padding: 14px 16px;
    border-radius: var(--ep-radius);
    border: 1px solid var(--ep-border);
    white-space: pre-wrap;
}

.portal-btn-success {
    background: #059669 !important;
    color: #fff !important;
    border: 1.5px solid #047857 !important;
    box-shadow: 0 1px 3px rgba(5,150,105,0.25) !important;
}

.portal-btn-success:hover {
    background: #047857 !important;
    box-shadow: 0 2px 6px rgba(5,150,105,0.35) !important;
}


/* ================================================================
   30. JOB FORM (admin add/edit)
   ================================================================ */
.job-form-flat {
    max-width: 600px;
    margin: 0 auto;
    background: var(--ep-white);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    padding: 20px;
}

.job-form-container {
    max-width: 680px;
}

.job-form-section {
    background: var(--ep-white);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.job-form-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--ep-bg);
    border-bottom: 1px solid var(--ep-border);
}

.job-form-section-icon {
    width: 30px;
    height: 30px;
    background: var(--ep-blue-light);
    border-radius: var(--ep-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ep-blue);
    font-size: 0.82rem;
    flex-shrink: 0;
}

.job-form-section-header h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ep-text);
    margin: 0;
    font-family: var(--ep-font);
}

.job-form-section-header p {
    font-size: 0.7rem;
    color: var(--ep-text-light);
    margin: 0;
    font-family: var(--ep-font);
}

.job-form-section-body {
    padding: 14px;
}

.job-form-field {
    margin-bottom: 12px;
}

.job-form-field:last-child { margin-bottom: 0; }

.job-form-field label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ep-text);
    margin-bottom: 4px;
    font-family: var(--ep-font);
}

.job-form-field label i {
    color: var(--ep-blue);
    margin-left: 4px;
    font-size: 0.72rem;
}

.job-form-field input,
.job-form-field select,
.job-form-field textarea {
    width: 100% !important;
    height: 32px !important;
    padding: 0 10px !important;
    border: 1px solid var(--ep-border-strong) !important;
    border-radius: var(--ep-radius) !important;
    font-size: 0.78rem !important;
    font-family: var(--ep-font) !important;
    background-color: var(--ep-white) !important;
    color: var(--ep-text) !important;
    transition: border-color var(--ep-ease) !important;
    line-height: 32px !important;
}

.job-form-field select {
    padding-left: 28px !important;
}

.job-form-field textarea {
    height: auto !important;
    min-height: 80px !important;
    padding: 8px 10px !important;
    resize: vertical !important;
    line-height: 1.5 !important;
}

.job-form-field input:focus,
.job-form-field select:focus,
.job-form-field textarea:focus {
    outline: none !important;
    border-color: var(--ep-blue) !important;
    box-shadow: 0 0 0 2px rgba(74,127,181,0.1) !important;
}

.job-form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.job-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.job-form-btn-primary {
    padding: 8px 18px;
    background: var(--ep-blue);
    color: var(--ep-white);
    border: none;
    border-radius: var(--ep-radius);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--ep-font);
    transition: background var(--ep-ease);
}
.job-form-btn-primary:hover { background: var(--ep-blue-dark); }

.job-form-btn-secondary {
    padding: 8px 18px;
    background: var(--ep-white);
    color: var(--ep-text-mid);
    border: 1px solid var(--ep-border-strong);
    border-radius: var(--ep-radius);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--ep-font);
    transition: all var(--ep-ease);
}
.job-form-btn-secondary:hover {
    background: var(--ep-bg);
    color: var(--ep-text);
}


/* ================================================================
   31. RESPONSIVE
   ================================================================ */
@media (max-width: 992px) {
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .portal-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-specializations-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================================
   35. NOTIFICATION SYSTEM
   ================================================================ */

/* Bell button */
.notif-bell-wrap {
    position: relative;
}
.notif-bell-btn {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    cursor: pointer;
    font-size: 0.85rem;
    color: #475569 !important;
    position: relative;
    padding: 6px 10px !important;
    width: auto !important;
    height: auto !important;
    border-radius: var(--ep-radius) !important;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.notif-bell-btn:hover { background: #e2e8f0 !important; color: #1e293b !important; }
.notif-bell-badge {
    position: absolute;
    top: 0;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    font-family: var(--ep-font);
    animation: notifPulse 2s ease-in-out infinite;
}
@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Tab badges */
.admin-tab-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    margin-right: 4px;
    line-height: 1;
    font-family: var(--ep-font);
    vertical-align: middle;
}

/* Dropdown */
.notif-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 340px;
    max-height: 420px;
    background: var(--ep-white);
    border-radius: var(--ep-radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 99999;
    overflow: hidden;
    direction: rtl;
    text-align: right;
    margin-top: 8px;
}
.notif-dropdown.ep-open { display: flex; flex-direction: column; }

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--ep-border);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ep-text);
    font-family: var(--ep-font);
}
.notif-mark-all {
    background: none !important;
    border: none !important;
    color: var(--ep-blue) !important;
    font-size: 0.68rem !important;
    cursor: pointer;
    font-family: var(--ep-font) !important;
    padding: 0 !important;
    height: auto !important;
    width: auto !important;
}
.notif-mark-all:hover { text-decoration: underline; }

.notif-dropdown-list {
    overflow-y: auto;
    flex: 1;
    max-height: 320px;
}

.notif-dropdown-footer {
    padding: 8px 14px;
    border-top: 1px solid var(--ep-border);
    text-align: center;
}
.notif-dropdown-footer button {
    background: none !important;
    border: none !important;
    color: var(--ep-blue) !important;
    font-size: 0.72rem !important;
    cursor: pointer;
    font-family: var(--ep-font) !important;
    font-weight: 600;
    padding: 0 !important;
    height: auto !important;
    width: auto !important;
}
.notif-dropdown-footer button:hover { text-decoration: underline; }

/* Notification items (shared by dropdown and panel) */
.notif-item {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--ep-border);
    font-family: var(--ep-font);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--ep-blue-50); }
.notif-item.notif-unread { background: #eff6ff; }
.notif-item.notif-unread:hover { background: #dbeafe; }
.notif-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ep-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.notif-item-content { flex: 1; min-width: 0; }
.notif-item-title {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ep-text);
    margin-bottom: 2px;
}
.notif-item-msg {
    font-size: 0.7rem;
    color: var(--ep-text-mid);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notif-item-time {
    font-size: 0.62rem;
    color: var(--ep-text-light, #94a3b8);
    margin-top: 3px;
    direction: ltr;
    text-align: right;
}

.notif-empty {
    padding: 20px;
    text-align: center;
    color: var(--ep-text-mid);
    font-size: 0.78rem;
    font-family: var(--ep-font);
}

/* Notification panel list */
.notif-panel-list {
    background: var(--ep-white);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius);
    overflow: hidden;
}
.notif-panel-item {
    padding: 12px 16px;
}
.notif-panel-item .notif-item-msg {
    white-space: normal;
}

/* Bulk Selection */
.bulk-checkbox {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--ep-blue);
}
.bulk-action-bar {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #1e293b;
    border-radius: 10px;
    margin-top: 8px;
    color: #fff;
    font-size: 0.78rem;
    font-family: var(--ep-font);
    animation: bulkBarIn 0.2s ease;
}
@keyframes bulkBarIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
.bulk-count {
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.85;
}
.bulk-actions-group {
    display: flex;
    gap: 6px;
    flex: 1;
}
.bulk-btn {
    border: none !important;
    padding: 5px 12px !important;
    border-radius: 6px;
    font-size: 0.72rem !important;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
    font-family: var(--ep-font) !important;
    color: #fff !important;
}
.bulk-btn-send { background: #059669 !important; }
.bulk-btn-send:hover { background: #047857 !important; }
.bulk-btn-read { background: #3b82f6 !important; }
.bulk-btn-read:hover { background: #2563eb !important; }
.bulk-btn-unread { background: #6366f1 !important; }
.bulk-btn-unread:hover { background: #4f46e5 !important; }
.bulk-btn-close {
    background: rgba(255,255,255,0.1) !important;
    border: none !important;
    color: #94a3b8 !important;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: auto;
    font-size: 0.8rem;
}
.bulk-btn-close:hover { background: rgba(255,255,255,0.2) !important; color: #fff !important; }
.bulk-sep {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}
.bulk-btn-select-unsent {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
}
.bulk-btn-select-unsent:hover { background: rgba(255,255,255,0.18) !important; }

/* Inline Edit */
.inline-edit-input {
    width: 100%;
    padding: 4px 8px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.78rem;
    font-family: var(--ep-font);
    background: #fff;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.inline-edit-input:focus {
    border-color: var(--ep-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.12);
}
.inline-edit-ltr {
    direction: ltr;
    text-align: left;
    font-family: var(--ep-font-english), var(--ep-font);
}
tr.row-editing {
    background: #f0f9ff !important;
}
tr.row-editing td { padding: 6px 8px !important; }
.optional-badge {
    font-size: 0.65rem;
    font-weight: 400;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    margin-right: 4px;
}

/* Row highlighting for unread items */
.admin-table tr.row-unread {
    background: #eff6ff !important;
    border-right: 3px solid var(--ep-blue);
}
.admin-table tr.row-unread:hover {
    background: #dbeafe !important;
}

/* ================================================================
   EMPLOYMENT HUB - EXPANDED HERO (Ultra Vibrant & Pop)
   ================================================================ */
@keyframes heroGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes floatOrbs {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10px, -15px) scale(1.1); }
    50% { transform: translate(-5px, 10px) scale(0.95); }
    75% { transform: translate(-15px, -5px) scale(1.05); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(59,130,246,0.4), 0 0 60px rgba(139,92,246,0.3); }
    50% { box-shadow: 0 0 50px rgba(59,130,246,0.6), 0 0 100px rgba(139,92,246,0.4); }
}

@keyframes shimmerText {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.portal-hero-expanded {
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(59,130,246,0.5) 0%, transparent 35%),
        radial-gradient(ellipse at 90% 80%, rgba(139,92,246,0.45) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 100%, rgba(16,185,129,0.3) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 10%, rgba(236,72,153,0.2) 0%, transparent 30%),
        linear-gradient(135deg, #0a0f1a 0%, #111827 40%, #1e1b4b 70%, #0a0f1a 100%);
    background-size: 200% 200%;
    animation: heroGradientShift 12s ease infinite;
    padding: 80px 0 70px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portal-hero-expanded::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: floatOrbs 10s ease-in-out infinite;
    pointer-events: none;
}

.portal-hero-expanded::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: 10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(139,92,246,0.35) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: floatOrbs 8s ease-in-out infinite reverse;
    pointer-events: none;
}

.portal-hero-expanded .container {
    position: relative;
    z-index: 2;
}

.portal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(59,130,246,0.25) 0%, rgba(139,92,246,0.25) 100%);
    backdrop-filter: blur(20px);
    padding: 20px 60px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 28px;
    font-family: var(--ep-font);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
    animation: pulseGlow 3s ease-in-out infinite, bounceIn 0.6s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portal-hero-badge i {
    color: #fbbf24;
    font-size: 1.3rem;
    filter: drop-shadow(0 0 12px rgba(251,191,36,0.8));
    animation: floatOrbs 2s ease-in-out infinite;
}

.portal-hero-expanded h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 24px;
    font-family: var(--ep-font);
    color: #fff;
    text-shadow: 0 6px 30px rgba(0,0,0,0.5), 0 0 80px rgba(59,130,246,0.4);
    letter-spacing: -1px;
    line-height: 1.15;
    animation: bounceIn 0.8s ease;
}

.portal-hero-lead {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: var(--ep-font);
    font-weight: 700;
    background: linear-gradient(90deg, #60a5fa, #c084fc, #f472b6, #60a5fa);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 5s linear infinite;
    text-shadow: none;
}

.portal-hero-desc {
    font-size: 1.15rem;
    line-height: 1.9;
    max-width: 750px;
    margin: 0 auto 35px;
    font-family: var(--ep-font);
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.portal-hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: nowrap;
}

.portal-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 120px;
    flex: 1;
    max-width: 180px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.portal-hero-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.portal-hero-stat:hover::before {
    left: 100%;
}

.portal-hero-stat:hover {
    transform: translateY(-12px) scale(1.08);
    background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.1) 100%);
    box-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 0 50px rgba(59,130,246,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.35);
}

.portal-hero-stat .stat-num {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: var(--ep-font);
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.portal-hero-stat .stat-label {
    font-size: 0.78rem;
    font-family: var(--ep-font);
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================================================
   EMPLOYMENT HUB - HERO WITH SIDE LAYOUT (Text Right, Cards+Stats Left)
   ================================================================ */
.portal-hero-sidecards {
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(59,130,246,0.5) 0%, transparent 35%),
        radial-gradient(ellipse at 90% 80%, rgba(139,92,246,0.45) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 100%, rgba(16,185,129,0.3) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 10%, rgba(236,72,153,0.2) 0%, transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #1e1b4b 25%, #312e81 50%, #1e3a5f 75%, #0c4a6e 100%);
    padding: 70px 0 80px;
    position: relative;
    overflow: hidden;
}

.portal-hero-sidecards::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrbs 8s ease-in-out infinite;
}

.portal-hero-sidecards::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: 10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(139,92,246,0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrbs 10s ease-in-out infinite reverse;
}

.portal-hero-sidecards .container {
    position: relative;
    z-index: 2;
    max-width: 1300px !important;
}

/* Side-by-side layout */
.hero-side-layout {
    display: flex;
    gap: 60px;
    align-items: center;
}

/* Main hero content - Right side in RTL */
.hero-main-content {
    flex: 1;
    text-align: right !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hero-main-content > *:not(.portal-hero-badge) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Badge inside hero needs its own padding */
.hero-main-content > .portal-hero-badge {
    padding: 20px 60px !important;
}

.portal-hero-sidecards .portal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 56px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
    margin: 0 0 24px 0 !important;
    backdrop-filter: blur(10px);
    animation: pulseGlow 3s ease-in-out infinite;
}

.portal-hero-sidecards .hero-main-content h1,
.portal-hero-sidecards .hero-main-content .portal-hero-lead,
.portal-hero-sidecards .hero-main-content .portal-hero-desc {
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    direction: rtl !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-indent: 0 !important;
    border: none !important;
    display: block !important;
    white-space: normal !important;
    float: none !important;
    position: static !important;
    transform: none !important;
}

.portal-hero-sidecards .hero-main-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 18px !important;
    font-family: var(--ep-font);
    color: #fff !important;
    line-height: 1.25;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.portal-hero-sidecards .hero-main-content .portal-hero-lead {
    font-size: 1.2rem;
    margin-bottom: 16px !important;
    font-family: var(--ep-font);
    color: rgba(255,255,255,0.95) !important;
    font-weight: 500;
    line-height: 1.6;
}

.portal-hero-sidecards .hero-main-content .portal-hero-desc {
    font-size: 0.95rem;
    font-family: var(--ep-font);
    color: rgba(255,255,255,0.8) !important;
    line-height: 1.8;
}

/* Left column - Cards + Stats */
.hero-left-column {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cards row - 3 cards horizontally */
.hero-cards-row {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Compact portal cards */
.portal-card-compact {
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    padding: 22px 20px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--ep-text);
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.15),
        0 15px 50px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 180px;
    flex: 1;
    max-width: 220px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    width: 180px;
    direction: rtl;
}

.portal-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.portal-card-compact:hover::before {
    transform: scaleX(1);
}

.portal-card-compact:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.2),
        0 25px 60px rgba(59,130,246,0.12);
    background: #fff;
}

.portal-card-compact .portal-card-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 12px;
    transition: all 0.4s ease;
}

.portal-card-compact:hover .portal-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.portal-card-students .portal-card-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.portal-card-employers .portal-card-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.portal-card-admin .portal-card-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.portal-card-compact h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: var(--ep-font);
    color: var(--ep-text);
}

.portal-card-compact p {
    font-size: 0.72rem;
    color: var(--ep-text-mid);
    font-family: var(--ep-font);
    margin-bottom: 12px;
    line-height: 1.5;
}

.portal-card-compact .portal-card-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--ep-font);
    color: #fff;
    transition: all 0.3s ease;
}

.portal-card-students .portal-card-btn {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.portal-card-employers .portal-card-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.portal-card-admin .portal-card-btn {
    background: linear-gradient(135deg, #10b981, #059669);
}

.portal-card-compact:hover .portal-card-btn {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Stats row - 3 stats under cards */
.hero-stats-row {
    display: flex;
    gap: 16px;
}

.hero-stats-row .portal-hero-stat {
    flex: 1;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-stats-row .portal-hero-stat:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-4px);
}

.hero-stats-row .stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--ep-font);
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stats-row .stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    font-family: var(--ep-font);
    font-weight: 600;
}

/* ================================================================
   EMPLOYMENT HUB - PARTNERS MINI FOOTER
   ================================================================ */
.portal-partners-section {
    padding: 60px 0 70px;
    background: 
        linear-gradient(180deg, #f8fafc 0%, #fff 50%, #f8fafc 100%);
    border-top: 1px solid #e2e8f0;
}

.partners-header {
    text-align: center;
    margin-bottom: 40px;
}

.partners-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ep-text);
    font-family: var(--ep-font);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.partners-header h3 i {
    color: var(--ep-blue);
    font-size: 1.1em;
}

.partners-header p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 10px 0 0;
    font-family: var(--ep-font);
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px 45px;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-logo {
    width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo:hover img {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #cbd5e1;
}

.partner-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 12px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.partner-name {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    line-height: 1.35;
    margin-top: 8px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partners-placeholder {
    text-align: center;
    width: 100%;
}

.partners-placeholder p {
    font-size: 1rem;
    color: var(--ep-text-mid);
    font-family: var(--ep-font);
}

/* Hub Contact Strip */
.hub-contact-strip {
    padding: 40px 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
}

.hub-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.hub-contact-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    font-family: var(--ep-font);
}

.hub-contact-text h3 i {
    margin-left: 8px;
    color: #93c5fd;
}

.hub-contact-text p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-family: var(--ep-font);
}

.hub-contact-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.hub-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--ep-font);
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
}

.hub-contact-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.hub-contact-item i {
    font-size: 1rem;
}

.hub-contact-whatsapp {
    background: rgba(37,211,102,0.2);
    border-color: rgba(37,211,102,0.3);
}

.hub-contact-whatsapp:hover {
    background: rgba(37,211,102,0.35);
}

.hub-contact-whatsapp i {
    color: #25d366;
}

@media (max-width: 768px) {
    .hub-contact-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .hub-contact-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hub-contact-item {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
}

/* Responsive for Hero with Side Layout */
@media (max-width: 1200px) {
    .hero-side-layout {
        gap: 40px;
    }
    
    .portal-card-compact {
        width: 160px;
        padding: 18px 14px 16px;
    }
    
    .portal-card-compact h3 {
        font-size: 0.88rem;
    }
    
    .portal-card-compact p {
        font-size: 0.68rem;
    }
}

@media (max-width: 1050px) {
    .hero-side-layout {
        flex-direction: column;
        gap: 45px;
    }
    
    .hero-main-content {
        text-align: center !important;
    }
    
    .portal-hero-sidecards .hero-main-content h1,
    .portal-hero-sidecards .hero-main-content .portal-hero-lead,
    .portal-hero-sidecards .hero-main-content .portal-hero-desc {
        text-align: center !important;
    }
    
    .hero-left-column {
        align-items: center;
    }
    
    .hero-cards-row {
        justify-content: center;
    }
    
    .portal-card-compact {
        width: 200px;
    }
}

@media (max-width: 700px) {
    .portal-hero-sidecards {
        padding: 50px 0 60px;
    }
    
    .portal-hero-sidecards .hero-main-content h1 {
        font-size: 2.2rem;
    }
    
    .portal-hero-sidecards .hero-main-content .portal-hero-lead {
        font-size: 1.05rem;
    }
    
    .portal-hero-sidecards .hero-main-content .portal-hero-desc {
        font-size: 0.9rem;
    }
    
    .hero-cards-row {
        flex-direction: column;
        gap: 14px;
    }
    
    .portal-card-compact {
        width: 100%;
        max-width: 320px;
    }
    
    .hero-stats-row {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .hero-stats-row .portal-hero-stat {
        flex: 1 1 calc(33% - 10px);
        min-width: 90px;
    }
}

@media (max-width: 480px) {
    .portal-hero-sidecards {
        padding: 40px 0 50px;
    }
    
    .portal-hero-sidecards .hero-main-content h1 {
        font-size: 1.8rem;
    }
    
    .portal-hero-sidecards .portal-hero-badge {
        font-size: 0.8rem;
        padding: 14px 40px;
    }
    
    .portal-card-compact {
        padding: 18px 16px 16px;
        border-radius: 14px;
    }
    
    .portal-card-compact .portal-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        border-radius: 12px;
    }
    
    .portal-card-compact h3 {
        font-size: 0.92rem;
    }
    
    .portal-card-compact p {
        font-size: 0.72rem;
    }
    
    .portal-card-compact .portal-card-btn {
        padding: 7px 16px;
        font-size: 0.75rem;
    }
    
    .hero-stats-row .stat-num {
        font-size: 1.5rem;
    }
    
    .hero-stats-row .stat-label {
        font-size: 0.7rem;
    }
    
    .partners-logos {
        gap: 16px 20px;
    }
    
    .partner-logo {
        width: 80px;
    }
    .partner-logo img {
        width: 60px;
        height: 60px;
        padding: 8px;
        border-radius: 12px;
    }
    .partner-name {
        font-size: 0.58rem;
        margin-top: 5px;
    }
}

/* ================================================================
   EMPLOYMENT HUB - BOOK LAYOUT (Ultra Vibrant with Pop)
   ================================================================ */
.portal-book-section {
    padding: 70px 0 80px;
    background-color: #f1f5f9;
    background-image: 
        linear-gradient(180deg, rgba(248,250,252,0.9) 0%, rgba(241,245,249,0.85) 50%, rgba(226,232,240,0.9) 100%),
        /* Academic pattern - graduation caps, books, lightbulbs, gears */
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%234f7db0' fill-opacity='0.08'%3E%3Cpath d='M15 20 L5 25 L15 30 L25 25 Z'/%3E%3Crect x='13' y='30' width='4' height='5'/%3E%3Crect x='70' y='15' width='12' height='16' rx='1'/%3E%3Crect x='72' y='18' width='8' height='1'/%3E%3Crect x='72' y='21' width='8' height='1'/%3E%3Crect x='72' y='24' width='5' height='1'/%3E%3Ccircle cx='50' cy='55' r='6'/%3E%3Ccircle cx='50' cy='55' r='10' fill='none' stroke='%234f7db0' stroke-opacity='0.08' stroke-width='1.5'/%3E%3Cpath d='M20 75 Q25 65 30 75 Q25 72 20 75' /%3E%3Crect x='22' y='75' width='6' height='3'/%3E%3Ccircle cx='80' cy='70' r='7' fill='none' stroke='%234f7db0' stroke-opacity='0.08' stroke-width='2'/%3E%3Ccircle cx='80' cy='70' r='3'/%3E%3C/g%3E%3C/svg%3E");
    background-size: auto, 100px 100px;
    position: relative;
    overflow: hidden;
}

.portal-book-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(59,130,246,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(139,92,246,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.portal-book-section::after {
    display: none;
}

.portal-book {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* Book Section Header */
.book-section-header {
    text-align: right;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.book-section-header h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1e293b;
    font-family: var(--ep-font);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.book-section-header p {
    font-size: 1.05rem;
    color: #64748b;
    font-family: var(--ep-font);
    margin: 0;
    max-width: 480px;
}

.book-section-header .header-decoration {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 16px;
}

.book-section-header .header-decoration span {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #cbd5e1, transparent);
    border-radius: 2px;
}

.book-section-header .header-decoration i {
    color: #94a3b8;
    font-size: 0.8rem;
}

.book-page {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.04),
        0 8px 32px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
}

.book-page:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.1),
        0 16px 48px rgba(0,0,0,0.1);
}

.book-page-right {
    border: none;
}

.book-page-left {
    border: none;
}

/* Remove old spine - using gap instead */
.book-spine {
    display: none;
}

.book-page-header {
    padding: 20px 22px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.book-page-right .book-page-header {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

.book-page-left .book-page-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.book-page-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--ep-font);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.book-page-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-right: auto;
}
.book-page-header h2 i {
    color: #fff;
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-page-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.book-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    text-decoration: none;
    color: var(--ep-text);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    position: relative;
}

.book-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.2s ease;
}

.book-page-right .book-list-item::before {
    background: transparent;
}

.book-page-left .book-list-item::before {
    background: transparent;
}

.book-list-item:last-child {
    border-bottom: none;
}

.book-list-item:hover {
    background: linear-gradient(90deg, rgba(59,130,246,0.06) 0%, transparent 100%);
    text-decoration: none;
    color: var(--ep-text);
}

.book-page-right .book-list-item:hover::before {
    background: #3b82f6;
}

.book-page-left .book-list-item:hover {
    background: linear-gradient(90deg, rgba(139,92,246,0.06) 0%, transparent 100%);
}

.book-page-left .book-list-item:hover::before {
    background: #8b5cf6;
}

.book-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.book-page-right .book-item-icon {
    background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(59,130,246,0.05) 100%);
    color: #3b82f6;
}

.book-page-left .book-item-icon {
    background: linear-gradient(135deg, rgba(139,92,246,0.1) 0%, rgba(139,92,246,0.05) 100%);
    color: #8b5cf6;
}

.book-list-item:hover .book-item-icon {
    transform: scale(1.08);
}

.book-item-info {
    flex: 1;
    min-width: 0;
}

.book-item-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px;
    font-family: var(--ep-font);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-item-meta {
    font-size: 0.8rem;
    color: #64748b;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-item-arrow {
    color: #cbd5e1;
    font-size: 0.75rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.book-page-right .book-list-item:hover .book-item-arrow {
    color: #3b82f6;
    transform: translateX(-6px);
}

.book-page-left .book-list-item:hover .book-item-arrow {
    color: #8b5cf6;
    transform: translateX(-6px);
}

.book-page-footer {
    padding: 14px 18px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    background: #fafafa;
}

.book-see-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--ep-font);
    padding: 10px 20px;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.book-see-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.book-see-all:hover::before {
    left: 100%;
}

.book-page-right .book-see-all {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

.book-page-right .book-see-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
    text-decoration: none;
}

.book-page-left .book-see-all {
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.book-page-left .book-see-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139,92,246,0.3);
    text-decoration: none;
}

.book-see-all i {
    transition: transform 0.3s ease;
}

.book-see-all:hover i {
    transform: translateX(-6px);
}

.book-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    color: #94a3b8;
    text-align: center;
}

.book-empty i {
    font-size: 2.5rem;
    margin-bottom: 14px;
    opacity: 0.4;
}

.book-empty p {
    font-size: 0.9rem;
    margin: 0;
    font-family: var(--ep-font);
}

/* ================================================================
   ARTICLES PAGE - EXPANDED CARD VIEW
   ================================================================ */
.book-page-articles {
    flex: 1.3; /* Articles section takes more space */
}

.articles-content {
    padding: 16px !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.article-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    direction: rtl;
    text-align: right;
}

.article-card:hover {
    background: #fff;
    border-color: #c4b5fd;
    box-shadow: 0 6px 24px rgba(139,92,246,0.12);
    text-decoration: none;
    color: inherit;
}

.article-card-image {
    width: 130px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.06);
}

.article-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139,92,246,0.2) 0%, rgba(236,72,153,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover .article-card-overlay {
    opacity: 1;
}

.article-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2px 0;
    text-align: right;
}

.article-card-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
    font-family: var(--ep-font);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: right;
}

.article-card-body p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: right;
}

.article-card-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #8b5cf6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
    justify-content: flex-end;
}

.article-card:hover .article-card-link {
    gap: 10px;
}

.article-card-link i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.article-card:hover .article-card-link i {
    transform: translateX(-3px);
}

/* ================================================================
   JOBS PAGE - CARD VIEW WITH LOGOS
   ================================================================ */
.book-page-jobs {
    flex: 1;
}

.jobs-content {
    padding: 16px !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-card {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    direction: rtl;
    text-align: right;
}

.job-card:hover {
    background: #fff;
    border-color: #bfdbfe;
    box-shadow: 0 6px 24px rgba(59,130,246,0.12);
    text-decoration: none;
    color: inherit;
}

.job-card-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(59,130,246,0.12);
    transition: all 0.3s ease;
}

.job-card:hover .job-card-logo {
    transform: scale(1.05);
}

.job-card-logo img,
.job-card-logo .job-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    border: none;
}

.job-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.3rem;
}

.job-card-body {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.job-card-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
    font-family: var(--ep-font);
    line-height: 1.4;
    text-align: right;
}

.job-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    font-family: var(--ep-font);
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: right;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.job-card-meta span {
    font-size: 0.78rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.job-card-meta i {
    font-size: 0.65rem;
    color: #94a3b8;
}

.job-company {
    font-weight: 500;
}

.job-card-arrow {
    color: #cbd5e1;
    font-size: 0.75rem;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.job-card:hover .job-card-arrow {
    color: #3b82f6;
    transform: translateX(-6px);
}

/* ================================================================
   LOGO UPLOAD PREVIEW
   ================================================================ */
.logo-upload-wrap {
    width: 100%;
}

.logo-preview {
    width: 100%;
    height: 80px;
    border: 2px dashed var(--ep-border);
    border-radius: var(--ep-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--ep-bg);
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.logo-preview:hover {
    border-color: var(--ep-blue);
    background: var(--ep-blue-50);
}

.logo-preview i {
    font-size: 1.3rem;
    color: var(--ep-text-light);
    transition: color 0.2s ease;
}

.logo-preview:hover i {
    color: var(--ep-blue);
}

.logo-preview span {
    font-size: 0.72rem;
    color: var(--ep-text-light);
    font-family: var(--ep-font);
}

.logo-preview.has-image {
    border-style: solid;
    border-color: var(--ep-blue);
    padding: 0;
}

.logo-preview.has-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.logo-preview .logo-change {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.68rem;
    padding: 4px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.logo-preview.has-image:hover .logo-change {
    opacity: 1;
}

/* ================================================================
   EMPLOYMENT HUB - PORTAL ACTIONS
   ================================================================ */
.portal-actions-section {
    padding: 90px 0 100px;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(59,130,246,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(16,185,129,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(245,158,11,0.04) 0%, transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.portal-actions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.2), rgba(139,92,246,0.2), transparent);
}

.portal-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.portal-section-header h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 16px;
    font-family: var(--ep-font);
    letter-spacing: -0.5px;
}

.portal-section-header p {
    font-size: 1.25rem;
    color: #64748b;
    margin: 0;
    font-family: var(--ep-font);
}

.portal-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.portal-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 35px 45px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 32px;
    text-decoration: none;
    color: var(--ep-text);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.04),
        0 15px 50px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.portal-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: transparent;
    transition: all 0.3s ease;
}

.portal-action-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 70%, rgba(0,0,0,0.02) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portal-action-card:hover::after {
    opacity: 1;
}

.portal-action-students::before {
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
    background-size: 200% 100%;
}

.portal-action-employers::before {
    background: linear-gradient(90deg, #10b981, #22d3d1, #10b981);
    background-size: 200% 100%;
}

.portal-action-admin::before {
    background: linear-gradient(90deg, #f59e0b, #f97316, #f59e0b);
    background-size: 200% 100%;
}

.portal-action-card:hover {
    transform: translateY(-16px) scale(1.03);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.12),
        0 40px 80px rgba(0,0,0,0.15);
    text-decoration: none;
    color: var(--ep-text);
}

.portal-action-students:hover {
    border-color: rgba(59,130,246,0.2);
    box-shadow: 
        0 20px 40px rgba(59,130,246,0.15),
        0 40px 80px rgba(59,130,246,0.1);
}

.portal-action-employers:hover {
    border-color: rgba(16,185,129,0.2);
    box-shadow: 
        0 20px 40px rgba(16,185,129,0.15),
        0 40px 80px rgba(16,185,129,0.1);
}

.portal-action-admin:hover {
    border-color: rgba(245,158,11,0.2);
    box-shadow: 
        0 20px 40px rgba(245,158,11,0.15),
        0 40px 80px rgba(245,158,11,0.1);
}

.portal-action-icon {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 28px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.portal-action-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 32px;
    background: inherit;
    filter: blur(15px);
    opacity: 0.5;
    z-index: -1;
    transition: all 0.3s ease;
}

.portal-action-card:hover .portal-action-icon {
    transform: scale(1.15) rotate(-5deg);
}

.portal-action-card:hover .portal-action-icon::before {
    opacity: 0.7;
    filter: blur(20px);
}

.portal-action-students .portal-action-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(59,130,246,0.4);
}

.portal-action-employers .portal-action-icon {
    background: linear-gradient(135deg, #10b981 0%, #22d3d1 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(16,185,129,0.4);
}

.portal-action-admin .portal-action-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(245,158,11,0.4);
}

.portal-action-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 14px;
    font-family: var(--ep-font);
    color: #0f172a;
    letter-spacing: -0.3px;
}

.portal-action-card p {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0 0 26px;
    font-family: var(--ep-font);
    line-height: 1.7;
}

.portal-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--ep-font);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.portal-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.portal-action-btn:hover::before {
    left: 100%;
}

.portal-action-students .portal-action-btn {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}

.portal-action-employers .portal-action-btn {
    background: linear-gradient(135deg, #10b981, #22d3d1);
    color: #fff;
    box-shadow: 0 6px 20px rgba(16,185,129,0.3);
}

.portal-action-admin .portal-action-btn {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    box-shadow: 0 6px 20px rgba(245,158,11,0.3);
}

.portal-action-card:hover .portal-action-btn {
    transform: translateY(-4px) scale(1.08);
}

.portal-action-students:hover .portal-action-btn {
    box-shadow: 0 12px 35px rgba(59,130,246,0.4);
}

.portal-action-employers:hover .portal-action-btn {
    box-shadow: 0 12px 35px rgba(16,185,129,0.4);
}

.portal-action-admin:hover .portal-action-btn {
    box-shadow: 0 12px 35px rgba(245,158,11,0.4);
}

@media (max-width: 768px) {
    .portal-hero { padding: 20px 0 18px; }
    .portal-hero h1 { font-size: 1.15rem; }

    .portal-primary-cards,
    .portal-secondary-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .portal-primary-card  { min-height: 110px; padding: 18px 14px; }
    .portal-secondary-card { min-height: 90px; padding: 14px 12px; }

    .portal-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-specializations-grid { grid-template-columns: repeat(2, 1fr); }

    .portal-filters-row {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    .portal-filter-group { min-width: auto !important; }
    .portal-filter-actions { width: 100% !important; }
    .portal-filter-btn { flex: 1 !important; justify-content: center !important; }

    .portal-jobs-grid { grid-template-columns: 1fr; }

    .portal-form-container { padding: 18px 16px; margin: 0 10px; }
    .portal-form-row { grid-template-columns: 1fr; }

    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-container { padding: 18px 14px; }
    .admin-form-row, .job-form-row-2 { grid-template-columns: 1fr; }
    .job-form-actions { flex-direction: column; }
    .notif-dropdown { width: 280px; }

    .portal-detail-grid { grid-template-columns: 1fr; }
    .portal-modal-header { padding: 12px 14px; }
    .portal-modal-body { padding: 14px; }
    .portal-modal-footer { padding: 10px 14px; }

    /* Hero expanded responsive */
    .portal-hero-expanded { padding: 50px 0 45px; }
    .portal-hero-expanded h1 { font-size: 2rem; }
    .portal-hero-lead { font-size: 1.1rem; }
    .portal-hero-desc { font-size: 0.95rem; padding: 0 15px; }
    .portal-hero-stats { gap: 14px; flex-wrap: nowrap; }
    .portal-hero-stat { padding: 14px 18px; min-width: 90px; max-width: 140px; border-radius: 16px; }
    .portal-hero-stat .stat-num { font-size: 1.7rem; }
    .portal-hero-stat .stat-label { font-size: 0.7rem; }
    .portal-hero-badge { font-size: 0.85rem; padding: 16px 44px; letter-spacing: 1px; }

    /* Book layout responsive - stack vertically */
    .portal-book-section { padding: 50px 0 60px; }
    .book-section-header { margin-bottom: 30px; }
    .book-section-header h2 { font-size: 1.6rem; }
    .book-section-header p { font-size: 0.95rem; }
    .portal-book { 
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .book-page { border-radius: 20px; }
    .book-page-articles { flex: 1; }
    .book-page-header { padding: 18px 20px; }
    .book-page-header h2 { font-size: 1.1rem; }
    .book-page-header h2 i { width: 36px; height: 36px; font-size: 1rem; border-radius: 10px; }
    .book-page-footer { padding: 12px 16px; }
    .book-see-all { padding: 10px 18px; font-size: 0.85rem; }
    
    /* Article cards responsive */
    .articles-content { padding: 14px !important; gap: 12px; }
    .article-card { padding: 14px; gap: 14px; border-radius: 14px; }
    .article-card-image { width: 110px; height: 85px; border-radius: 10px; }
    .article-card-body h4 { font-size: 0.95rem; }
    .article-card-body p { font-size: 0.8rem; -webkit-line-clamp: 2; }
    
    /* Job cards responsive */
    .jobs-content { padding: 14px !important; gap: 10px; }
    .job-card { padding: 14px 16px; gap: 14px; border-radius: 14px; }
    .job-card-logo { width: 50px; height: 50px; border-radius: 12px; }
    .job-card-body h4 { font-size: 0.95rem; }
    .job-card-desc { font-size: 0.8rem; -webkit-line-clamp: 2; }
    .job-card-meta { gap: 8px; }
    .job-card-meta span { font-size: 0.72rem; }

    /* Portal actions responsive */
    .portal-actions-section { padding: 60px 0 70px; }
    .portal-actions-grid { grid-template-columns: 1fr; gap: 24px; }
    .portal-action-card { padding: 40px 28px 36px; border-radius: 24px; }
    .portal-action-icon { width: 85px; height: 85px; font-size: 2rem; margin-bottom: 22px; border-radius: 22px; }
    .portal-section-header h2 { font-size: 2rem; }
    .portal-section-header p { font-size: 1.1rem; }
    .portal-action-card h3 { font-size: 1.35rem; }
    .portal-action-card p { font-size: 0.95rem; }
    .portal-action-btn { padding: 14px 30px; font-size: 0.95rem; border-radius: 14px; }
}

@media (max-width: 480px) {
    .portal-hero h1 { font-size: 1.05rem; }
    .portal-stats-grid { grid-template-columns: 1fr; }
    .portal-specializations-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .admin-stats { grid-template-columns: 1fr; }
    .admin-header-inner { flex-direction: column; align-items: flex-start; }
    .admin-toolbar { flex-direction: column; align-items: stretch; }
    .admin-toolbar .portal-filter-select,
    .admin-toolbar .portal-form-input { width: 100%; min-width: auto; max-width: none; }

    .portal-hero-expanded { padding: 40px 0 35px; }
    .portal-hero-expanded h1 { font-size: 1.6rem; line-height: 1.3; }
    .portal-hero-lead { font-size: 0.95rem; }
    .portal-hero-desc { font-size: 0.88rem; }
    .portal-hero-badge { font-size: 0.75rem; padding: 14px 36px; letter-spacing: 0.5px; }
    .portal-hero-stats { flex-wrap: wrap; gap: 10px; }
    .portal-hero-stat { flex: 1 1 calc(33% - 8px); min-width: 85px; max-width: none; padding: 12px 14px; }
    .portal-hero-stat .stat-num { font-size: 1.5rem; }
    .portal-hero-stat .stat-label { font-size: 0.68rem; }
    
    .portal-book-section { padding: 45px 0 55px; }
    .portal-book-section { padding: 40px 0 50px; }
    .book-section-header { margin-bottom: 24px; }
    .book-section-header h2 { font-size: 1.4rem; }
    .book-section-header p { font-size: 0.85rem; }
    .book-section-header .header-decoration span { width: 30px; }
    .portal-book { gap: 16px; }
    .book-page { border-radius: 16px; }
    .book-page-header { padding: 14px 16px; }
    .book-page-header h2 { font-size: 1rem; gap: 10px; }
    .book-page-header h2 i { width: 32px; height: 32px; font-size: 0.9rem; border-radius: 8px; }
    .book-see-all { padding: 8px 16px; font-size: 0.8rem; }
    .article-card { padding: 12px; gap: 10px; border-radius: 12px; }
    .article-card-image { width: 90px; height: 70px; border-radius: 8px; }
    .job-card { padding: 12px 14px; gap: 12px; border-radius: 12px; }
    .job-card-logo { width: 44px; height: 44px; border-radius: 10px; }
    .job-card-desc { font-size: 0.78rem; -webkit-line-clamp: 1; margin-bottom: 6px; }
    .job-card { padding: 14px 16px; gap: 12px; }
    .job-card-logo { width: 48px; height: 48px; }
    
    .portal-actions-section { padding: 50px 0 60px; }
    .portal-actions-grid { gap: 18px; }
    .portal-action-card { padding: 35px 22px 30px; border-radius: 20px; }
    .portal-action-icon { width: 75px; height: 75px; font-size: 1.8rem; margin-bottom: 20px; border-radius: 20px; }
    .portal-section-header { margin-bottom: 40px; }
    .portal-section-header h2 { font-size: 1.7rem; }
    .portal-section-header p { font-size: 1rem; }
    .portal-action-card h3 { font-size: 1.25rem; }
    .portal-action-card p { font-size: 0.9rem; margin-bottom: 22px; }
    .portal-action-btn { padding: 12px 26px; font-size: 0.9rem; }

}

/* ================================================================
   ADMIN LOGIN PAGE — MODERN SPLIT-CARD
   ================================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}

/* ---- Card Container ---- */
.login-card {
    display: flex;
    width: 100%;
    max-width: 840px;
    min-height: 500px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
    position: relative;
    z-index: 1;
}

/* ---- Branded Side (right in RTL) ---- */
.login-brand {
    flex: 0 0 320px;
    background: linear-gradient(160deg, #2d5a87 0%, #3a7bc0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 48px 32px;
}

.login-brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.login-brand-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
}

.login-brand h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 10px;
    font-family: var(--ep-font);
}

.login-brand p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.8;
    font-family: var(--ep-font);
    line-height: 1.7;
}

.login-brand-decor {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 90%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 10%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* ---- Form Side (left in RTL) ---- */
.login-form-side {
    flex: 1;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-step-header {
    margin-bottom: 28px;
}

.login-step-header h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    font-family: var(--ep-font);
}

.login-step-header p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    font-family: var(--ep-font);
    line-height: 1.6;
}

.login-sms-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 16px;
}

/* ---- Form Fields ---- */
.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-login-field label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    font-family: var(--ep-font);
    letter-spacing: 0.2px;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-wrap i {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.2s;
}

.login-input-wrap input {
    width: 100%;
    padding: 13px 42px 13px 16px;
    font-size: 0.95rem;
    font-family: var(--ep-font);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-input-wrap input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
    background: #fff;
}

.login-input-wrap:focus-within i {
    color: #3b82f6;
}

/* ---- Error Box ---- */
.admin-login-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-family: var(--ep-font);
    text-align: center;
    border: 1px solid #fecaca;
}

/* ---- Login Button ---- */
.admin-login-btn {
    width: 100%;
    padding: 13px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--ep-font);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #2d5a87;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(45,90,135,0.25);
    transition: background 0.2s, box-shadow 0.2s;
}

.admin-login-btn:hover {
    background: #3a7bc0;
    box-shadow: 0 4px 14px rgba(45,90,135,0.3);
}

.admin-login-btn:active {
    transform: translateY(0);
}

.admin-login-btn .btn-text,
.admin-login-btn i {
    color: #fff;
}

.admin-login-btn .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ---- Back / Footer Links ---- */
.login-back-link {
    margin-top: 24px;
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.login-back-link a {
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none;
    font-family: var(--ep-font);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.login-back-link a:hover {
    color: #3b82f6;
}

/* ---- SMS Verification Styles ---- */
.sms-phone-hint {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #10b981;
    font-weight: 700;
    font-family: var(--ep-font);
    direction: ltr;
    unicode-bidi: bidi-override;
    background: rgba(16,185,129,0.08);
    padding: 8px 16px;
    border-radius: 10px;
    display: inline-block;
}

.verify-code-input {
    width: 100%;
    font-size: 1.8rem;
    letter-spacing: 12px;
    text-align: center;
    font-weight: 800;
    font-family: 'Consolas', 'Monaco', monospace;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.verify-code-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
    background: #fff;
}

.verify-code-input::placeholder {
    letter-spacing: 6px;
    font-weight: 400;
    color: #cbd5e1;
}

.sms-timer {
    text-align: center;
    font-size: 0.88rem;
    color: #64748b;
    font-family: var(--ep-font);
    padding: 10px 0;
    font-weight: 500;
}

.sms-timer #timerCount {
    font-weight: 800;
    color: #10b981;
    font-size: 1.05rem;
}

.admin-resend-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--ep-font);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.admin-resend-btn:hover:not(:disabled) {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16,185,129,0.04);
}

.admin-resend-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.admin-resend-btn .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ---- Responsive: Stack on mobile ---- */
@media (max-width: 720px) {
    .login-card {
        flex-direction: column;
        max-width: 420px;
        min-height: auto;
    }
    .login-brand {
        flex: none;
        padding: 32px 24px;
    }
    .login-brand-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
        margin-bottom: 16px;
        border-radius: 16px;
    }
    .login-brand h1 { font-size: 1.3rem; }
    .login-brand p { font-size: 0.82rem; }
    .login-form-side {
        padding: 32px 24px;
    }
}

/* SMS icon fallback */
.fa-message-sms:before {
    content: "\f7cd";
}

/* ================================================================
   BUSINESS LOGO UPLOAD (Admin Modal)
   ================================================================ */
.business-logo-upload-area {
    margin-top: 4px;
}

.business-logo-current {
    display: flex;
    align-items: center;
    gap: 12px;
}

.business-logo-current img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
}

.business-logo-remove {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid #fecaca;
    background: #fef2f2;
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.2s, border-color 0.2s;
}

.business-logo-remove:hover {
    background: #fee2e2;
    border-color: #f87171;
}

.business-logo-pick-btn {
    width: 100%;
    padding: 20px 16px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: border-color 0.2s, background 0.2s;
    font-family: var(--ep-font);
    color: #64748b;
}

.business-logo-pick-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.business-logo-pick-btn i {
    font-size: 1.4rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.business-logo-pick-btn:hover i {
    color: #3b82f6;
}

.business-logo-pick-btn span {
    font-size: 0.88rem;
    font-weight: 600;
}

.business-logo-pick-btn small {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ================================================================
   BUSINESS REGISTRATION & STATUS MESSAGES
   ================================================================ */

/* Register Banner at top of job posting form */
.portal-register-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    margin-bottom: 24px;
}

.register-banner-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.register-banner-content i {
    font-size: 1.5rem;
    color: #3b82f6;
}

.register-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.register-banner-text strong {
    font-size: 0.95rem;
    color: #1e40af;
    font-weight: 700;
}

.register-banner-text span {
    font-size: 0.85rem;
    color: #3b82f6;
}

.portal-register-banner .portal-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .portal-register-banner {
        flex-direction: column;
        text-align: center;
    }
    .register-banner-content {
        flex-direction: column;
        gap: 10px;
    }
}

.portal-status-message {
    margin-top: 24px;
    animation: fadeInUp 0.4s ease;
}

.status-content {
    text-align: center;
    padding: 30px 24px;
    border-radius: var(--ep-radius);
}

.status-content i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.status-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.status-content p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0 0 20px;
    opacity: 0.9;
}

.status-info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.status-info i {
    color: #3b82f6;
}

.status-warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d;
    color: #92400e;
}

.status-warning i {
    color: #f59e0b;
}

.status-error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.status-error i {
    color: #dc2626;
}

/* Form hint styling */
.portal-form-hint {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
}

/* Registration success icon override */
.portal-success-step .fa-clock {
    color: #f59e0b;
}

/* ================================================================
   ADMIN BUSINESSES TAB STYLES
   ================================================================ */
.admin-table tbody tr[data-business-id] img {
    display: block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Approve button green style */
.admin-btn-approve {
    background: transparent;
    color: #64748b;
    border: none;
}

.admin-btn-approve:hover {
    background: #f0fdf4;
    color: #16a34a;
    transform: scale(1.12);
}

/* Block/Deactivate button for businesses */
.admin-table .admin-btn-deactivate i.fa-ban {
    font-size: 0.7rem;
}

/* ================================================================
   ADMIN ADD BUSINESS FORM
   ================================================================ */
.admin-add-business-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.admin-add-business-form .admin-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: #fff;
}

.admin-add-business-form .admin-form-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-add-business-form .admin-form-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.admin-add-business-form .admin-form-close:hover {
    background: rgba(255,255,255,0.3);
}

.admin-add-business-form .admin-form-body {
    padding: 20px;
}

.admin-add-business-form .portal-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* Stats card for pending businesses */
.admin-stat-card i.fa-building {
    color: #8b5cf6;
}

/* ================================================================
   COMPACT SUBJECT FORM
   ================================================================ */
.subject-form-compact {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.subject-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: flex-end;
}

.subject-form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 180px;
    min-width: 140px;
}

.subject-form-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    font-family: var(--ep-font);
}

.subject-form-field .portal-form-input {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    height: auto !important;
}

.subject-form-field-small {
    flex: 0 0 auto;
    min-width: auto;
}

.subject-form-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-right: auto;
}

.portal-btn-sm {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
}

@media (max-width: 768px) {
    .subject-form-grid {
        flex-direction: column;
        gap: 12px;
    }
    
    .subject-form-field {
        flex: 1 1 100%;
    }
    
    .subject-form-actions {
        width: 100%;
        justify-content: flex-end;
        margin-right: 0;
    }
}

/* Compact table variant */
.admin-table-compact th,
.admin-table-compact td {
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
}

.admin-table-compact th {
    font-size: 0.72rem !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.admin-table-compact .admin-btn-sm {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.72rem !important;
    border-radius: 50% !important;
}

.admin-table-compact .admin-actions {
    gap: 6px;
}

.admin-table-compact .admin-badge {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   FORCE VISIBILITY OVERRIDES (for standalone admin page)
   ================================================================ */

/* Modal close button - always visible */
#sendJobsModal .portal-modal-close,
#studentModal .portal-modal-close,
#jobModal .portal-modal-close {
    background: rgba(0, 0, 0, 0.15) !important;
    color: #1e293b !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 1.4rem !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* For blue header modals, make X white */
#sendJobsModal .portal-modal-header .portal-modal-close,
#jobModal .portal-modal-header .portal-modal-close {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* Send job buttons in modal - always visible */
button.send-jobs-item-btn {
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35) !important;
}

button.send-jobs-item-btn:hover {
    background: #1d4ed8 !important;
    transform: scale(1.08) !important;
}

button.send-jobs-item-btn i,
button.send-jobs-item-btn i.fa-solid,
button.send-jobs-item-btn i.fa-paper-plane {
    color: #ffffff !important;
    font-size: 1rem !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Admin login button specificity boost */
#loginBtn,
#verifyBtn {
    background: #2d5a87;
    color: #fff;
    border: none;
    opacity: 1;
    visibility: visible;
}

/* ========================================
   JOBS PAGE STYLES (jobs.aspx)
   ======================================== */

/* Jobs Hero Section */
.jobs-hero {
    position: relative;
    padding: 60px 0 50px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #3d7ab5 100%);
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.jobs-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.jobs-hero-content {
    position: relative;
    z-index: 1;
}

.jobs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.jobs-hero-badge i {
    color: #fbbf24;
}

.jobs-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 15px;
    color: #fff;
}

.jobs-hero-lead {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 auto 30px;
    max-width: 600px;
    line-height: 1.7;
}

.jobs-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.jobs-hero-stat {
    text-align: center;
}

.jobs-hero-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.jobs-hero-stat span {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Jobs Main Section */
.jobs-main-section {
    padding: 40px 0 60px;
    background: #f8fafc;
    min-height: 500px;
}

/* Jobs Filter Bar - Using inline styles in HTML for RTL compatibility */
/* All filter bar styles are now inline in jobs.aspx */

.jobs-filter-clear {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jobs-filter-clear:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #ef4444;
}

.jobs-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.jobs-post-btn:hover {
    background: #1d4ed8;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(37,99,235,0.3);
}

.jobs-post-btn i {
    font-size: 12px;
}

/* Jobs Count Bar */
.jobs-count-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 4px;
    color: #64748b;
    font-size: 14px;
}

.jobs-count-bar strong {
    color: #1e293b;
    font-weight: 600;
}

/* Jobs Loading */
.jobs-loading {
    display: none;
    justify-content: center;
    padding: 60px 0;
}

.jobs-loading.active {
    display: flex;
}

.jobs-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Jobs List Grid */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ================================================================
   JOB CARD V2 - Compact Row Design
   ================================================================ */
.job-card-v2 {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #dce5f0;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 14px;
}

.job-card-v2:hover {
    border-color: #b8cde5;
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.08);
}

.jc-top {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.jc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.jc-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jc-title.en-title {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif !important;
    letter-spacing: -0.01em;
    font-weight: 700;
    direction: ltr;
    text-align: right;
}

.job-fresh-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.job-fresh-badge i { font-size: 8px; }

.jc-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    overflow: hidden;
}

.jc-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    background: #f0f5fb;
    border: 1px solid #dce5f0;
    border-radius: 5px;
    font-size: 0.72rem;
    color: #3d5a80;
    white-space: nowrap;
}

.jc-tag i {
    font-size: 9px;
    color: #7a9bc5;
}

.jc-tag-type {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    background: #e8eef6;
    color: #3d5a80;
}

.jc-tag-type.type-fulltime { background: #dbeafe; color: #1e40af; }
.jc-tag-type.type-parttime { background: #fef3c7; color: #92400e; }
.jc-tag-type.type-internship { background: #d1fae5; color: #065f46; }
.jc-tag-type.type-project { background: #ede9fe; color: #5b21b6; }

.jc-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex-shrink: 0;
    padding: 0;
    background: none;
    border-top: none;
}

.jc-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #8a9bb5;
    direction: ltr;
    white-space: nowrap;
}

.jc-date i { font-size: 10px; }

.jc-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2d5a87, #1e3a5f);
    color: #fff;
    border: none;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.73rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(4px);
}

.job-card-v2:hover .jc-apply-btn {
    opacity: 1;
    transform: translateX(0);
}

.jc-apply-btn:hover {
    background: linear-gradient(135deg, #1e3a5f, #152d4a);
    box-shadow: 0 3px 10px rgba(30, 58, 95, 0.3);
}

.jc-apply-btn i { font-size: 10px; }

/* Job Card V2 Responsive */
@media (max-width: 700px) {
    .job-card-v2 {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 14px;
    }
    .jc-bottom {
        justify-content: space-between;
        padding-top: 8px;
        border-top: 1px solid #ede8e1;
    }
    .jc-title { white-space: normal; }
    .jc-tags { flex-wrap: wrap; }
}

/* Text Editor Modal (employer-contact.aspx) */
.text-editor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

.text-editor-modal.active {
    display: flex;
}

.text-editor-modal-content {
    background: #fff;
    border-radius: 14px;
    width: 90%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.text-editor-modal-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-editor-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.text-editor-modal-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: #fff !important;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.text-editor-modal-close:hover {
    background: rgba(255, 255, 255, 0.35) !important;
}

.text-editor-modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.text-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #dce5f0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.text-editor-tool {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 0.82rem;
    transition: all 0.15s;
}

.text-editor-tool:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.text-editor-tool-divider {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
    margin: 0 4px;
}

.text-editor-textarea {
    width: 100%;
    min-height: 160px;
    padding: 12px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.7;
    resize: vertical;
    font-family: inherit;
    direction: rtl;
}

.text-editor-toolbar + .text-editor-textarea {
    border-radius: 0 0 8px 8px;
}

.text-editor-textarea:focus {
    outline: none;
    border-color: #2d5a87;
    box-shadow: 0 0 0 3px rgba(45, 90, 135, 0.1);
}

.text-editor-textarea[contenteditable] {
    overflow-y: auto;
    max-height: 50vh;
}

.text-editor-meta {
    margin-top: 8px;
}

.text-editor-char-count {
    font-size: 0.75rem;
    color: #8a9bb5;
}

.text-editor-char-count.warning { color: #d97706; }
.text-editor-char-count.error { color: #dc2626; }

/* Rich Text Editor Toolbar */
.rte-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #dce5f0;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}
.rte-btn {
    width: 34px;
    height: 34px;
    border: none !important;
    background: transparent !important;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 0.85rem;
    transition: all 0.15s;
}
.rte-btn:hover {
    background: #e2e8f0 !important;
    color: #1e293b;
}
.rte-sep {
    width: 1px;
    height: 22px;
    background: #e2e8f0;
    margin: 0 4px;
}
.rte-editor {
    width: 100%;
    min-height: 180px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 14px;
    border: 1px solid #dce5f0;
    border-radius: 0 0 10px 10px;
    font-size: 0.9rem;
    line-height: 1.8;
    font-family: inherit;
    direction: rtl;
    outline: none;
    background: #fff;
}
.rte-editor:focus {
    border-color: #2d5a87;
    box-shadow: 0 0 0 3px rgba(45, 90, 135, 0.08);
}
.rte-editor:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}
.rte-editor hr {
    border: none;
    border-top: 1px solid #cbd5e1;
    margin: 12px 0;
}
.rte-editor ul, .rte-editor ol {
    padding-right: 24px;
    margin: 6px 0;
}

.rte-autosave-badge {
    font-size: 0.72rem;
    color: #059669;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 12px;
    animation: rteFadeIn 0.3s ease;
}
@keyframes rteFadeIn { from { opacity: 0; } to { opacity: 1; } }

.text-editor-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rte-btn-disabled {
    opacity: 0.45;
    cursor: not-allowed !important;
}

.text-editor-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.text-editor-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.text-editor-btn-cancel {
    background: #fff;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.text-editor-btn-cancel:hover {
    background: #f1f5f9;
}

.text-editor-btn-save {
    background: #2563eb;
    color: #fff;
}

.text-editor-btn-save:hover {
    background: #1d4ed8;
}

/* No Results */
.jobs-no-results {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.jobs-no-results.active {
    display: block;
}

.jobs-no-results-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #94a3b8;
}

.jobs-no-results h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #334155;
    margin: 0 0 8px;
    font-family: var(--ep-font);
}

.jobs-no-results p {
    color: #94a3b8;
    margin: 0 0 24px;
    font-size: 0.9rem;
}

.jobs-no-results-btn {
    background: #fff;
    color: #2563eb;
    border: 1.5px solid #2563eb;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.jobs-no-results-btn:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-1px);
}

/* Jobs Page Responsive */
@media (max-width: 768px) {
    .jobs-hero {
        padding: 40px 0 35px;
    }
    
    .jobs-hero h1 {
        font-size: 2rem;
    }
    
    .jobs-hero-lead {
        font-size: 1rem;
    }
    
    .jobs-hero-stats {
        gap: 24px;
    }
    
    .jobs-hero-stat strong {
        font-size: 1.6rem;
    }
    
    /* jobs-filter-bar uses inline styles */
    
    .job-card {
        padding: 18px;
    }
    
    .job-card-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .job-card-logo {
        width: 48px;
        height: 48px;
    }
}
