@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');


/* Basic reset and body styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Raleway", sans-serif;
    background-color: #111111;
}

/* Navbar container */
@keyframes fadeBorder {
    0% {
        border-top-color: rgba(38, 126, 226, 1);
    }
    50% {
        border-top-color: rgba(38, 126, 226, 0);
    }
    100% {
        border-top-color: rgba(38, 126, 226, 1);
    }
}

/* Navbar container */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #111111;
    color: white;
    position: relative;
    overflow: hidden;
    border-top: 2px solid rgba(38, 126, 226, 1);
    animation: fadeBorder 3s infinite;
}


.navbar::after {
    content: '';
    position: absolute;
    bottom: 0; /* Position at the bottom of the navbar */
    left: -100%; /* Start off-screen to the left */
    height: 3px; /* Thickness of the neon line */
    width: 100%; /* Full width of the navbar */
    background: linear-gradient(90deg, transparent, rgba(0, 4, 255, 0.8), transparent); /* Neon blue gradient */
    animation: neon 18s infinite; /* Animation effect */
}

/* Keyframes for neon effect */
@keyframes neon {
    0% {
        left: -100%; /* Start off-screen to the left */
    }
    50% {
        left: 100%; /* Move to off-screen to the right */
    }
    100% {
        left: -100%; /* Reset to start position */
    }
}

/* Logo and site name */
.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    max-width: 40px;
    margin-right: 10px;
}

.navbar .logo h1 {
    font-size: 24px;
}

/* Centered nav links */
.navbar .nav-links {
    display: flex;
    gap: 20px;
    flex-grow: 1;
    justify-content: center; /* Center nav links */
    min-width: 300px; /* Ensures space for nav links */
}

.navbar .nav-links a {
    text-decoration: none; /* Remove underline from links */
    color: white; /* Initial text color */
    font-size: 18px; /* Font size */
    transition: color 0.3s ease; /* Transition for color change */
}

.navbar .nav-links a:hover {
    color: #007BFF; /* Blue color on hover */
}

/* Search and login on the right */
.navbar .search-login {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px; /* Maintain a minimum width */
}

/* Collapse button (only visible on mobile) */
.navbar .collapse-button {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: rgb(255, 255, 255);
    cursor: pointer;
}

/* Responsive behavior for mobile */
@media (max-width: 990px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    /* Collapse button visible on mobile */
    .navbar .collapse-button {
        display: block;
        align-self: flex-end;
    }

    /* Hide the nav links initially */
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .navbar .search-login {
        display: none; /* Hide by default */
    }

    /* Show the nav links when active */
    .navbar.active .nav-links {
        display: flex; /* Show nav links when navbar is active */
    }

    /* Show the search-login when navbar is active */
    .navbar.active .search-login {
        display: flex; /* Change to flex to show it */
        flex-direction: column; /* Maintain the column layout */
        align-items: center; /* Center align items */
        margin-top: 10px; /* Maintain the margin */
    }

    .navbar .search-login input[type="text"],
    .navbar .search-login button {
        width: 100%;
        max-width: 300px;
    }
    .TOP_NAV{
        display: flex;
        gap: 1.5rem;

    }
    .TOP_NAV .Collapser{
        align-self: flex-end;
    }
    .search-container {
        margin-right: 0rem !important;
    }
}

.login_btn_style{
    display: flex;
    gap: 3px;
    justify-content: center;
}



.Search_Rub {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px; /* Adjust the gap to control spacing */
    margin-right: 2rem;
}

.search-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.Search_Rub i{
    color: white;
    background-color: #0E94BD;
    padding: 6px 6px;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
}
.Search_Rub i:hover{
    scale: 1.1;
    background-color: #0E60BD;
    cursor: pointer;

}
.Search_Rub i:active{
    scale: 0.95;
    background-color: #0E60BD;

}
@media (max-width: 990px) {
    .Search_Rub {
        align-items: center;
        margin-right: -1rem;
    }
}

/* Combined search container */
.search-container {
    display: flex;
    align-items: center; /* Center align items vertically */
    /* margin-right: 2rem; */
    margin-right: 0.1rem; /* Fine-tune margin to align with select */
    border: 0.1rem solid #ffffff; /* The outer border */
    border-radius: 5px; /* Rounded corners */
    overflow: hidden; /* Hide overflow to ensure they look connected */
    background-color: #111111; /* Match background to the site */
    position: relative; /* For absolute positioning of the focus shadow */
    transition: all 0.3s ease; /* Transition for border color */
}

/* Change the border color and add shadow when focused */
.search-container:focus-within {
    border-color: #0E87AC; /* Border color to match the theme */
    outline: none; /* Remove default outline */
    box-shadow: 0 0 10px #0E87AC; /* Light shadow for focus */
}

/* Search select styling */
.search-select {
    font-family: Arial, Helvetica, sans-serif;
    padding: 10px; /* Add padding for select box */
    border: none; /* Remove individual borders */
    border-radius: 0; /* Remove rounded corners */
    font-size: 15px; /* Font size */
    cursor: pointer; /* Change cursor on hover */
    background-color: #2B2B2B; /* Initial background color */
    color: #0081ac; /* Text color */
    outline: none; /* Remove focus outline */
    transition: background-color 0.3s ease; /* Transition for background color */
    animation: bump 2s infinite; /* Add the bump animation */
}

/* Keyframes for bump animation */
@keyframes bump {
    0% {
        background-color: #222222; /* Original color */
    }
    50% {
        background-color: #181818; /* Darker color */
    }
    100% {
        background-color: #222222; /* Original color */
    }
}


/* Optionally, add hover effect */
.search-select:hover {
    background-color: #0E87AC; /* Change background color on hover */
}

/* Search box styling */
.search-box {
    padding: 10px; /* Add some padding */
    border: none; /* Remove individual borders */
    border-radius: 0; /* Remove rounded corners */
    flex-grow: 1; /* Allow input to take the remaining space */
    background-color: #111111; /* Match background */
    color: white; /* Text color */
    outline: none; /* Remove outline on focus */
}

.search-box::placeholder {
    color: #888888; /* Placeholder color */
    opacity: 1; /* Ensures the placeholder is fully opaque */
}



/* Search and login button styling */
.navbar .search-login button {
    padding: 12px 30px; /* Adjust padding for better size */
    background-color: #0E94BD; /* Initial background color */
    color: white; /* Text color */
    border: none; /* Remove default border */
    border-radius: 1.5rem; /* Rounded corners */
    cursor: pointer; /* Change cursor on hover */
    font-size: 18px; /* Adjust font size */
    transition: background-color 0.4s ease, transform 0.2s ease; /* Smooth transition for color and scale */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Hover effect with color fading and scaling */
.navbar .search-login button:hover {
    background-color: #0e60bd; /* Darker background on hover */
    transform: scale(1.05); /* Slightly enlarge the button */
}

/* Optional: Active state for a more interactive feel */
.navbar .search-login button:active {
    transform: scale(1); /* Reset scale when clicked */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Slightly reduce shadow when active */
}