/* ==========================================================================
   KNUST Libraries Help Desk - System Brand Styling & Logo Color Integration
   Brand Colors:
     - KNUST Deep Green: #005A2B / #003B1C / #004D25
     - KNUST Gold/Yellow: #FDB813 / #E5A812 / #FFC72C
     - Text Dark: #0E082B / #111111
   ========================================================================== */

/* ── Global Broken Image Safeguard ── */
img:not([src]), img[src=""], img[src*="undefined"], img[src*="null"] {
  display: none !important;
}

/* ── Global Body & Theme Background ── */
body.homepage3-body {
  background: #ffffff !important;
  overflow-x: hidden !important;
}

/* ── Page Wrapper Constraints ── */
.page.page-1.homepage3-body {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
}

.page.page-1.homepage3-body .page-main {
  padding: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
  min-height: auto !important;
  overflow: visible !important;
}

/* ── Inner Pages Header Spacing ── */
.page.page-inner {
  padding-top: 90px !important;
  background: #ffffff !important;
}

/* ──────────────────────────────────────────
   HERO SECTION
   ────────────────────────────────────────── */
.hero3-section-area {
  position: relative !important;
  z-index: 1 !important;
  padding: 170px 0 60px !important;
}

.hero3-section-area .row {
  overflow: visible !important;
}

.hero3-section-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 59, 28, 0.85) 0%, rgba(0, 90, 43, 0.7) 60%, rgba(0, 26, 11, 0.9) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero3-section-area > * {
  position: relative;
  z-index: 1;
}

.hero3-section-area .hero3-header h1 {
  color: #ffffff !important;
  font-family: 'Figtree', sans-serif !important;
  font-size: 54px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 64px !important;
  letter-spacing: -0.54px !important;
}

@media (max-width: 767px) {
  .hero3-section-area .hero3-header h1 {
    font-size: 32px !important;
    line-height: 40px !important;
  }
}

/* ── Hero Badge (Gold Accent Pill) ── */
.hero3-section-area .hero3-header h5 {
  color: #FDB813 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  background: rgba(253, 184, 19, 0.12) !important;
  border: 1px solid rgba(253, 184, 19, 0.25) !important;
  padding: 8px 20px !important;
  border-radius: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  backdrop-filter: blur(4px);
}

.hero3-section-area .hero3-header h5 img {
  filter: brightness(0) saturate(100%) invert(82%) sepia(74%) saturate(746%) hue-rotate(358deg) brightness(101%) contrast(98%);
}

/* ── Hero Description ── */
.hero3-section-area .hero3-header > p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 17px !important;
  line-height: 28px !important;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Hero Form — Modern Refresh ── */
.hero3-section-area .hero3-header form {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 4px;
  backdrop-filter: blur(6px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.hero3-section-area .hero3-header form:focus-within {
  border-color: rgba(253, 184, 19, 0.4);
  box-shadow: 0 0 0 4px rgba(253, 184, 19, 0.08), 0 8px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.hero3-section-area .hero3-header form input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 15px !important;
  padding: 16px 20px !important;
  width: 100%;
}

.hero3-section-area .hero3-header form input::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
  transition: color 0.3s ease;
}

.hero3-section-area .hero3-header form input:focus::placeholder {
  color: rgba(255, 255, 255, 0.25) !important;
}

/* ── Hero live-search results dropdown ── */
.hero3-section-area .hero3-header form #searchList {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  display: none;
}

.hero3-section-area .hero3-header form #searchList .dropdown-menu {
  display: block;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  margin: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 26, 11, 0.18);
}

.hero3-section-area .hero3-header form #searchList .dropdown-menu li a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #1a2b24 !important;
  border-radius: 6px;
  white-space: normal;
}

.hero3-section-area .hero3-header form #searchList .dropdown-menu li a:hover {
  background: #f0f5f2;
  color: #005A2B !important;
}

/* ── Hero web-answer panel (Wikipedia + DuckDuckGo) ── */
.hero3-section-area .hero3-header form #webResults {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  text-align: left;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 16px 16px 8px;
  max-height: 360px;
  overflow-y: auto;
}

.hero3-section-area .hero3-header form #webResults .wr-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #005A2B;
  margin: 6px 0 8px;
}

.hero3-section-area .hero3-header form #webResults .wr-label:first-child {
  margin-top: 0;
}

.hero3-section-area .hero3-header form #webResults .wr-answer p {
  font-size: 14px;
  color: #1a2b24;
  line-height: 1.55;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero3-section-area .hero3-header form #webResults .wr-more {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #005A2B;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 0 0 12px;
}

.hero3-section-area .hero3-header form #webResults .wr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #eef2ef;
}

.hero3-section-area .hero3-header form #webResults .wr-list li {
  border-bottom: 1px solid #eef2ef;
}

.hero3-section-area .hero3-header form #webResults .wr-list li a {
  display: block;
  padding: 10px 2px;
  font-size: 14px;
  line-height: 1.4;
  color: #1a2b24;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero3-section-area .hero3-header form #webResults .wr-list li a:hover {
  color: #005A2B;
  text-decoration: underline;
}

.hero3-section-area .hero3-header form #webResults .wr-loading,
.hero3-section-area .hero3-header form #webResults .wr-none {
  font-size: 13.5px;
  color: #5a6b62;
  margin: 0 0 8px;
}

.hero3-section-area .hero3-header form #webResults .wr-none a {
  color: #005A2B;
  font-weight: 600;
}

.hero3-section-area .hero3-header form .vl-btn4 {
  position: absolute !important;
  top: 6px;
  right: 6px;
  padding: 12px 26px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.hero3-section-area .hero3-header form .vl-btn4:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(253, 184, 19, 0.35) !important;
}

/* ── Popular Search Topic Pills ── */
.hero-popular-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 520px;
  margin: 14px auto 0;
}

.hero-popular-tags .tags-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 600;
  margin-right: 4px;
}

.hero-popular-tags .tag-pill {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
  display: inline-block;
}

.hero-popular-tags .tag-pill:hover {
  color: #003B1C !important;
  background: #FDB813 !important;
  border-color: #FDB813 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(253, 184, 19, 0.35);
  text-decoration: none !important;
}

/* ── Hero Section Title ── */
.hero3-section-area .hero3-header h4 {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 15px !important;
  letter-spacing: 0.3px;
}

/* ── Social Icons Row ── */
.hero3-section-area .hero3-header ul {
  opacity: 0;
  animation: bubbleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}
.hero3-section-area .hero3-header ul li a {
  opacity: 0.7;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero3-section-area .hero3-header ul li a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ── Hero Side Images + Centered Text ── */
.hero3-section-area .hero3-header.text-center {
  text-align: center !important;
}

.hero3-section-area .hero3-header.text-center ul {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero3-section-area .hero3-header.text-center ul li {
  float: none !important;
  display: inline-block;
}

/* ── Hero Image Columns ── */
.hero-img-side {
  position: relative;
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-img-side.img-left {
  margin-left: auto;
  margin-right: -15px;
}

.hero-img-side.img-right {
  margin-left: -15px;
  margin-right: auto;
}

.hero-img-side img {
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.hero-img-side.img-left {
  justify-content: flex-end;
}

.hero-img-side.img-left img {
  width: 240px;
  height: 240px;
  border-radius: 240px 240px 20px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(253, 184, 19, 0.08);
  animation: heroSideFloat 6s ease-in-out infinite alternate-reverse;
  transition: box-shadow 0.4s ease;
}

.hero-img-side.img-left:hover img {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), 0 0 50px rgba(253, 184, 19, 0.15);
}

.hero-img-side.img-right {
  justify-content: flex-start;
}

.hero-img-side.img-right img {
  width: 240px;
  height: 240px;
  border-radius: 240px 240px 20px 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), 0 0 30px rgba(253, 184, 19, 0.08);
  animation: heroSideFloat 5s ease-in-out infinite alternate;
  outline: 3px solid rgba(253, 184, 19, 0.25);
  outline-offset: -3px;
  transition: outline-color 0.4s ease, box-shadow 0.4s ease;
}

.hero-img-side.img-right:hover img {
  outline-color: rgba(253, 184, 19, 0.5);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4), 0 0 50px rgba(253, 184, 19, 0.15);
}

@keyframes heroSideFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-14px); }
}

/* ── Speech Bubbles (shared) ── */
.hero-img-side .letter1,
.hero-img-side .letter2,
.hero-img-side .letter3 {
  color: #1a1a2e;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 18px;
  border-radius: 40px;
  background: #ffffff;
  display: inline-block;
  position: absolute;
  z-index: 2;
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.2px;
  opacity: 0;
  animation: bubbleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-img-side .letter1:hover,
.hero-img-side .letter2:hover,
.hero-img-side .letter3:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

@keyframes bubbleIn {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(6px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Staggered entrance delays */
.hero-img-side.img-left .letter1,
.hero-img-side.img-right .letter1 {
  animation-delay: 0.3s;
}
.hero-img-side.img-left .letter2,
.hero-img-side.img-right .letter2 {
  animation-delay: 0.55s;
}
.hero-img-side.img-left .letter3,
.hero-img-side.img-right .letter3 {
  animation-delay: 0.8s;
}

.hero-img-side .letter1 svg,
.hero-img-side .letter2 svg,
.hero-img-side .letter3 svg {
  position: absolute;
}

/* Left image — bubbles on the left, arrows point RIGHT toward image */
.hero-img-side.img-left .letter1 {
  right: calc(100% + 8px);
  top: 20px;
}
.hero-img-side.img-left .letter1 svg {
  top: -9px;
  left: 100%;
  transform: scaleX(-1);
}
.hero-img-side.img-left .letter2 {
  right: calc(100% + 8px);
  bottom: 70px;
}
.hero-img-side.img-left .letter2 svg {
  top: -9px;
  left: 100%;
  transform: scaleX(-1);
}
.hero-img-side.img-left .letter3 {
  right: calc(100% + 8px);
  bottom: -5px;
}
.hero-img-side.img-left .letter3 svg {
  top: -9px;
  left: 100%;
  transform: scaleX(-1);
}


/* Right image — bubbles on the right, arrows point LEFT toward image */
.hero-img-side.img-right .letter1 {
  left: calc(100% + 8px);
  top: 20px;
}
.hero-img-side.img-right .letter1 svg {
  top: -9px;
  right: 100%;
}
.hero-img-side.img-right .letter2 {
  left: calc(100% + 8px);
  bottom: 70px;
}
.hero-img-side.img-right .letter2 svg {
  top: -9px;
  right: 100%;
}
.hero-img-side.img-right .letter3 {
  left: calc(100% + 8px);
  bottom: -5px;
}
.hero-img-side.img-right .letter3 svg {
  top: -9px;
  right: 100%;
}

@media (max-width: 1199px) {
  .hero-img-side.img-left img {
    width: 150px;
    height: 150px;
  }
  .hero-img-side.img-right img {
    width: 170px;
    height: 170px;
  }
  .hero-img-side.img-left .letter1,
  .hero-img-side.img-left .letter2,
  .hero-img-side.img-left .letter3,
  .hero-img-side.img-right .letter1,
  .hero-img-side.img-right .letter2,
  .hero-img-side.img-right .letter3 {
    display: none;
  }
}

@media (max-width: 991px) {
  .hero-img-side.img-left,
  .hero-img-side.img-right {
    display: none;
  }
}

/* ──────────────────────────────────────────
   BUTTONS & CTAs (KNUST GREEN & GOLD)
   ────────────────────────────────────────── */
.vl-btn4,
.btn-primary {
  background: linear-gradient(90deg, #005A2B 0%, #007A3D 100%) !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  padding: 12px 22px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  border: 1px solid #004D25 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 14px rgba(0, 90, 43, 0.3) !important;
}

.vl-btn4:hover,
.btn-primary:hover {
  background: linear-gradient(90deg, #FDB813 0%, #E5A812 100%) !important;
  color: #003B1C !important;
  border-color: #FDB813 !important;
  box-shadow: 0 4px 16px rgba(253, 184, 19, 0.4) !important;
}

.vl-btn4.bnt2,
.btn-secondary {
  background: #FDB813 !important;
  color: #003B1C !important;
  border: 1px solid #E5A812 !important;
  font-weight: 700 !important;
}

.vl-btn4.bnt2:hover,
.btn-secondary:hover {
  background: #005A2B !important;
  color: #ffffff !important;
  border-color: #004D25 !important;
}

/* ──────────────────────────────────────────
   WHITE SECTIONS BELOW HERO (CLEAN CONTRAST)
   ────────────────────────────────────────── */
.sptb {
  background: #ffffff !important;
}

.section-title h2,
.section-title .fs-30,
.card-title,
.heading5 h2,
.heading5 h3 {
  color: #005A2B !important;
  font-weight: 700 !important;
}

.section-title p,
.section-title .fs-18 {
  color: #555555 !important;
}

/* ────────────────────────────────────────────────
   CALL TO ACTION SECTION
   ──────────────────────────────────────────────── */

.cta-section {
  padding: 0;
  background: #f8faf9;
}

.cta-inner {
  background: #005A2B;
  border-radius: 0;
  padding: 4rem 3rem;
}

.cta-content h2 {
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.cta-content p {
  font-size: 1rem;
  color: #d4e8dc;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.cta-btn {
  display: inline-block;
  background: #FDB813;
  color: #003B1C;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 36px;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  border: 2px solid #FDB813;
}

.cta-btn:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.cta-img {
  max-width: 200px;
  height: auto;
}

.text-primary,
a.text-primary {
  color: #005A2B !important;
}

.text-primary:hover,
a.text-primary:hover {
  color: #FDB813 !important;
}

.breadcrumb-item.active a,
.breadcrumb-item.active {
  color: #FDB813 !important;
}

/* ────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────── */

.footer-support {
  background: #0f172a;
}

.footer-support .footer-main {
  padding: 3.5rem 0 2rem;
}

.footer-support .footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #FDB813;
  display: inline-block;
}

.footer-support .footer-main p {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-support .footer-main .footer-contact p {
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.footer-support .footer-main .footer-contact i {
  color: #FDB813;
  width: 16px;
}

.footer-support .list-unstyled li {
  margin-bottom: 0.45rem;
}

.footer-support .list-unstyled li a {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-support .list-unstyled li a:hover {
  color: #FDB813;
}

.footer-support .social-icons {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-support .social-icons li {
  margin: 0;
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  transition: all 0.2s ease;
}

.footer-support .social-icons li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-support .social-icons li:hover {
  background: #FDB813;
  border-color: #FDB813;
}

.footer-support .social-icons li:hover a {
  color: #0f172a;
}

.footer-support .sub-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 767px) {
  .footer-support .row.g-5 {
    --bs-gutter-x: 0;
  }

  .footer-support .row.g-5 > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
  }
}

.footer-support .sub-footer p,
.footer-support .sub-footer span {
  font-size: 0.82rem;
  color: #64748b;
}

.footer-support .sub-footer .footer-credit {
  color: #cbd5e1;
  font-weight: 500;
}

/* Force AOS elements visible */
[data-aos] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.image-anime,
.reveal {
  clip-path: none !important;
  opacity: 1 !important;
}

/* ────────────────────────────────────────────────
   QUICK HELP SECTION
   ──────────────────────────────────────────────── */

.quick-help-section {
  padding: 5rem 0 3.5rem;
  background: #ffffff;
}

.quick-help-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.quick-help-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
}

.quick-help-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  background: #f1f5f9;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.quick-help-card:hover .quick-help-icon {
  background: #e2e8f0;
}

.quick-help-icon i,
.quick-help-icon svg {
  font-size: 1.4rem;
  color: #005A2B;
  stroke: #005A2B;
  display: block;
}

.service-icon svg {
  color: #005A2B;
  stroke: #005A2B;
  display: block;
}

.quick-help-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.quick-help-card p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* mobile: compact 2-up grid, brand colors, flat institutional look */
@media (max-width: 991px) {
  .quick-help-section {
    padding: 3rem 0 2.5rem;
  }

  .quick-help-section .section-title {
    margin-bottom: 1.75rem;
  }

  .quick-help-section .section-title h2 {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  .quick-help-section .section-title p {
    font-size: 14px !important;
  }

  .quick-help-card {
    padding: 1.35rem 0.75rem 1.4rem;
    border-radius: 10px;
    border: 1px solid #dce8e1;
    box-shadow: none;
  }

  .quick-help-card:hover {
    box-shadow: none;
    border-color: #b8d0c1;
    color: inherit;
  }

  .quick-help-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #005A2B;
    margin-bottom: 0.8rem;
  }

  .quick-help-icon i,
  .quick-help-icon svg {
    font-size: 1.15rem;
    color: #FDB813;
    stroke: #FDB813;
    width: 22px;
    height: 22px;
  }

  .quick-help-card:hover .quick-help-icon {
    background: #004D25;
  }

  .quick-help-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #005A2B;
    letter-spacing: 0;
    margin-bottom: 0.3rem;
  }

  .quick-help-card p {
    font-size: 0.78rem;
    color: #5a6b62;
    line-height: 1.45;
  }
}

/* ────────────────────────────────────────────────
   OUR SERVICES CARDS
   ──────────────────────────────────────────────── */

.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #005A2B;
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: opacity 0.2s ease, width 0.2s ease;
}

.service-card:hover::before {
  opacity: 1;
  width: 56px;
}

.service-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.service-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem 2rem;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: #f1f5f9;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.service-card:hover .service-icon {
  background: #e2e8f0;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.service-icon i {
  font-size: 1.6rem;
  color: #005A2B;
}

.service-info h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.service-info p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   Beyable-Inspired Card Login Page — KNUST Branded
   ═══════════════════════════════════════════════════════════════ */

/* ── Body & HTML ── */
body.page-login,
html {
  height: 100% !important;
}

body.page-login {
  margin: 0;
  position: relative;
  background: #d8dfe6 !important;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
}

/* ── Hide conflicting body classes from template ── */
body.page-login.nav-md,
body.page-login.footer_fixed {
  min-height: auto;
}

/* ── Hide announcement alerts on login page ── */
body.page-login .knustlibdesk-announcement-alertgroup {
  display: none !important;
}

/* ── Neutralise template .page flex styles ── */
body.page-login .page {
  display: block;
  min-height: auto;
  position: static;
}

/* ── Neutralise template .login-form ::before divider ── */
.login-form::before {
  display: none !important;
  content: none !important;
}

/* ── Override dark mode login override ── */
.dark-mode .login-bg1::before {
  background: transparent !important;
}

/* ═══════════════════════════════════════════════════════════════
   MISTY LANDSCAPE BACKGROUND
   ═══════════════════════════════════════════════════════════════ */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    /* Soft foggy misty overlay */
    linear-gradient(
      180deg,
      rgba(200, 215, 225, 0.55) 0%,
      rgba(185, 205, 218, 0.35) 40%,
      rgba(160, 185, 205, 0.55) 70%,
      rgba(140, 165, 185, 0.7)  100%
    ),
    /* Mountains silhouette via radial gradients */
    radial-gradient(ellipse 80% 60% at 20% 85%, #8fa8b8 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 75% 88%, #7a99ad 0%, transparent 50%),
    radial-gradient(ellipse 60% 45% at 50% 90%, #6b8fa4 0%, transparent 48%),
    /* Sky gradient */
    linear-gradient(175deg, #e8eef3 0%, #d0dde7 35%, #c0cfd9 65%, #b0c2ce 100%);
  background-size: cover;
}

/* Extra misty atmospheric depth layers */
.login-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 40% at 50% 100%, rgba(140,165,180,0.5) 0%, transparent 60%),
    radial-gradient(ellipse 60% 30% at 30% 95%, rgba(160,180,195,0.4) 0%, transparent 50%),
    radial-gradient(ellipse 50% 25% at 70% 92%, rgba(150,170,188,0.35) 0%, transparent 45%);
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN CARD CONTAINER — white card, centered
   ═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   CARD CONTAINER & HEADER BANNER — Full-Width Edge-to-Edge Logo Header
   ═══════════════════════════════════════════════════════════════ */
.login-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 400px;
  max-width: calc(100vw - 24px);
  padding: 0;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0,0,0,0.10);
  overflow: hidden;
}

/* Wider card for registration page */
.login-inner--wide {
  width: 580px;
  max-width: calc(100vw - 24px);
}

.login-inner * {
  box-sizing: border-box;
}

.login-inner :focus {
  outline: 0;
}

/* ═══════════════════════════════════════════════════════════════
   CARD HEADER BANNER — KNUST Deep Green Header with Shield & Crisp Typography
   ═══════════════════════════════════════════════════════════════ */
.login-logo-circle {
  width: 100%;
  height: auto;
  border-radius: 0;
  background: linear-gradient(135deg, #005A2B 0%, #004D25 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px 24px 22px;
  overflow: hidden;
  box-shadow: none;
  border: none;
  position: relative;
}

.login-logo-circle::before {
  display: none;
}

/* Flex container for shield + text stretching horizontally left to right */
.login-header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 1;
}

.login-header-shield {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.login-header-text {
  flex: 1;
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-header-text .brand-title {
  color: #ffffff;
  font-family: 'Figtree', 'Inter', 'Roboto', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.login-header-text .brand-divider {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #FDB813 0%, #E5A812 85%, rgba(253,184,19,0.3) 100%);
  margin: 5px 0 4px;
  border-radius: 1px;
}

.login-header-text .brand-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Figtree', 'Inter', 'Roboto', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3.8px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   CARD BODY — white area with form
   ═══════════════════════════════════════════════════════════════ */
.login-form {
  padding: 28px 32px 20px;
}

/* ── Form Controls Container ── */
.login-form-controls {
  width: 100%;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  margin-bottom: 6px;
  box-shadow: none;
}

/* Each field row */
.login-form-controls .username,
.login-form-controls .password {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #c8c8c8;
  margin-bottom: 18px;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.login-form-controls .username:focus-within,
.login-form-controls .password:focus-within {
  border-bottom-color: #005A2B;
}

/* Left icon — SVG background image, no font dependency */
.login-form-controls .username::before,
.login-form-controls .password::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-right: 14px;
  margin-top: 2px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.login-form-controls .username:focus-within::before,
.login-form-controls .password:focus-within::before {
  opacity: 1;
  filter: invert(25%) sepia(90%) saturate(500%) hue-rotate(110deg) brightness(60%);
}

/* Mail icon for email/username */
.login-form-controls .username::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'%3E%3C/rect%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'%3E%3C/path%3E%3C/svg%3E");
}

/* Lock icon for password */
.login-form-controls .password::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
}

/* OTP field row */
.login-form-controls .otp {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #c8c8c8;
  margin-bottom: 18px;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.login-form-controls .otp:focus-within {
  border-bottom-color: #005A2B;
}

/* Key icon for OTP — SVG data URI */
.login-form-controls .otp::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-right: 14px;
  margin-top: 2px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.45;
  transition: opacity 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='5.5'%3E%3C/circle%3E%3Cpath d='m21 2-9.6 9.6'%3E%3C/path%3E%3Cpath d='m15.5 7.5 3 3L22 7l-3-3'%3E%3C/path%3E%3C/svg%3E");
}

.login-form-controls .otp:focus-within::before {
  opacity: 1;
  filter: invert(25%) sepia(90%) saturate(500%) hue-rotate(110deg) brightness(60%);
}

/* Remove old ::after pseudo-icons */
.login-form-controls .username::after,
.login-form-controls .password::after,
.login-form-controls .otp::after {
  content: none !important;
  display: none !important;
}

/* Input fields */
.login-form-controls input {
  flex: 1;
  padding: 10px 0 10px 0;
  border: none;
  background: none;
  width: 100%;
  display: block;
  font-size: 14px;
  color: #444;
  box-shadow: none !important;
}

.login-form-controls input::placeholder {
  color: #aab4bc;
  font-size: 14px;
}

.login-form-controls input[type=text],
.login-form-controls input[type=password] {
  border: none;
  border-bottom: none;
}

/* ── XPay input focus style ── */
.form-control-no-border:focus {
  border-color: transparent !important;
  border-radius: 0 !important;
  outline: 0 !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

/* ── Remember Me row ── */
.login-inner .remember-row {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
  margin-top: 4px;
}

.login-inner .remember-row label {
  color: #6b7280;
  font-size: 0.82rem;
  cursor: pointer;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.login-inner .remember-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  accent-color: #005A2B;
  cursor: pointer;
  border: 1px solid #b0b8c1;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ── Login Submit Button — KNUST Green ── */
.login-inner button.g-flip,
.login-inner button[type="submit"] {
  width: auto !important;
  display: block !important;
  margin: 0 auto !important;
  padding: 11px 48px !important;
  border-radius: 3px !important;
  border: none !important;
  background: #005A2B !important;
  cursor: pointer !important;
  color: #fff !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 10px rgba(0, 90, 43, 0.35) !important;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
  text-align: center !important;
}

.login-inner button.g-flip:hover,
.login-inner button[type="submit"]:hover {
  background: #004D25 !important;
  box-shadow: 0 4px 16px rgba(0, 90, 43, 0.45) !important;
  transform: translateY(-1px) !important;
}

.login-inner button.g-flip:disabled,
.login-inner button[type="submit"]:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* ── Social Buttons (Google etc.) ── */
.login-inner button.g,
.login-inner a.g,
.login-inner .login-btn.g {
  background: #e8212d;
  margin-bottom: 14px;
  text-transform: initial;
  border-radius: 3px;
}

.login-inner button.g:hover,
.login-inner a.g:hover,
.login-inner .login-btn.g:hover {
  background: #c41e28;
}

/* ── login-btn anchor base ── */
.login-inner a.login-btn,
.login-inner .login-btn {
  width: 100%;
  display: block;
  padding: 10px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1em;
  font-weight: normal;
  box-shadow: 0 1px 1px rgba(0,0,0,.15);
  text-align: center;
  text-decoration: none;
}

.login-inner a.login-btn:hover,
.login-inner .login-btn:hover {
  text-decoration: none;
  color: #fff;
}

/* ── Loading/Authing State ── */
.login-inner button.authing {
  background: rgba(0, 90, 43, 0.5) !important;
  padding: 11px 48px;
  cursor: default;
}

/* ── Back Link ── */
.login-inner .back {
  width: 100%;
  display: block;
  color: #6b7280;
  margin-top: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 0.9em;
}

.login-inner .back i {
  margin-right: 4px;
}

/* ── Forgot Password ── */
.login-inner .forgot-row {
  text-align: center;
  margin-top: 16px;
  padding-bottom: 6px;
}

.login-inner .forgot-row a {
  color: #3ab0e2;
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.login-inner .forgot-row a:hover {
  color: #2396c8;
  text-decoration: underline;
}

/* ── Social login divider (or label) ── */
.login-inner .social-label {
  text-align: center;
  color: #9ca3af;
  font-size: 0.75em;
  margin: 15px 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Error Messages ── */
.login-inner .error-msg {
  color: #e53e3e;
  font-size: 0.75rem;
  margin-top: 4px;
  display: block;
}

.login-inner .invalid-feedback {
  color: #e53e3e;
  font-size: 0.75rem;
}

/* ── Footer ── */
.login-inner footer div {
  color: #9ca3af;
  font-size: 10px;
  margin: 20px 0 -4px;
  text-align: center;
  padding: 0 32px 16px;
}

/* ── Institution Link (bottom) — hide or style as subtle link ── */
a.login-reg {
  color: #6b7280;
  text-align: center;
  display: block;
  margin-top: 10px;
  font-size: 0.75em;
  text-decoration: none;
}

a.login-reg img {
  width: 18px;
  vertical-align: middle;
  margin-right: 5px;
  filter: grayscale(100%) opacity(0.6);
}

a.login-reg:hover {
  color: #374151;
  text-decoration: none;
}

/* ── Form Input (generic, within login form) ── */
.login-inner input {
  width: 100%;
  display: block;
}

/* ── Responsive ── */
@media (max-width: 420px) {
  .login-inner {
    width: calc(100vw - 28px);
    border-radius: 3px;
  }
  .login-form {
    padding: 22px 20px 16px;
  }
  .login-logo-circle {
    padding: 22px 20px 20px;
    gap: 10px;
  }
  .login-site-title {
    font-size: 1.2rem;
    letter-spacing: 1.5px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD HEADER & SIDEBAR BANNER LOGO
   ═══════════════════════════════════════════════════════════════ */
.app-sidebar__logo .header-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 12px !important;
  width: 100% !important;
}

/* Mobile header: logo left, hamburger right, clean top bar */
@media (max-width: 991px) {
  .support-mobile-header .smallogo {
    margin-left: 0;
    min-width: 0;
    flex-shrink: 1;
  }

  .support-mobile-header .smallogo img {
    max-height: 40px !important;
    height: 40px !important;
    max-width: 230px !important;
  }

  .support-mobile-header .animated-arrow.horizontal-navtoggle {
    position: static !important;
    left: auto !important;
    top: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0 !important;
    background: #f1f4fb;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .support-mobile-header .animated-arrow.horizontal-navtoggle span {
    margin: 0;
  }

  .support-mobile-header .d-flex.align-items-center > *:not(.animated-arrow) {
    margin-right: 6px;
  }

  .support-mobile-header .profile-dropdown .nav-link,
  .support-mobile-header .header-message .nav-link {
    margin: 0 !important;
  }
}

.app-sidebar__logo .header-brand-img,
.header-main .header-brand-img {
  max-height: 46px !important;
  height: 46px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.support-mobile-header .smallogo img {
  max-height: 40px !important;
  height: 40px !important;
  width: auto !important;
  max-width: 230px !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE OFFSCANVAS MENU (KNUST Green panel)
   ═══════════════════════════════════════════════════════════════ */
.vl-offcanvas,
.homepage3-body .vl-offcanvas {
  background: #005A2B;
  background: linear-gradient(180deg, #005A2B 0%, #003E1F 100%);
  width: 85%;
  max-width: 380px;
  padding: 24px 20px;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.25);
  z-index: 1005;
}

.vl-offcanvas-overlay,
.homepage3-body .vl-offcanvas-overlay {
  z-index: 1000;
}

.vl-offcanvas .vl-offcanvas-header,
.homepage3-body .vl-offcanvas .vl-offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.vl-offcanvas .vl-offcanvas-logo,
.homepage3-body .vl-offcanvas .vl-offcanvas-logo {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.vl-offcanvas .vl-offcanvas-close-toggle,
.homepage3-body .vl-offcanvas .vl-offcanvas-close-toggle {
  font-size: 26px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  line-height: 1;
  transition: background 0.25s;
}

.vl-offcanvas .vl-offcanvas-close-toggle:hover,
.homepage3-body .vl-offcanvas .vl-offcanvas-close-toggle:hover {
  background: rgba(255, 255, 255, 0.26);
}

.vl-offcanvas-menu ul,
.homepage3-body .vl-offcanvas-menu ul {
  padding: 0;
  margin: 0;
}

.vl-offcanvas-menu ul li a,
.homepage3-body .vl-offcanvas-menu ul li a {
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: color 0.25s, padding-left 0.25s;
}

.vl-offcanvas-menu ul li a:hover,
.homepage3-body .vl-offcanvas-menu ul li a:hover {
  color: #FFD200;
  padding-left: 6px;
}

.vl-offcanvas-menu ul li.active > a,
.homepage3-body .vl-offcanvas-menu ul li.active > a {
  color: #FFD200;
}

.vl-offcanvas-menu ul li .span-arrow,
.homepage3-body .vl-offcanvas-menu ul li .span-arrow {
  display: block;
}

.vl-offcanvas .vl-offcanvas-logo {
  filter: brightness(0) invert(1);
}

@media (max-width: 450px) {
  .vl-offcanvas,
  .homepage3-body .vl-offcanvas {
    width: 88%;
    max-width: 88%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   KNUST DASHBOARD BRANDING THEME ACCENTS (KNUST Green & Gold)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --primary-bg-color: #005A2B !important;
  --primary-bg-hover: #004D25 !important;
  --primary-bg-border: #005A2B !important;
  --primary: #005A2B !important;
  --primary-color: #005A2B !important;
  --knust-green: #005A2B;
  --knust-green-dark: #004D25;
  --knust-green-light: #007A3D;
  --knust-gold: #FDB813;
  --knust-gold-dark: #E5A812;
}

/* ═══════════════════════════════════════════════════════════════
   PROFESSIONAL INSTITUTIONAL SIDEBAR & DASHBOARD BRANDING
   ═══════════════════════════════════════════════════════════════ */
.app-sidebar,
.app-sidebar3,
.side-menu,
.app-sidebar__logo {
  background: #005A2B !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.app-sidebar__logo {
  background: #005A2B !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 16px 12px !important;
}

.app-sidebar__logo .header-brand-img {
  max-height: 54px !important;
  height: 54px !important;
  width: 100% !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.12));
}

.side-menu__item {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  border-radius: 4px;
  margin: 2px 10px;
  padding: 10px 14px !important;
  transition: all 0.15s ease-in-out;
}

.side-menu__item .side-menu__icon,
.sidemenu_icon {
  fill: rgba(255, 255, 255, 0.85) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.side-menu__item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.side-menu__item:hover .side-menu__icon {
  fill: #ffffff !important;
  color: #ffffff !important;
}

.side-menu__item.active {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  border-left: 3px solid #FDB813 !important;
  font-weight: 700 !important;
}

.side-menu__item.active .side-menu__icon {
  fill: #FDB813 !important;
  color: #FDB813 !important;
}

.side-menu__category {
  color: #FDB813 !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase;
  padding: 18px 20px 6px !important;
  opacity: 0.95;
}

.slide-menu a.slide-item {
  color: rgba(255, 255, 255, 0.82) !important;
}

.slide-menu a.slide-item:hover,
.slide-menu a.slide-item.active {
  color: #FDB813 !important;
}

/* Badges & highlights */
.badge-primary,
.bg-primary {
  background-color: var(--knust-green) !important;
}

.badge-warning,
.bg-warning {
  background-color: var(--knust-gold) !important;
  color: #0f172a !important;
  font-weight: 600;
}

/* Dashboard Cards & Headers */
.card-header {
  border-bottom: 2px solid #FDB813 !important;
  background: #ffffff;
}

.page-title {
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.nav-tabs .nav-link.active {
  border-bottom: 2px solid var(--knust-green) !important;
  color: var(--knust-green) !important;
  font-weight: 600;
}

/* Pagination & Links */
.page-item.active .page-link {
  background-color: var(--knust-green) !important;
  border-color: var(--knust-green) !important;
}

a.text-primary,
.text-primary {
  color: var(--knust-green) !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE HERO — Simple & Clean (max-width: 991px only)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {

  /* photo of students at the library, with a dark green overlay for legibility */
  .hero3-section-area {
    background-image: linear-gradient(rgba(0, 26, 11, 0.62), rgba(0, 90, 43, 0.82)), url(../../img/all-images/hero/hero-img-knust-guys.png) !important;
    background-color: #005A2B !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    padding: 120px 0 64px !important;
  }

  .hero3-section-area::before,
  .hero3-section-area::after {
    display: none !important;
  }

  .hero3-section-area .elements24,
  .hero3-section-area .elements25 {
    display: none !important;
  }

  /* single centered column */
  .hero3-section-area .row > .col-lg-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero3-section-area .hero3-header.heading3.text-center {
    max-width: 440px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .hero-img-side.img-left,
  .hero-img-side.img-right {
    display: none !important;
  }

  /* kicker — simple small caps, centered */
  .hero3-section-area .hero3-header h5 {
    display: block !important;
    color: #FDB813 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 0 14px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
    line-height: 1.3 !important;
  }

  .hero3-section-area .hero3-header h5::before {
    content: none;
  }

  .hero3-section-area .hero3-header h5 img {
    display: none !important;
  }

  /* headline — uppercase, balanced lines */
  .hero3-section-area .hero3-header h1 {
    color: #ffffff !important;
    font-size: 28px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.4px !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    text-wrap: balance;
    text-wrap: pretty;
  }

  /* subtext */
  .hero3-section-area .hero3-header > p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    max-width: 360px;
    margin: 14px auto 0 !important;
  }

  /* simple flat white search bar — no glow, no soft shadow */
  .hero3-section-area .hero3-header form {
    width: 100% !important;
    max-width: 460px;
    margin: 24px auto 0 !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 4px !important;
    padding: 5px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .hero3-section-area .hero3-header form:focus-within {
    border-color: #007A3D !important;
    box-shadow: none !important;
  }

  .hero3-section-area .hero3-header form,
  .hero3-section-area .hero3-header form input {
    text-align: left;
  }

  .hero3-section-area .hero3-header form input {
    color: #1a2b24 !important;
    font-size: 14.5px !important;
    padding: 13px 118px 13px 18px !important;
    background: transparent !important;
    min-height: 44px;
  }

  .hero3-section-area .hero3-header form input::placeholder {
    color: #7d8a83 !important;
    opacity: 1;
  }

  .hero3-section-area .hero3-header form input:focus::placeholder {
    color: #a8b4ad !important;
  }

  .hero3-section-area .hero3-header form .vl-btn4 {
    top: 5px;
    right: 5px;
    bottom: 5px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 24px !important;
    border-radius: 3px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    background: #005A2B !important;
    box-shadow: none !important;
    white-space: nowrap !important;
  }

  .hero3-section-area .hero3-header form .vl-btn4::before,
  .hero3-section-area .hero3-header form .vl-btn4::after {
    display: none !important;
  }

  .hero3-section-area .hero3-header form .vl-btn4:hover {
    background: #004D25 !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* hide extra content on mobile — keep it minimal */
  .hero-popular-tags,
  .hero3-section-area .hero3-header.heading3.text-center h4,
  .hero3-section-area .hero3-header.heading3.text-center ul,
  .hero3-section-area .hero3-header.heading3.text-center .hero-popular-tags + .space24,
  .hero3-section-area .hero3-header.heading3.text-center h4 + .space24 {
    display: none !important;
  }

  /* consistent vertical rhythm */
  .hero3-section-area .hero3-header .space24 {
    height: 14px !important;
  }

  .hero3-section-area .hero3-header .space18 {
    height: 12px !important;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .hero3-section-area .hero3-header h1 {
    font-size: 32px !important;
    line-height: 1.25 !important;
    letter-spacing: 0.4px !important;
  }
}
