/* ========== Global Styles ========== */
:root {
    --primary-color: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --secondary-color: #f97316;
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    --gradient-hero: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #ddd6fe 100%);
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-light);
    box-shadow: 0 4px 32px rgba(124, 58, 237, 0.05) !important;
    color: var(--text-dark);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

/* Hide scrollbars globally */
html,
body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

@supports (overflow-x: clip) {

    html,
    body {
        overflow-x: clip;
    }
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

.container,
.container-fluid,
.row,
.row>* {
    min-width: 0;
}

section,
.footer,
.navbar {
    max-width: 100%;
}

::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
    -webkit-appearance: none;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ========== Navbar ========== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow-x: clip;
}

.navbar .container,
.navbar-collapse,
#authNav {
    min-width: 0;
}

.navbar-toggler {
    flex-shrink: 0;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.auth-flash-alert {
    z-index: 9999;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
}

.brand-bsu {
    color: var(--primary-color);
}

.brand-tech {
    color: var(--text-dark);
}

.brand-dot {
    color: var(--secondary-color);
}

.nav-link {
    color: var(--text-gray) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(124, 58, 237, 0.1);
}

.nav-buttons .btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
}

/* ========== Premium Dropdown ========== */
.dropdown-menu {
    border: none;
    border-radius: 18px;
    box-shadow:
        0 24px 60px rgba(124, 58, 237, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(124, 58, 237, 0.06);
    padding: 10px;
    min-width: 240px;
    margin-top: 12px !important;
    background: #ffffff;
    animation: dropdownFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top center;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 12px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.01em;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.dropdown-item i {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.07), rgba(167, 139, 250, 0.1));
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-item:hover {
    background: rgba(124, 58, 237, 0.05);
    color: var(--primary-color);
    transform: translateX(3px);
}

.dropdown-item:hover i {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.38);
    transform: scale(1.08);
}

.dropdown-divider {
    margin: 6px 8px;
    border-color: #f0ebff;
    opacity: 1;
}

.dropdown-item.text-danger {
    color: #dc2626;
}

.dropdown-item.text-danger i {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.dropdown-item.text-danger:hover {
    background: rgba(220, 38, 38, 0.06);
    color: #dc2626;
}

.dropdown-item.text-danger:hover i {
    background: #dc2626;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-primary {
    background: var(--gradient-primary);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    padding: 8px 24px;
    font-size: 0.950rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:focus {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
    color: white;
}

.btn-check:checked+.btn-primary,
.btn-primary.active,
.btn-primary.show,
.btn-primary:first-child:active,
:not(.btn-check)+.btn-primary:active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 50px;
    padding: 8px 24px;
    font-size: 0.950rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
}

.btn-check:checked+.btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary.show,
.btn-outline-primary:first-child:active,
:not(.btn-check)+.btn-outline-primary:active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.hover-lift {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* ========== Hero Section ========== */
.hero-section {
    background: var(--white);
    min-height: calc(85vh - 85px);
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}



.hero-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 35px;
    max-width: 480px;
    line-height: 1.8;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    min-width: 0;
}

.hero-buttons .btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.btn-outline-dark {
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--text-dark);
    color: var(--white);
}

/* Hero Image */
.hero-image {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.hero-img-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}


.main-hero-img {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: auto;
    z-index: 1;
}

.hero-circle {
    position: absolute;
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-dots {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 2;
}

.dot-1 {
    background: var(--primary-color);
    top: 15%;
    right: 10%;
}

.dot-2 {
    background: #fbbf24;
    bottom: 30%;
    left: 5%;
}

.dot-3 {
    background: #10b981;
    top: 40%;
    right: 5%;
}

/* ========== Stats Section ========== */
.stats-section {
    padding: 60px 0;
    margin-top: 0px;
    position: relative;
    z-index: 10;
    background: var(--white);
}

.stats-wrapper {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stat-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.stat-icon.pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 5px;
}

/* ========== Partners Section ========== */
.partners-section {
    background: var(--white);
    padding: 60px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.partners-title {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1rem;
}

.partners-title span {
    color: var(--primary-color);
    font-weight: 700;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.partner-logo img {
    height: 35px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

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

/* ========== Section Styles ========== */
.section-header {
    margin-bottom: 50px;
}

.section-header.text-center {
    text-align: center;
}

.section-badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-color);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 0;
    line-height: 1.15;
    margin-bottom: 18px;
    text-transform: capitalize;
    overflow-wrap: break-word;
}

.section-desc {
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 500;
    letter-spacing: -0.01em;
    max-width: 600px;
}


/* ========== Departments Section ========== */
.departments-section {
    padding: 20px;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-header-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.section-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.section-header-content .section-title {
    margin-bottom: 8px;
}

.section-header-content .section-desc {
    margin: 0;
    max-width: 400px;
}

/* Modern Department Cards */
.dept-card-modern {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dept-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.dept-card-modern.green::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.dept-card-modern.blue::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.dept-card-modern.purple::before {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(124, 58, 237, 0.1) 100%);
}

.dept-card-modern.orange::before {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, rgba(249, 115, 22, 0.1) 100%);
}

.dept-card-modern.pink::before {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.dept-card-modern.teal::before {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, rgba(20, 184, 166, 0.1) 100%);
}

.dept-card-modern:hover::before {
    opacity: 1;
}

.dept-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Active State */
.dept-card-modern.active {
    background: #4f46e5;
    border-color: #4f46e5;
}

.dept-card-modern.active .dept-icon-bg {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.dept-card-modern.active h3,
.dept-card-modern.active .dept-jobs {
    color: var(--white);
}

.dept-icon-wrapper {
    position: relative;
    z-index: 1;
}

.dept-icon-bg {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.dept-card-modern.green .dept-icon-bg {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.dept-card-modern.blue .dept-icon-bg {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.dept-card-modern.purple .dept-icon-bg {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

.dept-card-modern.orange .dept-icon-bg {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.dept-card-modern.pink .dept-icon-bg {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.dept-card-modern.teal .dept-icon-bg {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

.dept-info {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.dept-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.dept-jobs {
    font-size: 0.85rem;
    color: var(--text-gray);
    transition: color 0.3s ease;
}

/* ========== Jobs Section ========== */
.jobs-section {
    padding: 0;
}

/* Home Section Card (White Box Wrapper) */
.home-section-card {
    background: #fff;
    border-radius: 0;
    padding: 50px 30px;
    border: none;
    border-top: 1px solid #f0eafa;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .home-section-card {
        padding: 40px 24px;
    }
}

.jobs-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

/* ===== LinkedIn / Indeed-Style Job Card ===== */
.job-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}



.job-card:hover {
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.12);
    border-color: #c4b5fd;
}

/* ── Card body ── */
.job-card-body {
    padding: 28px 24px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ── Top row: logo + meta + bookmark ── */
.job-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.company-logo-wrap {
    flex-shrink: 0;
    position: relative;
}

.company-logo {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    object-fit: contain;
    background: #fff;
    padding: 8px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.job-meta {
    flex: 1;
    min-width: 0;
    margin-top: 2px;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.job-location-line {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-location-line i {
    font-size: 0.7rem;
    color: #94a3b8;
}

.job-bookmark {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.job-bookmark:hover {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: var(--primary-color);
    transform: scale(1.05);
}

/* ── Badges row ── */
.job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.job-badge.type {
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.job-badge.exp {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.job-badge.spec {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.job-badge.remote {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* ── Footer: salary + posted + apply ── */
.job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-top: 1px solid #f1f5f9;
    gap: 16px;
}

.job-footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.job-salary {
    font-size: 1.15rem;
    font-weight: 800;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-salary i {
    color: #22c55e;
    font-size: 0.9rem;
}

.job-posted {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.job-apply-btn {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.job-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
    color: #fff;
}

.job-apply-btn i {
    font-size: 0.72rem;
}


/* ========== CTA Section ========== */
.cta-section {
    padding: 80px 0;
    background: var(--white);
}

.cta-wrapper {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 45px 50px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

/* Decorative gradient orbs */
.cta-wrapper::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    top: -80px;
    right: -50px;
    pointer-events: none;
}

.cta-wrapper::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -40px;
    left: 60px;
    pointer-events: none;
}

.cta-wrapper h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.cta-wrapper p {
    opacity: 0.85;
    font-size: 1rem;
    line-height: 1.6;
}

.cta-wrapper .btn-light {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cta-wrapper .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}


/* ========== Footer ========== */
.footer {
    background: #0f172a;
    color: var(--white);
    padding: 0 0 0;
    position: relative;
    overflow-x: clip;
}

.footer-top-bar {
    height: 4px;
    background: var(--gradient-primary);
}

.footer-brand {
    font-size: 2rem;
    font-weight: 800;
    display: inline-block;
}

.footer-brand .brand-bsu {
    color: var(--primary-light);
}

.footer-brand .brand-tech {
    color: var(--white);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 340px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.6rem;
    color: var(--primary-light);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    gap: 12px;
}

.footer-links a:hover i {
    color: var(--white);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 18px;
    line-height: 1.6;
}

.footer-contact-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 0.85rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 24px 0;
    margin-top: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.2);
}







/* ========== Responsive ========== */
@media (max-width: 991px) {
    .navbar {
        padding: 10px 0;
    }

    .navbar-brand {
        max-width: calc(100% - 58px);
        font-size: 1.45rem;
        overflow-wrap: anywhere;
    }

    .navbar-collapse {
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 14px 0 4px;
    }

    .navbar-nav {
        width: 100%;
    }

    .nav-link {
        padding: 10px 12px !important;
    }

    #authNav {
        width: 100%;
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
        margin-top: 10px;
    }

    #authNav .dropdown {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #authNav .btn {
        width: 100%;
        justify-content: center;
        margin-left: 0 !important;
        margin-right: 0 !important;
        white-space: normal;
    }

    .navbar .dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 8px !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 50px;
    }

    .hero-circle {
        width: 300px;
        height: 300px;
    }

    .nav-buttons {
        margin-top: 20px;
        display: flex;
        gap: 10px;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-wrapper {
        padding: 40px 30px;
        text-align: center;
    }

    .cta-wrapper .text-lg-end {
        text-align: center !important;
        margin-top: 20px;
    }

    .stats-wrapper {
        padding: 30px 40px;
    }
}

@media (max-width: 767px) {
    .hero-section,
    .stats-section,
    .departments-section,
    .jobs-section,
    .cta-section,
    .footer {
        overflow-x: clip;
    }

    .text-shape,
    .hero-shape,
    .hero-dots {
        display: none;
    }

    .hero-section {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-circle {
        width: 250px;
        height: 250px;
    }

    .main-hero-img {
        max-width: 340px;
    }

    .stats-wrapper {
        flex-direction: column;
        padding: 30px;
        gap: 25px;
    }

    .stat-box {
        width: 100%;
        justify-content: flex-start;
    }

    /* Reduce partner logo gap so they don't overflow at 768px */
    .partners-logos {
        gap: 25px;
    }

    .partner-logo img {
        height: 25px;
    }

    .jobs-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .btn,
    .dropdown-item {
        white-space: normal;
    }

    .hero-section .row {
        flex-direction: column;
    }

    .hero-section .col-lg-6 {
        width: 100% !important;
        max-width: 100%;
    }

    .hero-content {
        margin-bottom: 20px;
    }

    .hero-image {
        margin-top: 0;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .hero-buttons .btn-lg {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 10px 16px;
        font-size: 12px;
    }

    .hero-circle {
        width: 200px;
        height: 200px;
    }

    .main-hero-img {
        max-width: 300px;
        height: auto;
    }

    .hero-img-wrapper {
        justify-content: center;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .dept-card-modern {
        padding: 18px;
        gap: 14px;
    }

    .dept-icon-bg {
        width: 52px;
        height: 52px;
    }

    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header-content {
        flex-direction: column;
    }

    /* Stats wrapper: tighter padding on 360px */
    .stats-wrapper {
        padding: 20px;
        gap: 20px;
    }

    /* Partners: tighter gap and smaller logos */
    .partners-logos {
        gap: 18px;
    }

    .partner-logo img {
        height: 22px;
    }

    /* CTA wrapper */
    .cta-wrapper {
        padding: 28px 20px;
    }

    .cta-wrapper h2 {
        font-size: 1.4rem;
    }

    .cta-wrapper p {
        font-size: 0.9rem;
    }

    .cta-wrapper .btn-light {
        width: 100%;
        text-align: center;
        justify-content: center;
        white-space: normal;
    }

    /* Home job card footer: stack on small mobile */
    .job-header {
        gap: 12px;
    }

    .company-logo {
        width: 56px;
        height: 56px;
    }

    .job-meta,
    .company-name,
    .job-location-line,
    .job-footer-left {
        min-width: 0;
    }

    .company-name,
    .job-location-line,
    .job-badge {
        overflow-wrap: anywhere;
    }

    .job-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }

    .job-apply-btn {
        width: 100%;
        justify-content: center;
    }

    .job-card-body {
        padding: 20px 16px 16px;
        gap: 14px;
    }

    .job-title {
        font-size: 1.05rem;
    }

    /* Footer: tighten spacing */
    .footer-desc {
        max-width: 100%;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        gap: 8px;
    }

    .footer-bottom .d-flex {
        align-items: flex-start !important;
    }
}


/* ========== Text Content Decorative Shapes ========== */
.text-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.text-shape-1 {
    width: 80px;
    height: 80px;
    background: #6366f1;
    top: -40px;
    left: 5%;
    animation: float 7s ease-in-out infinite;
}

.text-shape-2 {
    width: 60px;
    height: 60px;
    background: #8b5cf6;
    top: 30%;
    right: -50px;
    animation: pulse 5s ease-in-out infinite;
}

.text-shape-3 {
    width: 70px;
    height: 70px;
    background: #a78bfa;
    bottom: 25%;
    left: -60px;
    animation: float 6s ease-in-out infinite reverse;
}

/* ========== Hero Decorative Shapes ========== */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    z-index: 0;
}

.shape-top-left {
    width: 80px;
    height: 80px;
    background: #6366f1;
    top: -40px;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape-bottom-right {
    width: 70px;
    height: 70px;
    background: #6366f1;
    bottom: -40px;
    right: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

/* ========== Keyframe Animations ========== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.15;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.25;
    }
}

/* Animation classes for script.js */
.dept-card {
    transition: all 0.6s ease;
}

.job-card {
    transition: all 0.6s ease;
}

.stat-item {
    transition: all 0.6s ease;
}
