/* =========================================================
   THEME VARIABLES
   ========================================================= */
   :root {
    /* Brand */
    --purple: #6a2c91;
    --purple-dark: #5a237e;
    --green: #18b15a;
    --deep-green: #098346;
    
    /* Neutrals */
    --white: #ffffff;
    --black: #000000;
    --text-dark: #111111;
    --text-muted: #585858;
  
    /* UI */
    --border: #e5e5e5;
    --border-soft: #dddddd;
    --surface: #f9f9f9;
    --surface-light: #f8f9fa;
  
    /* Effects */
    --shadow-soft: 0 6px 16px rgba(0, 0, 0, 0.10);
    --overlay-dark: rgba(0, 0, 0, 0.25);
  
    /* Links */
    --link: var(--text-muted);
    --link-hover: var(--green);
  }
  
  /* =========================================================
     RESET / BASE
     ========================================================= */
  * {
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
    overflow-x: hidden;
  }
  
  body {
    font-family: 'Nunito Sans', 'AdorshoLipi', sans-serif !important;
    overflow-x: hidden;
    background-image: url(img/webb-pattern.webp);
    background-attachment: fixed;
    color: var(--text-dark);
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  .wrapper {
    background: var(--white);
  }
  
  /* =========================================================
     FONT SIZE UTILITIES
     ========================================================= */
  .fs-10 { font-size: 10px !important; }
  .fs-11 { font-size: 11px !important; }
  .fs-12 { font-size: 12px !important; }
  .fs-13 { font-size: 13px !important; }
  .fs-14 { font-size: 14px !important; }
  .fs-15 { font-size: 15px !important; }
  .fs-16 { font-size: 16px !important; }
  .fs-17 { font-size: 17px !important; }
  .fs-18 { font-size: 18px !important; }
  .fs-19 { font-size: 19px !important; }
  .fs-20 { font-size: 20px !important; }
  
  .text-success{
    color: var(--green) !important;
  }
  
  /* =========================================================
     ANIMATION
     ========================================================= */
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  
  /* =========================================================
     TOP BAR
     ========================================================= */
  .top-green-line {
    height: 4px;
    width: 100%;
    background: var(--green);
    border-radius: 5px 5px 0 0;
  }
  
  /* .topbar {
    background: var(--purple);
    height: 45px;
    position: relative;
  }
  
  .admission-pill {
    position: absolute;
    left: 28px;
    top: 7px;
    display: flex;
    align-items: center;
    padding: 5px 12px;
    background: transparent;
    border: 1px solid var(--white);
    border-radius: 10px;
    color: var(--white);
    font-size: 13px;
    transition: .2s ease;
  }
  .admission-pill:hover {
    background: var(--purple-dark);
    color: var(--white);
  }
  
  .lang-pill {
    position: absolute;
    right: 28px;
    top: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: transparent;
    border: 1px solid var(--white);
    border-radius: 10px;
    color: var(--white);
  }
  .lang-pill img {
    width: 25px;
    height: 18px;
    border-radius: 2px;
    object-fit: cover;
  }
   */

   .topbar {
  background: var(--purple);
  min-height: 45px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* left group + right group */
  gap: 10px;
}

/* left buttons in a row */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;  /* wraps on small screens */
}

/* right side */
.topbar-right {
  display: flex;
  align-items: center;
}

/* shared pill style */
.topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--white);
  border-radius: 10px;
  color: var(--white);
  font-size: 13px;
  transition: .2s ease;
  white-space: nowrap;
}

.topbar-pill:hover {
  background: var(--purple-dark);
  color: var(--white);
}

.lang-pill img {
  width: 25px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
}
  /* =========================================================
     SLIDER / BANNER
     ========================================================= */
  .banner-slider {
    position: relative;
    height: 250px;
    border-top: 1px solid var(--text-dark);
    overflow: hidden;
  }
  
  .banner-slider .carousel,
  .banner-slider .carousel-inner,
  .banner-slider .carousel-item,
  .banner-slider .carousel-item img {
    height: 100%;
  }
  
  .banner-slider .carousel-item img {
    width: 100%;
    object-fit: cover;
  }
  
  .banner-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-dark);
    z-index: 2;
    pointer-events: none;
  }
  
  .banner-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 28px;
  }
  
  .school-logo {
    width: 95px;
    height: 95px;
    border-radius: 6px;
    overflow: hidden;
    flex: 0 0 auto;
    background: var(--black);
    display: grid;
    place-items: center;
  }
  .school-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .banner-text span {
    color: var(--white);
    font-size: 25px;
    line-height: 1.25;
    text-shadow:
      -1px -1px 10px var(--black),
       1px -1px 10px var(--black),
      -1px  1px 10px var(--black),
       1px  1px 10px var(--black);
  }
  
  .banner-text p {
    margin-top: 8px;
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.70);
  }
  
  /* =========================================================
     NAVBAR + DROPDOWN
     ========================================================= */
   
  .menubar .nav-link {
    padding: .6rem 1rem;
  }
  
  .dropdown-mega {
    min-width: 420px;
    max-width: 100%;
  }
  
  /* mobile: dropdown full width & scroll if long */
  @media (max-width: 991.98px) {
    .menubar{
        padding: .5rem !important;
    }
    .navbar-toggler{
      background-color: #f4f4f4;
      padding: 5px 7px;
    }
    .navbar-toggler:focus{
      box-shadow: 0 0 0 1px;
    }
    .navbar-toggler-icon{
      width: 1em !important;
      height: 1em !important;
    }
    .menubar .navbar-nav {
      width: 100%;
      padding: 1rem;
      
    }
  
    .menubar .nav-item {
      width: 100%;
    }
  
    .menubar .dropdown-menu {
      position: static !important;
      width: 100%;
      max-height: 60vh;
      overflow-y: auto;
      border: 0;
      box-shadow: none;
      padding: .5rem 0;
    }
  
    .dropdown-mega {
      min-width: 100%;
      padding: .75rem 1rem;
    }
  }
  .navbar {
    position: relative;
    z-index: 999;
  }
  .navbar,
  .navbar-collapse,
  .navbar-nav {
    overflow: visible !important;
  }
  
  .navbar-nav .nav-link {
    font-size: 12.5px;
    color: var(--nav-text, var(--text-dark));
    border-right: 1px solid var(--border);
    padding: 10px;
    letter-spacing: .5px;
  }
  
  .dropdown-item {
    font-size: 12.5px;
  }
  
  .dropdown-menu {
    padding: 10px;
    border-radius: 0;
    border-top: 5px solid var(--deep-green);
    box-shadow: var(--shadow-soft);
    z-index: 9999 !important;
  
    /* forced proper dropdown position */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
  
    display: none;
    max-height: none !important;
    overflow: visible !important;
  }
  
  .dropdown-menu li {
    list-style: none;
  }
  
  /* Parent dropdown relative */
  .navbar-nav > li.dropdown,
  .navbar-nav > li.dropend,
  .navbar-nav > li.dropstart {
    position: relative;
  }
  
  /* Desktop hover open */
  @media (min-width: 992px) {
    .navbar-nav li.dropdown:hover > .dropdown-menu {
      display: block !important;
    }
  }
  
  /* Submenu */
  .dropdown-submenu {
    position: relative !important;
  }
  
  .dropdown-submenu > .dropdown-menu {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    display: none;
    z-index: 10000 !important;
  }
  
  @media (min-width: 992px) {
    .dropdown-submenu:hover > .dropdown-menu {
      display: block !important;
    }
  
    .dropdown-submenu > a::after {
      content: "›";
      float: right;
      font-size: 18px;
      margin-top: -2px;
      color: var(--text-dark);
    }
  }
  
  /* Mobile view layout */
  @media (max-width: 767.98px) {
  
    /* banner height should grow naturally */
    .banner-slider {
      height: auto;
    }
  
    /* make content a normal block (not overlay) */
    .banner-content {
      position: static;          /* remove absolute */
      width: 100%;
      padding: 10px 12px;
      background: var(--purple); /* theme color from root */
      display: flex;
      flex-direction: row;       /* logo + text in one row */
      align-items: center;
      gap: 10px;
      justify-content: center;
      text-align: left;
    }
  
    /* smaller logo */
    .school-logo {
      width: 60px;
      height: 60px;
    }
  
    /* responsive text sizes */
    .banner-text span {
      font-size: 16px;
      line-height: 1.3;
      display: block;
    }
  
    .banner-text p {
      font-size: 14px;
      margin: 2px 0 0;
    }
  
    /* slider becomes second row */
    #headerCarousel,
    #headerCarousel .carousel-inner,
    #headerCarousel .carousel-item,
    #headerCarousel .carousel-item img {
      height: 200px; /* adjust if needed */
    }
  
    /* overlay should only cover slider (optional) */
    .banner-overlay {
      top: 0;
      height: 200px;  /* same as carousel height */
    }
  }
  
  /* Mobile submenu */
  .dropdown-submenu.show > .dropdown-menu {
    display: block !important;
  }
  
  /* Hover: green bg + white text */
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    background: var(--deep-green) !important;
    color: var(--white) !important;
  }
  
  /* =========================================================
     NOTICE BOARD
     ========================================================= */
  .notice {
    background: url("img/welcome_grad.png") repeat-x scroll left top transparent;
    border: 1px solid var(--border);
    background-position: center;
    background-size: cover;
  }
  
  .notice i {
    color: var(--green);
  }
  
  .notice li {
    list-style-type: none;
    padding-top: 3px;
  }
  
  .notice li a {
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px dotted var(--text-muted);
    transition: .2s ease;
  }
  .notice li a:hover {
    color: var(--link-hover);
  }
  
  /* =========================================================
     IMPORTANT LINKS
     ========================================================= */
  .important-link ul li a {
    color: var(--text-dark);
    font-size: 12px;
    transition: 0.3s;
  }
  .important-link ul li a:hover {
    color: var(--green);
  }
  .important-link ul li:hover {
    background: var(--surface);
  }
  
  /* =========================================================
     SCHOOL AT A GLANCE (school-glance)
     ========================================================= */
  .school-glance ul li i {
    color: var(--green);
  }
  
  .school-glance ul li a {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: capitalize;
    transition: 0.5s;
  }
  .school-glance ul li a:hover {
    color: var(--green);
  }
  
  .form-control:focus, .form-select:focus {
      box-shadow: none !important;
  }