/* ==========================================================
   ENHANCEMENTS - loaded AFTER base.css (only adds polish).
   Delete this file and the site returns to the original look.
   ========================================================== */

/* ---- University header ---- */
.university {
  box-shadow: 0 2px 14px #092b5512;
  position: relative;
  z-index: 2
}

/* ---- NAVBAR: gradient, shadow, glow ---- */
.navbar {
  background: linear-gradient(180deg, #0d3a70 0%, var(--navy) 100%);
  box-shadow: 0 6px 22px #04142c66, 0 1px 0 #ffffff1a inset;
  border-bottom: 3px solid var(--orange);
  transition: box-shadow .3s
}

.navbar.scrolled {
  box-shadow: 0 10px 30px #04142caa
}

.nav-links>li>a {
  position: relative;
  letter-spacing: .6px;
  transition: background .25s, text-shadow .25s
}

.nav-links>li>a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--orange);
  box-shadow: 0 0 12px 2px #e87924aa;
  transition: width .3s, left .3s
}

.nav-links>li:hover>a::after,
.nav-links>li.active>a::after {
  width: 100%;
  left: 0
}

.nav-links>li:hover>a,
.nav-links>li.active>a {
  background: linear-gradient(180deg, #1a5a9c, var(--blue));
  text-shadow: 0 0 10px #ffffff88
}

.dropdown {
  box-shadow: 0 18px 40px #04142c55;
  border-radius: 0 0 6px 6px;
  animation: dropIn .25s ease both
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.dropdown a {
  transition: padding-left .2s, background .2s
}

.dropdown a:hover {
  padding-left: 21px;
  border-left: 3px solid var(--orange)
}

.nav-right button {
  border-radius: 3px;
  font-weight: bold;
  transition: .25s;
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), #f59a4d);
  box-shadow: 0 0 14px #e8792477;
  animation: glowPulse 2.6s infinite
}

.nav-right button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px #e87924cc
}

@keyframes glowPulse {
  50% {
    box-shadow: 0 0 24px #e87924dd
  }
}

.btn {
  border-radius: 4px;
  transition: .25s;
  box-shadow: 0 4px 12px #e8792444
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #e8792466
}

/* ---- NEWS TICKER ---- */
.ticker {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px #0000000a
}

.ticker-inner {
  display: flex;
  align-items: stretch;
  height: 40px
}

.ticker-label {
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 0 22px 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%)
}

.ticker-label i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.1s infinite
}

@keyframes blink {
  50% {
    opacity: .25
  }
}

.ticker-window {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-left: 8px
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: tick 50s linear infinite
}

.ticker-track:hover {
  animation-play-state: paused
}

.ticker-track a {
  font-size: 13px;
  color: var(--navy);
  padding: 0 30px 0 0;
  margin-right: 30px;
  position: relative
}

.ticker-track a::after {
  content: "◆";
  position: absolute;
  right: 0;
  color: var(--orange);
  font-size: 8px;
  top: 5px
}

.ticker-track a:hover {
  color: var(--orange)
}

.ticker-track b {
  color: var(--orange);
  margin-right: 6px
}

@keyframes tick {
  to {
    transform: translateX(-50%)
  }
}

/* ---- HERO: richer overlay, coloured + animated text ---- */
.hero {
  height: 520px
}

.hero-slide {
  transform: scale(1.08);
  transition: opacity 1s, transform 7s ease-out
}

.hero-slide.active {
  transform: scale(1)
}

.hero-overlay {
  /* Lighter overlay: photo stays visible, text is still readable */
  background: linear-gradient(90deg, #061b37cc 0%, #061b374d 60%, #061b371a 100%);
}

.hero-content {
  padding-top: 50px
}

.hero-content .tag {
  display: inline-block;
  background: #e8792426;
  border: 1px solid #e8792499;
  padding: 5px 14px;
  border-radius: 30px
}

.hero-content h2 {
  text-shadow: 0 4px 24px #0008
}

.hero-content h2 .accent {
  background: rgb(234, 255, 0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.hero-content p {
  border-left: 3px solid var(--orange);
  padding-left: 14px;
  line-height: 1.8
}

.hero-content.animate>* {
  animation: fadeUp .8s ease both
}

.hero-content.animate>*:nth-child(2) {
  animation-delay: .12s
}

.hero-content.animate>*:nth-child(3) {
  animation-delay: .24s
}

.hero-content.animate>*:nth-child(4) {
  animation-delay: .36s
}

.hero-content.animate>*:nth-child(5) {
  animation-delay: .48s
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.hero-dots button {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: #ffffff55;
  transition: width .3s
}

.hero-dots button.active {
  background: #ffffff55
}

.hero-dots button.active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform-origin: left;
  animation: fill 5s linear both
}

@keyframes fill {
  from {
    transform: scaleX(0)
  }

  to {
    transform: scaleX(1)
  }
}

.hero-arrow button {
  transition: .25s
}

.hero-arrow button:hover {
  background: var(--orange);
  border-color: var(--orange)
}

.hero-count {
  position: absolute;
  right: 5%;
  top: 26px;
  z-index: 4;
  font-size: 13px;
  letter-spacing: 2px;
  background: #06172d88;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #ffffff33
}

---- Card polish ----
.faculty-card,
.resource,
.placement-card,
.notice-main,
.point,
.portal {
  box-shadow: 0 2px 10px #092b550d;
  transition: .3s
}

.faculty-card:hover,
.resource:hover,
.placement-card:hover {
  box-shadow: 0 14px 30px #092b5526;
  transform: translateY(-5px)
}

.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--orange);
  margin-top: 9px
}

.section-head.center h2::after {
  margin-left: auto;
  margin-right: auto
}

.stat {
  border-right: 1px solid #ffffff22
}

.stat:last-child {
  border: 0
}

/* ---- INNER PAGE BANNER ---- */
.page-banner {
  background: linear-gradient(110deg, #061b37, var(--blue));
  color: #fff;
  padding: 40px 0;
  border-bottom: 4px solid var(--orange)
}

.page-banner h1 {
  font-size: 32px
}

.breadcrumb {
  font-size: 12px;
  color: #ffc07e;
  margin-bottom: 6px
}

.breadcrumb a:hover {
  text-decoration: underline
}

/* ---- FORMS ---- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 8px 24px #092b5512;
  max-width: 560px;
  margin: auto
}

.form-card label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin: 13px 0 5px;
  color: var(--navy)
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline-color: var(--blue)
}

.form-card .btn {
  margin-top: 18px
}

.form-msg {
  font-size: 13px;
  margin-top: 12px;
  color: #c65c16
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 6px
}

.hidden {
  display: none
}

.search-results a {
  color: var(--orange);
  margin-right: 16px;
  font-weight: bold
}

body.dark .form-card,
body.dark .ticker {
  background: #1a2b41
}

body.dark .ticker-track a,
body.dark .form-card label {
  color: #e4eaf2
}

body.dark .form-card input,
body.dark .form-card textarea,
body.dark .form-card select {
  background: #243950;
  color: #fff
}

@media(max-width:760px) {
  .hero {
    height: 490px
  }

  .hero-count {
    display: none
  }

  .ticker-label span {
    display: none
  }

  .stat {
    border: 0
  }
}

/* Slide fallback colours: each slide is visibly different even if its photo is missing */
.hero-slide:nth-of-type(1) {
  background-color: #0b2f5e
}

.hero-slide:nth-of-type(2) {
  background-color: #0d4a5c
}

.hero-slide:nth-of-type(3) {
  background-color: #3a2a6b
}
/* ---- Phase 3 additions (appended; nothing above was changed) ---- */
.faculty-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.faculty-avatar:has(img){overflow:hidden}
.notice-info a[data-act]{color:var(--orange);font-weight:bold;font-size:12px}
.form-card .btn + .btn{margin-left:8px;background:#718096}
