/* ========================== */
/* HERO SECTION (UPDATED)     */
/* ========================== */

/* Mobile & Tablet: auto height */
.hero-carousel {
  width: 100%;
  height: auto;
  position: relative;
  overflow: hidden;
}

/* Allow natural image height for small screens */
.hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Text stays fixed */
.hero-caption {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  max-width: 520px;
  z-index: 5;
  background: linear-gradient(90deg, rgba(0,0,0,0.65), rgba(0,0,0,0.05));
  padding: 20px 25px;
  border-radius: 8px;
}

.hero-caption h1,
.hero-caption p {
  color: #fff !important;
}

/* Carousel arrows */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

/* ========================== */
/* Desktop & Laptop Full Height */
/* ========================== */
@media(min-width:992px) {

  /* Full screen hero */
  .hero-carousel {
    height: 100vh;
    overflow: hidden;
  }

  .carousel-item {
    height: 100vh;
  }

  .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* Mobile Hero Caption */
@media (max-width: 768px) {
  .hero-caption {
    left: 20px;
    max-width: 90%;
  }
  .hero-caption h1 {
    font-size: 1.8rem;
  }
}

/* ========================== */
/* NAVBAR                     */
/* ========================== */

.custom-navbar {
  background-color: #ffffff !important;
  padding: 12px 0;
}

.custom-navbar .navbar-brand {
  color: #0d6efd !important;
  font-weight: 700;
}

.custom-navbar .nav-link {
  color: #333 !important;
  font-size: 16px;
  font-weight: 500;
  margin: 0 6px;
  position: relative;
  transition: .3s;
}

.custom-navbar .nav-link:hover {
  color: #0d6efd !important;
}

.custom-navbar .nav-link:hover::after {
  width: 100%;
}

.custom-navbar .nav-link::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background-color: #0d6efd;
  margin: 2px auto 0;
  transition: width 0.3s ease-in-out;
}

/* ========================== */
/* SIDEBAR                    */
/* ========================== */

.sidebar {
  position: fixed;
  top: 0;
  left: -340px;
  width: 340px;
  height: 100vh;
  background: #111;
  color: #fff;
  padding-top: 100px;
  transition: left 0.35s ease-in-out;
  z-index: 1200;
}

.sidebar.show {
  left: 0;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
}

.sidebar-menu li a {
  display: block;
  font-size: 18px;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.sidebar-menu li a:hover {
  background-color: rgba(255,255,255,0.1);
  color: #0d6efd;
}

/* ========================== */
/* HAMBURGER BUTTON           */
/* ========================== */

.hamburger {
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2000;
  position: fixed;
  top: 18px;
  right: 20px;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: #000;
  transition: .3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(12px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-12px);
}

/* Desktop Hide Sidebar Toggle */
@media(min-width:992px) {
  #mobileSidebar, #menuBtn {
    display: none;
  }
}

/* ========================== */
/* SERVICES SECTION           */
/* ========================== */

.services-section {
  background: #f9fbfc;
}

.service-card {
  background: #fff;
  border-radius: 18px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #e8f1ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon i {
  font-size: 28px;
  color: #0d6efd;
}

/* ========================== */
/* ABOUT SECTION              */
/* ========================== */

.about-section h2 {
  font-size: 2.3rem;
  font-weight: 700;
}

.about-section p {
  font-size: 1rem;
}

.about-section img {
  max-height: 400px;
  object-fit: cover;
  width: 100%;
  border-radius: 15px;
}

@media(min-width:992px) {
  .about-section img {
    margin-top: 30px;
  }
}

/* ========================== */
/* LATEST JOBS SECTION        */
/* ========================== */

.latest-jobs-section {
  background: #f8fafc;
}

.job-filter-btn {
  border: none;
  padding: 8px 22px;
  border-radius: 25px;
  background: #e5e7eb;
  font-weight: 500;
  transition: .3s;
}

.job-filter-btn.active {
  background: #2563eb;
  color: white;
}

.job-box {
  background: white;
  border-radius: 18px;
  transition: .3s ease-in-out;
}

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

.job-location,
.job-salary {
  font-size: 14px;
  color: #555;
}

.job-tag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.job-tag.blue { background: #e0edff; color: #2161d1; }
.job-tag.green { background: #d9f7e8; color: #138c4a; }
.job-tag.orange { background: #ffe9d6; color: #d25b00; }

.job-btn {
  background: #2563eb;
  color: white;
}

/* ========================== */
/* APPLY FORM                 */
/* ========================== */

.custom-input {
  height: 48px;
  border-radius: 10px;
  border: 1px solid #d9d9d9;
  padding-left: 14px;
  transition: .3s;
}

.custom-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 4px rgba(13,110,253,0.3);
}

.apply-section h2 {
  font-size: 32px;
}

.apply-section .shadow {
  border-radius: 18px !important;
}

/* ========================== */
/* CONTACT SECTION            */
/* ========================== */

.contact-section h2 {
  font-size: 32px;
}

.icon-box {
  width: 45px;
  height: 45px;
  background: #e7f1ff;
  color: #0d6efd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.contact-card {
  background: #ffffff;
  border-radius: 20px !important;
}

/* ========================== */
/* FOOTER                     */
/* ========================== */

.footer-section {
  background: #0e1525;
  color: #dcdcdc;
}

.footer-logo {
  color: #fff;
  font-weight: 700;
  font-size: 22px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #dcdcdc;
  text-decoration: none;
}

.footer-links a:hover {
  color: #0d6efd;
}

.footer-icon i {
  font-size: 20px;
  color: white;
  background: #1f2638;
  padding: 10px;
  border-radius: 50%;
  transition: 0.3s;
}

.footer-icon i:hover {
  background: #0d6efd;
}

.footer-line {
  border-color: rgba(255,255,255,0.2);
  margin-top: 20px;
}
