/* Reset body margin */
body {
    margin: 0;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

.navbar {
    background-color: white;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0; 
    box-sizing: border-box;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;       
    margin: 0;         
    padding: 0;
    box-sizing: border-box;
}



 .navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar-logo img {
    height: 45px;
    width: auto;
}

.navbar-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin-left: 1.5rem;
}

.navbar-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}
.navbar-menu li a:hover {
    color: #007bff;
}

/* Hamburger bars */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2100;
}
.navbar-toggle .bar {
  width: 28px;
  height: 3px;
  margin: 5px 0;
  background: #000; /* Ensure visible on all pages */
  border-radius: 2px;
  transition: all 0.3s ease;
}


/* Active burger menu animation */
.navbar-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu styles */
.navbar-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: 100vh;
    background: rgba(255,255,255,0.98);
    z-index: 2000;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    box-sizing: border-box;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
}

.navbar-mobile-menu.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.navbar-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.navbar-mobile-menu li {
    margin: 1.2rem 0;
    font-size: 1.2rem;
    width: 100%;
    text-align: left;
}

.navbar-mobile-menu a {
    color: #222;
    text-decoration: none;
    font-weight: 600;
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.navbar-mobile-menu a:hover {
    color: #007bff;
    background: #e3f0ff;
}

.navbar-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #333;
    cursor: pointer;
    z-index: 2100;
    transition: color 0.2s;
}
.navbar-close:hover {
    color: #007bff;
}

/* Responsive styles */
@media (max-width: 768px) {
    .navbar-menu,
    #navbar-menu-auth {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid #ddd;
        z-index: 1001;
    }

    .navbar-menu.active,
    #navbar-menu-auth.active {
        max-height: 600px; /* enough to show all menu items */
    }

    .navbar-menu li,
    #navbar-menu-auth li {
        margin: 1rem 0;
    }

    .navbar-toggle {
        display: flex;
    }
}

/* Ensure full width for content */
.content {
    width: 100%;
    margin: 0 auto; /* Center the content */
}

.btn-primary {
    display: inline-block;
    font-weight: 700;
    color: #fff;
    background-color: #007bff;
    border: 1px solid #007bff;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0056b3;
    border-color: #004085;
    color: #fff;
    text-decoration: none;
}

.job-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    width: 300px; /* Reduced fixed width */
    box-sizing: border-box;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Removed aspect-ratio to make container rectangle */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.job-card strong {
    font-weight: 700;
    font-size: 1.5rem; /* Increased font size */
}

.job-card p {
    margin: 0.25rem 0;
    color: #555;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .job-card {
        width: 100%;
    }
}

/* Responsive: show hamburger on mobile */
@media (max-width: 900px) {
  .navbar-toggle {
    display: flex !important;
  }
  .navbar-menu,
  #navbar-menu-auth {
    display: none !important;
  }
}

/* Hide hamburger when mobile menu is open */
.navbar-toggle.hide {
    display: none !important;
}
