html {
  scroll-behavior: smooth;
}
/* Navbar active menu highlighting */
.navbar-nav .nav-link.active,
.navbar-nav .dropdown-item.active {
  color: #221b1b !important;
  background: #ffc107 !important;
  font-weight: 600;
  border-radius: 0.35rem;
}
.navbar-nav .dropdown-menu .dropdown-item.active {
  color: #fff !important;
  background: #1a5fa3 !important;
}
/* Minimal Staff Card Design */
.staff-minimal-card {
  background: #f8f9fa;
  border-radius: 0.75rem;
  box-shadow: 0 1px 6px 0 rgba(13,44,84,0.04);
  border: 1px solid #e3e6ed;
  transition: box-shadow 0.2s, border 0.2s, transform 0.2s;
}
.staff-minimal-card:hover {
  box-shadow: 0 4px 16px 0 rgba(13,44,84,0.10);
  border-color: #b6c2d2;
  transform: translateY(-4px);
}
.staff-minimal-card img {
  border: 2px solid #0d2c54;
}
/* Library Services & Facility Feature Card Styles */
.feature-card {
  background: #f8f9fa;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(13,44,84,0.06);
  border: 1px solid #e3eaf5;
  transition: box-shadow 0.18s, transform 0.18s;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.feature-card:hover {
  box-shadow: 0 8px 24px rgba(13,44,84,0.13);
  transform: translateY(-4px) scale(1.02);
}
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d2c54 60%, #1a5fa3 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(13,44,84,0.10);
}
/* Horizontal Library Staff Card Styles */
.staff-card-horizontal {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 140px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(13,44,84,0.08);
  border: 1px solid #e3eaf5;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.staff-card-horizontal:hover {
  box-shadow: 0 8px 28px rgba(13,44,84,0.13);
  transform: translateY(-4px) scale(1.02);
}
.staff-avatar-lg {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 3px solid #f8f9fa;
  box-shadow: 0 2px 8px rgba(13,44,84,0.10);
  background: #f8f9fa;
}
/* Trending Table Design: Consistent, Mobile-Friendly */
.trending-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.trending-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 1rem;
}
.trending-table th,
.trending-table td {
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
  border: 1px solid #e3e6ed;
  text-align: left;
}
.trending-table th {
  background: #0d2c54;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.trending-table tbody tr {
  transition: background 0.2s;
}
.trending-table tbody tr:hover {
  background: #f8f9fa;
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
@media (max-width: 767.98px) {
  .trending-table th,
  .trending-table td {
    font-size: 0.95rem;
    padding: 0.5rem 0.3rem;
    white-space: nowrap;
  }
}
  .staff-card-horizontal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 0;
  }
  .staff-avatar-lg {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
  }
  .staff-card-horizontal .card-body {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
/* Library Staff Card Styles */
.staff-card {
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(13,44,84,0.08);
  border: 1px solid #e3eaf5;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.staff-card:hover {
  box-shadow: 0 8px 28px rgba(13,44,84,0.13);
  transform: translateY(-4px) scale(1.02);
}
.staff-avatar {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border: 3px solid #f8f9fa;
  box-shadow: 0 2px 8px rgba(13,44,84,0.10);
  background: #f8f9fa;
}
/* Responsive college name for navbar */
.responsive-college-name {
  display: inline-block;
  font-size: 2rem;
  line-height: 1.1;
  word-break: break-word;
  max-width: 100vw;
  white-space: normal;
}
@media (max-width: 991.98px) {
  .responsive-college-name {
    font-size: 1.25rem;
    text-align: center;
    display: block;
  }
}
@media (max-width: 575.98px) {
  .responsive-college-name {
    font-size: 1.25rem;
    padding: 0 2px;
    line-height: 1.3;
  }
}
/* Department Cards Custom Styles */

/* Department Cards Custom Styles */
.dept-card {
  background: linear-gradient(135deg, #f8f9fa 60%, #e8f0fa 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(13,44,84,0.06);
  padding: 12px 8px 10px 8px;
  border: 1px solid #e3eaf5;
  transition: transform 0.16s cubic-bezier(.4,1.6,.6,1), box-shadow 0.16s;
  position: relative;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.dept-card:hover {
  transform: translateY(-7px) scale(1.025);
  box-shadow: 0 16px 36px rgba(13,44,84,0.13);
  border-color: #b6c8e6;
}

/* Properly defined dept-bg-icon class */
.dept-bg-icon {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 2.8rem;
  color: #0d2c54;
  opacity: 0.10;
  pointer-events: none;
  z-index: 1;
}
.bg-blue { background: linear-gradient(135deg, #0d2c54 60%, #1a5fa3 100%); }
.bg-orange { background: linear-gradient(135deg, #ff9800 60%, #ffb347 100%); }
.bg-green { background: linear-gradient(135deg, #43a047 60%, #7bc67e 100%); }
.bg-red { background: linear-gradient(135deg, #e53935 60%, #ff7675 100%); }

.dept-card h4 {
  color: #0d2c54;
  font-weight: 700;
  font-size: 0.93rem;
  margin-bottom: 2px;
  margin-top: 0;
  letter-spacing: 0.2px;
  z-index: 2;
}
.dept-desc {
  color: #555;
  font-size: 0.81rem;
  margin: 0 0 1px 0;
  line-height: 1.2;
  min-height: 14px;
  z-index: 2;
}
@media (max-width: 575.98px) {
.dept-card h4 {
  color: #0d2c54;
  font-weight: 900;
  font-size: 2.7rem;
  margin-bottom: 10px;
  margin-top: 0;
  letter-spacing: 1px;
  font-family: 'Merriweather', serif;
}
  }
  .dept-bg-icon {
    font-size: 1.5rem;
    right: 2px;
    bottom: 0;
  }
  .dept-card h4 {
    font-size: 0.71rem;
  }
  .dept-desc {
    font-size: 0.68rem;
    min-height: 8px;
  }
}
:root {
  --college-font: 'Merriweather', serif;
  --college-color: #0d2c54;
}
.college-name {
  font-family: var(--college-font);
  color: #000 !important;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.college-name.lg { font-size: 30px; }
.college-name.md { font-size: 22px; }
.college-name.sm { font-size: 18px; }

body {
      font-family: "Segoe UI", sans-serif;
    }
    .navbar {
      background: #0d2c54;
    }
   
    .navbar a {
      color: #fff !important;
      font-weight: 500;
    }
    .section-title {
      font-weight: 700;
      color: #0d2c54;
      margin-bottom: 20px;
    }
        /* About card styles */
        .about-card {
          background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
          padding: 22px;
          border-radius: 14px;
          box-shadow: 0 8px 26px rgba(13,44,84,0.06);
          border: 1px solid rgba(13,44,84,0.04);
        }
        .about-card h3 { color: #0d2c54; }
        .about-card .lead { color: #455; }
        .about-features .feature-item { display:flex; align-items:center; gap:10px; background:transparent; padding:6px 8px; border-radius:8px; }
        .feature-icon { width:40px; height:40px; border-radius:50%; background:#0d2c54; color:#fff; display:flex; align-items:center; justify-content:center; font-size:16px; }
        .feature-text { font-size:14px; color:#333; }
        .stat-grid .stat-item { text-align:left; }
        .stat-number { font-weight:700; color:#0d2c54; font-size:18px; }
        .stat-label { font-size:12px; color:#666; }
        .about-cta.btn { padding:10px 18px; border-radius:8px; background: linear-gradient(90deg,#1a5fa3,#0d2c54); border:none; }
        .about-visual { position:relative; }
        .about-img { height:220px; object-fit:cover; box-shadow: 0 8px 20px rgba(13,44,84,0.08); }
        .about-visual-badge { position:absolute; left:18px; bottom:18px; background:rgba(13,44,84,0.9); padding:8px 12px; border-radius:8px; display:flex; align-items:center; gap:8px; }

    /* Inner Page Design - Modern Cards & Headers */

    /* Improved page header for clarity */
    .page-header {
      background: linear-gradient(135deg, #f8f9fa 0%, #e8f0fa 100%);
      color: #0d2c54;
      padding: 40px 0;
      text-align: center;
      border-bottom: 2px solid #0d2c54;
    }
    .page-header h1 {
      font-size: 2.2rem;
      font-weight: 700;
      margin-bottom: 10px;
      color: #0d2c54;
      letter-spacing: 1px;
      text-shadow: 0 2px 8px rgba(13,44,84,0.04);
    }
    .page-subtitle {
      font-size: 1.08rem;
      color: #333;
      opacity: 0.92;
      margin-top: 6px;
      font-weight: 500;
    }

    .modern-card { background: #fff; border-radius: 12px; padding: 28px; margin-bottom: 24px; box-shadow: 0 4px 18px rgba(13,44,84,0.08); border-left: 5px solid #0d2c54; transition: all 0.3s ease; }
    .modern-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(13,44,84,0.12); }
    .modern-card h3 { color: #0d2c54; font-weight: 700; margin-top: 12px; margin-bottom: 14px; }
    .modern-card ul { padding-left: 20px; }
    .modern-card li { margin-bottom: 8px; color: #555; }

    .card-header-icon { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #0d2c54, #1a5fa3); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; }
    .card-highlight { margin-top: 16px; text-align: center; }
    .badge-vision, .badge-mission { background: #e8f0fa; color: #0d2c54; font-size: 12px; padding: 6px 14px; border-radius: 20px; font-weight: 600; }

    .sidebar-wrapper { position: sticky; top: 80px; z-index: 50; }
    .sidebar-modern { background: #f8fbff; border-radius: 12px; padding: 24px; border: 1px solid rgba(13,44,84,0.08); box-shadow: 0 4px 18px rgba(13,44,84,0.06); }
    .sidebar-modern h4 { color: #0d2c54; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid #0d2c54; }

    .fact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
    .fact-item i { width: 40px; height: 40px; border-radius: 50%; background: #0d2c54; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
    .fact-content { flex: 1; }
    .fact-label { font-size: 12px; color: #888; font-weight: 600; text-transform: uppercase; }
    .fact-value { font-size: 15px; color: #0d2c54; font-weight: 600; margin-top: 2px; }

    .contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
    .contact-item i { width: 36px; height: 36px; border-radius: 50%; background: #0d2c54; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; margin-top: 2px; }
    .contact-content { flex: 1; }
    .contact-label { font-size: 11px; color: #999; text-transform: uppercase; font-weight: 600; }
    .contact-value { font-size: 14px; color: #0d2c54; font-weight: 600; margin-top: 2px; }
    .contact-value a { color: #0d2c54; text-decoration: none; }
    .contact-value a:hover { text-decoration: underline; }

    .news-card {
      border-left: 4px solid #0d2c54;
      padding: 15px;
      background: #f8f9fa;
      margin-bottom: 15px;
    }

    /* FIXED 70/30 HERO SECTION */
.hero-section-fixed {
  display: flex;
  min-height: 500px;
  background-color: #0d2c54;
}

.hero-image-static {
  width: 100%;
  height: 100%;
  min-height: 300px; /* For mobile */
  background-size: cover;
  background-position: center;
}

.hero-content-fixed {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  color: #fff;
  height: 100%;
}

.hero-content-fixed .college-name {
  color: #fff;
  font-family: 'Merriweather', serif;
}

.hero-content-fixed .lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.hero-highlights {
  margin-top: 20px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 500;
}

.highlight-item i {
  color: #ffc107;
}

.hero-content-fixed .btn {
  background: #ffc107;
  color: #0d2c54;
  border: none;
  transition: all 0.3s ease;
}

.hero-content-fixed .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
  .hero-section-fixed {
    flex-direction: column;
  }
}

    /* GALLERY IMAGE FIX */
    .gallery-img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      border-radius: 6px;
    }

    .footer {
      background: #0d2c54;
      color: #fff;
      padding: 30px 0;
      font-size: 14px;
    }
    .demo-note {
      font-size: 12px;
      opacity: 0.8;
    }
    /* LATEST NEWS ENHANCED */
.news-card-new {
  background: #ffffff;
  border-radius: 8px;
  padding: 18px;
  height: 100%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  animation: fadeUp 0.8s ease forwards;
}

.news-card-new:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}
/* Ensure the dynamic `fixed-top` state pins the navbar to viewport top */
.navbar-main.fixed-top {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1100 !important;
  box-shadow: 0 2px 12px rgba(13,44,84,0.16);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.news-date {
  display: inline-block;
  background: #0d2c54;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.news-title {
  font-weight: 600;
  color: #0d2c54;
  margin-bottom: 8px;
}

.news-text {
  font-size: 14px;
  color: #555;
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* COLORFUL AUTO SCROLL NEWS */
.news-wrapper {
  height: 260px;                /* Visible height */
  overflow: hidden;
  position: relative;
}

.news-scroll {
  display: flex;
  flex-direction: column;
  animation: scrollNews 12s linear infinite;
}

.news-wrapper:hover .news-scroll {
  animation-play-state: paused;
}

.news-item {
  background: #ffffff;
  border-left: 6px solid;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.news-item:hover {
  transform: scale(1.02);
}

/* Different colors */
.news-blue { border-color: #0d2c54; }
.news-green { border-color: #198754; }
.news-orange { border-color: #fd7e14; }
.news-red { border-color: #dc3545; }

.news-date {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 6px;
}

.bg-blue { background: #0d2c54; }
.bg-green { background: #198754; }
.bg-orange { background: #fd7e14; }
.bg-red { background: #dc3545; }

.news-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  font-size: 15px;
}

.news-text {
  font-size: 14px;
  color: #555;
}

/* Scroll animation */
@keyframes scrollNews {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}
/* UNIQUE NEWS SECTION */
.news-featured {
  background: linear-gradient(135deg, #0d2c54, #1a5fa3);
  color: #fff;
  padding: 25px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.news-featured::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}

.featured-badge {
  background: #ffc107;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.news-timeline {
  position: relative;
  padding-left: 30px;
}

.news-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #0d2c54;
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
  animation: slideIn 0.6s ease forwards;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: #0d2c54;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.timeline-date {
  font-size: 12px;
  color: #0d2c54;
  font-weight: 600;
}

.timeline-title {
  font-weight: 600;
  font-size: 15px;
  margin: 3px 0;
}

.timeline-text {
  font-size: 14px;
  color: #555;
}

/* Animations */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(13,44,84,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(13,44,84,0); }
  100% { box-shadow: 0 0 0 0 rgba(13,44,84,0); }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* UNIQUE TRENDING FOOTER */
.footer-main {
  background: linear-gradient(135deg, #0d2c54, #163d6d);
  color: #ffffff;
  padding: 50px 0 20px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 16px;
  position: relative;
}

.footer-title::after {
  content: "";
  width: 40px;
  height: 2px;
  background: #ffc107;
  position: absolute;
  left: 0;
  bottom: -6px;
}

.footer-main p,
.footer-main a {
  font-size: 14px;
  color: #e0e0e0;
  text-decoration: none;
}

.footer-main a:hover {
  color: #ffc107;
}

.footer-links li {
  margin-bottom: 8px;
  list-style: none;
}

.footer-highlight {
  background: rgba(255,255,255,0.08);
  padding: 15px;
  border-radius: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 30px;
  padding-top: 15px;
  font-size: 13px;
}

.footer-bottom span {
  color: #ffc107;
}

.demo-note-footer {
  font-size: 12px;
  opacity: 0.7;
}

/* ABOUT SECTION NEW DESIGN */
.about-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.about-box h3 {
  color: #0d2c54;
  font-weight: 700;
  margin-bottom: 15px;
}

.about-box p {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.highlight-card {
  background: linear-gradient(135deg, #f1f5fb, #ffffff);
  border-left: 4px solid #0d2c54;
  padding: 15px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-5px);
}

.highlight-title {
  font-weight: 600;
  color: #0d2c54;
  font-size: 14px;
}

.highlight-text {
  font-size: 13px;
  color: #555;
}
/* TOP INFO BAR */
.top-header {
  background: #f2f2f2;
  font-size: 13px;
  padding: 6px 0;
  color: #333;
}

/* MAIN COLLEGE HEADER */
.college-header {
  background: #ffffff;
  padding: 10px 0;
}

.college-logo {
  height: 120px;
  width: 120px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
}

/* .college-title styles moved to css/college-title.css for centralized management */

.college-subtitle {
  font-size: 13px;
  color: #555;
}

/* NAVIGATION BAR */
.navbar-main {
  background: #0d2c54;
}

.navbar-main .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  padding: 10px 15px;
}

.navbar-main .nav-link:hover {
  background: #123a6f;
}

/* MOBILE */
@media (max-width: 767px) {
  .college-header .container {
    flex-direction: column;
    text-align: center;
  }

  .college-logo {
    height: 80px;
    width: 80px;
    margin-right: 0 !important;
    margin-bottom: 10px;
  }

  .college-subtitle {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 5px;
  }
}
/* FIX DROPDOWN MENU COLORS */
.navbar-main .dropdown-menu {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 8px 0;
  margin-top: 10px;
}

.navbar-main .dropdown-menu .dropdown-item {
  color: #333 !important;
  padding: 8px 20px;
  transition: all 0.2s ease;
}

.navbar-main .dropdown-menu .dropdown-item:hover {
  background-color: #f4f8ff;
  color: #0d2c54 !important;
  padding-left: 24px;
}

/* TRENDING GALLERY */
.gallery-box {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-box img {
  transition: transform 0.4s ease;
}

.gallery-box:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 44, 84, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-box:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-size: 30px;
  color: #fff;
}
/* OLD FLOATING SOCIAL MEDIA – RIGHT SIDE */
.social-float {
  position: fixed;
  top: 50%;                     /* FIX */
  right: 0;
  transform: translateY(-50%);  /* FIX */
  z-index: 9999;
}

.social-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  margin: 6px 0;
  border-radius: 8px 0 0 8px;  /* ROUNDED ON LEFT */
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-float a:hover {
  width: 52px;
}


/* Platform colors */
.social-fb { background: #1877f2; }
.social-ig { background: #e4405f; }
.social-yt { background: #ff0000; }
.social-ln { background: #0a66c2; }
.social-wa { background: #25d366; }

/* Mobile: move slightly down */
@media (max-width: 767px) {
  .social-float {
    top: 50%;
  }
}


.social-main {
  width: 55px;
  height: 55px;
  background: #0d2c54;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.social-items {
  position: absolute;
  bottom: 65px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.social-dock:hover .social-items,
.social-dock.active .social-items {
  opacity: 1;
  pointer-events: auto;
}

.social-item {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.social-item:hover {
  transform: scale(1.15);
}

/* Brand colors */
.fb { background: #1877f2; }
.ig { background: #e4405f; }
.yt { background: #ff0000; }
.li { background: #0a66c2; }
.wa { background: #25d366; }

/* Mobile tap support */
@media (max-width: 767px) {
  .social-dock:hover .social-items {
    opacity: 0;
    pointer-events: none;
  }
}


.social-main {
  width: 55px;
  height: 55px;
  background: #0d2c54;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.social-items {
  position: absolute;
  bottom: 65px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.social-dock:hover .social-items,
.social-dock.active .social-items {
  opacity: 1;
  pointer-events: auto;
}

.social-item {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.social-item:hover {
  transform: scale(1.15);
}

/* Brand colors */
.fb { background: #1877f2; }
.ig { background: #e4405f; }
.yt { background: #ff0000; }
.li { background: #0a66c2; }
.wa { background: #25d366; }

/* Mobile tap support */
@media (max-width: 767px) {
  .social-dock:hover .social-items {
    opacity: 0;
    pointer-events: none;
  }
}
/* FOOTER MOBILE RESPONSIVE FIX */
@media (max-width: 767px) {

  .footer-main {
    text-align: center;
    padding: 40px 0 20px;
  }

  .footer-title {
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links {
    padding: 0;
  }

  .footer-links li {
    margin-bottom: 0;
  }

  .footer-links li a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .footer-highlight {
    margin: 0 auto;
    text-align: center;
  }

  .footer-main p {
    font-size: 14px;
    line-height: 1.6;
  }

  .footer-bottom {
    font-size: 12px;
    padding-top: 12px;
  }
}
/* DEVELOPER CREDIT */
.developer-link {
  color: #ffc107;
  font-weight: 500;
  text-decoration: none;
}

.developer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: #ffc107;
  color: #0d2c54;
}

/* Mobile adjustment */
@media (max-width: 767px) {
  .developer-link {
    display: inline-block;
    margin-top: 4px;
  }
}
/* IMPORTANT DOWNLOADS - TRENDING DESIGN */
.download-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  height: 100%;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.download-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

.download-icon {
  width: 55px;
  height: 55px;
  background: #0d2c54;
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.download-title {
  font-weight: 600;
  color: #0d2c54;
  margin-bottom: 4px;
}

.download-meta {
  font-size: 13px;
  color: #666;
}

.download-btn {
  margin-left: auto;
}

@media (max-width: 767px) {
  .download-card {
    flex-direction: column;
    text-align: center;
  }
  .download-btn {
    margin-left: 0;
    margin-top: 10px;
  }
}
/* TOP HEADER RESPONSIVE FIX */
@media (max-width: 767px) {
  .top-header .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }

  .top-header {
    font-size: 12px;
  }
}
/* HIDE SOCIAL DOCK WHEN MOBILE MENU IS OPEN */
@media (max-width: 991px) {
  .navbar-collapse.show ~ .social-dock {
    display: none;
  }
}
.social-dock {
  transition: opacity 0.3s ease;
}
/* FORCE SOCIAL DOCK TO RIGHT SIDE */

@media (max-width: 767px) {
  .social-float {
    top: 55%;
  }
}

/* FINAL STICKY NAVBAR FIX */
.navbar-main {
  background: #0d2c54;
}
html, body {
  overflow-x: visible;
}
.navbar-main.scrolled {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
/* STICKY NAVBAR ON SCROLL */
.navbar-main {
  position: relative;
  z-index: 1100;
  transition: all 0.3s ease;
}

.navbar-main.is-sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  box-shadow: 0 4px 12px rgba(13,44,84,0.15);
}
/* ABOUT SECTION */
.about-section {
  background: #f5f9ff;
}

.about-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(13,44,84,0.08);
}

.about-card h3 {
  color: #0d2c54;
  font-weight: 700;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-weight: 500;
}

.feature-item i {
  color: #0d2c54;
  font-size: 18px;
}
/* ABOUT SECTION - TRENDING DESIGN */
.about-section {
  background: linear-gradient(180deg, #f5f9ff, #ffffff);
}

/* MAIN ABOUT CARD */
.about-main-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(13,44,84,0.08);
  text-align: center;
}

/* STATS */
.about-stat {
  background: #ffffff;
  padding: 22px 15px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.about-stat:hover {
  transform: translateY(-6px);
}

.about-stat i {
  font-size: 26px;
  color: #0d2c54;
  margin-bottom: 8px;
}

.about-stat h4 {
  font-weight: 700;
  margin-bottom: 4px;
  color: #0d2c54;
}

.about-stat p {
  margin: 0;
  font-size: 14px;
  color: #6c757d;
}

/* VISION & MISSION */
.vm-card {
  background: #ffffff;
  padding: 26px;
  border-radius: 16px;
  height: 100%;
  box-shadow: 0 10px 25px rgba(13,44,84,0.08);
}

.vm-card h4 {
  color: #0d2c54;
  font-weight: 700;
  margin-bottom: 12px;
}

.vm-card i {
  margin-right: 6px;
}
/* VISION OVERVIEW – COMPACT */
.vision-overview {
  background: #f8fbff;
}

/* Vision text */
.vision-text {
  font-size: 16px;
  color: #444;
}

/* Info row */
.vision-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  font-size: 14px;
  color: #555;
}

/* Highlight box */
.vision-highlight {
  background: #ffffff;
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(13,44,84,0.08);
}

.vision-highlight i {
  font-size: 28px;
  color: #0d2c54;
  margin-bottom: 8px;
}
/* ABOUT / VISION SECTION – DESIGN ENHANCEMENT ONLY */

/* Main content box */
.about-box {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(13, 44, 84, 0.08);
  border-left: 4px solid #0d2c54;
}

/* Heading */
.about-box h3 {
  font-weight: 700;
  color: #0d2c54;
  margin-bottom: 10px;
}

/* Text */
.about-box p {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 10px;
}

/* Button – modern but compact */
.about-box .btn {
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 20px;
}

/* Highlights container */
.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Highlight cards */
.highlight-card {
  background: #ffffff;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(13,44,84,0.12);
}

/* Highlight title */
.highlight-title {
  font-size: 13px;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 2px;
}

/* Highlight text */
.highlight-text {
  font-size: 14px;
  font-weight: 500;
  color: #0d2c54;
}
/* =========================
   INNER PAGE HEADER – NEW
   ========================= */

.page-header {
  padding: 36px 0;
  background: linear-gradient(180deg, #f4f8ff, #ffffff);
  border-bottom: 1px solid #e6ecf5;
}

.page-header h1 {
  font-size: 30px;
  font-weight: 800;
  color: #0d2c54;
  margin-bottom: 6px;
}

.page-header p {
  font-size: 15px;
  color: #555;
  max-width: 720px;
}
/* =========================
   INNER PAGE CONTENT – MODERN
   ========================= */

.inner-content {
  padding: 36px 0;
}

/* Section with visual accent */
.inner-section {
  position: relative;
  padding: 18px 20px 18px 26px;
  margin-bottom: 26px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(13,44,84,0.06);
}

/* Left accent bar */
.inner-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  background: linear-gradient(180deg, #0d2c54, #3b6cb7);
  border-radius: 4px;
}

/* Section heading */
.inner-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0d2c54;
  margin-bottom: 10px;
}

/* Paragraph text */
.inner-section p {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 10px;
}

/* Lists */
.inner-section ul {
  padding-left: 18px;
}

.inner-section ul li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 6px;
  color: #444;
}
/* Vision & Mission highlight */
.vision-block {
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(13,44,84,0.08);
  margin-bottom: 28px;
}

.vision-block h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0d2c54;
  margin-bottom: 10px;
}

/* =========================
   INNER PAGE MODERN DESIGN
   ========================= */

/* Page container */
.page-container {
  background-color: #f8f9fa;
}

/* Updated Page Header */
.page-header {
  background: none;
  padding: 3rem 0;
  text-align: center;
      border-bottom: none;
}

.page-header h1 {
  color: #0d2c54;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 3px solid #0d2c54;
}

.page-header h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 50px;
  height: 5px;
  background-color: #ffc107;
}



/* Main Content Area */
.main-content {
  padding: 0rem 0;
}

/* Content Card */
.content-card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  padding: 30px;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.content-card h3 {
  color: #0d2c54;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #0d2c54;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.content-card h4 {
  color: #0d2c54;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.content-card p, .content-card ul {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

.content-card ul {
  padding-left: 20px;
}

.content-card ul li {
  margin-bottom: 0.5rem;
}

    .content-card .table thead th {
      background-color: #0d2c54;
      color: white;
    }

/* Sidebar Card */
.sidebar-card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  padding: 30px;
}

.sidebar-card h4 {
  color: #0d2c54;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #0d2c54;
  padding-bottom: 0.5rem;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
}

.sidebar-card ul li {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.8rem;
}

.sidebar-card ul li strong {
  color: #333;
}

.sidebar-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

/* Compact Sidebar Pills */
.info-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(135deg, #f8fbff 0%, #f0f8ff 100%);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #0d2c54;
}

.pill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  transition: transform 0.2s ease;
}

.pill-item:hover {
  transform: translateX(4px);
}

.pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0d2c54, #1a5fa3);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.pill-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pill-label {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.pill-value {
  font-size: 1rem;
  color: #0d2c54;
  font-weight: 700;
}

/* Quick Contact Section */
.quick-contact {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #f0f0f0;
  transition: border-color 0.3s ease;
}

.quick-contact:hover {
  border-color: #0d2c54;
}

.contact-heading {
  font-size: 1rem;
  color: #0d2c54;
  margin-bottom: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.quick-link:last-child {
  border-bottom: none;
}

.quick-link i {
  color: #0d2c54;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.quick-link span {
  font-weight: 500;
}

.quick-link:hover {
  color: #0d2c54;
  padding-left: 5px;
}

.quick-link:hover i {
  transform: scale(1.1);
}

/* Responsive adjustments for pills */
@media (max-width: 992px) {
  .info-pills {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .pill-item {
    flex: 0 1 calc(33.333% - 10px);
  }

  .pill-text {
    display: none;
  }

  .pill-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

/* ===============================================
   SIMPLE & MODERN VISION/GOAL PAGE STYLES
   =============================================== */

/* Page Content Body */
.main-content {
  background-color: #f4f8ff; /* A light, clean blue-gray background */
}

/* Base card for vision, mission, goals */
.modern-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 35px rgba(13, 44, 84, 0.06);
  border: 1px solid #eef2f9;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.modern-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(13, 44, 84, 0.12);
}

/* Card Header Icon - Shared Style */
.card-header-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.modern-card:hover .card-header-icon {
    transform: scale(1.1);
}

.modern-card h3 {
  font-weight: 700;
  color: #0d2c54;
  margin-bottom: 1rem;
}

.modern-card p, .modern-card ul {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #455a64;
}

.modern-card ul {
  padding-left: 20px;
  list-style-type: '✓ ';
}
.modern-card ul li {
    padding-left: 8px;
    margin-bottom: 0.75rem;
}


/* Specific Card Styles */

/* Vision Card */
.vision-card .card-header-icon {
  background: linear-gradient(135deg, #2979ff, #1a5fa3);
}
.vision-card {
  border-left: 6px solid #2979ff;
}

/* Mission Card */
.mission-card .card-header-icon {
  background: linear-gradient(135deg, #ff6d00, #c85a00);
}
.mission-card {
  border-left: 6px solid #ff6d00;
}

/* Goals Card */
.goals-card .card-header-icon {
  background: linear-gradient(135deg, #00c853, #009624);
}
.goals-card {
  border-left: 6px solid #00c853;
}


/* Highlight Badge - Shared Style */
.card-highlight {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eef2f9;
  text-align: left;
}
.badge-vision, .badge-mission {
  font-size: 0.8rem;
  padding: 0.6em 1.2em;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-vision {
  background-color: rgba(41, 121, 255, 0.1);
  color: #2979ff;
}

.badge-mission {
  background-color: rgba(255, 109, 0, 0.1);
  color: #ff6d00;
}

/* Sidebar Wrapper */
.sidebar-wrapper {
  position: sticky;
  top: 100px;
}

/* ===============================================
   MODERN MINIMAL PAGE STYLES (New Design)
   =============================================== */

.page-header-modern {
  background-color: #f8faff;
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  border-radius: 0 0 50px 50px;
  margin-bottom: 3rem;
  position: relative;
  box-shadow: 0 20px 40px -20px rgba(13, 44, 84, 0.1);
  overflow: hidden;
}

.page-header-modern::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../assets/images/banner1.png');
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  opacity: 0.3;
  z-index: 0;
}

.page-title-wrapper {
  position: relative;
  z-index: 2;
}

.title-badge {
  display: inline-block;
  background: rgba(13, 44, 84, 0.1);
  color: #0d2c54;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  backdrop-filter: blur(5px);
}

.page-title-modern {
  font-size: 3.5rem;
  font-weight: 900;
  color: #0d2c54;
  margin-bottom: 0.5rem;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.page-title-modern span {
  color: #2979ff;
  position: relative;
  display: inline-block;
}

@media (max-width: 768px) {
  .page-title-modern { font-size: 2.5rem; }
}

.modern-card-v2 {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
}

.modern-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.card-bg-icon {
  position: absolute;
  bottom: -20px;
  right: -20px;
  font-size: 10rem;
  opacity: 0.03;
  transform: rotate(-15deg);
  pointer-events: none;
}

.modern-card-v2 .table thead th {
  background-color: #0d2c54;
  color: white;
}

.goal-item-modern {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}
.goal-item-modern i {
  background: rgba(13, 110, 253, 0.1);
  color: var(--bs-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.goal-text { font-size: 0.95rem; color: #444; line-height: 1.6; }

/* ===============================================
   UTILITY CLASSES FOR MODERN DESIGN
   =============================================== */
.page-header-modern .lead {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}
.bg-soft-primary { background-color: #f8faff !important; }
.p-custom-card { padding: 2rem !important; }
.text-justify { text-align: justify; }
/* ===== ADMIN LAYOUT FIX ===== */

.admin-wrapper {
  display: flex;
  min-height: 100vh;
  flex-wrap: wrap;
}

.sidebar {
  width: 260px;
  background: #fff;
  flex-shrink: 0;
  border-right: 1px solid rgba(0,0,0,0.05);
}

.main-content {
  flex: 1;
  padding: 25px;
  background: #f6f8fb;
  min-width: 0; /* Prevents flex items from overflowing */
}

/* Admin Mobile Responsive */
@media (max-width: 991px) {
  .admin-wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .main-content {
    padding: 15px;
  }
}

/* TRENDING TABLE DESIGN */
.trending-table-wrapper {
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(13, 44, 84, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.trending-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0 !important;
  min-width: 600px;
}

.trending-table thead th {
  background: linear-gradient(135deg, #0d2c54 0%, #1a5fa3 100%);
  color: #fff;
  padding: 20px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border: none;
  white-space: nowrap;
}

.trending-table thead th:first-child {
  border-top-left-radius: 15px;
}

.trending-table thead th:last-child {
  border-top-right-radius: 15px;
}

.trending-table tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid #f2f5f9;
  color: #555;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.trending-table tbody tr:last-child td {
  border-bottom: none;
}

.trending-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 15px;
}

.trending-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 15px;
}

.trending-table tbody tr td:first-child {
  border-left: 4px solid transparent;
}

.trending-table tbody tr:hover td {
  background-color: #f8fbff;
  color: #0d2c54;
}

.trending-table tbody tr:hover td:first-child {
  border-left-color: #ffc107;
  padding-left: 24px; /* Subtle slide effect */
}

@media (max-width: 767px) {
  .trending-table thead th {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
  .trending-table tbody td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 767px) {
  .trending-table thead th {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
  .trending-table tbody td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

/* DOCUMENT REPOSITORY - UNIQUE DESIGN */
.doc-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.doc-search-container {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.doc-search-input {
  width: 100%;
  padding: 12px 20px 12px 45px;
  border-radius: 50px;
  border: 2px solid #eef2f9;
  background: #f8fbff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.doc-search-input:focus {
  border-color: #0d2c54;
  background: #fff;
  box-shadow: 0 4px 15px rgba(13, 44, 84, 0.08);
  outline: none;
}

.doc-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #0d2c54;
  opacity: 0.7;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.doc-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f0f4f8;
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.doc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(13, 44, 84, 0.1);
  border-color: rgba(13, 44, 84, 0.15);
}

.doc-card-header {
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid #f5f7fa;
  display: flex;
  align-items: center;
  gap: 15px;
}

.doc-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef4ff 0%, #f5f9ff 100%);
  color: #0d2c54;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.doc-card:hover .doc-icon-box {
  background: linear-gradient(135deg, #0d2c54 0%, #1a5fa3 100%);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}

.doc-card-title {
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  font-size: 1.05rem;
}

.doc-card-body {
  padding: 0;
  flex-grow: 1;
  max-height: 350px;
  overflow-y: auto;
}

.doc-card-body::-webkit-scrollbar {
  width: 6px;
}
.doc-card-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.doc-card-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.doc-list-item {
  padding: 12px 20px;
  border-bottom: 1px solid #f9fbfd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #555;
  transition: all 0.2s ease;
}

.doc-list-item:last-child {
  border-bottom: none;
}

.doc-list-item:hover {
  background-color: #f8fbff;
  color: #0d2c54;
  padding-left: 24px;
}

.doc-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  flex: 1;
}

.doc-file-icon {
  color: #dc3545;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.doc-item-text {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-download-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #edf2f7;
  color: #0d2c54;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 10px;
}

.doc-list-item:hover .doc-download-btn {
  opacity: 1;
  transform: scale(1);
  background: #0d2c54;
  color: #fff;
}

/* ===============================================
   RESPONSIVE TABLE & SEARCH STYLES
   =============================================== */

/* Table Search Styling */
.table-search-container { position: relative; margin-bottom: 1.5rem; }
.table-search-input { width: 100%; padding: 0.8rem 1rem 0.8rem 2.8rem; border: 1px solid #dee2e6; border-radius: 12px; outline: none; transition: all 0.3s; background: #f8f9fa; }
.table-search-input:focus { border-color: #0d2c54; background: #fff; box-shadow: 0 4px 12px rgba(13,44,84,0.08); }
.table-search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #0d2c54; opacity: 0.6; }

/* Mobile Responsiveness Enhancements */
@media (max-width: 768px) {
  .page-title-modern { font-size: 1.75rem; }
  .modern-card-v2 { padding: 1.25rem !important; }
  
  /* Transform Table to Cards on Mobile */
  .trending-table-wrapper {
    border: none;
    box-shadow: none;
    background: transparent;
    overflow-x: visible;
  }
  
  .trending-table-wrapper table {
    display: block;
    min-width: 100% !important; /* Override global min-width */
  }
  
  .trending-table-wrapper thead { display: none; }
  
  .trending-table-wrapper tbody, 
  .trending-table-wrapper tr, 
  .trending-table-wrapper td { 
    display: block; 
    width: 100%;
  }
  
  .trending-table-wrapper tr { 
    margin-bottom: 1rem; 
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    padding: 0.5rem;
  }
  .trending-table-wrapper td { 
    border: none;
    border-bottom: 1px solid #f0f0f0; 
    position: relative;
    padding: 0.75rem 0.75rem 0.75rem 45% !important; 
    text-align: right;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    word-break: break-word;
  }
  .trending-table-wrapper td:last-child { border-bottom: 0; }
  .trending-table-wrapper td:before { 
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0.75rem;
    width: 40%; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    text-align: left;
    content: attr(data-label);
    color: #0d2c54;
    font-size: 0.9rem;
  }
  /* Ensure Document Grid Stacks */
  .doc-grid { display: grid; grid-template-columns: 1fr !important; }

  /* Allow document titles to wrap on mobile */
  .doc-item-text {
    white-space: normal;
    line-height: 1.4;
    overflow: visible;
  }
}

/* ===============================================
   LOGIN PAGE RESPONSIVENESS
   =============================================== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f8ff;
  padding: 20px;
}

.login-card {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(13, 44, 84, 0.1);
  width: 100%;
  max-width: 450px;
  border-top: 5px solid #0d2c54;
}

@media (max-width: 576px) {
  .login-card {
    padding: 25px;
  }
}

/* ===============================================
   LIST PAGE RESPONSIVENESS (list.php)
   =============================================== */

/* Header area with Search & Add buttons */
.list-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

/* Generic Responsive List Item (for non-table lists) */
.responsive-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.responsive-list-item:last-child { border-bottom: none; }
.responsive-list-item:hover { background-color: #f8fbff; }

@media (max-width: 768px) {
  /* Stack header actions */
  .list-header-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .list-header-actions .btn, 
  .list-header-actions .form-control { width: 100%; }

  /* Stack list items */
  .responsive-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .responsive-list-item .btn,
  .responsive-list-item .list-actions {
    align-self: flex-end;
    margin-top: 5px;
  }

  /* Fix Pagination Overflow */
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
  }
}

/* ===============================================
   GLOBAL NEWS MARQUEE
   =============================================== */
.global-news-marquee {
  background: #f8f9fa;
  color: #0d2c54;
  height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1020;
  border-bottom: 1px solid rgba(13,44,84,0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.marquee-label {
  background: #5B030D;
  color: #ffffff;
  font-weight: 700;
  padding: 0 25px;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 4px 0 15px rgba(0,0,0,0.15);
}

.marquee-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-item {
  padding: 0 40px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}

.marquee-item i { 
  margin-right: 10px; 
  color: #0d2c54; 
  font-size: 0.85rem;
}

/* Animation Keyframes */
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Pause on hover for readability */
.global-news-marquee:hover .marquee-content {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .marquee-label {
    padding: 0 15px;
    font-size: 0.8rem;
  }
  .marquee-item {
    font-size: 0.85rem;
    padding: 0 20px;
  }
}

/* Professional Font */
.business-font {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    letter-spacing: .5px
}

/* Department Page Section Toggling */
.dept-section {
  display: none;
  animation: fadeIn 0.5s;
}

.dept-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Department side menu active state */
.dept-side-menu .list-group-item.active {
    background-color: #0d2c54;
    border-color: #0d2c54;
}

.dept-side-menu .list-group-item.active a {
    color: #fff;
    font-weight: 600;
}

/* Department Side Menu */
.sidebar-modern {
  background: #f8fbff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(13,44,84,0.08);
  box-shadow: 0 4px 18px rgba(13,44,84,0.06);
}

.sidebar-modern h4 {
  color: #0d2c54;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #0d2c54;
}

.dept-side-menu .nav-link {
  color: #343a40;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
}

.dept-side-menu .nav-link:hover {
  background-color: #e9ecef;
  color: #0d2c54;
}

.dept-side-menu .nav-link.active {
  background-color: #0d2c54;
  color: #fff;
  font-weight: 600;
}

/* ===============================================
   MODERN HERO SECTION REDESIGN
   =============================================== */
.hero-modern {
  position: relative;
  background-color: #0d2c54;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(13,44,84,0.0) 0%, rgba(13,44,84,0.5) 40%, rgba(13,44,84,0.95) 100%);
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}

.hero-badge {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.5);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  margin-bottom: 25px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-title {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 25px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 650px;
  border-right: 4px solid #ffc107;
  padding-right: 20px;
  margin-left: auto;
  margin-right: 0;
}

.hero-features {
  display: flex;
  gap: 30px;
  margin-bottom: 45px;
  margin-bottom: 0;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.hero-feature-item i {
  color: #ffc107;
  background: rgba(255,255,255,0.1);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 15px;
  transition: transform 0.3s ease;
}

.hero-feature-item:hover i {
  transform: rotate(360deg);
  background: #ffc107;
  color: #0d2c54;
}

.hero-btn-primary {
  background: #ffc107;
  color: #0d2c54;
  padding: 12px 30px;
  font-size: 0.95rem;
  border-radius: 6px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
}

.hero-btn-primary:hover {
  background: #fff;
  color: #0d2c54;
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.hero-btn-outline {
  background: transparent;
  color: #fff;
  padding: 10px 28px;
  font-size: 0.95rem;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-left: 20px;
}

.hero-btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: translateY(-4px);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .hero-modern {
    min-height: auto;
    padding: 110px 0 50px;
    background-attachment: scroll;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(13,44,84,0.2) 0%, rgba(13,44,84,0.9) 60%, rgba(13,44,84,1) 100%);
  }
  .hero-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  .hero-features {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .hero-subtitle {
    border-right: none;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
  }
  .hero-content-wrapper {
    padding: 10px 0;
  }
  .hero-badge {
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.2rem;
  }
  .hero-subtitle {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 15px;
  }
  .hero-btn-outline {
    margin-left: 10px;
    margin-top: 0;
    display: inline-flex;
    justify-content: center;
    width: auto;
    padding: 10px 20px;
  }
  .hero-btn-primary {
    display: inline-flex;
    justify-content: center;
    width: auto;
    padding: 10px 20px;
  }
}

/* Modern Faculty Card Design */
.staff-modern-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.staff-modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(13,44,84,0.1);
}
.staff-modern-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: linear-gradient(to bottom, #0d2c54, #1a5fa3);
}
.staff-modern-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.staff-modern-card:hover .staff-modern-img {
  transform: scale(1.05) rotate(2deg);
}
.staff-badge {
  display: inline-block;
  padding: 5px 15px;
  background: rgba(13, 44, 84, 0.06);
  color: #0d2c54;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.staff-details-box {
  background: #f8fbff;
  border-radius: 10px;
  padding: 12px 18px;
  border-left: 3px solid #1a5fa3;
}

/* Trending Minimal Faculty Card */
.staff-card-minimal {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid #eef2f6;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.staff-card-minimal:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(13, 44, 84, 0.08);
  border-color: #dce4ec;
}

.staff-card-minimal .staff-img-box {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #f0f0f0;
  background: #f8f9fa;
}

.staff-card-minimal .staff-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.staff-card-minimal:hover .staff-img-box img {
  transform: scale(1.1);
}

.staff-card-minimal .staff-content {
  flex: 1;
  min-width: 0;
}

.staff-card-minimal h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d2c54;
  margin-bottom: 4px;
  line-height: 1.3;
}

.staff-card-minimal .designation {
  font-size: 0.8rem;
  color: #1a5fa3;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.staff-card-minimal .staff-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.staff-card-minimal .info-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

.staff-card-minimal .info-item i {
  color: #889bb0;
  margin-top: 3px;
  font-size: 0.8rem;
  width: 16px;
}

.staff-card-minimal .staff-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.staff-card-minimal .btn-view-profile {
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 50px;
  background-color: #f0f4ff;
  color: #0d2c54;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.staff-card-minimal .btn-view-profile:hover {
  background-color: #0d2c54;
  color: #fff;
}

/* Fix for PDF Modal Z-Index to appear above navbar and social icons */
.modal {
  z-index: 10050 !important;
}
.modal-backdrop {
  z-index: 10040 !important;
}

/* Mobile Faculty Card Redesign - Unique & Ultra Minimal */
@media (max-width: 767.98px) {
  .staff-card-minimal {
    flex-direction: row;
    align-items: flex-start;
    padding: 12px;
    gap: 12px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    background: #ffffff;
    border-left: 3px solid #0d2c54; /* Unique accent */
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  }

  .staff-card-minimal .staff-img-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    margin: 0;
    box-shadow: none;
    flex-shrink: 0;
  }

  .staff-card-minimal .staff-content {
    width: 100%;
    display: block;
    padding-right: 0;
  }

  .staff-card-minimal h5 {
    font-size: 0.95rem;
    margin-bottom: 2px;
    line-height: 1.2;
    color: #0d2c54;
    padding-right: 0;
  }

  .staff-card-minimal .designation {
    display: block;
    color: #666;
    margin-bottom: 6px;
    font-size: 0.7rem;
    font-weight: 600;
  }

  .staff-card-minimal .staff-info {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    margin-bottom: 0;
  }

  .staff-card-minimal .info-item {
    width: auto;
    font-size: 0.7rem;
    color: #555;
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.2;
  }
  
  .staff-card-minimal .info-item i {
    font-size: 0.65rem;
    width: auto;
    margin-top: 0;
    margin-right: 5px;
    color: #0d2c54;
  }

  .staff-card-minimal .staff-actions {
    position: static;
    margin-top: 10px;
    width: 100%;
    display: flex;
  }

  .staff-card-minimal .btn-view-profile {
    width: auto;
    height: auto;
    justify-content: center;
    padding: 5px 12px;
    background: #eef2f6;
    color: #0d2c54;
    font-size: 0.7rem;
    box-shadow: none;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
  }

  .staff-card-minimal .btn-view-profile i {
    font-size: 14px;
    margin: 0;
  }
  
  .staff-card-minimal .btn-view-profile:hover {
    background: #0d2c54;
    color: #fff;
  }
}

/* HOMEPAGE MOBILE OPTIMIZATIONS */
@media (max-width: 767.98px) {
  /* Hero Section */
  .hero-modern {
    padding: 0;
    height: 280px; /* Fixed height for clear image view */
    min-height: auto;
  }
  /* Hide text content on mobile as requested for better image view */
  .hero-content-wrapper {
    display: none;
  }
  .hero-overlay {
    display: none;
  }

  /* Vision Section */
  .about-box {
    padding: 20px;
    margin-bottom: 20px;
  }
  .about-highlights {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .highlight-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 12px 15px;
  }
  .highlight-title {
    margin-bottom: 0;
  }

  /* News Section */
  .news-featured {
    padding: 20px;
    margin-bottom: 25px;
  }
  .news-timeline {
    padding-left: 15px;
  }
  .news-timeline::before {
    left: 0;
  }
  .timeline-item::before {
    left: -20px;
    width: 12px;
    height: 12px;
    top: 5px;
  }
  
  /* Downloads Section Button Fix */
  .download-btn {
    width: 100%;
    margin-top: 15px;
  }
  .download-btn .btn {
    width: 100%;
    display: block;
  }
  
  /* General Headings */
  .section-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 1.2rem;
  }
}

/* MOBILE NAVBAR OPTIMIZATIONS (Smooth Touch Dropdowns) */
@media (max-width: 991.98px) {
  .navbar-main .navbar-collapse {
    background: #0d2c54;
    max-height: 80vh;
    overflow-y: auto;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .navbar-main .nav-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .navbar-main .nav-link {
    padding: 12px 20px;
    font-size: 1.05rem;
    color: #fff !important;
  }

  /* Convert dropdowns to tree-style list for better touch experience */
  .navbar-main .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.15) !important;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
  }

  .navbar-main .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 12px 20px 12px 40px; /* Indented for hierarchy */
    border-bottom: 1px solid rgba(255,255,255,0.03);
    background: transparent !important;
  }

  .navbar-main .dropdown-menu .dropdown-item:hover,
  .navbar-main .dropdown-menu .dropdown-item:focus,
  .navbar-main .dropdown-menu .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffc107 !important;
    padding-left: 45px; /* Subtle slide interaction */
    transition: padding-left 0.2s ease;
  }
}
     
/* GALLERY MODAL OPTIMIZATIONS */
#modalImage {
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  max-height: 85vh;
  object-fit: contain;
  background-color: #000;
}

.modal-body .btn-close {
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 0.8rem;
  background-size: 1rem;
}

@media (max-width: 767.98px) {
  .gallery-img {
    height: 200px;
  }
}
