/**
 * Red & White Jobs v2.0 — Theme Stylesheet
 * Light Red & White — Clean, Modern, Airy
 * ─────────────────────────────────────────
 */

/* ═══════════════════════════════════════
   CSS Variables
   ═══════════════════════════════════════ */
:root {
    --primary:        #DC143C;
    --primary-dark:   #A50E2D;
    --primary-light:  #FCEAEF;
    --primary-lighter:#FFF0F3;
    --body-bg:        #FFF8F9;
    --white:          #FFFFFF;
    --border-color:   #F5E6EA;
    --text-color:     #2D2D2D;
    --text-muted:     #6B7280;
    --success:        #10B981;
    --warning:        #F59E0B;
    --danger:         #EF4444;
    --info:           #3B82F6;
    --shadow-sm:      0 1px 3px rgba(0,0,0,0.06);
    --shadow:         0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg:      0 8px 24px rgba(0,0,0,0.10);
    --radius:         12px;
    --radius-sm:      8px;
    --sidebar-width:  260px;
    --navbar-height:  64px;
    --transition:     all 0.25s ease;
}

/* ═══════════════════════════════════════
   Base & Body
   ═══════════════════════════════════════ */
*,
*::before,
*::after { box-sizing: border-box; }

body {
    background-color: var(--body-bg);
    color: var(--text-color);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

::selection { background: var(--primary-light); color: var(--primary-dark); }

/* ═══════════════════════════════════════
   Bootstrap Overrides — Buttons
   ═══════════════════════════════════════ */
.btn { border-radius: var(--radius-sm); font-weight: 600; padding: 0.5rem 1.25rem; transition: var(--transition); }
.btn:focus { box-shadow: 0 0 0 3px rgba(220,20,60,0.2); }

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover, .btn-outline-primary:active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-light-primary {
    background-color: var(--primary-light);
    color: var(--primary);
    border: none;
}
.btn-light-primary:hover {
    background-color: var(--primary);
    color: #fff;
}

/* ═══════════════════════════════════════
   Bootstrap Overrides — Cards
   ═══════════════════════════════════════ */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: var(--white);
    transition: var(--transition);
}
.card-header {
    background: var(--primary-lighter);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius) var(--radius) 0 0 !important;
}

/* ═══════════════════════════════════════
   Bootstrap Overrides — Forms
   ═══════════════════════════════════════ */
.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.875rem;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--text-color);
}
textarea.form-control {
    color: #212529 !important;
}
/* Summernote / Rich Text Editor — dark readable text */
.note-editor .note-editable,
.note-editor .note-editable p,
.note-editor .note-editable div,
.note-editor .note-editable span,
.note-editor .note-editable li {
    color: #212529 !important;
}
.note-editor .note-editable {
    font-size: 0.95rem;
}
.note-placeholder {
    color: #6c757d !important;
    opacity: 0.7;
}
/* Job content — readable dark text for all HTML from rich editors */
.job-content,
.job-content p,
.job-content div,
.job-content span,
.job-content li,
.job-content td,
.job-content th {
    color: #212529 !important;
}
.job-content {
    font-size: 0.95rem;
    line-height: 1.7;
}
.job-content ul,
.job-content ol {
    padding-left: 1.5rem;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220,20,60,0.12);
}
.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 0.375rem;
}
.form-text { color: var(--text-muted); font-size: 0.8rem; }
.input-group-text {
    background: var(--primary-lighter);
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* ═══════════════════════════════════════
   Bootstrap Overrides — Tables
   ═══════════════════════════════════════ */
.table { --bs-table-bg: var(--white); border-color: var(--border-color); }
.table thead th {
    background: var(--primary-lighter);
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    white-space: nowrap;
}
.table tbody td { padding: 0.75rem 1rem; vertical-align: middle; }
.table-hover tbody tr:hover { background: var(--primary-lighter); }
.table-striped tbody tr:nth-of-type(odd) { background-color: rgba(252,234,239,0.3); }

/* ═══════════════════════════════════════
   Bootstrap Overrides — Modals
   ═══════════════════════════════════════ */
.modal-header {
    background: var(--primary-lighter);
    border-bottom: 1px solid var(--border-color);
}
.modal-content { border-radius: var(--radius); border: none; box-shadow: var(--shadow-lg); }

/* ═══════════════════════════════════════
   Bootstrap Overrides — Pagination
   ═══════════════════════════════════════ */
.pagination { gap: 4px; }
.page-link {
    color: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm) !important;
    padding: 0.45rem 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}
.page-link:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-light);
}
.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.page-item.disabled .page-link {
    color: var(--text-muted);
    background: var(--white);
}

/* ═══════════════════════════════════════
   Bootstrap Overrides — Badges & Alerts
   ═══════════════════════════════════════ */
.badge { font-weight: 600; padding: 0.35em 0.65em; border-radius: 6px; }
.bg-primary { background-color: var(--primary) !important; }
.alert { border-radius: var(--radius-sm); border: none; }
.alert-primary { background: var(--primary-light); color: var(--primary-dark); }

/* ═══════════════════════════════════════
   Bootstrap Overrides — Dropdowns
   ═══════════════════════════════════════ */
.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}
.dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
    transition: var(--transition);
}
.dropdown-item:hover, .dropdown-item:focus {
    background: var(--primary-light);
    color: var(--primary);
}
.dropdown-item i { width: 20px; text-align: center; margin-right: 8px; color: var(--text-muted); }
.dropdown-item:hover i { color: var(--primary); }

/* ═══════════════════════════════════════
   Navbar — Public (White bg)
   ═══════════════════════════════════════ */
.navbar-public {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
    height: var(--navbar-height);
    transition: var(--transition);
    z-index: 1030;
}
.navbar-public .navbar-brand {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}
.navbar-public .navbar-brand:hover { color: var(--primary-dark); }
.navbar-public .navbar-brand i { color: var(--primary); }
.navbar-public .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}
.navbar-public .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}
.navbar-public .nav-link:hover { color: var(--primary); }
.navbar-public .nav-link:hover::after,
.navbar-public .nav-link.active::after { width: 60%; }
.navbar-public .nav-link.active { color: var(--primary); }

/* Transparent on homepage, white on scroll */
.navbar-transparent { background: transparent !important; box-shadow: none; }
.navbar-transparent .navbar-brand { color: #fff; }
.navbar-transparent .navbar-brand i { color: #fff; }
.navbar-transparent .nav-link { color: rgba(255,255,255,0.9) !important; }
.navbar-transparent .nav-link:hover { color: #fff !important; }
.navbar-transparent .nav-link::after { background: #fff; }
.navbar-scrolled { background: var(--white) !important; box-shadow: var(--shadow) !important; }
.navbar-scrolled .navbar-brand { color: var(--primary) !important; }
.navbar-scrolled .navbar-brand i { color: var(--primary) !important; }
.navbar-scrolled .nav-link { color: var(--text-color) !important; }
.navbar-scrolled .nav-link:hover { color: var(--primary) !important; }
.navbar-scrolled .nav-link::after { background: var(--primary) !important; }

/* ═══════════════════════════════════════
   Navbar — App (logged-in users)
   ═══════════════════════════════════════ */
.navbar-app {
    background: var(--white);
    box-shadow: var(--shadow);
    height: var(--navbar-height);
    padding: 0 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
}
.navbar-app .navbar-brand { color: var(--primary); font-weight: 800; font-size: 1.2rem; }
.navbar-app .search-box {
    max-width: 360px;
    position: relative;
}
.navbar-app .search-box input {
    border-radius: 24px;
    padding-left: 2.5rem;
    border-color: var(--border-color);
    background: var(--body-bg);
    font-size: 0.875rem;
}
.navbar-app .search-box input:focus {
    border-color: var(--primary);
    background: var(--white);
}
.navbar-app .search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.navbar-app .nav-icon {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    transition: var(--transition);
}
.navbar-app .nav-icon:hover { background: var(--primary-light); color: var(--primary); }
.navbar-app .nav-icon .badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--white);
}
.navbar-app .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}
.navbar-app .user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
}

/* ═══════════════════════════════════════
   Admin Top Bar
   ═══════════════════════════════════════ */
.admin-topbar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    height: var(--navbar-height);
    padding: 0 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
}
.admin-topbar .navbar-brand { color: #fff; font-weight: 800; }
.admin-topbar .nav-link { color: rgba(255,255,255,0.85); }
.admin-topbar .nav-link:hover { color: #fff; }
.admin-topbar .nav-icon { color: rgba(255,255,255,0.8); }
.admin-topbar .nav-icon:hover { background: rgba(255,255,255,0.15); color: #fff; }
.admin-topbar .nav-icon .badge-dot { border-color: var(--primary-dark); }
.admin-topbar .user-name { color: #fff; }
.admin-topbar .user-avatar { border-color: rgba(255,255,255,0.3); }

/* ═══════════════════════════════════════
   Sidebar
   ═══════════════════════════════════════ */
.sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height));
    background: var(--white);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 1rem 0;
    z-index: 1020;
    transition: var(--transition);
}
.sidebar-section {
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}
.sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0.75rem 1rem 0.375rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
    text-decoration: none;
}
.sidebar-link i {
    width: 22px;
    text-align: center;
    margin-right: 0.75rem;
    font-size: 0.95rem;
}
.sidebar-link:hover {
    background: var(--primary-lighter);
    color: var(--text-color);
}
.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--primary);
    padding-left: calc(1rem - 3px);
}
.sidebar-link.active i { color: var(--primary); }

/* ═══════════════════════════════════════
   Content Area
   ═══════════════════════════════════════ */
.content-wrapper {
    margin-left: var(--sidebar-width);
    margin-top: var(--navbar-height);
    padding: 1.5rem;
    min-height: calc(100vh - var(--navbar-height));
}
.content-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 0.825rem;
}
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-color); font-weight: 600; }

/* ═══════════════════════════════════════
   Stat Cards (Dashboard)
   ═══════════════════════════════════════ */
.stat-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--primary-light);
    color: var(--primary);
}
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text-color); line-height: 1.2; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

.stat-card.success { border-left-color: var(--success); }
.stat-card.success .stat-icon { background: #d1fae5; color: var(--success); }
.stat-card.warning { border-left-color: var(--warning); }
.stat-card.warning .stat-icon { background: #fef3c7; color: var(--warning); }
.stat-card.info { border-left-color: var(--info); }
.stat-card.info .stat-icon { background: #dbeafe; color: var(--info); }
.stat-card.danger { border-left-color: var(--danger); }
.stat-card.danger .stat-icon { background: #fee2e2; color: var(--danger); }

/* ═══════════════════════════════════════
   Job Cards
   ═══════════════════════════════════════ */
.job-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: var(--transition);
    position: relative;
}
.job-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.job-card .company-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}
.job-card .job-title { font-weight: 700; font-size: 1.05rem; color: var(--text-color); }
.job-card .job-title:hover { color: var(--primary); }
.job-card .company-name { color: var(--text-muted); font-size: 0.875rem; }
.job-card .job-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.job-card .job-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.job-card .job-meta i { font-size: 0.75rem; color: var(--primary); }
.job-card .save-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}
.job-card .save-btn:hover,
.job-card .save-btn.saved { color: var(--primary); }

/* ═══════════════════════════════════════
   Event Cards
   ═══════════════════════════════════════ */
.event-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.event-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.event-card .event-image {
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.event-card .event-image i { font-size: 3rem; color: rgba(255,255,255,0.3); }
.event-card .date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--white);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    text-align: center;
    line-height: 1.2;
    box-shadow: var(--shadow-sm);
}
.event-card .date-badge .day { font-size: 1.25rem; font-weight: 800; color: var(--primary); display: block; }
.event-card .date-badge .month { font-size: 0.7rem; text-transform: uppercase; font-weight: 600; color: var(--text-muted); }
.event-card .event-body { padding: 1rem 1.25rem; }

/* ═══════════════════════════════════════
   Star Rating
   ═══════════════════════════════════════ */
.star-rating { display: inline-flex; gap: 2px; }
.star-rating i { color: var(--primary); font-size: 0.9rem; }
.star-rating .fa-regular { color: #ddd; }
.star-rating-input { display: inline-flex; gap: 2px; cursor: pointer; }
.star-rating-input i {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.15s;
}
.star-rating-input i.active,
.star-rating-input i:hover,
.star-rating-input i:hover ~ i { color: var(--primary); }

/* ═══════════════════════════════════════
   Review Cards
   ═══════════════════════════════════════ */
.review-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.review-card .reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.review-card .reviewer-name { font-weight: 600; font-size: 0.9rem; }
.review-card .review-date { font-size: 0.8rem; color: var(--text-muted); }
.review-card .review-text { font-size: 0.9rem; line-height: 1.6; margin-top: 0.5rem; }

/* ═══════════════════════════════════════
   Profile Photo
   ═══════════════════════════════════════ */
.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
    box-shadow: var(--shadow);
}
.profile-photo-sm { width: 48px; height: 48px; border-width: 2px; }
.profile-photo-lg { width: 160px; height: 160px; }
.profile-upload-overlay {
    position: relative;
    display: inline-block;
}
.profile-upload-overlay .overlay {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    border: 2px solid var(--white);
    transition: var(--transition);
}
.profile-upload-overlay .overlay:hover { background: var(--primary-dark); }

/* ═══════════════════════════════════════
   Auth Card
   ═══════════════════════════════════════ */
.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-lighter), var(--white));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    border-top: 3px solid var(--primary);
}
.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}
.auth-card .auth-logo .brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}
.auth-card .auth-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════
   OTP Input
   ═══════════════════════════════════════ */
.otp-input-group { display: flex; gap: 10px; justify-content: center; }
.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220,20,60,0.12);
    outline: none;
}

/* ═══════════════════════════════════════
   Welcome Banner
   ═══════════════════════════════════════ */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.welcome-banner::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.welcome-banner h2 { font-weight: 800; margin-bottom: 0.5rem; }
.welcome-banner p { opacity: 0.9; margin-bottom: 0; }

/* ═══════════════════════════════════════
   Chat Bubbles
   ═══════════════════════════════════════ */
.chat-container { max-height: 500px; overflow-y: auto; padding: 1rem; }
.chat-bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.chat-bubble.sent {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}
.chat-bubble.received {
    background: var(--primary-lighter);
    color: var(--text-color);
    border-bottom-left-radius: 4px;
}
.chat-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ═══════════════════════════════════════
   Empty States
   ═══════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}
.empty-state i {
    font-size: 3.5rem;
    color: var(--border-color);
    margin-bottom: 1rem;
    display: block;
}
.empty-state h5 { font-weight: 700; color: var(--text-color); margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); max-width: 400px; margin: 0 auto 1rem; }

/* ═══════════════════════════════════════
   Footer — Public
   ═══════════════════════════════════════ */
.footer-public {
    background: var(--primary-lighter);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
}
.footer-public h6 { font-weight: 700; color: var(--text-color); margin-bottom: 0.75rem; }
.footer-public a { color: var(--text-muted); font-size: 0.875rem; }
.footer-public a:hover { color: var(--primary); }
.footer-public .footer-brand { color: var(--primary); font-weight: 800; font-size: 1.2rem; }
.footer-public .footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    color: var(--text-muted);
    transition: var(--transition);
    margin-right: 0.5rem;
}
.footer-social a:hover { background: var(--primary); color: #fff; }

/* ═══════════════════════════════════════
   Animations & Transitions
   ═══════════════════════════════════════ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.fade-in { animation: fadeIn 0.4s ease; }
.slide-in { animation: slideInLeft 0.3s ease; }
.skeleton { background: linear-gradient(90deg, #f0e0e3 25%, #fce5ea 50%, #f0e0e3 75%); background-size: 200% 100%; animation: pulse 1.5s infinite; }

/* ═══════════════════════════════════════
   Custom Scrollbar
   ═══════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--body-bg); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }
.sidebar::-webkit-scrollbar { width: 4px; }

/* ═══════════════════════════════════════
   Responsive
   ═══════════════════════════════════════ */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }
    .sidebar.show { transform: translateX(0); }
    .content-wrapper { margin-left: 0; }
    .navbar-app .search-box { display: none; }
}
@media (max-width: 767.98px) {
    .auth-card { padding: 1.5rem; margin: 0 0.5rem; }
    .stat-card .stat-value { font-size: 1.35rem; }
    .welcome-banner { padding: 1.5rem; }
    .content-wrapper { padding: 1rem; }
    .content-card { padding: 1rem; }
}
@media (max-width: 575.98px) {
    :root { --navbar-height: 56px; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .otp-input { width: 40px; height: 48px; font-size: 1.25rem; }
}

/* ═══════════════════════════════════════
   Utility Classes
   ═══════════════════════════════════════ */
.text-primary { color: var(--primary) !important; }
.text-primary-dark { color: var(--primary-dark) !important; }
.bg-primary-light { background-color: var(--primary-light) !important; }
.bg-primary-lighter { background-color: var(--primary-lighter) !important; }
.bg-body { background-color: var(--body-bg) !important; }
.border-primary { border-color: var(--primary) !important; }
.border-light-custom { border-color: var(--border-color) !important; }
.rounded-custom { border-radius: var(--radius) !important; }
.shadow-custom { box-shadow: var(--shadow) !important; }
.shadow-lg-custom { box-shadow: var(--shadow-lg) !important; }
.fw-800 { font-weight: 800 !important; }
.fs-sm { font-size: 0.8rem !important; }
.fs-xs { font-size: 0.7rem !important; }
.gap-custom { gap: 1rem; }
.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cursor-pointer { cursor: pointer; }
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Notification Badge (number) */
.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid var(--white);
}

/* Loading Spinner */
.spinner-primary { color: var(--primary); }
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Tags / Chips */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
    gap: 0.25rem;
}
.tag-remove { cursor: pointer; font-size: 0.65rem; margin-left: 4px; }
.tag-remove:hover { color: var(--danger); }

/* Toastr Overrides */
.toast-success { background-color: var(--success) !important; }
.toast-error { background-color: var(--danger) !important; }
.toast-warning { background-color: var(--warning) !important; }
.toast-info { background-color: var(--info) !important; }
/* ═══════════════════════════════════════
   Prompt 11 — Browse, Bookmarks, Views
   APPEND to public/assets/css/style.css
   ═══════════════════════════════════════ */

/* Page Header */
.rw-page-header {
    background: linear-gradient(135deg, #FFF8F9, #FFF0F3, #FFF);
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid #FFF0F3;
}

/* Filter Sidebar */
.rw-filter-card {
    position: sticky;
    top: 80px;
    border: 1px solid #FFF0F3;
}

/* Browse Cards */
.rw-browse-card {
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rw-browse-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220,20,60,0.08);
    border-color: #FFF0F3;
}
.rw-browse-logo {
    border: 1px solid #f0f0f0;
}

/* Save / Bookmark Toggle Buttons */
.rw-save-candidate-btn,
.rw-unsave-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
}
.rw-save-candidate-btn:hover,
.rw-unsave-btn:hover {
    background: #FFF0F3;
}

/* Truncate helpers */
.rw-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Who-Viewed Row */
.rw-viewer-row {
    transition: background 0.15s ease;
}
.rw-viewer-row:hover {
    background: #FEFAFA;
}

/* Event date badge (reuse from landing) */
.rw-event-date-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #DC143C;
    color: #fff;
    border-radius: 8px;
    padding: 4px 10px;
    text-align: center;
    line-height: 1.1;
}
.rw-event-date-day {
    font-size: 1.1rem;
    font-weight: 800;
    display: block;
}
.rw-event-date-month {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Background subtle helpers */
.bg-rw-light {
    background: #FFF0F3 !important;
}

/* Responsive browse */
@media (max-width: 767px) {
    .rw-filter-card {
        position: static;
    }
    .rw-page-header h1 {
        font-size: 1.5rem;
    }
}
/* ═══════════════════════════════════════
   Prompt 12 — Responsive, Polish, Security
   APPENDED to style.css
   ═══════════════════════════════════════ */

/* ═══════════════════════════════════════
   Back-to-Top Button
   ═══════════════════════════════════════ */
.btn-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(220,20,60,0.3);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1050;
    opacity: 0;
    transform: translateY(20px);
}
.btn-back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    display: flex !important;
}
.btn-back-to-top:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 18px rgba(220,20,60,0.45);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   Loading Overlay
   ═══════════════════════════════════════ */
.rw-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}
.rw-loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary);
    border-width: 0.3em;
}
.rw-loading-overlay .loading-text {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Inline overlay (inside a container) */
.rw-inline-loader {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius);
}

/* ═══════════════════════════════════════
   Skeleton Placeholders
   ═══════════════════════════════════════ */
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton-box {
    display: inline-block;
    width: 100%;
    height: 1em;
    border-radius: 6px;
    background: linear-gradient(90deg, #FFF0F3 25%, #FCEAEF 37%, #FFF0F3 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}
.skeleton-box.skeleton-title { height: 1.5em; width: 60%; margin-bottom: 0.75rem; }
.skeleton-box.skeleton-text { height: 0.875em; margin-bottom: 0.5rem; }
.skeleton-box.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-box.skeleton-card { height: 200px; border-radius: var(--radius); }
.skeleton-box.skeleton-img { height: 160px; border-radius: var(--radius) var(--radius) 0 0; }

/* ═══════════════════════════════════════
   Password Strength Meter
   ═══════════════════════════════════════ */
.password-strength-meter {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-top: 0.375rem;
    overflow: hidden;
}
.password-strength-meter .strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}
.password-strength-meter .strength-bar.weak   { width: 25%;  background: var(--danger); }
.password-strength-meter .strength-bar.fair    { width: 50%;  background: var(--warning); }
.password-strength-meter .strength-bar.good    { width: 75%;  background: var(--info); }
.password-strength-meter .strength-bar.strong  { width: 100%; background: var(--success); }
.strength-label { font-size: 0.7rem; font-weight: 600; margin-top: 0.2rem; }

/* ═══════════════════════════════════════
   Drag-Drop Upload Zone
   ═══════════════════════════════════════ */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--body-bg);
}
.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-lighter);
}
.drop-zone .drop-icon {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 0.75rem;
}
.drop-zone .drop-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}
.drop-zone .drop-text strong { color: var(--primary); }

/* ═══════════════════════════════════════
   Select2 Crimson Theme Overrides
   ═══════════════════════════════════════ */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    min-height: 40px !important;
}
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--multiple:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(220,20,60,0.12) !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary) !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
    color: var(--primary) !important;
    border-radius: 16px !important;
    font-size: 0.8rem;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--primary) !important;
}

/* ═══════════════════════════════════════
   jQuery Validate Error Styles
   ═══════════════════════════════════════ */
label.error,
.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
    display: block;
}
.form-control.error,
.form-select.error,
input.error,
select.error,
textarea.error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12) !important;
}
.form-control.valid,
.form-select.valid,
input.valid,
select.valid,
textarea.valid {
    border-color: var(--success) !important;
}

/* ═══════════════════════════════════════
   Empty State (enhanced)
   ═══════════════════════════════════════ */
.empty-state-illustration {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: var(--primary-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-state-illustration i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.4;
    display: block;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════
   Responsive — 320px (Extra Small)
   ═══════════════════════════════════════ */
@media (max-width: 374px) {
    html { font-size: 14px; }
    .auth-card { padding: 1.25rem 1rem; max-width: 100%; }
    .auth-wrapper { padding: 1rem 0.5rem; }
    .otp-input-group { gap: 6px; }
    .otp-input { width: 36px; height: 42px; font-size: 1.1rem; }
    .welcome-banner { padding: 1rem; }
    .welcome-banner h2 { font-size: 1.1rem; }
    .stat-card { padding: 0.875rem; }
    .stat-card .stat-value { font-size: 1.25rem; }
    .job-card { padding: 1rem; }
    .chat-bubble { max-width: 90%; }
    .btn { padding: 0.4rem 0.875rem; font-size: 0.85rem; }
    .container { padding-left: 0.75rem; padding-right: 0.75rem; }
    .page-header h1 { font-size: 1.2rem; }
    .card-header { padding: 0.625rem 0.875rem; font-size: 0.875rem; }
    .modal-body { padding: 1rem; }
    .modal-header { padding: 0.75rem 1rem; }
    .table thead th { font-size: 0.7rem; padding: 0.5rem; }
    .table tbody td { font-size: 0.8rem; padding: 0.5rem; }
}

/* ═══════════════════════════════════════
   Responsive — 375px–575px (Small phones)
   ═══════════════════════════════════════ */
@media (max-width: 575.98px) {
    .navbar-public .container { padding: 0 0.5rem; }
    .navbar-brand { font-size: 1.1rem !important; }

    /* Stack OTP cards vertically */
    .auth-dual-otp .row { flex-direction: column; }
    .auth-dual-otp .col-md-6 { max-width: 100%; }

    /* Messages single-panel mode */
    .chat-sidebar { display: none; }
    .chat-sidebar.active { display: block; width: 100%; }
    .chat-main { width: 100%; }
    .chat-back-btn { display: inline-flex !important; }

    /* Browse filters as collapsible */
    .rw-filter-card { position: static !important; }

    /* Footer cols stack */
    .footer-public .col-md-4,
    .footer-public .col-md-3 { margin-bottom: 1.5rem; }

    /* Form grid single col */
    .form-grid-2 .col-md-6 { flex: 0 0 100%; max-width: 100%; }

    /* Event cards full width */
    .event-card .event-image { height: 130px; }

    /* Pagination smaller */
    .page-link { padding: 0.35rem 0.6rem; font-size: 0.8rem; }

    /* Profile photo smaller */
    .profile-photo { width: 80px; height: 80px; }
    .profile-photo-lg { width: 100px; height: 100px; }
}

/* ═══════════════════════════════════════
   Responsive — 576px–767px (Landscape phones)
   ═══════════════════════════════════════ */
@media (min-width: 576px) and (max-width: 767.98px) {
    .auth-card { max-width: 460px; }
    .stat-card .stat-value { font-size: 1.5rem; }
}

/* ═══════════════════════════════════════
   Responsive — Tablet (768px–991px)
   ═══════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991.98px) {
    .content-wrapper { padding: 1.25rem; }
    .sidebar-overlay { display: none; }
    .sidebar.show + .sidebar-overlay { display: block; }

    /* 2-column grids */
    .rw-browse-card { }
    .chat-sidebar { width: 280px; }
}

/* ═══════════════════════════════════════
   Responsive — Desktop (992px+) sidebar
   ═══════════════════════════════════════ */
@media (min-width: 992px) {
    .sidebar { transform: translateX(0); }
    .content-wrapper { margin-left: var(--sidebar-width); }
    .chat-back-btn { display: none !important; }
}

/* ═══════════════════════════════════════
   Sidebar Overlay (mobile tap-outside)
   ═══════════════════════════════════════ */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1019;
    display: none;
}
.sidebar-overlay.active { display: block; }

/* ═══════════════════════════════════════
   Admin Dashboard Chart Responsive
   ═══════════════════════════════════════ */
.chart-container { position: relative; width: 100%; }
.chart-container canvas { width: 100% !important; height: auto !important; }

/* ═══════════════════════════════════════
   Image Lazy-Load
   ═══════════════════════════════════════ */
img[loading="lazy"] { opacity: 1; transition: opacity 0.3s ease; }
img.lazy-pending { opacity: 0; }

/* ═══════════════════════════════════════
   Rate Limit Alert
   ═══════════════════════════════════════ */
.rate-limit-alert {
    background: linear-gradient(135deg, #FEE2E2, #FFF);
    border: 1px solid #FECACA;
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
}
.rate-limit-alert i { color: var(--danger); font-size: 1.5rem; margin-bottom: 0.5rem; }

/* ═══════════════════════════════════════
   Breadcrumb responsive
   ═══════════════════════════════════════ */
@media (max-width: 575px) {
    .breadcrumb { font-size: 0.75rem; }
    .breadcrumb-item + .breadcrumb-item::before { padding: 0 0.3rem; }
}

/* ═══════════════════════════════════════
   Print styles
   ═══════════════════════════════════════ */
@media print {
    .sidebar, .navbar-app, .admin-topbar, .navbar-public,
    .btn-back-to-top, .sidebar-overlay { display: none !important; }
    .content-wrapper { margin-left: 0 !important; padding: 0 !important; }
    body { background: #fff; }
}
/* ═══════════════════════════════════════
   HOMEPAGE — Hero Section
   ═══════════════════════════════════════ */
.min-vh-60 { min-height: 60vh; }

.rw-hero {
    background: linear-gradient(135deg, #FFF0F3 0%, #FFF8F9 40%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.rw-hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: var(--primary);
}
.rw-hero-shape--1 { width: 400px; height: 400px; top: -100px; right: -80px; }
.rw-hero-shape--2 { width: 250px; height: 250px; bottom: -50px; left: -40px; }
.rw-hero-shape--3 { width: 150px; height: 150px; top: 40%; left: 30%; opacity: 0.04; }

.rw-hero-title {
    font-size: 2.75rem;
    line-height: 1.2;
    color: #1F2937;
}

/* Hero illustration — floating cards */
.rw-hero-illustration {
    position: relative;
    width: 100%;
    height: 360px;
}

.rw-hero-card {
    position: absolute;
    background: #fff;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 30px rgba(220,20,60,0.10);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    animation: floatCard 6s ease-in-out infinite;
    white-space: nowrap;
}
.rw-hero-card i {
    font-size: 1.25rem;
    color: var(--primary);
    background: var(--primary-lighter);
    padding: 0.5rem;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rw-hero-card--1 { top: 20%; left: 10%; animation-delay: 0s; }
.rw-hero-card--2 { top: 45%; right: 5%;  animation-delay: 2s; }
.rw-hero-card--3 { bottom: 10%; left: 20%; animation-delay: 4s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.rw-hero-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px dashed rgba(220,20,60,0.12);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spinSlow 30s linear infinite;
}
@keyframes spinSlow { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ═══════════════════════════════════════
   HOMEPAGE — Search Section
   ═══════════════════════════════════════ */
.rw-search-section {
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    padding-bottom: 1rem;
}
.rw-search-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid #F3E8EB;
}

/* ═══════════════════════════════════════
   HOMEPAGE — Stats Cards
   ═══════════════════════════════════════ */
.rw-stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid #F3E8EB;
    transition: var(--transition);
}
.rw-stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.rw-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.rw-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
.rw-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ═══════════════════════════════════════
   HOMEPAGE — How It Works Steps
   ═══════════════════════════════════════ */
.rw-step-row {
    background: #fff;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #F3E8EB;
    transition: var(--transition);
    align-items: flex-start;
}
.rw-step-row:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
}
.rw-step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--primary-lighter);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(220,20,60,0.15);
    margin-right: 1rem;
    margin-top: 0.1rem;
}
.rw-step-content { flex: 1; }

/* ═══════════════════════════════════════
   HOMEPAGE — Event Cards
   ═══════════════════════════════════════ */
.rw-event-card {
    border-radius: var(--radius) !important;
    overflow: hidden;
    transition: var(--transition);
}
.rw-event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.rw-event-banner {
    height: 160px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #FFF0F3, #FFE4E8);
}
.rw-event-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rw-event-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0.4;
}
/* event date badge: using existing styles from line ~1008 */

/* ═══════════════════════════════════════
   HOMEPAGE — Top Companies Logo Grid
   ═══════════════════════════════════════ */
.rw-company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.rw-company-logo-item {
    text-align: center;
    width: 130px;
    transition: var(--transition);
}
.rw-company-logo-item:hover {
    transform: translateY(-4px);
}
.rw-company-logo-item img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: var(--radius);
    border: 2px solid #F3E8EB;
    padding: 0.5rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.rw-company-logo-item:hover img {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}
.rw-company-logo-item span {
    display: block;
    max-width: 130px;
    font-size: 0.78rem;
}

/* ═══════════════════════════════════════
   HOMEPAGE — Top Rated Company Cards
   ═══════════════════════════════════════ */
.rw-rated-card {
    border-radius: var(--radius) !important;
    transition: var(--transition);
}
.rw-rated-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════
   HOMEPAGE — Testimonials / Reviews
   ═══════════════════════════════════════ */
.rw-testimonial-card {
    max-width: 640px;
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid #F3E8EB;
    text-align: center;
}
.rw-testimonial-quote {
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 0.75rem;
}
.rw-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D1D5DB;
    border: none;
    margin: 0 4px;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}
.rw-carousel-dot.active,
.rw-carousel-dot:hover {
    background: var(--primary);
    transform: scale(1.2);
}

/* ═══════════════════════════════════════
   HOMEPAGE — Popular Streams Grid
   ═══════════════════════════════════════ */
.rw-stream-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.25rem 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #F3E8EB;
    transition: var(--transition);
}
.rw-stream-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: var(--primary);
}
.rw-stream-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-lighter);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}
.rw-stream-card:hover .rw-stream-icon {
    background: var(--primary);
    color: #fff;
}
.rw-stream-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.15rem;
}
.rw-stream-count {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════
   HOMEPAGE — CTA Section (Crimson Gradient)
   ═══════════════════════════════════════ */
.rw-cta-section {
    background: linear-gradient(135deg, #DC143C 0%, #A50E2D 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.rw-cta-section::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.rw-cta-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.rw-cta-section .container {
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════
   HOMEPAGE — Responsive Overrides
   ═══════════════════════════════════════ */
@media (max-width: 991px) {
    .rw-hero-title { font-size: 2.1rem; }
    .rw-search-card { padding: 1.25rem; }
    .rw-testimonial-card { padding: 1.5rem; }
}

@media (max-width: 767px) {
    .rw-hero-title { font-size: 1.75rem; }
    .rw-hero-shape--1 { width: 250px; height: 250px; }
    .rw-hero-shape--2 { width: 150px; height: 150px; }
    .rw-search-section { margin-top: -1rem; }
    .rw-search-card { padding: 1rem; }
    .rw-company-logos { gap: 1.25rem; }
    .rw-company-logo-item { width: 100px; }
    .rw-company-logo-item img { width: 70px; height: 70px; }
    .rw-testimonial-card { padding: 1.25rem 1rem; }
    .rw-cta-section { padding: 3rem 0; }
    .rw-stat-number { font-size: 1.4rem; }
}

@media (max-width: 575px) {
    .rw-hero-title { font-size: 1.5rem; }
    .min-vh-60 { min-height: 45vh; }
    .rw-company-logos { gap: 1rem; }
    .rw-company-logo-item { width: 80px; }
    .rw-company-logo-item img { width: 60px; height: 60px; }
    .rw-company-logo-item span { font-size: 0.7rem; }
    .rw-stream-card { padding: 1rem 0.5rem; }
    .rw-stream-icon { width: 40px; height: 40px; font-size: 1rem; }
    .rw-stream-name { font-size: 0.72rem; }
    .rw-cta-section { padding: 2.5rem 0; }
    .rw-cta-section h2 { font-size: 1.35rem; }
}