/*
  Reminder: Periodically audit and remove unused CSS selectors and rules for optimal performance.
  Use tools like PurgeCSS, UnCSS, or browser DevTools Coverage tab.
*/

/* Fixed Universal Selector */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif; /* Fixed missing font-family value */
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #E6F3FF, #CCE7FF);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 10px;
    border: 2px solid #E6F3FF;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    cursor: pointer;
}

/* Fixed Body Layout */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    background: linear-gradient(135deg, #E6F3FF, #CCE7FF, #B3D9FF);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #E6F3FF 0%, #CCE7FF 50%, #B3D9FF 100%);
    font-family: "Poppins", sans-serif;
}

/* Enhanced Header */
header {
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.1);
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
  width: 100%;
  background: rgba(33, 181, 204, 0.2); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(46, 7, 117, 0.3);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Enhanced Header Container */
.headContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* Enhanced Logo */
.logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(30, 58, 138, 0.2));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
  width: 180px;
  height: auto;
}

.footer {
  width: 100%;
  height: 4rem;
  background: #3d55b4;
  color: #fff;
  text-align: center;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 99;
  box-shadow: 0 -2px 12px rgba(61, 85, 180, 0.08);
  font-size: 17px;
  letter-spacing: 0.5px;
}

.footer-content {
  font-family: "Poppins", sans-serif;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  margin-left: 29.5rem;
}

/* Enhanced Navigation */
.headlinks {
    display: flex;
    align-items: center;
    gap: 24px;
}

.headlinks a,
.apply-btn {
  all: unset;
  font-size: 16px;
  padding: 8px 16px;
  border: 2px solid #1e3a8a;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  text-align: center;
}

.headlinks a:hover,
.apply-btn:hover {
  background: #1e3a8a;
  color: white;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
  transform: translateY(-2px);
}


.job-btn {
    height: 2.3rem;
    width: 6.5rem;
    text-align: center;
    margin-left: 0rem;
    margin-right: 1rem;
    /* padding: 8px 16px; */
    font-size: 18px;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid #1e3a8a;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #1e3a8a;
    background: rgba(255, 255, 255, 0.8);
}

.job-btn:hover {
    /* background: #1e3a8a; */
    /* transform: translateY(-2px); */
    /* color: white; */
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.headContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 100%;
}

/* Enhanced Navigation */
.headlinks {
    display: flex;
    align-items: center;
    gap: 24px;
}

.headlinks a,
.apply-btn {
    all: unset;
    font-size: 18px;
    font-size: 16px;
    padding: 12px 20px;
    border: 2px solid #1e3a8a;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #1e3a8a;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Shimmer effect */
.headlinks a::before,
.apply-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
    height: 8vh;
    background-color: rgb(77, 77, 246);
}

.footContainer {
    display: flex;
    align-items: center;
    justify-content: space-around;
    color: white;
}

.footlinks {
    display: flex;
    align-items: center;
    gap: 20px;
}
.headlinks a:hover::before,
.apply-btn:hover::before {
    left: 100%;
}
.headlinks a:hover,
.apply-btn:hover {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
    transform: translateY(-3px) scale(1.02);
    border-color: #3b82f6;
}

/* Enhanced Main Content */
.body2 {
    width: 100%;
    min-height: calc(100vh - 23vh);
    flex: 1;
    background: linear-gradient(135deg, #E6F3FF 0%, #CCE7FF 50%, #B3D9FF 100%);
    position: relative;
}

/* Enhanced Heading */
.heading {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.heading h2 {
    margin: 0 auto;
    font-size: 42px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(30, 58, 138, 0.1);
    font-weight: 800;
    letter-spacing: -1px;
}

.heading p {
    margin: 0 auto;
    color: #1e40af;
    font-size: 18px;
    font-weight: 500;
    opacity: 0.8;
}

/* Enhanced Search Container */
.search-filter-container {
    display: flex;
    gap: 20px;
    margin: 30px auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
}

.search-bar {
    padding: 14px 20px;
    border: 2px solid rgba(30, 58, 138, 0.2);
    border-radius: 12px;
    font-size: 16px;
    width: 280px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #1e3a8a;
    font-weight: 500;
}

.search-bar::placeholder {
    color: rgba(30, 58, 138, 0.6);
}

.search-bar:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
    outline: none;
    transform: translateY(-2px);
}
}

.search-bar::placeholder {
    color: rgba(30, 58, 138, 0.6);
}

.search-bar:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
    outline: none;
    transform: translateY(-2px);
}
/* Enhanced Jobs Container */
.jobs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
    padding: 20px;
    padding-bottom: 120px;
}

/* Enhanced Job Cards */
.jList {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 28px;
    cursor: pointer;
    border: 1px solid rgba(30, 58, 138, 0.1);
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.jList::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6, #1e40af);
    border-radius: 20px 20px 0 0;
}

.jList:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.15);
    border-color: rgba(30, 58, 138, 0.3);
}

/* Enhanced Footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 8vh;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    backdrop-filter: blur(20px);
    box-shadow: 0 -8px 32px rgba(30, 58, 138, 0.2);
}

.footContainer {
    display: flex;
    align-items: center;
    justify-content: space-around;
    color: white;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footlinks {
    display: flex;
    align-items: center;
    gap: 25px;
}

.footlinks a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.job-salary {
    font-weight: 600;
    color: #059669;
    font-size: 16px;
}

.job-time {
    color: #9CA3AF;
    font-size: 12px;
}

.job-links{
    all: unset;
    text-decoration: none;
}

.job-type{
    display: flex;
}

/* Modal Close Button (X) in top right corner */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    color: #1e3a8a;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.12);
    transition: all 0.3s ease;
    z-index: 1001;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.modal-close-btn:active {
    transform: scale(0.95);
}

.apply{
    position: fixed;
    width: 50vw;
    height: 80vh; 
    border: 2px solid rgb(126, 126, 234);
    left: 25%;
    top: 10%; 
    z-index: 1000;
    background-color: rgba(150, 150, 251, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    padding: 20px; 
    gap: 15px;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow-y: auto; 
}

.apply h2 {
    margin: 0 0 20px 0;
    text-align: center;
    color: #1e3a8a;
    font-size: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 600;
    color: #1e3a8a;
    font-size: 16px;
}

.apply .input{
    width: 100%; 
    height: 40px;
    border-radius: 10px;
    border: 1px solid #1e3a8a;
    padding: 0 15px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.skill-input-container {
    position: relative;
    margin-bottom: 20px;
}

.skill-input-container label {
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 8px;
    display: block;
}

#tag-container {
    min-height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #1e3a8a;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    max-height: 120px;
    overflow-y: auto;
}

/* Individual Skill Tag Styling */
.skill-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
    transition: all 0.2s ease;
    animation: fadeIn 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.skill-tag .remove-tag {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.skill-tag .remove-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Skill input field styling */
#skillInput {
    width: 100%;
    height: 45px;
    border: 2px solid #1e3a8a;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    outline: none;
}

#skillInput:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

#skillInput::placeholder {
    color: #6b7280;
    font-style: italic;
}

/* Suggestions dropdown */
.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #1e3a8a;
    border-radius: 12px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
}

.suggestions-list li {
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
    color: #1e3a8a;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e5e7eb;
}

.suggestions-list li:last-child {
    border-bottom: none;
}

.suggestions-list li:hover {
    background: linear-gradient(135deg, #e6f3ff, #cce7ff);
    color: #1e40af;
    transform: translateX(5px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Empty state for tag container */
#tag-container:empty::before {
    content: "Selected skills will appear here...";
    color: #9ca3af;
    font-style: italic;
    font-size: 14px;
}

/* Scrollbar for tag container */
#tag-container::-webkit-scrollbar {
    width: 6px;
}

#tag-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

#tag-container::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 3px;
}

#tag-container::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

.job-type-apply{
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.job-type-apply h4 {
    margin: 0;
    font-size: 14px;
    color: #1e3a8a;
}

.job-type-apply input[type="radio"] {
    margin-right: 5px;
    cursor: pointer;
}

/* Button container */
.button-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 15px;
}

.apply button{
    width: 120px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
}

.apply button:hover{
    transform: scale(1.05);
    background-color: #1e3a8a;
    color: white;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fa-brands {
    font-size: 24px;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footlinks a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
}

.fa-brands {
    font-size: 24px;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footlinks a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.fa-instagram:hover {
    color: #e4405f;
}

.fa-linkedin:hover {
    color: #0077b5;
}

.fa-github:hover {
    color: #333;

}

/* Responsive Design */
@media (max-width: 768px) {
    .jobs-container {
        grid-template-columns: 1fr;
        max-width: 95vw;
        gap: 25px;
        padding: 15px;
        padding-bottom: 100px;
        padding-bottom: 120px;
    }
    
    .jList {
        padding: 24px;
    }
    
    .search-filter-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        width: 90%;
    }
    
    .skill-tag {
        font-size: 13px;
        padding: 6px 10px;
        gap: 6px;
    }
    
    .skill-tag .remove-tag {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    
    #tag-container {
        min-height: 45px;
        padding: 10px;
    }
}

@media (max-width: 555px) {
    .headContainer {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    header {
        width: 100%;
        height: auto;
        padding: 15px;
        background: linear-gradient(135deg, #E6F3FF, #B3D9FF);
    }
    
    .heading {
        padding: 25px 15px;
    }
    
    .heading h2 {
        font-size: 32px;
    }
}

@media (max-width: 395px) {
    header {
        height: auto;
        padding: 12px;
    }
    
    .headlinks {
        flex-direction: column;
        gap: 10px;
    }
    
    .heading h2 {
        font-size: 28px;
    }
    
    .jobs-container {
        padding: 10px;
    }
    
    .jList {
        padding: 20px;
    }
}
.search-filter-container {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    margin-bottom: 24px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.search-bar {
    padding: 12px 18px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 1.05rem;
    width: 250px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-bar::placeholder {
    color: #999;
}

.search-bar:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

.filter-dropdown {
    padding: 12px 18px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 1.05rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%233b82f6'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 1em;
    padding-right: 36px;
}

.filter-dropdown:hover {
    border-color: #b3d9ff;
}

.filter-dropdown:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

.search-wrapper {
    position: relative;
}

.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 1.2rem;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s ease;
    display: none;
}

.clear-search:hover {
    color: #333;
}

/* Back to Top Button */

#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  font-size: 20px;
  background-color: #3b82f6;
  color: #f7f9fc;
  border: none;
  outline: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease;
  opacity: 0;
}
#backToTopBtn.show {
  display: block;
  opacity: 1;
}
#backToTopBtn:hover {
  background-color: #1e40af;
}