/* === Smart Dropdown Menu Design === */
.career-header {
  background: linear-gradient(135deg, #e63946, #ff7b00);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}
.career-header h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 1px;
}
.career-header p {
  font-size: 18px;
  max-width: 700px;
  margin: 15px auto 0;
  color: #f8f8f8;
}
.nav-item {
  color: #222;
}
.nav-item.dropdown .dropdown-toggle {
  position: relative;
  color: #222;
  transition: color 0.3s ease;
}
.nav-item.dropdown .dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 5px solid transparent;
  border-top-color: #e63946;
  transition: transform 0.3s ease;
}
.nav-item .dropdown:hover .dropdown-toggle {
}
.nav-item.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Dropdown Menu Styling */
.dropdown-menu {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 0;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  min-width: 240px;
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* Show dropdown smoothly */
.nav-item.dropdown:hover .dropdown-menu {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Dropdown item style */
.dropdown-menu .dropdown-item {
  font-weight: 500;
  color: #333;
  padding: 10px 20px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}
.dropdown-menu .dropdown-item:hover {
  background: linear-gradient(90deg, #ffe8e8, #fff7f0);
  color: #e63946;
  border-left: 4px solid #e63946;
  padding-left: 24px;
}

/* Optional: subtle divider line between items */
.dropdown-menu .dropdown-item:not(:last-child) {
  border-bottom: 1px solid #f1f1f1;
}
.navbar-light .navbar-nav .nav-item:hover,
.navbar-light .navbar-nav .nav-item.active,
.navbar-light .navbar-nav .nav-item:hover .nav-link,
.navbar-light .navbar-nav .nav-item.active .nav-link {
  color: #e63946 !important;
}

.job-img {
  width: 97%;
  padding: 5px;
  border: solid 4px #f2ed99;
  margin-bottom: 20px;
}

/* Main menu items */
.menu-item {
  font-weight: 500;
  color: #222;
  padding: 0.8rem 1rem;
  transition: background 0.3s;
}
.menu-item:hover {
  background: #f1f1f1;
  border-radius: 8px;
}

/* Sub-menu items */
.sub-menu-item {
  display: block;
  padding: 0.6rem 1.5rem;
  color: #555;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.sub-menu-item:hover {
  background: #e9ecef;
  color: #222;
  border-radius: 5px;
}
/* -------------------------
            DESKTOP VIEW (default)
          --------------------------*/
.dropdown-submenu {
  position: relative !important;
}

.dropdown-submenu > .dropdown-menu {
  top: 0 !important;
  left: 100% !important;
  display: none !important;
  position: absolute !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block !important;
}

/* -------------------------
            MOBILE VIEW (max-width: 991px)
            --------------------------*/
@media (max-width: 991px) {
  /* Make submenu open vertically */
  .dropdown-submenu > .dropdown-menu {
    position: static !important;
    left: 0 !important;
    top: 0 !important;
    display: none !important; /* still hidden */
    margin-left: 0 !important;
    border-left: none !important;
    width: 100%;
  }

  /* On click (Bootstrap handles .show class), dropdown-menu auto opens */
  .dropdown-submenu > a.dropdown-toggle::after {
    float: right;
    transform: rotate(90deg);
  }

  /* When Bootstrap adds .show class in mobile */
  .dropdown-submenu.show > .dropdown-menu {
    display: block !important;
  }
}

.advisor-section {
  background: linear-gradient(135deg, #fdfdfd, #f8f9fa);
  padding: 20px 20px;
  position: relative;
}

.advisor-card {
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  animation: fadeUp 0.8s ease forwards;
}

.advisor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.advisor-photo {
  flex: 1 1 40%;
  background: linear-gradient(135deg, #ffe6e6, #fff5f0);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
}

.advisor-photo img {
  width: 280px;
  height: 280px;
  object-fit: fill;
  /* border-radius: 50%; */
  border: 6px solid gold;
  box-shadow: 0 6px 15px rgba(230, 57, 70, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.advisor-photo img:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.5);
}

.advisor-photo h3 {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 700;
  color: #222;
}

.advisor-photo p {
  color: #555;
  font-size: 14px;
}

.advisor-content {
  flex: 1 1 60%;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.advisor-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: #e63946;
  margin-bottom: 20px;
  position: relative;
}

.advisor-content h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #ff7b00;
  display: block;
  margin-top: 8px;
  border-radius: 2px;
}

.advisor-content p {
  color: #555;
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 30px;
}

.signature {
  display: flex;
  align-items: center;
  gap: 15px;
}

.signature img {
  width: 100px;
  object-fit: contain;
}

.signature p {
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
  color: #222;
}

/* Responsive */
@media (max-width: 992px) {
  .advisor-card {
    flex-direction: column-reverse;
    text-align: center;
  }
  .advisor-content {
    padding: 30px;
  }
  .advisor-photo {
    padding: 40px;
  }
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
