<style>
    html, body {
      margin: 0;
      padding: 0;
      height: 100%;
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background-color: #fdf6ec;
      position: relative;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      top: 55%;
      left: 50%;
      transform: translate(-50%, -50%);
      
      background: url('/collegelogo.jpg') no-repeat center center;
      
      background-size: 600px;
      filter:none;
      opacity: 0.05;
      z-index: 0;
      width: 600px;
      height: 600px;
      pointer-events: none; 
    }

    .college-logo {
      height: 100px;
      width: auto;
      border-radius: 6px;
    }

    .naac-logo {
      height: 80px;
      width: auto;
      border-radius: 6px;
    }

    .college-title {
      font-size: 1.8rem;
      font-weight: bold;
      color: crimson; 
      margin-bottom: 0.2rem;
    }

    .college-info {
      text-align: center;
    }

    .college-info .small {
      font-size: 0.9rem;
      line-height: 1.4;
      color: white;
    }

    .sub-nav .nav-link {
      font-size: 0.95rem;
      font-weight: 500;
      transition: 0.3s;
    }

    .sub-nav .navbar-nav .nav-link:hover {
     background-color: #ff9933 !important;  /* Saffron (or choose your color) */
  color: white !important;     /* Make text white on hover */
  border-radius: 4px;          /* Optional: rounded hover effect */
  padding: 6px 12px;           /* Optional: better spacing on hover */
    }

    footer {
      background-color: #3e2723 !important; /*#343a40; */
      color: #ccc;
      padding: 20px 0;
      text-align: center;
      margin-top: auto;
    }

    footer a {
      color: #f8c471;
      text-decoration: none;
    }

    footer a:hover {
      text-decoration: underline;
    }

    .notification-box {
      position: fixed;
      top: 185px;
      right: 7px;
      background-color: #fff8dc;
      border: 1px solid #ffa500;
      width: 300px;
      padding: 15px;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      z-index: 1050;
      animation: fadeIn 0.5s ease-in-out;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeOut {
      from { opacity: 1; transform: translateY(0); }
      to { opacity: 0; transform: translateY(-10px); }
    }

    .fade-out {
      animation: fadeOut 0.5s ease-in-out forwards;
    }

    .notification-box h5 {
      margin-bottom: 10px;
      color: #d35400;
    }

   .notification-box ul {
  list-style-type: disc; /* Show bullets */
  padding-left: 20px;     /* Indent bullets */
  margin-bottom: 0;
}

.notification-box ul li {
  margin-bottom: 8px;
}

.notification-box a {
  text-decoration: underline; /* Underline text */
  color: #2c3e50;
  font-size: 0.95rem;
}


    .notification-box a:hover {
      text-decoration: underline;
    }

    .dismiss-btn, .show-btn {
      margin-top: 10px;
      background-color: #ffa500;
      border: none;
      padding: 5px 10px;
      color: #fff;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.85rem;
    }

    .dismiss-btn:hover, .show-btn:hover {
      background-color: #e69500;
    }

    .show-btn {
      position: fixed;
      top: 140px;
      right: 30px;
      display: none;
      z-index: 998;
    }

    @media (max-width: 768px) {
      .notification-box, .show-btn {
        width: 90%;
        right: 5%;
        top: 150px;
      }

      .college-header {
        flex-direction: column;
        text-align: center;
      }

      .naac-logo {
        margin-top: 1rem;
        align-self: center;
      }
    }
    
/* Multi-level dropdown for Bootstrap 5 */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: 0.1rem; /* prevent overlap with parent */
  position: absolute !important; /* ← CRITICAL fix */
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1050;
  background-color: #fff;
  min-width: 180px;
  white-space: nowrap;
  transition: opacity 0.2s ease-in-out;
}

.navbar-nav .dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease-in-out;
}


.navbar-nav .dropdown-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  background-color: #fff;
  border-radius: 0.25rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-item.dropdown:hover > .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-menu {
  will-change: opacity, visibility;
}

.navbar-nav > .dropdown > .dropdown-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

/* Submenu container */
.dropdown-submenu {
  position: relative;
}

 /* Keep down arrow for main dropdown toggle only */
.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

 /* Remove Bootstrap’s arrow on .has-submenu by avoiding dropdown-toggle */
.has-submenu::after {
  content: "\25B6"; /* Unicode for ▶ */
  float: right;
  margin-right: 8px;
  margin-top: 4px;
  font-size: 0.7rem;
  color: #333;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #ff9933;
  color: white;
}

.saffron-bg {
  background-color: #ff9933 !important; /* Saffron */
}

input.form-control:focus {
  box-shadow: none;
  border-color: #0d6efd;
}


footer img {
  max-height: 60px;
  object-fit: contain;
}
/* Force correct positioning for multi-level submenus */
.navbar .dropdown-menu .dropdown-submenu {
  position: relative;
}

.navbar .dropdown-menu .dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  position: absolute;
  margin-top: 0;
  margin-left: 0;
  z-index: 1060;
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.navbar .dropdown-menu .dropdown-submenu:hover > .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-pills .nav-link:hover {
  background-color: #ff9933 !important; /* Light gray background on hover */
  color: white !important;            /* Bootstrap primary color */
  border-radius: 0.375rem;   /* Optional rounded corners */
  transition: all 0.2s ease-in-out;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
   cursor: pointer;
}

.nav-pills .nav-link.active {
  background-color: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

@keyframes scrollFade {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.notification-scroll-wrapper {
  max-height: 120px;
  overflow-y: auto;
  border: 1px solid #eee;
  padding: 5px;
  margin-bottom: 10px;
}

.notification-scroll-list {
  list-style-type: disc;
  padding-left: 18px;
  margin: 0;
}

.notification-scroll-list li {
  margin-bottom: 8px;
}

.notification-scroll-list a {
  text-decoration: underline;
  color: #2c3e50;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.notification-scroll-list a:hover {
  color: #d35400;
}

#pdfViewerContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#pdfCanvas {
    background: transparent !important;
    max-width: 100%;
    height: auto;
}

.faculty-card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.faculty-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.faculty-img {
    object-fit: cover;
    height: 250px;
}

#dFormViewer {
    position: fixed;
    top: 10%;
    right: 5%;
    width: 60%;
    max-width: 800px;
    height: 95%;
    background-color: #fff;
    border: 2px solid #007bff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
    z-index: 1050;
    padding: 10px;
    display: none;
    overflow: hidden;
}

#dFormViewerHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

#dFormViewer iframe {
    width: 100%;
    height: calc(100% - 45px);
    border: none;
}

/* D-Form Viewer Floating Panel Styles */
.dform-viewer-container {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 92%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    border-radius: 8px;
    border: 1px solid #ccc;
    z-index: 10;
    overflow: hidden;
    padding: 0;
}

.dform-viewer-header {
  cursor: move;
  background: #f8f9fa;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.dform-viewer-actions > * {
    margin-left: 8px;
}

.dform-viewer-container iframe {
    width: 100%;
    height: calc(100% - 50px);
    border: none;
}

.cursor-move {
  cursor: move !important;
}

/* === Index Page Section Styling === */
.index-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
}

.index-section {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.index-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.index-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #b22222; /* matches crimson tone */
    border-bottom: 2px solid #ff9933; /* matches saffron hover */
    padding-bottom: 8px;
}

.index-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}


/* === Subject List Hover + Active Styling === */
#subjectList .list-group-item {
  position: relative;
  border: 0;
  border-bottom: 1px solid #eee;
  border-radius: 0 !important;
  padding: .6rem .75rem;
  background: transparent;
  cursor: pointer;
  transition: background-color .15s ease-in-out, color .15s ease-in-out;
}

/* Hover (when not active) */
#subjectList .list-group-item:not(.active):hover {
  background: rgba(13,110,253,.08); /* light primary tint */
  color: #0d6efd;
}

/* Active (selected subject) */
#subjectList .list-group-item.active {
  background: #ff9933;
  color: #fff;
}

/* Active + Hover (same as active, no jump) */
#subjectList .list-group-item.active:hover {
  background: #0b5ed7;
  color: #fff;
}

/* Left accent bar (no layout shift) */
#subjectList .list-group-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
}

#subjectList .list-group-item:not(.active):hover::before,
#subjectList .list-group-item.active::before {
  background: #0d6efd;
}

</style>