@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   HUMANPRO — ORİJİNAL TEMA
   Loqodan götürülmüş rəng paleti
   Navy Blue (#1B3A5C) + Sky Blue (#38BDF8)
   ============================================ */

:root {
    --hp-primary: #1B3A5C;
    --hp-primary-dark: #142D47;
    --hp-primary-light: #2B5A8C;
    --hp-accent: #38BDF8;
    --hp-accent-dark: #0EA5E9;
    --hp-accent-light: #7DD3FC;
    --hp-primary-gradient: linear-gradient(135deg, #1B3A5C 0%, #2563EB 50%, #38BDF8 100%);
    --hp-accent-gradient: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
    --hp-bg: #F7F9FC;
    --hp-surface: #FFFFFF;
    --hp-border: #E2E8F0;
    --hp-border-hover: #CBD5E1;
    --hp-text: #1E293B;
    --hp-text-secondary: #64748B;
    --hp-text-muted: #94A3B8;
    --hp-success: #10B981;
    --hp-warning: #F59E0B;
    --hp-danger: #EF4444;
    --hp-info: #3B82F6;
    --hp-shadow-sm: 0 1px 3px rgba(27, 58, 92, 0.06);
    --hp-shadow: 0 4px 16px rgba(27, 58, 92, 0.08);
    --hp-shadow-lg: 0 10px 30px rgba(27, 58, 92, 0.12);
    --hp-shadow-glow: 0 4px 20px rgba(56, 189, 248, 0.25);
    --hp-radius: 10px;
    --hp-radius-lg: 16px;
    --hp-transition: all 0.25s ease;
}

/* ==== GLOBAL ==== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: var(--hp-text);
    background-color: var(--hp-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

a {
    color: var(--hp-accent-dark);
    text-decoration: none;
    transition: var(--hp-transition);
}

a:hover {
    color: var(--hp-primary);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
    color: var(--hp-text);
}

.section-title-hp {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--hp-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 28px;
    position: relative;
    display: inline-block;
}

.section-title-hp::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--hp-accent);
    border-radius: 2px;
}

/* ==== NAVBAR ==== */
.navbar-hp {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hp-border);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-hp .navbar-brand {
    font-size: 24px;
    font-weight: 900;
    color: var(--hp-primary) !important;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.navbar-hp .navbar-brand span {
    color: var(--hp-accent-dark);
    font-weight: 700;
}

.navbar-hp .nav-link {
    color: var(--hp-text) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: var(--hp-transition);
}

.navbar-hp .nav-link:hover,
.navbar-hp .nav-link.active {
    color: var(--hp-accent-dark) !important;
    background: transparent;
}

.btn-outline-hp {
    color: var(--hp-primary);
    border: 1.5px solid var(--hp-primary);
    background: transparent;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 13px;
    transition: var(--hp-transition);
}

.btn-outline-hp:hover {
    background: var(--hp-primary);
    color: white;
}

.btn-hp {
    background: var(--hp-primary-gradient);
    color: white !important;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 13px;
    transition: var(--hp-transition);
    box-shadow: 0 2px 10px rgba(27, 58, 92, 0.25);
}

.btn-hp:hover {
    box-shadow: var(--hp-shadow-glow);
    transform: translateY(-1px);
    color: white;
}

/* ==== HERO ==== */
.hero-hp {
    background: linear-gradient(160deg, #EFF6FF 0%, #F7F9FC 40%, #F0F9FF 100%);
    padding: 56px 0 64px;
    position: relative;
    overflow: hidden;
}

.hero-hp::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-hp .hero-title {
    font-weight: 900;
    font-size: 2.8rem;
    color: var(--hp-primary);
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.hero-hp .hero-subtitle {
    font-size: 1.05rem;
    color: var(--hp-text-secondary);
    margin-bottom: 32px;
}

.hero-hp .hero-subtitle strong {
    color: var(--hp-accent-dark);
    font-weight: 700;
}

.search-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-bar .form-control {
    height: 54px;
    border: 2px solid var(--hp-border);
    border-radius: var(--hp-radius);
    font-size: 14px;
    padding: 0 18px;
    transition: var(--hp-transition);
    background: var(--hp-surface);
    font-family: 'Inter', sans-serif;
}

.search-bar .form-control:focus {
    border-color: var(--hp-accent);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
    outline: none;
}

.search-bar .btn-search {
    height: 54px;
    background: var(--hp-primary-gradient);
    border: none;
    border-radius: var(--hp-radius);
    font-weight: 700;
    font-size: 14px;
    color: white;
    padding: 0 32px;
    cursor: pointer;
    transition: var(--hp-transition);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.search-bar .btn-search:hover {
    box-shadow: var(--hp-shadow-glow);
    transform: translateY(-1px);
}

.popular-searches {
    margin-top: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.popular-searches .label {
    text-transform: uppercase;
    color: var(--hp-text-muted);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1px;
}

.popular-searches a {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    padding: 6px 16px;
    border-radius: 24px;
    color: var(--hp-text-secondary);
    font-size: 12px;
    font-weight: 500;
    transition: var(--hp-transition);
}

.popular-searches a:hover {
    background: var(--hp-primary);
    color: white;
    border-color: var(--hp-primary);
    transform: translateY(-1px);
}

.hero-big-letter {
    font-size: 260px;
    font-weight: 900;
    background: var(--hp-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 0.85;
    display: inline-block;
    transform: perspective(600px) rotateY(-10deg);
    user-select: none;
    opacity: 0.18;
    font-family: 'Inter', sans-serif;
}

/* ==== BANNER ==== */
.banner-section {
    padding: 0 0 32px 0;
    background: transparent;
}

.banner-card {
    background: var(--hp-primary-gradient);
    border-radius: var(--hp-radius-lg);
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.banner-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: rgba(56, 189, 248, 0.15);
    border-radius: 50%;
}

.banner-card h4 {
    font-weight: 800;
    margin-bottom: 6px;
    font-size: 1.15rem;
    color: white;
}

.banner-card p {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
}

.banner-card .btn-banner {
    background: white;
    color: var(--hp-primary);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--hp-radius);
    border: none;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--hp-transition);
    text-decoration: none;
    display: inline-block;
}

.banner-card .btn-banner:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* ==== FEATURED COMPANIES ==== */
.featured-section {
    background: var(--hp-surface);
    padding: 60px 0;
    margin-top: 20px;
    /* Prevent being under the previous element */
}

.company-card {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-lg);
    padding: 24px 15px;
    text-align: center;
    height: 100%;
    transition: var(--hp-transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 220px;
    position: relative;
    box-sizing: border-box;
}

.company-card:hover {
    box-shadow: var(--hp-shadow-lg);
    transform: translateY(-5px);
    border-color: var(--hp-accent);
    background: #fff;
}

.company-logo-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--hp-radius-lg);
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--hp-border);
}

.company-logo-wrap img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.company-logo-placeholder {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: var(--hp-primary);
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--hp-radius-lg);
}

.company-card h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--hp-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-card .company-name {
    font-size: 13px;
    color: var(--hp-accent-dark);
    margin-bottom: 4px;
    font-weight: 600;
}

.company-card .company-location {
    font-size: 11px;
    color: var(--hp-text-muted);
}

/* ==== JOB LISTINGS ==== */
.job-listings-section {
    padding: 48px 0;
    background: var(--hp-bg);
}

.sidebar-menu {
    background: var(--hp-surface);
    border-radius: var(--hp-radius-lg);
    border: 1px solid var(--hp-border);
    overflow: hidden;
}

.sidebar-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu ul li {
    border-bottom: 1px solid var(--hp-border);
}

.sidebar-menu ul li:last-child {
    border-bottom: none;
}

.sidebar-menu ul li a {
    display: block;
    padding: 14px 20px;
    color: var(--hp-text);
    font-weight: 500;
    font-size: 14px;
    transition: var(--hp-transition);
}

.sidebar-menu ul li a:hover {
    background: rgba(56, 189, 248, 0.05);
    color: var(--hp-accent-dark);
}

.sidebar-menu ul li a.active {
    border-left: 3px solid var(--hp-accent-dark);
    color: var(--hp-primary);
    background: rgba(27, 58, 92, 0.04);
    font-weight: 600;
}

.job-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.job-section-header .view-all {
    color: var(--hp-accent-dark);
    font-weight: 600;
    font-size: 14px;
}

.job-card {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-lg);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--hp-transition);
    min-height: auto;
    position: relative;
    overflow: visible !important;
}

.job-card:hover {
    box-shadow: var(--hp-shadow-lg);
    transform: translateY(-3px);
    border-color: var(--hp-accent);
}

.job-card-logo {
    flex: 0 0 56px;
}

.job-card-logo img {
    width: 56px;
    height: 56px;
    border-radius: var(--hp-radius);
    object-fit: contain;
    border: 1px solid var(--hp-border);
}

.job-card-logo .initial-badge {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: var(--hp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    border-radius: var(--hp-radius);
}

.job-card-content {
    flex: 1;
    min-width: 0;
}

.job-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--hp-text);
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-card-company {
    font-size: 13px;
    color: var(--hp-text-secondary);
    margin-bottom: 3px;
    font-weight: 500;
}

.job-card-location {
    font-size: 12px;
    color: var(--hp-text-muted);
    margin-bottom: 4px;
}

.job-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.job-tag {
    background: rgba(56, 189, 248, 0.1);
    color: var(--hp-primary);
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-card-footer .status {
    font-size: 12px;
    color: var(--hp-success);
    font-weight: 600;
}

.job-card-footer .time {
    font-size: 12px;
    color: var(--hp-text-muted);
}

/* ==== CAREER PLANNING ==== */
.career-planning-section {
    padding: 56px 0;
    background: var(--hp-surface);
}

.career-box {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-lg);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--hp-transition);
    height: 100%;
    cursor: pointer;
}

.career-box:hover {
    box-shadow: var(--hp-shadow-lg);
    transform: translateY(-3px);
    border-color: var(--hp-accent);
}

.career-box-icon {
    flex: 0 0 48px;
    height: 48px;
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--hp-primary);
}

.career-box h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.career-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    background: var(--hp-primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.career-image-wrap img {
    width: 88%;
    height: 88%;
    object-fit: cover;
    border-radius: 50%;
}

/* ==== CAREER GUIDE ==== */
.career-guide-section {
    padding: 56px 0;
    background: var(--hp-bg);
}

.guide-card {
    background: var(--hp-surface);
    border-radius: var(--hp-radius-lg);
    overflow: hidden;
    border: 1px solid var(--hp-border);
    transition: var(--hp-transition);
    height: 100%;
}

.guide-card:hover {
    box-shadow: var(--hp-shadow-lg);
    transform: translateY(-4px);
}

.guide-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #DBEAFE, #E0F2FE);
}

.guide-card-body {
    padding: 20px;
}

.guide-card-body h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--hp-text);
    line-height: 1.5;
}

/* ==== SECTOR ACCORDION ==== */
.sector-section {
    padding: 48px 0;
    background: var(--hp-surface);
}

.sector-box {
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-lg);
    margin-bottom: 10px;
    overflow: hidden;
}

.sector-header {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    color: var(--hp-text);
    transition: var(--hp-transition);
}

.sector-header:hover {
    background: rgba(56, 189, 248, 0.04);
}

.sector-header .toggle-icon {
    transition: var(--hp-transition);
    font-size: 18px;
    color: var(--hp-text-muted);
}

.sector-body {
    padding: 0 24px 20px;
    display: none;
}

.sector-body.show {
    display: block;
}

.sector-body a {
    display: inline-block;
    margin: 4px 10px 4px 0;
    font-size: 13px;
    color: var(--hp-text-secondary);
    transition: var(--hp-transition);
}

.sector-body a:hover {
    color: var(--hp-accent-dark);
}

/* ==== FOOTER ==== */
.footer-hp {
    background: linear-gradient(160deg, #1E293B 0%, #0F172A 100%);
    color: white;
    padding: 56px 0 24px;
}

.footer-brand {
    font-size: 24px;
    font-weight: 900;
    color: white;
    margin-bottom: 14px;
}

.footer-brand span {
    color: var(--hp-accent);
    font-weight: 700;
}

.footer-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    color: var(--hp-accent);
}

.footer-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    transition: var(--hp-transition);
}

.footer-links li a:hover {
    color: white;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    margin-right: 16px;
    transition: var(--hp-transition);
}

.footer-social a:hover {
    color: var(--hp-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 40px;
    padding-top: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
}

.footer-bottom a:hover {
    color: white;
}

/* ==== DASHBOARD ==== */
.dashboard-wrap {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 260px;
    background: var(--hp-surface);
    border-right: 1px solid var(--hp-border);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.dashboard-sidebar .logo-area {
    padding: 16px 24px 28px;
    border-bottom: 1px solid var(--hp-border);
    margin-bottom: 10px;
}

.dashboard-sidebar .nav-item {
    padding: 0;
}

.dashboard-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--hp-text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--hp-transition);
    border-left: 3px solid transparent;
}

.dashboard-sidebar .nav-link:hover {
    background: rgba(56, 189, 248, 0.06);
    color: var(--hp-primary);
}

.dashboard-sidebar .nav-link.active {
    color: var(--hp-primary);
    background: rgba(27, 58, 92, 0.06);
    border-left-color: var(--hp-accent-dark);
    font-weight: 600;
}

.dashboard-main {
    margin-left: 260px;
    flex: 1;
    padding: 32px;
    background: var(--hp-bg);
}

.stat-card {
    background: var(--hp-surface);
    border-radius: var(--hp-radius-lg);
    padding: 24px;
    border: 1px solid var(--hp-border);
    transition: var(--hp-transition);
}

.stat-card:hover {
    box-shadow: var(--hp-shadow);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-card .stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--hp-text);
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--hp-text-secondary);
    font-weight: 500;
}

/* ==== UTILITIES ==== */
.text-purple {
    color: var(--hp-accent-dark) !important;
}

.bg-purple {
    background: var(--hp-primary) !important;
}

.bg-purple-light {
    background: rgba(56, 189, 248, 0.1) !important;
}

.badge-hp {
    background: rgba(56, 189, 248, 0.12);
    color: var(--hp-primary);
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* ==== URGENCY BAR ==== */
.urgent-bar {
    background: linear-gradient(90deg, var(--hp-danger), #DC2626);
    color: white;
    text-align: center;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    z-index: 1040;
}

.urgent-bar a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
}

.urgent-bar .close-urgent {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.8;
}

/* ==== INNER PAGE HERO ==== */
.hero-inner {
    background: var(--hp-primary-gradient);
    padding: 36px 0;
}

.custom-breadcrumbs {
    font-size: 14px;
}

.custom-breadcrumbs a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--hp-transition);
}

.custom-breadcrumbs a:hover {
    color: white;
}

/* ==== FORM CONTROLS ==== */
.form-control {
    border-radius: var(--hp-radius);
    border: 2px solid var(--hp-border);
    font-family: 'Inter', sans-serif;
    transition: var(--hp-transition);
}

.form-control:focus {
    border-color: var(--hp-accent);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1199.98px) {
    .hero-big-letter {
        font-size: 200px;
    }
}

@media (max-width: 991.98px) {
    .hero-hp .hero-title {
        font-size: 2rem;
    }

    .hero-big-letter {
        font-size: 150px;
    }

    .dashboard-sidebar {
        display: none;
    }

    .dashboard-main {
        margin-left: 0;
    }

    .career-image-wrap {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 767.98px) {
    .hero-hp {
        padding: 32px 0 40px;
    }

    .hero-hp .hero-title {
        font-size: 1.65rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar .form-control,
    .search-bar .btn-search {
        width: 100%;
    }

    .banner-card {
        flex-direction: column;
        text-align: center;
    }

    .popular-searches {
        justify-content: center;
    }

    .job-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-hp .row>div {
        margin-bottom: 24px;
    }

    .dashboard-main {
        padding: 16px;
    }
}

@media (max-width: 575.98px) {
    .hero-hp .hero-title {
        font-size: 1.4rem;
    }

    .navbar-hp .navbar-brand {
        font-size: 20px;
    }
}

/* ==== DASHBOARD LAYOUT ==== */
.hp-dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #F0F4FF 0%, #E8F0FE 50%, #DBEAFE 100%);
}

.hp-dashboard-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0F2A4A 0%, #1B3A5C 100%);
    padding: 32px 0;
    flex-shrink: 0;
    min-height: 100vh;
}

.hp-dashboard-main {
    flex: 1;
    padding: 36px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
}

/* Sidebar Links Base */
.sidebar-nav-menu {
    display: flex;
    flex-direction: column;
}

.hp-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    transition: all 0.2s;
}

/* Allow split content for link items (like the badge) */
.hp-sidebar-link[href$="profil"] {
    justify-content: space-between;
}

.hp-sidebar-link:hover,
.hp-sidebar-link.active {
    color: #fff;
    background: rgba(56, 189, 248, 0.15);
}

.hp-sidebar-link.active {
    font-weight: 600;
}

.hp-sidebar-link-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-sidebar-icon {
    font-size: 18px;
}

.hp-sidebar-badge {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
}

.hp-sidebar-link.logout-link {
    color: rgba(255, 255, 255, 0.5);
}

.hp-sidebar-link.logout-link:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

@media (max-width: 991.98px) {
    .hp-dashboard-wrapper {
        flex-direction: column;
    }

    .hp-dashboard-sidebar {
        width: 100%;
        min-height: auto;
        padding: 16px 0;
    }

    /* Hide the sidebar logo on mobile since the navbar already has it */
    .hp-dashboard-sidebar>div:first-child {
        display: none;
    }

    .hp-dashboard-sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 16px !important;
    }

    .hp-dashboard-sidebar nav>.hp-sidebar-link {
        margin-bottom: 0 !important;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 14px 10px !important;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        gap: 8px;
    }

    .hp-dashboard-sidebar nav>.hp-sidebar-link .hp-sidebar-link-inner {
        flex-direction: column;
        gap: 4px;
    }

    .hp-dashboard-sidebar nav .hp-sidebar-icon {
        margin-bottom: 2px;
        font-size: 24px !important;
    }

    .hp-dashboard-sidebar nav>div {
        grid-column: 1 / -1;
        margin: 6px 0 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
    }

    .hp-dashboard-sidebar nav>div>a {
        justify-content: center;
        background: rgba(239, 68, 68, 0.1);
        color: #FCA5A5 !important;
        border: 1px solid rgba(239, 68, 68, 0.2);
    }

    .hp-dashboard-main {
        padding: 20px 16px;
    }
}

/* Partners Section */
.partners-section {
    padding: 80px 0;
    background: #f8fafc;
}

.hp-section-title-alt {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--hp-primary);
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.hp-section-title-alt::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--hp-accent);
    border-radius: 2px;
}

.hp-section-subtitle {
    max-width: 800px;
    margin: 32px auto 48px;
    color: var(--hp-text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px 60px;
    margin-top: 40px;
}

.partner-item {
    flex: 0 0 auto;
    transition: var(--hp-transition);
}

.partner-item img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--hp-transition);
}

.partner-item:hover {
    transform: translateY(-5px);
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .partners-section {
        padding: 60px 0;
    }

    .hp-section-title-alt {
        font-size: 1.8rem;
    }

    .partners-grid {
        gap: 30px;
    }

    .partner-item img {
        max-height: 45px;
    }
}

/* ==== PREMIUM JOBS ==== */
.premium-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    background-image: url('data:image/svg+xml;utf8,<svg width="28" height="28" viewBox="0 0 24 24" fill="%23FFC107" xmlns="http://www.w3.org/2000/svg"><path d="M11.0489 2.92686C11.3483 2.00539 12.6517 2.00539 12.9511 2.92686L14.7356 8.41846C14.8697 8.83103 15.2536 9.11005 15.6874 9.11005H21.4623C22.4312 9.11005 22.834 10.3496 22.05 10.9192L17.3789 14.312C17.0278 14.5671 16.881 15.0189 17.0152 15.4315L18.7997 20.9231C19.0991 21.8446 18.0449 22.6105 17.261 22.0409L12.5899 18.6482C12.2388 18.3931 11.7612 18.3931 11.4101 18.6482L6.73902 22.0409C5.95507 22.6105 4.90089 21.8446 5.2003 20.9231L6.98485 15.4315C7.11895 15.0189 6.97218 14.5671 6.62106 14.312L1.94998 10.9192C1.16603 10.3496 1.56885 9.11005 2.5377 9.11005H8.31261C8.74641 9.11005 9.13028 8.83103 9.26442 8.41846L11.0489 2.92686Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 20;
    transition: var(--hp-transition);
    pointer-events: none;
    filter: drop-shadow(0px 2px 4px rgba(255, 193, 7, 0.4));
}

.premium-badge i,
.premium-badge svg {
    display: none !important;
}

/* 
   BULLETPROOF FIX: Use padding on the item wrapper so the 
   absolutely positioned child stays within the hidden overflow 
   of the carousel stage outer. 
*/
.featured-carousel .item {
    padding: 20px 20px 10px 10px !important;
}

.job-card:hover .premium-badge {
    transform: scale(1.15) rotate(5deg) translateY(-2px);
}

.premium-badge-inline {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.premium-badge i,
.premium-badge-inline i {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.premium-card {
    border: 1px solid #fcd34d !important;
    background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%) !important;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.08) !important;
}

.premium-card:hover {
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.12) !important;
    border-color: #f59e0b !important;
}

.badge-hp {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.08);
    color: var(--hp-primary);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.15);
}

.footer-social a.social-icon-link {
    margin-right: 0 !important;
}

.social-icon-link {
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 18px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
    position: relative !important;
}

.social-icon-link i {
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.social-icon-link:hover {
    background: var(--hp-accent) !important;
    border-color: var(--hp-accent) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2) !important;
    color: white !important;
}