/* Nested dropdown styles */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  margin-left: 1px;
}

.dropdown-menu {
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item.dropdown-toggle::after {
  display: inline-block;
  margin-left: auto;
  vertical-align: middle;
  content: "";
  border-top: 0.3em solid transparent;
  border-right: 0;
  border-bottom: 0.3em solid transparent;
  border-left: 0.3em solid; /* ▶ */
  float: right;
  margin-top: 0.45rem;
  transition: transform 0.3s ease;
}

/* Mobile view adjustments */
@media (max-width: 1199.98px) {
  .dropdown-submenu .dropdown-menu {
    position: static;
    margin-left: 1rem;
    border: none;
    box-shadow: none;
  }
}

.dropdown-item.dropdown-toggle::after {
  float: right;
  margin-top: 0.45rem;
  transition: transform 0.3s ease;
}

/* Arrow rotated when submenu is open */
.dropdown-item.dropdown-toggle.submenu-open::after {
  transform: rotate(90deg);
}

/* Highlight submenu of active parent (Placements) */
.dropdown-menu.parent-active {
  background-color: #e7f0ff;
  border-left: 4px solid #1a237e;
}

/* Items inside Placements */
.dropdown-menu.parent-active .dropdown-item {
  font-weight: 450;
}

/* Hover effect */
.dropdown-menu.parent-active .dropdown-item:hover {
  background-color: #1a237e;
  color: #fff;
}

/* Sticky quick actions */
.quick-actions {
  position: fixed;
  right: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 999;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-action-btn:hover,
.quick-action-btn:focus-visible {
  color: #fff;
  transform: translateX(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.quick-action-btn.whatsapp {
  background: #25d366;
}

.quick-action-btn.chatbot {
  background: #0d6efd;
}

.quick-action-btn.enquiry {
  background: #ff6b00;
}

.quick-action-btn i {
  font-size: 20px;
  min-width: 20px;
}

.quick-action-btn span {
  display: none;
}

/* Chatbot theme override */
.chatbot-wrapper {
  position: fixed;
  right: 24px;
  bottom: 20px;
  width: 370px;
  height: 560px;
  display: none;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid #d7e1f0;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 24px 60px rgba(13, 59, 102, 0.25);
  overflow: hidden;
  z-index: 9999;
}

@media (max-width: 576px) {
  .chatbot-wrapper {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 92vw !important;
    max-width: 370px !important;
    bottom: 72px !important;
    height: 70vh !important;
    max-height: 520px !important;
  }
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #0d3b66 0%, #184d88 70%, #9d1f38 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.chatbot-header strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.chatbot-header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 22px;
  line-height: 1;
}

.chatbot-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  background:
    radial-gradient(circle at top right, rgba(13, 59, 102, 0.07), transparent 40%),
    radial-gradient(circle at bottom left, rgba(157, 31, 56, 0.06), transparent 35%),
    #f3f7fc;
}

.bot-message,
.user-message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  margin: 0;
  word-wrap: break-word;
}

.bot-message {
  align-self: flex-start;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #e3eaf5;
}

.user-message {
  align-self: flex-end;
  color: #ffffff;
  background: linear-gradient(135deg, #0d3b66 0%, #174b86 100%);
  border: 1px solid #0d3b66;
}

.choice-btn {
  align-self: flex-start;
  margin-top: 2px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #bfd0ea;
  background: #ffffff;
  color: #0d3b66;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.choice-btn:hover {
  color: #ffffff;
  background: #0d3b66;
  border-color: #0d3b66;
}

.chatbot-footer {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #dbe4f3;
  background: #ffffff;
}

.chatbot-footer input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #cdd8ea;
  background: #f8fbff;
  font-size: 14px;
}

.chatbot-footer input:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.14);
}

.chatbot-footer button {
  width: 44px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #9d1f38 0%, #c52d4a 100%);
}

.chatbot-footer button:disabled,
.chatbot-footer input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 767.98px) {
  .quick-actions {
    right: 0;
    left: 0;
    bottom: 0;
    top: auto;
    transform: none;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #dbe3f2;
    border-radius: 0;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.12);
    padding: 0;
    margin: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .quick-action-btn {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 58px;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    font-size: 11px;
    transform: none !important;
    transition: none;
  }

  .quick-action-btn span {
    display: inline;
    font-size: 11px;
    line-height: 1;
  }

  .quick-action-btn i {
    font-size: 16px;
    min-width: 0;
  }

  .quick-action-btn:hover,
  .quick-action-btn:focus-visible {
    width: auto;
    min-width: 0;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border-radius: 0;
    transform: none;
    box-shadow: none;
  }

  .quick-action-btn.whatsapp {
    background: #e9f9ef;
    color: #15924b;
  }

  .quick-action-btn.chatbot {
    background: #e8f1ff;
    color: #0d6efd;
  }

  .quick-action-btn.enquiry {
    background: #fff2e8;
    color: #e05f00;
  }

  #goToTopBtn {
    bottom: 96px !important;
    right: 16px !important;
  }
}

/* Premium Global Offcanvas Styling System - Active when rendered as open drawer */
.offcanvas.show,
.offcanvas.showing,
#admissionFormOffcanvas {
  border-left: 1px solid rgba(227, 242, 253, 0.5) !important;
  background: #ffffff !important;
  box-shadow: -10px 0 45px rgba(5, 44, 101, 0.12) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.offcanvas.show .offcanvas-header,
.offcanvas.showing .offcanvas-header,
#admissionFormOffcanvas .offcanvas-header {
  background: linear-gradient(135deg, #052c65 0%, #0d6efd 100%) !important;
  padding: 2px 24px !important;
  border-bottom: 3px solid #ff9100 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.offcanvas.show .offcanvas-header .btn-close,
.offcanvas.showing .offcanvas-header .btn-close,
#admissionFormOffcanvas .offcanvas-header .btn-close {
  background-color: rgba(255, 255, 255, 0.2) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e") !important;
  border-radius: 50% !important;
  padding: 10px !important;
  opacity: 0.95 !important;
  transition: all 0.3s ease !important;
}

.offcanvas.show .offcanvas-header .btn-close:hover,
.offcanvas.showing .offcanvas-header .btn-close:hover,
#admissionFormOffcanvas .offcanvas-header .btn-close:hover {
  background-color: #ff9100 !important;
  transform: rotate(90deg) !important;
}

.offcanvas.show .offcanvas-body,
.offcanvas.showing .offcanvas-body,
#admissionFormOffcanvas .offcanvas-body {
  padding: 28px 24px !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

/* Offcanvas Navbar styling improvements */
.offcanvas.show .navbar-nav .nav-link,
.offcanvas.showing .navbar-nav .nav-link,
#extraMenuOffcanvas .navbar-nav .nav-link {
  font-size: 1.02rem !important;
  font-weight: 600 !important;
  color: #052c65 !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  margin-bottom: 6px !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

/* Expanded & Open states: ensure the header dropdown has white text on a dark blue background */
.offcanvas.show .navbar-nav .nav-link.show,
.offcanvas.show .navbar-nav .nav-link[aria-expanded="true"],
.offcanvas.show .navbar-nav .nav-item.dropdown:hover > .nav-link,
.offcanvas.showing .navbar-nav .nav-link.show,
.offcanvas.showing .navbar-nav .nav-link[aria-expanded="true"],
.offcanvas.showing .navbar-nav .nav-item.dropdown:hover > .nav-link,
#extraMenuOffcanvas .navbar-nav .nav-link.show,
#extraMenuOffcanvas .navbar-nav .nav-link[aria-expanded="true"],
#extraMenuOffcanvas .navbar-nav .nav-item.dropdown:hover > .nav-link {
  background-color: #052c65 !important;
  color: #ffffff !important;
}

.offcanvas.show .navbar-nav .nav-link:hover,
.offcanvas.show .navbar-nav .nav-link.active,
.offcanvas.showing .navbar-nav .nav-link:hover,
.offcanvas.showing .navbar-nav .nav-link.active,
#extraMenuOffcanvas .navbar-nav .nav-link:hover,
#extraMenuOffcanvas .navbar-nav .nav-link.active {
  background-color: #e8f1ff !important;
  color: #0d6efd !important;
  transform: translateX(4px) !important;
}

/* Offcanvas form elements customization */
.admission-form-wrapper {
  background: transparent !important;
}

.admissionForm {
  background: transparent !important;
  color: #052c65 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.admission-form-wrapper .form-label {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #052c65 !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  display: block !important;
}

.admission-form-wrapper .form-control,
.admission-form-wrapper .form-select {
  border: 1px solid #cdd8ea !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-size: 0.95rem !important;
  background-color: #f8fbff !important;
  color: #1f2937 !important;
  box-shadow: none !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.admission-form-wrapper .form-control:focus,
.admission-form-wrapper .form-select:focus {
  border-color: #0d6efd !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12) !important;
}

.admission-form-wrapper .btn-submit-inquiry {
  background: linear-gradient(135deg, #052c65 0%, #0d6efd 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.98rem !important;
  letter-spacing: 0.5px !important;
  border-radius: 14px !important;
  padding: 14px 20px !important;
  border: none !important;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2) !important;
  transition: all 0.3s ease !important;
}

.admission-form-wrapper .btn-submit-inquiry:hover {
  background: linear-gradient(135deg, #ff9100 0%, #ff6b00 100%) !important;
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3) !important;
  transform: translateY(-2px) !important;
}

/* Contact and social panels in offcanvas */
.offcanvas-info-panel {
  background: #f7faff !important;
  border: 1px solid #e3f2fd !important;
  border-radius: 16px !important;
  padding: 20px !important;
  margin-top: 24px !important;
}

.offcanvas-info-panel h5 {
  color: #052c65 !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  margin-bottom: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.offcanvas-info-panel .info-link {
  color: #0d6efd !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.offcanvas-info-panel .info-link:hover {
  color: #052c65 !important;
}

/* Footer Journey Banner Card Style */
.journey-banner-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 40px;
  box-shadow: 0 12px 30px rgba(5, 44, 101, 0.06);
  border: 1px solid rgba(227, 242, 253, 0.7);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Accent top border gradient */
.journey-banner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff9100 0%, #ffd700 30%, #052c65 100%); /* Gold/Orange to Navy Blue gradient */
}

.journey-banner-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 25px;
}

.journey-logo-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.06);
  border: 1px solid rgba(13, 110, 253, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 2px 5px rgba(5, 44, 101, 0.05);
}

.journey-icon {
  font-size: 26px;
  color: #052c65; /* Navy blue */
}

.journey-text-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.journey-title {
  color: #052c65; /* Navy blue title */
  font-size: 22px;
  font-weight: 750;
  margin: 0 0 6px 0;
  font-family: 'Outfit', 'Inter', sans-serif;
  letter-spacing: -0.2px;
}

.journey-subtitle {
  color: #5c677d; /* Soft description grey */
  font-size: 15px;
  margin: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

.journey-apply-btn {
  background: #052c65; /* Navy blue */
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(5, 44, 101, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Outfit', 'Inter', sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.journey-apply-btn:hover {
  background: #ff9100; /* website brand orange */
  box-shadow: 0 6px 20px rgba(255, 145, 0, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.journey-btn-arrow {
  background: #ffffff;
  color: #052c65; /* Navy blue */
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.3s ease;
}

.journey-apply-btn:hover .journey-btn-arrow {
  color: #ff9100; /* Matches hover accent */
  transform: translateX(2px);
}

/* Tablet Responsive styling */
@media (max-width: 991px) {
  .journey-banner-card {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
  }

  .journey-banner-content {
    flex-direction: row; /* Keep icon on the left, text on the right */
    gap: 20px;
    align-items: center;
    text-align: left;
    width: 100%;
  }

  .journey-text-area {
    align-items: flex-start;
    text-align: left;
  }

  .journey-title {
    font-size: 20px;
  }

  .journey-subtitle {
    font-size: 14px;
  }
}

/* Mobile Responsive styling */
@media (max-width: 576px) {
  .journey-banner-card {
    padding: 25px 20px;
    border-radius: 12px;
  }

  .journey-logo-circle {
    width: 54px;
    height: 54px;
    gap: 15px; /* slightly smaller gap for narrow screens */
  }

  .journey-banner-content {
    gap: 15px;
  }

  .journey-icon {
    font-size: 22px;
  }

  .journey-subtitle {
    display: none;
  }

  .journey-apply-btn {
    padding: 10px 20px;
    font-size: 15px;
  }
}
