/* =============================================================
   HireMatrix – Responsive System (Naukri-style)
   Breakpoints: xs<480 | sm 480-767 | md 768-991 | lg 992-1199 | xl 1200+
   Below 360px → horizontal scroll (Naukri fallback)
   ============================================================= */

/* ── 1. GLOBAL: min-width + horizontal scroll fallback ── */
html, body {
    min-width: 360px;
    overflow-x: auto;
}
.site-wrap { min-width: 360px; }

/* ── 2. IMAGES & MEDIA ── */
img, video, iframe { max-width: 100%; height: auto; }

/* ── 3. CONTAINER PADDING ── */
@media (max-width: 575.98px) {
    .container, .container-fluid { padding-left: 12px !important; padding-right: 12px !important; }
}

/* ── 4. NAVBAR ── */
@media (max-width: 1199.98px) {
    .candidate-app .site-navbar .site-navigation,
    .recruiter-jobboard .site-navbar .site-navigation { display: none !important; }
    .mobile-nav-actions { display: flex !important; }
    .d-none.d-lg-inline-flex, .d-none.d-lg-inline-block { display: none !important; }
    .header-job-search-wrap { display: none !important; }
}
@media (max-width: 767.98px) {
    .candidate-app .site-navbar .row.align-items-center,
    .recruiter-jobboard .site-navbar .row.align-items-center { min-height: 60px; }
    .site-navbar .site-logo a img { height: 28px !important; }
}
/* Landing header */
@media (max-width: 767.98px) {
    .landing-header .site-navigation,
    .landing-header .landing-header-cta { display: none !important; }
    .landing-header .landing-header-row { min-height: 60px; }
}

/* ── 5. HERO / LANDING ── */
@media (max-width: 991.98px) {
    .hero-title { font-size: clamp(1.8rem, 5vw, 2.8rem) !important; }
    .landing-career-transition-inner { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
    .landing-career-transition-art { display: none; }
    .landing-featured-jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .hero-title { font-size: 1.75rem !important; }
    .landing-featured-jobs-grid { grid-template-columns: 1fr; }
    .landing-career-transition-inner { padding: 1.4rem 1rem; }
    .landing-search-panel .card-body { padding: 1rem; }
    .landing-search-submit { width: 100%; }
}

/* ── 6. DASHBOARD ── */
@media (max-width: 1100px) {
    .dashboard-jobboard .dashboard-layout {
        height: auto !important; overflow: visible !important;
        flex-direction: column; padding: 16px 0 48px;
    }
    .dashboard-jobboard .dashboard-sidebar {
        position: static !important; width: 100% !important;
        height: auto !important; overflow: visible !important; margin-bottom: 16px;
    }
    .dashboard-jobboard .dashboard-main { height: auto !important; overflow: visible !important; width: 100%; }
    /* show quick nav on mobile */
    .dashboard-quick-nav { display: flex !important; overflow-x: auto; gap: 8px; padding: 8px 0; }
}
@media (max-width: 991.98px) {
    .dashboard-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-primary-action { flex-direction: column; align-items: flex-start; }
    .dashboard-primary-action-buttons { justify-content: flex-start; width: 100%; }
    .dashboard-primary-btn, .dashboard-secondary-btn { min-width: 0; flex: 1 1 auto; }
    .dashboard-cta-banner-inner { flex-direction: column; padding: 2rem 1.5rem; }
    .dashboard-cta-art { display: none; }
    .dashboard-strategy-banner-inner { grid-template-columns: 1fr; padding: 1.5rem; }
    .dashboard-strategy-panel { max-width: none; justify-self: stretch; }
    .top-companies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pro-ad-services { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 575.98px) {
    .dashboard-metric-grid { grid-template-columns: 1fr; }
    .dashboard-cta-banner-inner { padding: 1.5rem 1rem; }
    .pro-ad-right { display: none; }
    .pro-ad-features { grid-template-columns: 1fr; }
    .top-companies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ── 7. JOBS PAGE ── */
@media (max-width: 991.98px) {
    .jobs-page-jobboard .jobs-layout { grid-template-columns: 1fr; }
    .jobs-page-jobboard .sidebar { display: none; position: static; }
    .jobs-page-jobboard .mobile-filter-toggle { display: flex !important; }
    .jobs-page-jobboard .recommended-job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jobs-page-jobboard .profile-strip { grid-template-columns: 1fr; min-height: 0; }
    .jobs-page-jobboard .jobs-search-feedback { flex-direction: column; }
    .page-board-header { flex-direction: column; align-items: flex-start; }
    .page-board-metrics { justify-content: flex-start; }
}
@media (max-width: 767.98px) {
    .jobs-page-jobboard .job-listings .job-listing { grid-template-columns: 1fr !important; }
    .jobs-page-jobboard .job-listing-about { display: flex !important; flex-direction: column; }
    .jobs-page-jobboard .job-listing-meta { min-width: 0; align-items: flex-start; text-align: left; }
    .jobs-page-jobboard .job-listings .job-listing .job-listing-logo { width: 64px; height: 64px; }
}
@media (max-width: 575.98px) {
    .jobs-page-jobboard .recommended-job-grid { grid-template-columns: 1fr; }
    .jobs-page-jobboard .tab-pill { width: 100%; justify-content: space-between; }
    .jobs-page-jobboard .active-filter-chip { width: 100%; justify-content: space-between; }
    .jobs-page-jobboard .profile-strip { padding: 1rem; border-radius: 1rem; }
}

/* ── 8. JOB DETAILS ── */
@media (max-width: 991.98px) {
    .job-details-jobboard .job-details-layout { grid-template-columns: 1fr; }
    .job-details-jobboard .job-details-side { position: static; }
    .job-details-jobboard .job-details-page-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575.98px) {
    .job-details-jobboard .job-details-header-actions { width: 100%; }
    .job-details-jobboard .job-details-header-actions .btn { width: 100%; justify-content: center; }
    .job-details-jobboard .job-details-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .applications-jobboard .detail-score-grid { grid-template-columns: 1fr; }
}

/* ── 9. APPLICATIONS ── */
@media (max-width: 991.98px) {
    .applications-jobboard .applications-shell { grid-template-columns: 1fr; }
    .applications-jobboard .applications-sidebar { position: static; max-height: 320px; }
    .applications-jobboard .application-detail-head { flex-direction: column; }
}

/* ── 10. CANDIDATE PROFILE ── */
@media (max-width: 991.98px) {
    .profile-jobboard .profile-summary-grid { grid-template-columns: 1fr; }
    .profile-jobboard .profile-summary-progress { min-width: 0; width: 100%; }
    .profile-jobboard .profile-summary-metrics { justify-content: flex-start; }
}
@media (max-width: 767.98px) {
    .profile-jobboard .profile-two-pane .profile-left-pane,
    .profile-jobboard .profile-two-pane .profile-right-pane {
        max-height: none !important; overflow-y: visible !important;
    }
}

/* ── 11. SETTINGS ── */
@media (max-width: 991.98px) {
    .settings-shell { grid-template-columns: 1fr; margin-top: 16px; }
    .settings-summary-grid { grid-template-columns: 1fr; }
    .settings-summary-progress { min-width: 0; }
    .settings-summary-metrics { justify-content: flex-start; }
}

/* ── 12. CAREER TRANSITION ── */
@media (max-width: 991.98px) {
    .career-transition-jobboard .career-transition-hero { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .career-transition-jobboard .hero-title { font-size: clamp(1.8rem, 4vw, 2.8rem) !important; }
}
@media (max-width: 575.98px) {
    .career-transition-jobboard .career-transition-actions { flex-direction: column; }
    .career-transition-jobboard .career-transition-actions .btn { width: 100%; justify-content: center; }
}

/* ── 13. RECRUITER DASHBOARD ── */
@media (max-width: 991.98px) {
    .recruiter-dashboard-jobboard .conversion-summary-row { grid-template-columns: 1fr; }
    .recruiter-dashboard-jobboard .recruiter-section-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767.98px) {
    .recruiter-dashboard-jobboard .recruiter-dashboard-hero-title { font-size: 1.8rem; }
}

/* ── 14. RECRUITER JOBS / APPLICATIONS ── */
@media (max-width: 991.98px) {
    .recruiter-jobboard .table-responsive-wrap,
    .recruiter-applications-jobboard .table-responsive-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .recruiter-jobboard .card .table,
    .recruiter-applications-jobboard .card .table { min-width: 600px; }
}
@media (max-width: 767.98px) {
    .recruiter-jobboard .job-actions-wrap { flex-wrap: wrap; gap: 6px; }
    .recruiter-jobboard .job-actions-wrap .btn { flex: 1 1 auto; min-width: 0; font-size: 0.8rem; padding: 6px 10px; }
}

/* ── 15. ONBOARDING ── */
@media (max-width: 991.98px) {
    .onboarding-jobboard .onboarding-wrap { grid-template-columns: 1fr; }
    .onboarding-jobboard .onboarding-summary-grid { grid-template-columns: 1fr; }
    .onboarding-jobboard .onboarding-content { padding: 20px; }
}
@media (max-width: 575.98px) {
    .onboarding-jobboard .onboarding-content { padding: 16px; }
    .onboarding-jobboard .onboarding-actions { flex-direction: column; }
    .onboarding-jobboard .onboarding-actions .btn { width: 100%; justify-content: center; }
}

/* ── 16. MOCK INTERVIEW / STRATEGY ── */
@media (max-width: 991.98px) {
    .mock-interview-jobboard .mock-interview-shell,
    .strategy-jobboard .strategy-shell { grid-template-columns: 1fr; }
    .mock-interview-jobboard .mock-sidebar,
    .strategy-jobboard .strategy-sidebar { position: static; }
    .strategy-jobboard .strategy-roadmap,
    .strategy-jobboard .strategy-metric-grid { grid-template-columns: 1fr; }
}

/* ── 17. AI INTERVIEW FLOW ── */
@media (max-width: 1199.98px) {
    .ai-interview-flow-jobboard .ai-interview-flow-shell { grid-template-columns: 1fr; }
    .ai-interview-flow-jobboard .ai-interview-flow-rail { position: static; }
    .ai-interview-flow-jobboard .ai-interview-flow-grid { grid-template-columns: 1fr; }
    .ai-interview-flow-jobboard .ai-interview-flow-context { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .ai-interview-flow-jobboard .ai-interview-flow-context { grid-template-columns: 1fr; }
    .ai-interview-flow-jobboard .ai-interview-flow-stage-header { flex-direction: column; }
    .ai-interview-flow-jobboard .ai-interview-flow-timer { width: 100%; text-align: left; }
}

/* ── 18. BOOKINGS / SLOTS ── */
@media (max-width: 991.98px) {
    .my-bookings-jobboard .booking-next-step { flex-direction: column; align-items: flex-start; }
    .my-bookings-jobboard .booking-next-step-actions { justify-content: flex-start; width: 100%; }
    .my-bookings-jobboard .booking-timeline-body { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .book-slot-jobboard .slot-choice-grid { grid-template-columns: 1fr; }
    .my-bookings-jobboard .booking-timeline-item { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
    .my-bookings-jobboard .booking-timeline-head,
    .my-bookings-jobboard .booking-timeline-body,
    .my-bookings-jobboard .booking-timeline-actions { padding: 14px; }
}

/* ── 19. COMPANY PROFILE / DIRECTORY ── */
@media (max-width: 991.98px) {
    .company-profile-jobboard .company-profile-layout { grid-template-columns: 1fr; }
    .company-profile-jobboard .company-profile-side { position: static; }
    .company-profile-jobboard .company-profile-header { flex-direction: column; align-items: flex-start; }
    .companies-directory-jobboard .company-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .company-profile-jobboard .company-branding-grid,
    .company-profile-jobboard .company-photo-grid,
    .company-profile-jobboard .company-overview-grid { grid-template-columns: 1fr; }
    .company-profile-jobboard .company-profile-actions { width: 100%; }
    .company-profile-jobboard .company-profile-actions .btn { width: 100%; justify-content: center; }
    .companies-directory-jobboard .company-directory-grid { grid-template-columns: 1fr; }
}

/* ── 20. RESUME STUDIO ── */
@media (max-width: 991.98px) {
    .resume-studio-jobboard .resume-studio-layout { grid-template-columns: 1fr; }
    .resume-studio-jobboard .resume-studio-side { position: static; }
}
@media (max-width: 575.98px) {
    .resume-studio-jobboard .generation-mode-grid { grid-template-columns: 1fr; }
    .resume-studio-jobboard .resume-studio-primary-row .btn,
    .resume-studio-jobboard .resume-version-actions .btn { width: 100%; justify-content: center; }
}

/* ── 21. AUTH PAGES ── */
@media (max-width: 991.98px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand-card { display: none; }
    .auth-form-card { padding: 1.5rem; }
}
@media (max-width: 575.98px) {
    .auth-form-card { padding: 1.25rem; border-radius: 1rem; }
}

/* ── 22. FOOTER ── */
@media (max-width: 767.98px) {
    .site-footer { padding: 2.5rem 0 1.5rem; margin-top: 2rem; }
    .site-footer .row > [class*="col-"] { margin-bottom: 1.5rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── 23. FLOATING MENTOR BUTTON ── */
@media (max-width: 575.98px) {
    .floating-mentor-launcher { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    .floating-mentor-launcher__label { display: none; }
    .floating-mentor-launcher__button { width: 54px; height: 54px; min-width: 54px; min-height: 54px; }
}

/* ── 24. TABLES – horizontal scroll ── */
@media (max-width: 991.98px) {
    .table-responsive, .dashboard-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .card .table:not(.table-no-scroll) { min-width: 540px; }
}

/* ── 25. MODALS ── */
@media (max-width: 575.98px) {
    .modal-dialog { margin: 0.5rem; }
    .modal-content { border-radius: 1rem; }
}

/* ── 26. CARDS / GRIDS ── */
@media (max-width: 767.98px) {
    .card-body { padding: 1rem; }
    .page-board-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .page-board-metrics { justify-content: flex-start; }
}

/* ── 27. BUTTONS – full-width on xs ── */
@media (max-width: 479.98px) {
    .btn-block-xs { display: block; width: 100%; }
    .detail-actions, .prep-coach-actions, .career-transition-actions { flex-direction: column; }
    .detail-actions .btn, .prep-coach-actions .btn, .career-transition-actions .btn { width: 100%; justify-content: center; }
}

/* ── 28. TYPOGRAPHY SCALING ── */
@media (max-width: 767.98px) {
    .page-board-title { font-size: clamp(1.5rem, 5vw, 2rem) !important; }
    .section-title { font-size: clamp(1.2rem, 4vw, 1.6rem) !important; }
    .dashboard-cta-title { font-size: clamp(1.4rem, 4vw, 2rem) !important; }
}
@media (max-width: 479.98px) {
    .page-board-title { font-size: 1.4rem !important; }
    .section-title { font-size: 1.15rem !important; }
}

/* ── 29. NOTIFICATIONS ── */
@media (max-width: 575.98px) {
    .notifications-jobboard .notification-card { padding: 0.85rem; }
    .notifications-jobboard .notification-card .d-flex { flex-wrap: wrap; gap: 8px; }
}

/* ── 30. PREMIUM / PLANS ── */
@media (max-width: 767.98px) {
    .premium-plans-grid, .plans-grid { grid-template-columns: 1fr !important; }
}

/* ── 31. SAVED JOBS ── */
@media (max-width: 991.98px) {
    .saved-jobs-jobboard .saved-job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .saved-jobs-jobboard .saved-job-grid { grid-template-columns: 1fr; }
}

/* ── 32. ADMIN PAGES ── */
@media (max-width: 991.98px) {
    .admin-dashboard .row > [class*="col-"] { margin-bottom: 1rem; }
}

/* ── 33. HEADER SEARCH BAR ── */

/* Trigger button */
.header-job-search-wrap {
    position: relative;
    margin-right: 10px;
    z-index: 100;
}
.header-job-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.header-job-search-trigger:hover {
    border-color: rgba(37,99,235,0.4);
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

/* Dropdown panel */
.header-job-search-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 680px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.14);
    padding: 10px;
    z-index: 1200;
}
.header-job-search-panel.is-open { display: block; }

/* Fields row */
.hjs-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.hjs-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    padding: 0 14px;
    height: 48px;
}
.hjs-field-exp { flex: 0 0 160px; }
.hjs-field-location { flex: 0 0 180px; }
.hjs-icon {
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
}
.hjs-field input,
.hjs-field select {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #1e293b;
    padding: 0;
    box-shadow: none;
    height: auto;
}
.hjs-field input::placeholder { color: #94a3b8; }
.hjs-divider {
    width: 1px;
    height: 28px;
    background: #e2e8f0;
    flex-shrink: 0;
}
.hjs-submit {
    flex-shrink: 0;
    height: 40px;
    padding: 0 18px;
    margin: 4px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background .18s ease;
}
.hjs-submit:hover { background: #1d4ed8; }

/* Notification bell */
.header-notification-link {
    position: relative;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    text-decoration: none;
    border-radius: 10px;
    transition: background .18s ease;
}
.header-notification-link:hover { background: rgba(59,130,246,0.06); color: #1e293b; }
.header-notification-badge {
    position: absolute;
    top: 2px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 2px #fff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.header-notification-link.has-unread .icon-bell {
    animation: bell-ring 1.6s ease-in-out infinite;
    transform-origin: top center;
    display: inline-block;
}
@keyframes bell-ring {
    0%,60%,100% { transform: rotate(0deg); }
    65% { transform: rotate(12deg); }
    75% { transform: rotate(-10deg); }
    85% { transform: rotate(6deg); }
    95% { transform: rotate(-4deg); }
}

/* Avatar */
.candidate-avatar-menu { position: relative; }
.candidate-avatar-btn {
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #ff7b2a 100%);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 4px 12px rgba(59,130,246,0.22);
    transition: transform .18s ease, box-shadow .18s ease;
}
.candidate-avatar-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(59,130,246,0.28); }
.candidate-avatar-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.candidate-avatar-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 175px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    padding: 6px 0;
    z-index: 1200;
}
.candidate-avatar-dropdown.is-open { display: block; }
.candidate-avatar-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    transition: background .15s ease;
}
.candidate-avatar-dropdown a:hover { background: #f8fafc; }
.candidate-avatar-dropdown a i { width: 16px; text-align: center; color: #64748b; }

/* Hide desktop search + bell + avatar on < 1200px; show mobile actions */
@media (max-width: 1199.98px) {
    .header-job-search-wrap,
    .header-notification-link,
    .candidate-avatar-menu { display: none !important; }
    .mobile-nav-actions { display: flex !important; }
}
@media (min-width: 1200px) {
    .mobile-nav-actions { display: none !important; }
    .header-job-search-wrap,
    .header-notification-link,
    .candidate-avatar-menu { display: inline-flex !important; }
    .candidate-avatar-menu { display: inline-block !important; }
}

/* ── MOBILE SEARCH DRAWER ── */
.mobile-search-drawer {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #fff;
    z-index: 3000;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(15,23,42,0.16);
    border-bottom: 1px solid #e2e8f0;
    transform: translateY(-100%);
    transition: transform .22s cubic-bezier(0.4,0,0.2,1);
}
.mobile-search-drawer.is-open {
    display: block;
    transform: translateY(0);
}
.mobile-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.4);
    z-index: 2999;
}
.mobile-search-overlay.is-open { display: block; }
body.mobile-search-open { overflow: hidden; }

.mobile-search-form { display: flex; flex-direction: column; gap: 10px; }
.mobile-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 14px;
    height: 48px;
}
.mobile-search-field:focus-within { border-color: #2563eb; }
.mobile-search-icon { color: #94a3b8; font-size: 14px; flex-shrink: 0; }
.mobile-search-field input,
.mobile-search-field select {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #1e293b;
    padding: 0;
    box-shadow: none;
    height: auto;
}
.mobile-search-field input::placeholder { color: #94a3b8; }
.mobile-search-row2 { display: flex; gap: 10px; }
.mobile-search-field-half { flex: 1 1 0; min-width: 0; }
.mobile-search-submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .18s ease;
}
.mobile-search-submit:hover { background: #1d4ed8; }

/* ── 34. NAUKRI HORIZONTAL SCROLL FALLBACK (< 360px) ── */
@media (max-width: 359.98px) {
    .site-wrap, .container, .container-fluid,
    header.site-navbar, main, footer.site-footer { min-width: 360px; }
}

/* ── 35. SCROLL UTILITY (Naukri style – hide scrollbar) ── */
.scroll-x-naukri { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.scroll-x-naukri::-webkit-scrollbar { display: none; }

/* ── 36. RECRUITER CANDIDATE PROFILE ── */
@media (max-width: 991.98px) {
    .recruiter-candidate-profile-jobboard .candidate-profile-layout { grid-template-columns: 1fr; }
    .recruiter-candidate-profile-jobboard .candidate-profile-rail { position: static; }
}

/* ── 37. COURSE PAGES ── */
@media (max-width: 767.98px) {
    
    .course-content-jobboard .course-lesson-card .card-body { padding: 1rem; }
}

/* ── 38. CHATBOT ── */
@media (max-width: 767.98px) {
    .chatbot-shell, .career-chat-shell { grid-template-columns: 1fr !important; height: auto !important; }
    .chatbot-sidebar { display: none; }
}

/* ── 39. MOBILE MENU OVERLAY ── */
.site-mobile-menu { z-index: 2000; }
@media (max-width: 1199.98px) {
    .site-mobile-menu-body { padding: 1rem 0; }
}

/* ── 40. FORMS – prevent iOS zoom ── */
@media (max-width: 767.98px) {
    input[type="text"], input[type="email"], input[type="password"],
    input[type="tel"], input[type="number"], select, textarea { font-size: 16px; }
}

/* ── 43. NAUKRI-STYLE HAMBURGER DRAWER ── */

/* Overlay */
.hm-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.45);
    z-index: 2998;
    backdrop-filter: blur(2px);
}
.hm-drawer-overlay.is-open { display: block; }
body.hm-drawer-open { overflow: hidden; }
body.hm-drawer-open .hm-drawer-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Drawer panel */
.hm-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    height: 100dvh;
    background: #fff;
    z-index: 2999;
    transform: translateX(100%);
    transition: transform .26s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -8px 0 32px rgba(15,23,42,0.12);
    overflow: hidden;
}
.hm-drawer.is-open { transform: translateX(0); }

.hm-drawer-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* Head: avatar + name + close */
.hm-drawer-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,0.12), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.hm-drawer-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg,#3b82f6,#ff7b2a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.hm-drawer-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}
.hm-drawer-user {
    flex: 1;
    min-width: 0;
}
.hm-drawer-user strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hm-drawer-user span {
    display: block;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.hm-drawer-close {
    width: 32px;
    height: 32px;
    border: 0;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 13px;
    transition: background .15s ease;
}
.hm-drawer-close:hover { background: #e2e8f0; }

/* Profile progress bar */
.hm-drawer-progress {
    padding: 10px 16px 14px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
.hm-drawer-progress-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
}
.hm-drawer-progress-row strong { color: #2563eb; }
.hm-drawer-progress-note {
    margin: 8px 0 0;
    font-size: 11px;
    line-height: 1.45;
    color: #475569;
}
.hm-drawer-progress-bar {
    height: 5px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.hm-drawer-progress-bar > div {
    height: 100%;
    background: linear-gradient(90deg,#3b82f6,#ff7b2a);
    border-radius: 999px;
    transition: width .4s ease;
}
.hm-drawer-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.hm-drawer-metric-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 8px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-decoration: none !important;
    text-align: center;
    color: #0f172a;
    box-shadow: 0 8px 16px rgba(15,23,42,0.03);
}
.hm-drawer-metric-chip strong {
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
    color: #0f172a;
}
.hm-drawer-metric-chip span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

/* Scrollable body — the ONLY scrollable part */
.hm-drawer-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 10px 0 14px;
}

.hm-drawer-cta-card {
    margin: 0 12px 12px;
    padding: 14px 14px 13px;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 30%),
        linear-gradient(135deg, #1d4ed8 0%, #2563eb 58%, #ff7b2a 100%);
    color: #fff;
    box-shadow: 0 16px 28px rgba(37,99,235,0.18);
}
.hm-drawer-cta-kicker {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hm-drawer-cta-card h3 {
    margin: 10px 0 6px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}
.hm-drawer-cta-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255,255,255,0.92);
}
.hm-drawer-cta-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.hm-drawer-cta-primary,
.hm-drawer-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}
.hm-drawer-cta-primary {
    background: #fff;
    color: #1d4ed8;
}
.hm-drawer-cta-secondary {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

/* Section group */
.hm-drawer-section {
    padding: 6px 0 2px;
}
.hm-drawer-section + .hm-drawer-section {
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
    padding-top: 10px;
}
.hm-drawer-section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0 16px 6px;
}

/* Nav links */
.hm-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #1e293b;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: background .12s ease, color .12s ease, transform .12s ease, box-shadow .12s ease;
    position: relative;
    margin: 1px 8px;
    border-radius: 14px;
}
.hm-drawer-link:hover {
    background: #f8fafc;
    color: #2563eb;
    text-decoration: none !important;
    transform: translateX(1px);
}
.hm-drawer-link.is-active {
    background: linear-gradient(90deg, #eff6ff 0%, #f8fbff 100%);
    color: #2563eb;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px #dbeafe;
}
.hm-drawer-link.is-active::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 4px;
    background: #2563eb;
    border-radius: 0 4px 4px 0;
}
.hm-drawer-link-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 12px;
    flex-shrink: 0;
    transition: background .12s ease, color .12s ease;
}
.hm-drawer-link:hover .hm-drawer-link-icon,
.hm-drawer-link.is-active .hm-drawer-link-icon {
    background: #dbeafe;
    color: #2563eb;
}

/* Pro badge */
.hm-drawer-pro {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg,#f59e0b,#ef4444);
    color: #fff;
    letter-spacing: 0.04em;
}

.hm-drawer-pill {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.hm-drawer-pill-muted {
    background: #eef2ff;
    color: #1d4ed8;
}
.hm-drawer-pill-accent {
    background: #fff7ed;
    color: #ea580c;
}

/* Notification badge */
.hm-drawer-badge {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer: logout */
.hm-drawer-footer {
    flex-shrink: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.hm-drawer-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff1f2;
    color: #e11d48;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .15s ease;
}
.hm-drawer-logout:hover {
    background: #ffe4e6;
    color: #be123c;
    text-decoration: none !important;
}
@media (hover: none) and (pointer: coarse) {
    a, button, .btn { min-height: 44px; }
}
@media (max-width: 420px) {
    .hm-drawer {
        width: min(320px, 88vw);
    }
    .hm-drawer-cta-actions {
        flex-direction: column;
    }
}

/* ── 42. MOBILE BOTTOM TAB BAR (all candidate pages) ── */
.dash-mobile-tabs {
    display: none;
}
@media (max-width: 1100px) {
    .dash-mobile-tabs {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 1500;
        background: #ffffff;
        border-top: 1px solid #f1f5f9;
        box-shadow: 0 -1px 0 #f1f5f9, 0 -8px 24px rgba(15,23,42,0.07);
        height: 58px;
        /* iOS safe area */
        padding-bottom: env(safe-area-inset-bottom, 0px);
        height: calc(58px + env(safe-area-inset-bottom, 0px));
    }
    .dash-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: #94a3b8;
        text-decoration: none !important;
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.01em;
        position: relative;
        transition: color .15s ease;
        -webkit-tap-highlight-color: transparent;
        padding: 6px 4px 4px;
    }
    /* icon wrapper — gives the pill background on active */
    .dash-tab .dash-tab-icon {
        width: 36px;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        transition: background .15s ease;
    }
    .dash-tab i {
        font-size: 17px;
        line-height: 1;
        display: block;
    }
    .dash-tab span {
        display: block;
        line-height: 1;
        white-space: nowrap;
    }
    /* inactive hover */
    .dash-tab:hover {
        color: #475569;
        text-decoration: none !important;
    }
    /* active state */
    .dash-tab.is-active {
        color: #2563eb;
        text-decoration: none !important;
    }
    .dash-tab.is-active .dash-tab-icon {
        background: #eff6ff;
    }
    .dash-tab.is-active i {
        /* slight scale up on active */
        transform: scale(1.08);
    }
    /* push ALL candidate page content above the tab bar */
    .candidate-app main {
        padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 10px);
    }
}

@media (max-width: 767.98px) {
    .dash-mobile-tabs {
        display: none !important;
    }

    .candidate-app main {
        padding-bottom: 24px;
    }
}
