/***** 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: #6c5ce7;
    /* purple */
    --brand-2: #00d1b2;
    /* teal */
    --ink: #222;
}

html,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);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 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(--brand-2), var(--brand));
    color: #fff;
}

.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;
}

.nav-link:hover, .nav-link.active {
    color: blue;
}
/* 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);
}

.dropdown-scroll {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

.dropdown-scroll::-webkit-scrollbar {
    width: 6px;
}
.dropdown-scroll::-webkit-scrollbar-thumb {
    background: rgba(107, 72, 255, 0.6);
    border-radius: 10px;
}
.dropdown-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* navbar-responsive */

/* Ensure logo and text scale properly on smaller screens */
.navbar-brand img {
  max-width: 80px;
  height: auto;
}
.navbar-brand span {
  font-size: 1rem;
  font-weight: 600;
}

/* 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;
  }
}

/* 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);
}


/* 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");
}

/* hero */
.hero {
    padding: 140px 0 40px;
    background: linear-gradient(180deg, #f7f6ff 0%, #ffffff 100%);
}

.hero-bg {
    position: absolute;
    inset: 0 auto auto 40%;
    width: 100%;
    /* max-width: 100%; */
    height: 100%;
    opacity: .1;
    background: rgb(0, 0, 0);
    background-blend-mode: multiply;
    /* background-position: center; */
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateX(-40%);
    pointer-events: none;
}

.btnbanner{
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    /* border-radius: 9999px; */
    transition: background-color .2s ease;
    text-decoration: none;
}

.btnban{
    background: linear-gradient(90deg, var(--brand-2), var(--brand)) border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
            border-width: 3px;
            border-style: solid;
            border-image: linear-gradient(to right, #6c5ce7, #00d1b2) 1;
            background-color: transparent;
            color: var(--ink);
            transition: all 0.3s ease;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: background-color .2s ease;
    text-decoration: none;
}

.text-gradient {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.float {
    animation: float 5s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero {
        padding: 160px 0 40px; /* More space for stacked navbar in tablet/mobile */
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 180px 0 40px; /* Extra space for small phones */
    }
}

/* reusable cards */
.feature-card,
.plan-card,
.pdf-card,
.t-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,
.plan-card:hover,
.pdf-card:hover,
.t-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;
}

.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;
}

/* spacing utility */
.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* modal form css */
.modal{
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.215);
    border-radius: 16px;   
}
.modal-dialog{
    margin: 1.75rem auto;
}
.modal-content{
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 15px 20px -12px rgba(0, 0, 0, 0.957);
}

.modal-header, .modal-body{
    background: linear-gradient(30deg, var(--brand), var(--brand-2));
    align-items: center;
}

.modal-header {
    border-bottom: none;
    color: #fff;
    
}

.modal .needs-validation{
    padding: 20px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    border-radius: 12px;
}

/* Floating Circle */
#chat-circle {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  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: linear-gradient(90deg, var(--brand), var(--brand-2));
  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:linear-gradient(90deg, var(--brand), var(--brand-2));
  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: linear-gradient(90deg, var(--brand), var(--brand-2));
  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;       
  right: 16px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));   /* 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: #ffffff 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: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    padding: 10px;
    border-radius: 5px;
}