@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --primary-blue: #2572B1 !important;
  --dark-blue: #0d47a1 !important;
  --light-blue: #e8f0fe !important;
  --accent-blue: #4285f4 !important;
  --text-dark: #202124 !important;
  --text-light: #5f6368 !important;
  --white-bg: #ffffff !important;
}

body {
  font-family: 'Rubik', sans-serif !important;
  background-color: #ffffff !important;
  color: #333333 !important; 
  line-height: 1.6 !important;
  margin: 0;
  padding: 0;
}

@media (min-width: 992px) {
  .mob-nav {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .desk-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-section {
      padding: 60px 0 !important;
  }
  
  .search-card {
      margin-top: -30px !important;
  }
  
}


@media (min-width: 768px) {
  .company-logo-placeholder {
      width: 60px;
      height: 60px;
      font-size: 24px;
  }

  .company-logo-img {
      width: 120px;
      height: 60px;
  }
}

@media (min-width: 992px) {
  .company-logo-placeholder {
      width: 70px;
      height: 70px;
      font-size: 28px;
  }

  .company-logo-img {
      width: 140px;
      height: 70px;
  }
}


@media (max-width: 991.98px) {
  /* Move toggle button to left */
  .navbar-toggler {
      order: -1;
      margin-right: auto;
      margin-left: 0;
  }

  
  
  /* Keep brand centered */
  .navbar-brand {
      order: 0;
      margin-left: auto;
      transform: translateX(-15px);
  }
  
  /* Offcanvas-style mobile menu */
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    padding: 2rem 1rem;
    background-color: #fff;
    z-index: 1045;
    transform: translateX(-100%);
    transition: transform 0.0s ease-out !important;;
    will-change: transform;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}
  
.navbar-collapse.show {
  transform: translateX(0);
}
  
  /* Backdrop effect */
  .navbar-backdrop {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.5);
      z-index: 1040;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s;
  }
  
  .navbar-backdrop.show {
      opacity: 1;
      visibility: visible;
  }
  
  /* Nav items styling */
  .navbar-nav {
      padding-top: 2rem;
  }
  
  .nav-item {
      margin-bottom: 0.75rem;
  }
  
  /* Mobile dropdown fixes */
  .dropdown-menu {
      position: static !important;
      margin-top: 0.25rem;
      border: none;
      background-color: transparent;
      box-shadow: none;
  }
  
  .dropdown-item {
      padding: 0.5rem 1rem;
      color: #495057;
  }
  
  .dropdown-divider {
      margin: 0.25rem 1rem;
  }
}

@media (min-width: 992px) {
  .navbar-nav {
      margin-left: auto;
  }
  .user-dropdown .dropdown-menu {
    min-width: 140px; 
    padding: 0.25rem 0;
  }
  .dropdown-item {
    padding: 0.15rem 1rem; 
    font-size: 0.875rem; 
  }
  .dropdown-divider {
    margin: 0.25rem 0; 
  }
}

.logo-desk {
  height: 30px;  
  width: auto;
  margin-left: 24px;
}

.logo-mob {
  height: 25px;  
  width: auto;
  max-width: 150px;
  margin-left: auto;
}

.desk-nav,
.mob-nav {
  background-color: #ffffff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.desk-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}


.desk-nav:hover::after {
  opacity: 1;
}

.nav-link {
  color: var(--primary-blue) !important;
  font-weight: 400;
  padding: 0.5rem 1rem !important;
  margin: 0 0.1rem;
  position: relative;
}

.nav-link:hover {
  color: #d52730 !important;
}




h1, h2, h3, h4, h5, h6,
.navbar-brand, .modal-title, .btn {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  color: #2c3e50 !important; 
}

h1 { font-size: 2.2rem !important; }
h2 { font-size: 1.8rem !important; }
h3 { font-size: 1.5rem !important; }


a {
  color: #2572B1 !important; 
  text-decoration: none !important;
  transition: color 0.2s !important;
}

a:hover {
  color: #2572B1 !important;
}

.btn-primary {
  background-color: #2572B1 !important;
  border-color: #2572B1 !important;
  color: #ffffff !important;
  font-family: 'Rubik', sans-serif !important;
  font-weight: 500 !important;
}



body[class*="page-Form"] .layout-side-section,
body[class*="page-List"] .layout-side-section {
  display: none !important;
}

body[class*="page-Form"] .layout-main-section-wrapper,
body[class*="page-Form"] .layout-main-section,
body[class*="page-List"] .layout-main-section-wrapper,
body[class*="page-List"] .layout-main-section {
  margin-left: 0 !important;
  max-width: 100% !important;
}

body[class*="page-Form"] .page-container,
body[class*="page-List"] .page-container {
  padding-left: 0 !important;
}

.data-row.filter-row,
.layout-side-section,
.sidebar-toggle-container,
.sidebar-toggle-btn {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  visibility: hidden !important;
}

.datatable {
  font-family: 'Open Sans', sans-serif !important;
}

.datatable th {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  background-color: #f8f9fa !important;
}

  
  .bg-light-blue {
    background-color: #e8f1fd !important;
  }
  
  .bg-primary {
    background-color: #007bff !important;
  }
  
  h1, h2, h3, h4, h5 {
    color: #003366 !important;
  }
  
  .job-card {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
    transition: 0.3s ease all !important;
  }
  
  .job-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
  }
  
  
  
  .btn-one {
    background-color: #007bff !important; /* Bootstrap primary blue */
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-align: center !important;
    transition: background-color 0.3s ease !important;
    display: inline-block !important;
  }
  
  .btn-one:hover {
    background-color: #0056b3 !important; /* darker blue on hover */
    color: #ffffff !important;
  }
  
  
  .btn-two {
    background-color: #fff !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    transition: 0.3s !important;
  }
  
  .btn-two:hover {
    background-color: #000 !important;
    color: #fff !important;
  }
  
  footer {
    background-color: #001f3f !important;
  }
  
  footer a {
    color: #cccccc !important;
    text-decoration: none !important;
  }
  
  footer a:hover {
    color: #ffffff !important;
  }
  
  .text-primary {
    color: #007bff !important;
  }
  
  .text-muted {
    color: #6c757d !important;
  }

  .web-footer {
    display: none !important;
  }


  
  .hero-section {
    background: linear-gradient(135deg, var(--white-bg), var(--dark-blue)) !important;
    color: white !important;
    padding: 80px 0 !important;
    border-radius: 0 0 20px 20px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.search-card {
  background-color: white !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1) !important;
  padding: 25px !important;
  margin-top: -50px !important;
  position: relative !important;
  z-index: 10 !important;
}


.text-primary {
  color: var(--primary-blue) !important;
}

.input-group-text i {
  min-width: 1em;
  text-align: center;
}

/* Add to your CSS file */
.custom-form-control {
  border-radius: 6px;
  padding: 10px 15px;
  line-height: 1.5;
  height: auto;
  min-height: 42px;
  border: 1px solid #ced4da; /* Optional: explicit border */
}

.job-title-sm {
  font-weight: 600;
  font-size: 14px; 
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
  min-width: 250px;
  display: inline-block;
  vertical-align: middle;
}


.job-company-sm {
  font-weight: 400;
  font-size: 12px; 
  margin-top: 5px;
}

/* Base styles (mobile-first) */
.company-logo-placeholder {
  width: 50px;
  height: 50px;
  font-size: 20px;
  background-color: #6c757d; /* Bootstrap secondary */
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-logo-img {
  background-color: white;
  border-radius: 8px;
  height: 50px;
  object-fit: contain;
  margin-top: -4px;
}


.badge-salary i { color: #28a745; }
.badge-type i     { color: #6f42c1; }
.badge-location i   { color: #fd7e14; }
.badge-sum i   { color: #2572B1; }



.badge-text {
  font-size: 12px;
  font-weight: 400;
}

.badge-light {
  background-color: #f1f3f5;
  color: #495057;          
  font-weight: 400;
  padding: 0.1em 0.6em;
  border-radius: 0.5rem;
  font-size: 12px;         /* Change Icon Size */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.badge-light i {
  margin-right: 0.35rem;
  color: #007bff;
}

.badge-salary i { color: #28a745; }
.badge-type i     { color: #6f42c1; }
.badge-location i   { color: #fd7e14; }
.badge-exp i   { color: #007bff; }
.badge-qual i   { color: #000000; }

.badge-light:hover {
  background-color: #e9ecef;
}

.job-sum{
  font-size: 13px !important;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 350px;
  min-width: 250px;
  display: inline-block;
  vertical-align: middle;
}


.job-des-heading {
  color: var(--bs-primary) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline !important;
  cursor: pointer;
}


.job-des .ql-editor.read-mode {
  font-size: 14px;
  color: var(--text-light) !important; /* Ensures primary color is applied */
  margin-top: 8px;
  line-height: 1.6;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.job-des .ql-editor.read-mode strong {
  color: #23ae31 !important;
  font-size: 14px;
}

.d-none { display: none; }

.user-dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

.user-dropdown {
  position: relative;
}

.user-dropdown .dropdown-menu {
  left: 50%;
  transform: translateX(-50%);
}



.job-des {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.job-des:not(.d-none) {
  max-height: 1000px; 
}

.job-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Large Company Scroller Styles */
.large-scroller-wrapper {
  position: relative;
  margin: 0 -2rem;
  padding: 2rem;
  overflow: hidden;
}

.large-company-scroller {
  display: flex;
  gap: 2rem;
  padding-bottom: 1rem;
  animation: scroll 20s linear infinite;
  width: max-content;
}

.large-company-card {
  flex: 0 0 auto;
  width: 280px; /* Increased from 200px */
  height: 140px; /* Fixed height */
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none !important;
  transition: all 0.3s ease;
  border: 1px solid #eaeaea;
}

.large-company-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-color: var(--primary-blue);
}

.large-company-logo {
  width: 60px; /* Increased from 40px */
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.large-company-initial {
  width: 60px;
  height: 60px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-blue);
  flex-shrink: 0;
}

.large-company-info {
  flex: 1;
  min-width: 0;
}

.large-company-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.large-company-location {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.large-company-location i {
  color: var(--primary-blue);
  font-size: 0.8rem;
}

.large-company-jobs {
  font-size: 0.8rem;
  color: white;
  background: var(--primary-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  display: inline-block;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pause on hover */
.large-scroller-wrapper:hover .large-company-scroller {
  animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .large-company-card {
      width: 240px;
      height: 130px;
      padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .large-company-card {
      width: 220px;
      gap: 1rem;
  }
  
  .large-company-logo,
  .large-company-initial {
      width: 50px;
      height: 50px;
  }
}

.top-hiring-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin: 2rem 0;
}

.top-hiring-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
  animation: rotate 20s linear infinite;
  z-index: 0;
}

.top-hiring-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 20%, rgba(255,255,255,0) 80%, rgba(255,255,255,0.3) 100%);
  pointer-events: none;
  z-index: 0;
}

.top-hiring-section .container {
  position: relative;
  z-index: 1;
}

.top-hiring-section h2 {
  color: #2c3e50;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
  position: relative;
  padding-bottom: 15px;
}

.top-hiring-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #3498db, #9b59b6);
  border-radius: 3px;
}

@keyframes rotate {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}