/***** deterrent only — hurts UX; optional *****/
html, body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}
:root {
  --brand: #5b5b5b;
  /* purple */
  --brand-2: #00d1b2;
  /* teal */
  --ink: #222;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--ink);
  padding-top: 90px;
}

/* navbar */
.navbar {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 1030;
  /* margin-top: 40px;  */
}

.navbar-glass {
  position: fixed;
  top: 40px;  /* height of contact bar */
  left: 0;
  width: 100%;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-nav .nav-link {
  color: rgb(109, 11, 109);
}

.container .navbar-brand span {
  color: rgb(109, 11, 109);
}

.btnnav {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: background-color .2s ease;
  text-decoration: none;
}

.btnnav:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.btnexam {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: white !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: background-color .2s ease;
  text-decoration: none;
}

.btnexam:hover {
  background: #ffca28;
  color: purple !important;
}

/* Scrollable dropdown */
.dropdown-scroll {
  max-height: 250px;
  /* adjust as you like */
  overflow-y: auto;
  /* enables vertical scrolling */
  overflow-x: hidden;
  /* prevent horizontal scroll */
}

/* Smooth scrollbar styling (optional, modern browsers) */
.dropdown-scroll::-webkit-scrollbar {
  width: 6px;
}

.dropdown-scroll::-webkit-scrollbar-thumb {
  background: rgba(109, 11, 109, 0.6);
  border-radius: 10px;
}

.dropdown-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

/* Dropdown custom style to match your theme */
.navbar .dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 0.5rem 0;
}

.navbar .dropdown-item {
  color: rgb(109, 11, 109);
  transition: background 0.2s ease;
}

.navbar .dropdown-item:hover {
  background: rgba(109, 11, 109, 0.1);
  color: rgb(109, 11, 109);
}

/* navbar-responsive */

/* Ensure logo and text scale properly on smaller screens */
.navbar-brand img {
  max-width: 80px;
  height: auto;
}

.navbar-brand span {
  color: purple;
  font-size: 1rem;
  font-weight: 600;
}

.nav-link {
    color: purple;
    font-weight: 500;
    margin-left: 1.5rem;
    white-space: nowrap;
    /* Prevent text wrapping */
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

/* Make nav links stack nicely on mobile */

/* ========== Responsive adjustments ========== */

/* On smaller screens */
@media (max-width: 991px) {
  .navbar-brand img {
    max-width: 70px;
    height: auto;
  }

  .navbar-brand span {
    font-size: 0.9rem;
  }

  .navbar-nav {
    gap: 10px;
    padding: 1rem 0;
  }

  .btnexam,
  .btnnav {
    display: block;
    width: 100%;
    text-align: center;
    margin: 5px 0;
  }
}

/* On very small phones (<576px) */
@media (max-width: 576px) {
  .contact-bar span {
    display: none; /* only show icons for space */
  }

  .contact-bar i {
    font-size: 1.2rem;
  }
}

/* Toggler icon contrast fix (hamburger visible on light bg) */
.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28109,11,109,0.9%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Contact Bar Styles */
.contact-bar {
  background: #02c09ad5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  padding: 0.4rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1031;
}

/* Push main navbar below contact bar */
/* .main-navbar {
  
} */

.contact-link {
  color: var(--ink);
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--brand);
}

/* New Hero Styles */
.hero-new {
  height: 100vh;
  background-image: url('/img/bannerhome.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.z-index-1 {
  z-index: 1;
}

.slide-down {
  animation: slideDown 1.5s ease-out;
}

.btnban1 {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: white !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: background-color .2s ease;
  text-decoration: none;
}

.btnban1:hover {
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  color: white !important;
}

.btnban2 {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: white !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: background-color .2s ease;
  text-decoration: none;
}

.btnban2:hover {
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  color: white !important;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* reusable cards */
.feature-card,
.exam-card {
  background: #f9b8ff30;
  border: 1px solid rgba(0, 0, 0, 0.089);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 15px 20px -12px rgba(0, 0, 0, 0.957);
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover,
.exam-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 28px -12px rgba(0, 0, 0, .12);
}

.feature-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 20px;
  margin-bottom: 10px;
}

.exam-title {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  color: transparent;
  font-weight: bold;
}

.plan-card .badge {
  font-weight: 600;
  margin-bottom: 8px;
}

.syllabus-item {
  padding: 14px 18px;
  border: 1px dashed rgba(0, 0, 0, .15);
  border-radius: 12px;
  background: #e3ffde;
}

/* Section Styling */
#mba-updates {
  background: #fff;
}

.image-slider {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 350px;
  /* fix height so images show */
}

.image-slider img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.image-slider img.active {
  opacity: 1;
}

/* Notification Card */
.notification-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  height: 350px;
  display: flex;
  flex-direction: column;
}

.notification-card .card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

.notification-card .highlight {
  color: #b30059;
}

.notification-list {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 10px;
}

.notification {
  background: #f9f9f9;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 10px;
  transition: transform 0.2s;
}

.notification:hover {
  transform: scale(1.02);
}

.notification a {
  color: #b30059;
  font-weight: bold;
  text-decoration: none;
}

.notification a:hover {
  text-decoration: underline;
}

/* Scrollbar styling */
.notification-list::-webkit-scrollbar {
  width: 6px;
}

.notification-list::-webkit-scrollbar-thumb {
  background: #b30059;
  border-radius: 10px;
}


/* spacing utility */
.py-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Section title */
#top-mba-colleges .section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

#top-mba-colleges .highlight {
  color: #7a1c3c;
}

#top-mba-colleges .section-desc {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #333;
}

/* College badges */
.college-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.college-badge {
  padding: 8px 18px;
  border: 2px solid #7a1c3c;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.95rem;
  color: #7a1c3c;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.college-badge:hover {
  background: #7a1c3c;
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 15px rgba(122, 28, 60, 0.25);
}

/* See all link */
.see-all-link {
  font-weight: 600;
  text-decoration: none;
  color: #7a1c3c;
  position: relative;
  transition: color 0.3s ease;
}

.see-all-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: #7a1c3c;
  transition: width 0.3s ease;
}

.see-all-link:hover {
  color: #000;
}

.see-all-link:hover::after {
  width: 100%;
}

/* Right side college gallery */
.college-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.college-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.college-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.college-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.college-card:hover img {
  transform: scale(1.1);
}

/* Collapse to one line */
.college-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

/* Initially show only ~1 row */
.college-list.collapsed {
  max-height: 45px;
  /* Adjust depending on your badge height */
}

/* When expanded show full */
.college-list.expanded {
  max-height: 500px;
  /* enough space to show all */
}

.see-all-link {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: white !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: background-color .2s ease;
  text-decoration: none;
}

.see-all-link:hover {
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  color: white !important;
}

/* Floating Circle */
#chat-circle {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, orange, green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 9999;
}

#chat-circle img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.hidden {
  display: none !important;
}


/* ================= CHAT WIDGET ================= */
#chat-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 340px;
  height: 460px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  overflow: hidden;
  z-index: 9999;
}

#chat-widget.hidden {
  display: none;
}

/* ================== RESPONSIVE FIX ================== */
@media (max-width: 768px) {
  #chat-widget {
    width: 90%;        /* ✅ take almost full width */
    height: 70vh;      /* ✅ use viewport height */
    right: 5%;         /* ✅ center it with margins */
    bottom: 20px;      /* ✅ keep some gap from bottom */
  }
}

@media (max-width: 480px) {
  #chat-widget {
    width: 100%;       /* ✅ full width on very small screens */
    height: 50vh;      /* ✅ taller for usability */
    right: 0;
    bottom: 0;
    border-radius: 0;  /* ✅ flat edges like mobile apps */
  }
}

/* Header */
#chat-header {
  background: #029273bf;
  color: #fff;
  padding: 12px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
}

#chat-header .chat-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 8px;
}

#chat-header .chat-title {
  flex: 1;
  font-size: 14px;
}

#chat-header #chat-close {
  cursor: pointer;
  font-size: 16px;
}

/* Chat Body */
#chat-box {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px;
  overflow-y: auto;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bot-msg p {
  margin: 0;
}

/* Options */
.chat-options {
  margin-top: 8px;
}

.chat-options button {
  border: 1px solid #029273bf;
  background: #fff;
  color: #029273bf;
  padding: 6px 12px;
  margin-right: 6px;
  border-radius: 20px;
  cursor: pointer;
}

.chat-options button:hover {
  background: #029273bf;
  color: #fff;
}

/* Input Area */
#chat-input-area {
  display: flex;
  border-top: 1px solid #ddd;
  flex: 0 0 auto;
}

#chat-input {
  flex: 1;
  padding: 8px;
  border: none;
  outline: none;
  font-size: 14px;
}

#chat-send {
  background: #029273bf;
  color: white;
  border: none;
  padding: 0 14px;
  cursor: pointer;
  font-size: 16px;
}

/* Message bubbles */
.bot-msg, .user-msg {
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 80%;
  word-wrap: break-word;        /* ✅ prevent overflow of long text */
  overflow-wrap: anywhere;      /* ✅ modern wrap for long URLs/words */
  font-size: 15px;
  line-height: 1.4;
}

.bot-msg { background: #f1f1f1; align-self: flex-start; }
.user-msg { background: #dcf8c6; align-self: flex-end; }

/* Avatar tooltip */
.chat-tooltip{
  position: fixed;
  bottom: 150px;          /* sits above the avatar (avatar is bottom:20 + 60px high) */
  right: 16px;
  background: #029273;   /* match your header green */
  color: #fff;
  padding: 8px 12px;
  border-radius: 9999px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  z-index: 10000;        /* above the avatar */
  pointer-events: none;  /* clicks pass through to the avatar */
  animation: tooltipFloat 2.6s ease-in-out infinite;
}
.chat-tooltip.hidden{ display: none; }

/* little arrow */
.chat-tooltip::after{
  content:"";
  position:absolute;
  right: 28px;           /* centers arrow under the pill */
  bottom: -6px;
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #029273 transparent transparent transparent;
}

/* gentle float to draw attention (optional) */
@keyframes tooltipFloat{
  0%,100%{ transform: translateY(0); opacity: 1; }
  50%    { transform: translateY(-2px); opacity: .95; }
}

/* small screens: nudge it a bit closer to the avatar */
@media (max-width:480px){
  .chat-tooltip{ bottom: 100px; right: 16px; }
}

/* On smaller screens */
@media (max-width: 576px) {
  .bot-msg, .user-msg {
    max-width: 90%;        /* ✅ allow more room on mobile */
    font-size: 14px;       /* ✅ slightly smaller text */
    padding: 8px 10px;     /* ✅ less padding for tight spaces */
  }

  .chat-tooltip {
    bottom: 150px;          /* ✅ move tooltip closer */
    right: 20px;
    font-size: 12px;       /* ✅ smaller text in tooltip */
    padding: 6px 10px;
  }

  .chat-tooltip::after {
    right: 22px;           /* ✅ center arrow under pill */
  }
}

/* Extra small devices (≤350px) */
@media (max-width: 350px) {
  .bot-msg, .user-msg {
    max-width: 95%;       /* ✅ almost full width on ultra-narrow screens */
    font-size: 13px;
  }

  .chat-tooltip {
    right: 20px;
    bottom: 150px;
  }
}

/* Footer */
.footer-enhanced {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding-top: 3rem;
  padding-bottom: 2rem;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

.footer-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 0;
}

.footer-enhanced .container {
  position: relative;
  z-index: 1;
}

.footer-enhanced .footer-logo img {
  filter: brightness(0) invert(1);
}

.footer-enhanced .footer-link {
  color: #c9ccf1;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-enhanced .footer-link:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.footer-enhanced .footer-social {
  color: #ffffff;
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-enhanced .footer-social:hover {
  color: #c9ccf1;
  transform: scale(1.2);
}

.footer-enhanced .text-light {
  color: #e0e0ff !important;
}

.footer-enhanced .small {
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .footer-enhanced .col-md-6 {
    text-align: center;
  }

  .footer-enhanced .footer-logo {
    justify-content: center;
  }

  .footer-enhanced .footer-social {
    font-size: 1.75rem;
  }
}

/* Added for subheadings from images */
.subheading {
  background: var(--brand-2);
  color: white;
  padding: 10px;
  border-radius: 5px;
}