/* header */

:root {
    --primary: #2d378c;
    --secondary: #b39ddb;
    --accent: #d1c4e9;
    --light: #ede5f5;
    --dark: #512da8;
    --success: #7e57c2;
    --danger: #ff5252;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --card-bg: white;
    --category-hover: #f2def6;
    --category-icon-bg: #d3b3d9;
    --gray: #e9ecef;
    --header-height: 70px;
    --footer-height: 60px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    padding: 0 2rem;
    height: var(--header-height);
    background: var(--gradient);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: var(--transition);
    margin-top: -90px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, #fff, var(--light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notification-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.notification-btn:hover {
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger);
    color: white;
    font-size: 0.7rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Enhanced Profile Button Styles */
.profile-area {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.welcome-message {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.95;
}

.welcome-text {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
}

.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-avatar-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.profile-btn:hover .profile-avatar-wrapper {
    transform: scale(1.05);
    border-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    color: white;
    font-size: 1.8rem;
}

.profile-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4CAF50;
    border: 2px solid white;
}

.profile-dropdown {
    position: relative;
}

.profile-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 240px;
    z-index: 1000;
    overflow: hidden;
    display: none;
    transition: var(--transition);
    transform-origin: top right;
    opacity: 0;
    transform: scale(0.9);
}

.profile-menu.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.profile-menu-header {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--accent);
    background-color: var(--light);
}

.menu-avatar-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary);
}

.menu-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-default-avatar {
    color: white;
    font-size: 3rem;
}

.menu-user-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.menu-user-email {
    font-size: 0.8rem;
    color: #666;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.profile-menu-item:hover {
    background-color: var(--light);
    transform: translateX(3px);
}

.profile-menu-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--secondary);
}

.profile-menu-divider {
    height: 1px;
    background-color: var(--accent);
    margin: 5px 0;
}

.login-btn {
    background-color: white;
    color: var(--primary);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.login-btn:hover {
    background-color: var(--light);
    transform: translateY(-2px);
}

/* Hamburger Menu */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 1010;
    transition: var(--transition);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Sidebar Navigation */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 55, 140, 0.3);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: white;
    padding: 2rem;
    transition: var(--transition);
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    left: 0;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-btn {
    display: none;
}

.sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--accent);
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover {
    background-color: var(--light);
    color: var(--primary);
    transform: translateX(5px);
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--secondary);
}

.social-icons {
    display: flex;
    justify-content: center;
    /*gap: 1.2rem;*/
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--accent);
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--light);
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    /* Fix for ensuring perfect circles */
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.social-icon:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.social-icon img {
    width: 24px;
    height: 24px;
    transition: var(--transition);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.social-icon:hover img {
    filter: brightness(0) invert(1);
}

.notification-system {
    position: relative;
}

.notification-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.notification-btn.has-notifications i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger);
    color: white;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(255, 82, 82, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notification-dropdown {
    position: absolute;
    top: 55px;
    right: -10px;
    width: 360px;
    max-height: 480px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    display: none;
    transform-origin: top right;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification-dropdown.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.notification-header {
    background: var(--light);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--accent);
}

.notification-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-actions {
    display: flex;
    gap: 8px;
}

.notification-action-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 15px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-action-btn:hover {
    background: rgba(45, 55, 140, 0.1);
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    list-style: none;
}

.notification-list::-webkit-scrollbar {
    width: 5px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notification-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 12px;
    transition: background 0.2s ease;
    cursor: pointer;
    position: relative;
}

.notification-item:hover {
    background-color: rgba(209, 196, 233, 0.1);
}

.notification-item.unread {
    background-color: rgba(179, 157, 219, 0.1);
}

.notification-item.unread:hover {
    background-color: rgba(179, 157, 219, 0.15);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.profile {
    overflow: hidden;
    background-color: var(--light);
}

.notification-icon.profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-icon.system {
    background-color: rgba(125, 87, 194, 0.1);
    color: var(--primary);
}

.notification-content {
    flex: 1;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.notification-type {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--dark);
}

.notification-type.alert {
    background-color: rgba(255, 82, 82, 0.1);
    color: var(--danger);
}

.notification-type.job {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.notification-type.system {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.notification-type.message {
    background-color: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
}

.notification-time {
    font-size: 0.7rem;
    color: #666;
}

.notification-title-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.notification-message {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid var(--accent);
    background-color: var(--light);
}

.view-all-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.notification-empty i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
    opacity: 0.5;
}

.notification-empty p {
    font-size: 0.9rem;
    margin: 0;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--accent);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin: 20px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notification Badge Animation */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-2px);
    }
}

.bounce {
    animation: bounce 0.6s;
}

/* For mobile responsiveness */
@media (max-width: 640px) {
    .notification-dropdown {
        width: 320px;
        right: -70px;
    }

    .notification-dropdown::before {
        right: 85px;
    }
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: 300px;
        right: -100px;
    }

    .notification-dropdown::before {
        right: 115px;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .welcome-message {
        max-width: 100px;
    }
}

@media (max-width: 640px) {
    .welcome-message {
        display: none;
    }

    .profile-avatar-wrapper {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 280px;
    }

    .header-actions {
        gap: 1rem;
    }

    .profile-menu {
        width: 220px;
    }
}


/* main.css */
/* :root {
    --primary: #2d378c;
    --secondary: #b39ddb;
    --accent: #d1c4e9;
    --light: #ede5f5;
    --dark: #512da8;
    --success: #7e57c2;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --card-bg: white;
    --category-hover: #f2def6;
    --category-icon-bg: #d3b3d9;
    --danger: #ff5252;
    --gray: #e9ecef;
    --header-height: 70px;
    --footer-height: 60px;
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    background-image:
        radial-gradient(circle at 25% 25%, rgba(181, 157, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(45, 55, 140, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
}



.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-box:focus {
    border-color: var(--primary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dark);
}

.banner {
    background: var(--gradient);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.category-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    background: var(--category-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--category-icon-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--dark);
}

.category-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-count {
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 500;
}


@media (max-width: 768px) {

    .banner h1 {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    body {
        padding-top: 120px;
    }
}

.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--accent);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray);
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background: var(--light);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* new */
.banner {
    background-image: url('../images/img7.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: visible;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    overflow: visible;
}

.search-container {
  position: relative;
  z-index: 1000;        /* or any number > .banner-content (which is currently 2) */
  max-width: 600px;
  margin: 2rem auto 0;
}

/* 3) Make the dropdown taller / scrollable as needed */
.search-results {
  position: absolute;
  top: calc(100% + 5px); /* keep a small gap below the input */
  left: 0;
  right: 0;

  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);

  /* Increase the max‐height (you can tweak this value or use viewport units) */
  max-height: 50vh;     /* up to half the viewport height */
  overflow-y: auto;     /* enable scrolling if there are too many results */
  display: none;

  /* keep it above everything */
  z-index: 1001;
  margin-top: 5px;
}

/* rest of your rules can stay the same */
.search-result-item {
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.search-result-item:hover {
  background-color: #f8f9fa;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-category {
  font-weight: bold;
  color: #007bff;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.search-title {
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}
.search-subtitle {
  font-size: 12px;
  color: #666;
}
.search-divider {
  height: 2px;
  background: linear-gradient(to right, #007bff, #00d4ff);
  margin: 0.5rem 0;
}
.no-results {
  padding: 20px;
  text-align: center;
  color: #666;
  font-style: italic;
}


/* new2 */

/* Header Styles - Fixed Version */
.header {
    display: flex;
    align-items: center;
    padding: 0 2rem;
    height: var(--header-height);
    background: var(--gradient);
    box-shadow: var(--shadow);
    position: fixed; /* Changed from sticky to fixed */
    top: 0;
    left: 0; /* Added left: 0 */
    right: 0; /* Added right: 0 */
    width: 100%; /* Added width: 100% */
    z-index: 1000; /* Increased z-index */
    transition: var(--transition);
}

/* Make sure body has proper top padding to account for fixed header */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    background-image:
        radial-gradient(circle at 25% 25%, rgba(181, 157, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(45, 55, 140, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    padding-top: var(--header-height); /* This ensures content starts below the fixed header */
    padding-bottom: var(--footer-height);
    margin: 0; /* Added to ensure no default margin */
}

/* Alternative: If you prefer sticky over fixed, use this instead */
/*
.header {
    display: flex;
    align-items: center;
    padding: 0 2rem;
    height: var(--header-height);
    background: var(--gradient);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    width: 100%;
}
*/



/* Mobile responsiveness for header */
@media (max-width: 768px) {
    .header {
        padding: 0 1rem;
    }

    /* Adjust body padding for mobile if needed */
    body {
        padding-top: calc(var(--header-height) + 10px);
    }
}


/* newest */
.search-wrapper {
    width: 100%;
    max-width: 700px;
    position: relative;
}

.search-container {
    position: relative;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container.focused {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    z-index: 10;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    transform: scale(1);
}

.search-container.focused .search-icon {
    color: #fff;
    transform: scale(1.1);
}

.search-input {
    width: 100%;
    padding: 20px 60px 20px 60px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 18px;
    color: #fff;
    font-weight: 400;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.search-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
}

.clear-btn {
    position: absolute;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: #fff;
}

.clear-btn.visible {
    opacity: 1;
    transform: scale(1);
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}


.search-result-item {
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.search-result-item:hover::before {
    left: 100%;
}

.search-result-item:hover {
    background: rgba(102, 126, 234, 0.08);
    transform: translateX(8px);
    padding-left: 32px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-category {
    font-weight: 600;
    color: #667eea;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-category::before {
    content: '';
    width: 3px;
    height: 3px;
    background: #667eea;
    border-radius: 50%;
}

.search-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
    font-size: 16px;
    transition: color 0.2s ease;
}

.search-result-item:hover .search-title {
    color: #667eea;
}

.search-subtitle {
    font-size: 13px;
    color: #718096;
    line-height: 1.4;
}

.search-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    margin: 8px 0;
}

.no-results {
    padding: 40px 24px;
    text-align: center;
    color: #718096;
    font-style: italic;
}

.loading-spinner {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

.search-suggestions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.suggestion-chip {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestion-chip:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .search-container {
        margin: 0px;
        border-radius: 20px;
    }

    .search-input {
        font-size: 16px;
        padding: 18px 50px 18px 50px;
    }

    .search-results {
        max-height: 50vh;
        border-radius: 16px;
    }

    .search-result-item {
        padding: 14px 20px;
    }

    .suggestion-chip {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .search-container{
        margin: 0px -30px 0px -30px;
    }

    .banner{
        margin: 20px -25px 0px -25px;
    }

    .search-input {
        font-size: 16px;
        padding: 16px 45px 16px 45px;
    }

    .search-icon {
        left: 15px;
    }

    .clear-btn {
        right: 15px;
        width: 28px;
        height: 28px;
    }
    
    #homepagebreadcrumb
    {
        margin-top: 10px;
    }
}
