:root {
  --brand: #9e0906;
  --brand-dark: #7c0705;
  --ink: #202224;
  --ink-soft: #252525;
  --muted: #898989;
  --muted-2: #666666;
  --surface: #f4f4f4;
  --line: #d9d9d9;
  --white: #ffffff;
  --shadow: 0 0 15px rgba(0, 0, 0, 0.07), 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --font-heading: "Lora", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 500;
}

p{
  font-size: clamp(1rem, 1.1vw, 1.125rem);
}

.container-site {
  width: clamp(20rem, 92vw, 85%);
  margin-inline: auto;
}

.font-heading {
  font-family: var(--font-heading);
  font-weight: 500;
}

.eyebrow {
  color: var(--brand);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.4vw, 1.175rem);
  line-height: 1.3;
}

.section-title {
  font-size: clamp(1.75rem, 3.6vw, 3.1rem);
  line-height: 1.15;
  color: var(--ink);
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: clamp(2.8rem, 4vw, 3.2rem);
  padding: 0 1.15rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.1vw, 1.0625rem);
  line-height: 2;
  letter-spacing: -0.035em;
  transition: 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-white {
  background: var(--white);
  color: var(--brand);
}

.btn-white:hover {
  background: #f3f3f3;
}

.btn-outline {
  border: 2px solid var(--brand);
  color: var(--brand);
  background: transparent;
}

.btn-outline:hover {
  background: var(--brand);
  color: var(--white);
}

.btn-outline:hover img {
  filter: brightness(0) invert(1);
}

.btn-outline-white {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--brand);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.1vw, 1.0625rem);
  letter-spacing: -0.035em;
  transition: all 0.2s ease-in-out;
}

.link-more:hover {
  gap: 0.75rem;
}

/* Ticker */
.ticker {
  background: var(--brand);
  color: var(--white);
  overflow: hidden;
  height: 38px;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}

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

.ticker-item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0 2.5rem;
  font-size: clamp(0.78rem, 1.1vw, 0.925rem);
  font-weight: 600;
  white-space: nowrap;
  line-height: 38px;
}

.established-year{
  white-space: nowrap;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Header */
.site-header {
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  z-index: 40;
  transition: background 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-top: clamp(0.85rem, 1.6vw, 1.25rem);
  padding-bottom: clamp(0.6rem, 1.2vw, 0.9rem);
}

.header-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.site-header.is-scrolled {
  position: fixed;
  top: 0;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled .logo-light { display: none; }
.site-header.is-scrolled .logo-dark { display: block; }
.logo-dark { display: none; }

.nav-pill {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  /* overflow-x: hidden; */
  border-radius: 8px;
}

.nav-glass {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  padding: 0 clamp(1rem, 1.8vw, 1.6rem);
  min-height: clamp(3.1rem, 4.4vw, 4rem);
  /* background: rgba(45, 38, 34, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); */


  background: linear-gradient(116deg, rgba(239, 239, 239, 0.42) 10.92%, rgba(255, 255, 255, 0.21) 55.71%);
  backdrop-filter: blur(38.07310485839844px);

  color: var(--white);
  -webkit-border-top-left-radius: 10px;
  -webkit-border-bottom-left-radius: 10px;
  -moz-border-radius-topleft: 10px;
  -moz-border-radius-bottomleft: 10px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.is-scrolled .nav-glass{
  background: rgba(45, 38, 34, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(8.2rem, 12vw, 9.6rem);
  padding: 0 1.2rem;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.1vw, 1.0625rem);
  letter-spacing: -0.035em;
  white-space: nowrap;
  transition: background 0.25s ease;
  -webkit-border-top-right-radius: 10px;
-webkit-border-bottom-right-radius: 10px;
-moz-border-radius-topright: 10px;
-moz-border-radius-bottomright: 10px;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
}

.nav-apply:hover {
  background: var(--brand-dark);
}

.nav-link {
  color: var(--white);
  font-size: clamp(0.85rem, 1vw, 1.1rem);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-link svg{
  width: 7px;
  height: auto;
}

.search-btn,
.menu-toggle {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-link:hover,
.nav-link.is-open {
  opacity: 0.8;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  z-index: 50;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 1.1rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.nav-dropdown a:hover {
  background: #f7f7f7;
  color: var(--brand);
}

.mobile-panel {
  display: none;
  background: var(--white);
  border-top: 1px solid #eee;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel .mobile-acc-btn,
.mobile-panel .container-site > a {
  border-bottom: 1px solid #eeeeee;
}

.mobile-acc-arrow {
  width: 12px;
  height: 8px;
  flex-shrink: 0;
  color: var(--brand);
  transition: transform 0.2s ease;
}

.mobile-acc-btn.is-open .mobile-acc-arrow {
  transform: rotate(180deg);
}

.get-in-touch-section{
  background: #fff;
  border-top-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(34rem, 100vh, 56.5rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.footer-social-icon{
  border: 1px solid #ccc;
  border-radius: 15px;
  padding: 5px 7px;
  transition: all 0.2s ease-in-out;
}

.footer-social-icon:hover{
  background: var(--brand);
  color: #fff;
}

.footer-social-icon:hover img{
  filter: brightness(10);
}

.footer-grid{
  border-right: 1px solid #ccc;
}

.footer-grid a:hover, .footer-bottom-links a:hover{
  color: #7c0705;
}

.footer-grid:last-child{
  border-right: none;
}

.step{
  border-radius: 5px;
}

.hero video,
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 1;
}

.hero-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(2.5rem, 6vw, 5.9rem);
  background: var(--surface);
  border-radius: 60px 60px 0 0;
  z-index: 2;
}

.naac-ribbon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: start;
  min-width: clamp(9.5rem, 14vw, 11.5rem);
  height: 28px;
  color: var(--white);
  font-size: 0.925rem;
  font-weight: 600;
}

.naac-ribbon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.naac-ribbon span {
  position: relative;
  z-index: 1;
  padding-left: 10px;
}

/* Cards */
.program-card,
.feature-copy,
.faculty-card,
.event-card,
.alumni-card,
.touch-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.program-card:hover img.card-img,
.event-card:hover img,
.blog-card:hover img,
.faculty-card:hover img {
  transform: scale(1.05);
}

.events-swiper {
  overflow: hidden;
  padding: 0.75rem 0 1rem;
}

.events-swiper .event-card {
  width: 100%;
  height: 100%;
  transform: scale(0.88);
  opacity: 0.4;
  transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
}

.events-swiper .swiper-slide-prev .event-card,
.events-swiper .swiper-slide-next .event-card {
  transform: scale(0.94);
}

@media(max-width:991px){
  .events-swiper .swiper-slide-prev,
  .events-swiper .swiper-slide-next, 
  #faculty .swiper-button-prev,
  #faculty .swiper-button-next,
  #events .swiper-button-prev,
  #events .swiper-button-next{
    display: none;
  }

  .career-outcomes{
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }
  .recruitCompanies{
    border-radius: 0;
  }

  h1.hero-title{
    line-height: normal;
  }
}

.events-swiper .swiper-slide-active .event-card {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.faq-item.is-open span{
  color: var(--brand);
}

.event-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #eeeeee;
  border-radius: 4px;
  overflow: hidden;
}

.event-card-media {
  position: relative;
  height: clamp(10.5rem, 16vw, 13.75rem);
  overflow: hidden;
  flex-shrink: 0;
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card-tag {
  position: absolute;
  top: 0rem;
  left: 0rem;
  background: var(--white);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.7rem 0.75rem;
}

.event-card-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 1;
  padding: 0.95rem 0.95rem 1.1rem;
  background: var(--white);
}

.event-card-date {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.event-card-body h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  line-height: 1.3;
  color: var(--ink);
  margin-top: 0.35rem;
}

.event-card-go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border: 1.5px solid var(--brand);
  border-radius: 999px;
  color: var(--brand);
}

.programs-swiper .swiper-wrapper,
.alumni-swiper .swiper-wrapper,
.events-swiper .swiper-wrapper {
  align-items: stretch;
}

.programs-swiper .swiper-slide,
.alumni-swiper .swiper-slide,
.events-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.program-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.program-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-card-body .link-more,
.feature-copy .link-more {
  border: 1px solid var(--brand);
  border-radius: 5px;
  width: fit-content;
  padding: 10px 15px;
}

.program-card-body .link-more {
  margin-top: auto;
}

.program-card-body .link-more:hover,
.feature-copy.bg-white .link-more:hover {
  background: var(--brand);
  color: #fff;
}

.program-card-body .link-more:hover img,
.feature-copy.bg-white .link-more:hover img {
  filter: brightness(0) invert(1);
}

.feature-copy.bg-brand .link-more {
  border-color: #fff;
  color: #fff;
}

.feature-copy.bg-brand .link-more img {
  filter: brightness(0) invert(1);
}

.feature-copy.bg-brand .link-more:hover {
  background: #fff;
  color: var(--brand);
}

.feature-copy.bg-brand .link-more:hover img {
  filter: none;
}

.program-card-body h3{
  margin-bottom: 20px;
}

.card-img,
.event-card img,
.blog-card img,
.faculty-card img {
  transition: transform 0.5s ease;
}

.overlap-block {
  position: relative;
  min-height: clamp(16rem, 38vw, 29.7rem);
}

.overlap-card {
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .overlap-card {
    position: absolute;
    width: clamp(20rem, 40vw, 40rem);
    bottom: 0;
    transform: translateY(15%);
  }

  .overlap-card.right {
    right: 0;
  }

  .overlap-card.left {
    left: 0;
  }
}

/* Partners */
.partners-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: clamp(1.75rem, 4vw, 3rem) clamp(2rem, 6vw, 5rem);
  background: var(--white);
  border-radius: 16px;
  padding: clamp(1.75rem, 4.5vw, 3.5rem) clamp(1.5rem, 6vw, 4.5rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.partners-card img {
  height: clamp(4rem, 9vw, 9rem);
  width: auto;
  max-width: min(100%, 16rem);
  object-fit: contain;
}

/* Stats */
.stat-bar {
  background: var(--brand);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 3.8vw, 3.25rem) clamp(0.75rem, 2vw, 1.5rem);
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.stat-item:nth-child(2n) {
  border-right: 0;
}

.stat-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.stat-num {
  font-size: clamp(2rem, 4vw, 3.125rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
  font-weight: 500;
}

@media (min-width: 1024px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-item {
    border-bottom: 0;
  }

  .stat-item:nth-child(2n) {
    border-right: 1px solid rgba(255, 255, 255, 0.28);
  }

  .stat-item:nth-child(4n) {
    border-right: 0;
  }
}

/* Placement */
.placement {
  position: relative;
  /* min-height: clamp(28rem, 56vw, 56.75rem); */
  overflow: hidden;
}

.placement-stats {
  /* background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px); */
}

.placement-brand{
  font-weight: 600;
}

.placement-brand span{
  font-weight: 500;
}

.placementText{
  font-weight: 500;
}

.recruiters {
  /* background: rgba(217, 217, 217, 0.42); */
  backdrop-filter: blur(8px);
}

.recruiter-chip {
  width: clamp(8rem, 8.5vw, 8.5rem);
  height: clamp(2rem, 3.4vw, 3.75rem);
  /* background: rgba(255, 255, 255, 0.72); */
  border: 1px solid #fff;
  border-radius: 4px;
  display: flex;
}

@media(max-width:991px){
  .recruiter-chip {
    width: clamp(7.5rem, 8.5vw, 8.5rem);
    height: clamp(3rem, 3.4vw, 3.75rem);
  }

  .to-transparent{
    background: var(--brand);
  }
}

@media(max-width:375px){
  .recruiter-chip {
    width: 47%;
    height: clamp(3rem, 3.4vw, 3.75rem);
  }
}

.recruiter-chip img{
  margin: auto;
  display: block;
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 90%;
}

.recruiter-chip a{
  margin: auto;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.recruiter-chip a:hover{
  background: #fff;
  color: var(--brand);
}

/* Rankings */
.rank-item {
  text-align: center;
  min-width: 0;
}

.rank-item img {
  width: clamp(1.4rem, 2.2vw, 1.7rem);
  height: clamp(1.4rem, 2.2vw, 1.7rem);
  margin: 0;
  object-fit: contain;
}

.rank-icon {
  width: clamp(2.7rem, 4vw, 3.4rem);
  height: clamp(2.7rem, 4vw, 3.4rem);
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Alumni */
.alumni-section {
  /* background: var(--brand); */
  background: #f7f7f7 url("../images/alumni/alumni-bg.jpg") no-repeat;
  background-size: 100% auto;
  background-position: center top;
}

.alumni-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 19.6rem;
}

.alumni-card-media-thumb {
  position: relative;
  flex: 1;
  min-height: 16.5rem;
  overflow: hidden;
}

.alumni-card-media-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alumni-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  padding-left: 0.2rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.alumni-card-media-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: clamp(1.1rem, 2vw, 1.4rem) clamp(1.25rem, 2.4vw, 2rem);
  background: var(--white);
}

.alumni-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 6px;
  background: #c4847a;
}


.swiper-button-next, .swiper-button-prev{
  color: var(--brand);
}

.alumni-swiper-container .swiper-button-prev,
#faculty .swiper-button-prev,
#events .swiper-button-prev{
  transform: translateX(-70px);
  width: 1rem;
}

.alumni-swiper-container .swiper-button-next,
#faculty .swiper-button-next{
  transform: translateX(70px);
}

#events .swiper-button-prev{
  transform: translateX(0px);
}

#events .swiper-button-next{
  transform: translateX(0px);
}

.faculty-social img:hover{
  filter: brightness(0);
}

@media (max-width: 991px) {
  .alumni-swiper-container .swiper-button-prev,
  .alumni-swiper-container .swiper-button-next,
  #faculty .swiper-button-prev,
  #faculty .swiper-button-next,
  #events .swiper-button-prev,
  #events .swiper-button-next {
    display: none !important;
  }
}

/* .alumni-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(158, 9, 6, 0.88);
} */

/* Blogs */
.blog-card {
  height: clamp(22rem, 38vw, 31.25rem);
  overflow: hidden;
}

.blog-card .overlay {
  transition: all 0.3s ease-in-out;
  background: linear-gradient(180deg, rgba(24, 59, 86, 0) 0%, rgba(21, 37, 50, 0.95) 100%);
}

.blog-card:hover .overlay {
  transition: all 0.3s ease-in-out;
  background: linear-gradient(180deg, rgba(24, 59, 86, 0.5) 0%, rgba(21, 37, 50, 0.95) 100%);
}

.blog-card p{
  font-weight: 400;
}

/* Steps */
.step {
  background: #f2f2f7;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(0.7rem, 1.5vw, 1.4rem);
  position: relative;
}

.step svg{
  position: absolute;
  width: 25px;
  height: auto;
  top: 50%;
  right: 0px;
  transform: translate(35px,-50%);
}


.step:last-child svg{
  display: none;
}

.step svg path{
  fill: #202224;
}

.step.is-active, .step:hover {
  background: var(--brand);
  color: #fff;
}

.step.is-active svg path, .step:hover svg path{
  fill:var(--brand)
}

.step-num {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
}

.step:hover .step-num{
  color: #fff;
}

.step-label {
  font-size: clamp(1rem, 1.1vw, 1rem);
  font-weight: 500;
  line-height: 1.2;
  text-transform: capitalize;
  /* padding-right: 20px; */
}

/* FAQ */
.faq-item + .faq-item {
  border-top: 1px solid #f1f2f9;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.faq-answer {
  display: none;
  padding-top: 0.85rem;
}

.faq-icon {
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.why-cis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}

.why-cis-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.85rem, 1.6vw, 1.15rem);
  padding: clamp(1.25rem, 3vw, 2.35rem);
  border-right: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
}

.why-cis-item:nth-child(2n) {
  border-right: 0;
}

.why-cis-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.why-cis-icon {
  width: auto;
  height: clamp(2.1rem, 3.8vw, 3.5rem);
}

.why-cis-item h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink);
}

/* Form */
.field {
  width: 100%;
  height: 3.15rem;
  border: 1px solid #e4e0e0;
  border-radius: 4px;
  background: var(--white);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  box-shadow: none;
}

.field-message {
  height: auto;
  min-height: 9.5rem;
  resize: vertical;
  padding-top: 0.9rem;
}

.field:focus {
  border-color: var(--brand);
}

.field::placeholder {
  color: #b7b0b0;
  font-weight: 300;
}

/* Swiper */
.swiper-pagination-bullet {
  background: #d9d9d9;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--brand);
}

.swiper-pagination {
  position: relative !important;
  margin-top: 1.5rem;
}

/* Side enquire */
.enquire-tab {
  position: fixed;
  right: 0;
  top: 45%;
  z-index: 45;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: var(--brand);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 1rem 0.55rem;
  border-radius: 0 6px 6px 0px;
}

.search-modal {
  display: none;
}

.search-modal.is-open {
  display: flex;
}

/* About page */
.page-banner {
  position: relative;
  /* min-height: clamp(22rem, 52vw, 32.5rem); */
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-banner-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 2.625rem);
  line-height: normal;
  color: var(--white);
}

.page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-size: clamp(0.85rem, 1vw, 1rem);
}

.page-breadcrumb a {
  font-weight: 600;
}

.page-breadcrumb span {
  font-weight: 400;
}

.about-card {
  background: var(--white);
  border-radius: 4px;
  padding: clamp(1.15rem, 2vw, 1.5rem) clamp(1rem, 1.8vw, 1.25rem);
  box-shadow: -1px 18px 36px rgba(0, 0, 0, 0.06);
  height: 100%;
  border: 1px solid #d9d9d9;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  letter-spacing: 0.009em;
  color: #00030a;
}

.about-card p {
  margin-top: 0.65rem;
  color: #686868;
  /* font-size: 1rem; */
  line-height: 1.5;
}

.about-why-grid,
.about-init-grid,
.about-values-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.25rem);
}

.about-why-grid {
  grid-template-columns: 1fr;
}

.about-init-grid {
  grid-template-columns: 1fr;
}

.about-values-grid {
  grid-template-columns: 1fr;
}

.about-value-card {
  padding-top: clamp(1.35rem, 2.2vw, 1.7rem);
}

.about-value-card img {
  width: auto;
  height: 2.5rem;
  margin-bottom: 0.85rem;
}

.quote-card {
  position: relative;
  background: var(--white);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2.15rem) clamp(1.5rem, 3.4vw, 2.6rem) clamp(1.5rem, 3vw, 2.15rem) clamp(1.85rem, 3.8vw, 3.1rem);
  box-shadow: -1px 18px 36px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.quote-card::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 68%;
  background: var(--brand);
  border-radius: 2px;
}

@media(max-width:991px){
  .quote-card::before {
    display: none;
  }
}

.quote-card h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  color: var(--brand);
}

.quote-card p {
  margin-top: 1rem;
  color: #686868;
  /* font-size: 1rem; */
  line-height: 1.5;
}

.about-numbers.stat-bar {
  background: transparent;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  /* border-top: 1px solid var(--line); */
  border-bottom: 1px solid var(--line);
}

.about-stats .stat-item,
.about-stats .stat-item:nth-child(2n),
.about-stats .stat-item:nth-child(4n),
.about-stats .stat-item:nth-last-child(-n + 2) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 0 0.5rem;
  border: 0;
}

.about-stats .stat-num {
  color: var(--brand);
  font-family: var(--font-heading);
  font-weight: 500;
}

.about-stats .stat-label {
  color: #686868;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  max-width: 12rem;
}

.director-block {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.director-panel {
  background: var(--brand);
  border-radius: 5px;
  padding: 1.5rem 1.35rem 1.75rem;
  color: var(--white);
  max-width: 19rem;
}

.director-photo-wrap {
  position: relative;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 222 / 272;
  background: #f4f4f4;
}

.director-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.director-panel h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  margin-top: 1.15rem;
}

.director-panel p {
  margin-top: 0.35rem;
  color: #d9d9d9;
  /* font-size: 1rem; */
  line-height: 1.5;
}

.director-panel-light {
  background: var(--white);
  color: var(--ink);
}

.director-panel-light p {
  color: var(--brand);
}

.director-copy h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.7vw, 1.375rem);
  line-height: 1.45;
  letter-spacing: 0.009em;
  color: var(--ink);
}

.about-affiliations {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.about-affiliations h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  line-height: 1.15;
  color: var(--brand);
}

.about-affiliations p {
  margin-top: 0.5rem;
  color: #686868;
  /* font-size: 1rem; */
}

.page-banner .hero-overlay {
  background: rgba(0, 0, 0, 0.45);
}

#about,
#director,
#affiliations {
  scroll-margin-top: 6.5rem;
}

@media (min-width: 640px) {
  .about-why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-init-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-affiliations {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .director-panel {
    margin-inline: auto;
  }
}

@media (min-width: 768px) {
  .about-values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .about-why-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-init-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-values-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .about-stats {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }

  .about-stats .stat-item,
  .about-stats .stat-item:nth-child(2n),
  .about-stats .stat-item:nth-child(4n) {
    border: 0;
  }

  .director-block {
    grid-template-columns: 19rem minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(2rem, 4vw, 4.5rem);
  }

  .director-panel {
    max-width: none;
    min-height: 26.6rem;
    margin-inline: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}

@media (max-width: 1023px) {
  .nav-desktop { display: none; }
  .hero-curve { border-radius: 28px 28px 0 0; }
  .site-header { background: linear-gradient(180deg, rgba(0,0,0,0.45), transparent); }
  .site-header.is-scrolled { background: rgba(255,255,255,0.97); }
  .enquire-tab { font-size: 0.8rem; padding: 0.75rem 0.4rem; }
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}


@media(max-width:991px){
  .step svg{
    display: none;
  }
  .step {
    aspect-ratio: 1.2;
  }

  .footer-grid{
    border-right: none;
  }

  .container-site {
    width: 90%;
    margin: 0 auto;
  }
}

@media(max-width:576px){
  header .nav-apply{
    display: none;
  }
  .nav-glass{
    border-radius: 10px;
  }

  .alumni-section{
    background: var(--brand);
    background: #f7f7f7 url(../images/alumni/alumni-bg.jpg) no-repeat;
    background-size: cover;
    background-position: center top;
  }
  
}

/* Chancellor's Message */
.chancellor-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.chancellor-copy {
  flex: 1;
  min-width: 0;
}

.chancellor-copy h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.2vw, 2.625rem);
  line-height: 1.15;
  color: var(--ink);
}

.chancellor-copy p {
  /* margin-top: 1.25rem; */
  color: #686868;
  /* font-size: 1rem; */
  line-height: 1.5;
}

.chancellor-copy p a:hover{
  color: var(--brand);
}

.chancellor-copy p.bold-para{
  font-size: clamp(1rem,1.5vw,1.5rem);
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 500;
}

.chancellor-copy p {
  margin-bottom: 1.5rem;
}

.white-box-content p:last-child{
  margin-bottom: 0px;
}

.white-box-content{
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .chancellor-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(2rem, 4vw, 4.5rem);
  }

  .chancellor-layout .director-panel {
    flex: 0 0 19rem;
    width: 19rem;
    max-width: 19rem;
    margin-inline: 0;
  }
}

/* Our USP */
.usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 3.2vw, 2.75rem) clamp(1.25rem, 2.4vw, 2rem);
}

.usp-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 8px;
  padding: clamp(1rem, 1.8vw, 1.25rem);
  height: 100%;
}

.usp-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
}

.usp-card h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  letter-spacing: 0.009em;
  color: #00030a;
  margin-top: 1rem;
}

.usp-card p {
  margin-top: 0.5rem;
  color: #686868;
  /* font-size: 1rem; */
  line-height: 1.5;
}

@media (min-width: 640px) {
  .usp-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .usp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.usp-card .link-more {
  margin-top: auto;
  padding-top: 1.15rem;
}

.usp-card .link-more img {
  width: 17px;
  height: 13px;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
}

/* Infrastructure */
.infra-counsellor {
  margin-top: clamp(2.5rem, 5vw, 4.75rem);
  padding-top: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 7.5rem;
}

/* .infra-counsellor-copy {
  max-width: 62rem;
} */

.infra-counsellor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.4vw, 1.75rem);
  margin-top: clamp(1.75rem, 3vw, 2.15rem);
  align-items: stretch;
}

.infra-contact-card {
  background: var(--white);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 1.85rem) clamp(1.5rem, 3.5vw, 3.05rem);
}

.infra-contact-card > h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  color: var(--brand);
}

.infra-contact {
  margin-top: 1.4rem;
}

.infra-contact h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink);
}

.infra-contact p {
  margin-top: 0.5rem;
  color: #686868;
  /* font-size: 1rem; */
  line-height: 1.5;
}

.infra-contact a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 2px;
}

.infra-contact a:hover {
  color: var(--brand);
}

.infra-map {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  background: var(--white);
  min-height: 16rem;
}

.infra-map img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .infra-counsellor-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  }

  .infra-map img {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
  }
}

/* Library */
.library-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 5rem);
  
}

.library-nav {
  display: none;
  flex-wrap: wrap;
  gap: 0.15rem 0;
  background: var(--white);
  border-radius: 4px;
  padding: 0.65rem 0;
  align-self: start;
  min-width: 25%;
}

.library-nav a {
  display: block;
  width: 100%;
  padding: 0.7rem 1.15rem;
  border-left: 4px solid transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 1.975rem);
  line-height: 1.35;
  white-space: nowrap;
  font-family: var(--font-heading);
}

.library-nav a.is-active{
  border-left-color: var(--brand);
  color: var(--ink);
}


.library-nav a:hover {
  background-color: var(--surface);
  color: var(--ink);
}


.library-content {
  min-width: 0;
}

.library-section {
  scroll-margin-top: 10rem;
}

.library-section + .library-section {
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.library-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  color: var(--ink);
}

.library-copy {
  margin-top: 1rem;
  color: #686868;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
}

.library-copy p + p {
  margin-top: 0.9rem;
}

.library-bar {
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.375rem);
  line-height: 1.4;
  padding: 0.8rem 1.25rem;
  border-radius: 4px 4px 0 0;
}

.library-panel {
  background: var(--white);
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
}

.library-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: 4px;
  margin-top: 1.25rem;
}

.library-table-wrap + .library-table-wrap {
  margin-top: 1.75rem;
}

.library-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(1rem,1.1vw,1.3rem);
  line-height: 1.45;
}

.library-table .library-table-banner th {
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  padding: 0.9rem 1.25rem;
  text-align: left;
}

.library-table thead tr:not(.library-table-banner) th {
  background: var(--white);
  color: var(--brand);
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.05vw, 0.975rem);
  text-align: left;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid #e5e5e5;
}

.library-table td {
  padding: 1.05rem 1.15rem;
  border-bottom: 1px solid #e5e5e5;
  color: var(--ink-soft);
  vertical-align: top;
}

/* .library-table td:first-child {
  color: var(--ink);
  font-weight: 600;
} */

.library-table td strong{
  border-left-color: var(--brand);
  color: var(--ink);
  font-size: clamp(1rem,1.1vw,1.3rem);
  font-weight: 600;
}

.library-er-intro {
  margin-top: 0.45rem;
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(0.9rem, 1.05vw, 1rem);
}

.library-er-card {
  margin-top: 1.15rem;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
}

.library-er-banner {
  background: var(--brand);
  color: var(--white);
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.05vw, 0.925rem);
  letter-spacing: 0.03em;
  line-height: 1.4;
  padding: 0.85rem 1.35rem;
}

.library-er-group {
  padding: clamp(1.1rem, 2vw, 1.35rem) clamp(1.15rem, 2.2vw, 1.5rem);
  border-bottom: 2px solid #e8e8e8;
}

.library-er-group h4 {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--brand);
  margin-bottom: 0.6rem;
}

.library-er-group ul,
.library-opac ul {
  list-style: disc;
  padding-left: 1.15rem;
  color: var(--ink);
  font-size: clamp(1rem, 1.1vw, 1.5rem);
  line-height: 1.7;
}

.library-er-group ul li{
  font-weight: 600;
}

.library-er-cols {
  columns: 1;
}

.library-er-split {
  display: grid;
  grid-template-columns: 1fr;
}

.library-er-split .library-er-group:last-child {
  border-bottom: 2px solid #e8e8e8;
}

.library-opac {
  padding: clamp(1.1rem, 2vw, 1.35rem) clamp(1.15rem, 2.2vw, 1.5rem) clamp(1.25rem, 2.2vw, 1.5rem);
}

@media (min-width: 640px) {
  .library-er-cols {
    columns: 2;
    column-gap: 2.5rem;
  }

  .library-er-cols li {
    break-inside: avoid;
  }

  .library-er-split {
    grid-template-columns: 1fr 1fr;
  }

  .library-er-split .library-er-group {
    border-bottom: 2px solid #e8e8e8;
  }

  .library-er-split .library-er-group:first-child {
    border-right: 2px solid #e8e8e8;
  }
}

.library-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: 1.25rem;
}

.library-service {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--white);
  padding: 1.1rem 1.25rem;
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.45;
}

.library-service svg {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  color: var(--brand);
}

.library-hours {
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
}

.library-team {
  margin-top: 1.25rem;
}

.library-team-card {
  background: var(--white);
  border-radius: 4px;
  padding: clamp(1.25rem, 2.4vw, 1.65rem) clamp(1.25rem, 2.6vw, 1.75rem);
}

.library-team-card h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.375rem);
  line-height: 1.35;
  color: var(--ink);
}

.library-team-card p {
  margin-top: 0.45rem;
  color: #8a8a8a;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.45;
}

.library-team-card.is-featured {
  background: var(--brand);
  padding: clamp(1.5rem, 3vw, 2.15rem) clamp(1.35rem, 2.8vw, 1.85rem);
}

.library-team-card.is-featured h3 {
  color: var(--white);
}

.library-team-card.is-featured p {
  color: rgba(255, 255, 255, 0.85);
}

.library-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.library-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.library-gallery-item {
  padding: 0.7rem;
  background: var(--white);
  border: 1px solid #e2e2e2;
}

.library-gallery-item::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 10;
  background: #e5e5e5;
}

@media (min-width: 640px) {
  .library-service-grid,
  .library-team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .library-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .library-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .library-nav {
    display: flex;
    flex: 0 0 13.75rem;
    width: 13.75rem;
    position: sticky;
    top: 7rem;
  }

  .library-content {
    flex: 1 1 auto;
  }
}


/* Common tabs — one component for every tabbed page (behaviour: js/main.js, [data-tabs]).
   Markup: .tab-list > .tab[data-tab]  +  .tab-panels > .tab-panel[data-tab-panel]
   Modifiers: .tab-list--fill (equal-width, centred)  .tab-panel--grid */
.tab-list {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}

.tab {
  appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  text-align: left;
  position: relative;
  padding: 0 clamp(0.9rem, 2vw, 1.4rem) clamp(0.85rem, 1.6vw, 1.25rem);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.5vw, 1.375rem);
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.tab:first-of-type {
  padding-left: 0;
}

.tab + .tab {
  border-left: 1px solid var(--line);
  padding-left: clamp(0.9rem, 2vw, 1.4rem);
}

.tab::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: clamp(0.9rem, 2vw, 1.4rem);
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.tab + .tab::after {
  left: clamp(0.9rem, 2vw, 1.4rem);
}

.tab:hover,
.tab.is-active {
  color: var(--brand);
}

.tab.is-active::after {
  transform: scaleX(1);
}

.tab:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.tab-panel {
  padding-top: clamp(1.25rem, 2.6vw, 2rem);
}

[data-tabs] [data-tab-panel]:not(.is-active) {
  display: none;
}

/* Modifier: equal-width centred tabs inside a card (BBA curriculum) */
.tab-list--fill {
  flex-wrap: nowrap;
  border-bottom: 0;
}

.tab-list--fill .tab {
  flex: 1 1 0;
  padding: clamp(0.9rem, 1.8vw, 1.5rem) 0.5rem;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.6vw, 1.375rem);
  text-align: center;
}

.tab-list--fill .tab + .tab {
  border-left: 0;
}

.tab-list--fill .tab + .tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  height: 84%;
  width: 1px;
  background: var(--line);
}

.tab-list--fill .tab::after,
.tab-list--fill .tab + .tab::after {
  left: 8%;
  right: 8%;
  bottom: 0;
}

.tab-list--fill .tab:focus-visible {
  outline-offset: -2px;
}

.tab-panel--grid {
  padding-top: 0;
}

.tab-panel--grid.is-active {
  display: grid;
}

/* HR Connect */
.hrc-tabs {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.hrc-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Photo gallery (HR Connect, Holistic Wellbeing) */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2vw, 1.55rem);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.photo-card {
  display: block;
  padding: clamp(0.85rem, 1.5vw, 1.25rem);
  border: 1px solid #dcdcdc;
  border-radius: 2px;
  transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.photo-card:hover {
  border-color: var(--brand);
  background: var(--white);
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 7 / 4;
  object-fit: cover;
  border-radius: 6px;
}

@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* Contact Us */
.field-line {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease-in-out;
}

.field-line:focus {
  border-bottom-color: var(--brand);
}

.field-line::placeholder {
  color: var(--ink);
}

select.field-line {
  appearance: none;
  padding-right: 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5l6 6 6-6' stroke='%23686868' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.1rem center;
  cursor: pointer;
}

textarea.field-line {
  resize: vertical;
  min-height: 3rem;
}


/* Privacy Policy (reuses the library side nav) */
.library-nav.policy-nav {
  background: transparent;
  padding: 0;
  gap: 0;
}

.policy-nav a {
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  white-space: normal;
  padding-block: 0.8rem;
}

.policy-nav a:hover {
  background: transparent;
  color: var(--brand);
}

@media (min-width: 1024px) {
  .library-nav.policy-nav {
    flex-basis: clamp(15rem, 30vw, 25rem);
    width: clamp(15rem, 30vw, 25rem);
  }
}


/* Our Faculty */
.people-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.4vw, 1.5rem) clamp(1rem, 1.8vw, 1.5rem);
  scroll-margin-top: 7.5rem;
}

.people-grid .usp-card > img {
  aspect-ratio: 264 / 188;
}

.faculty-modal {
  display: none;
  width: min(44rem, 100%);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border-radius: 4px;
  background: var(--white);
  text-align: left;
}

.faculty-modal-head {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--line);
}

.faculty-modal-head img {
  flex: 0 0 auto;
  width: clamp(7rem, 30%, 15rem);
  aspect-ratio: 264 / 188;
  object-fit: cover;
  border-radius: 4px;
}

.faculty-modal-head h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.375rem);
  line-height: 1.3;
  color: var(--ink);
}

.faculty-modal-head p {
  margin-top: 0.4rem;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: #686868;
}

.faculty-modal-body {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  max-height: 55vh;
  overflow-y: auto;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  line-height: 1.6;
  color: #686868;
}

.faculty-modal-body p {
  font-size: inherit;
}

.faculty-modal-body p + p {
  margin-top: 1.1rem;
}

@media (min-width: 640px) {
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .people-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Our Affiliates */
.aff-checklist li {
  position: relative;
  padding-left: 2.1rem;
  color: var(--ink);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.55;
}

.aff-checklist li + li {
  margin-top: clamp(0.9rem, 1.6vw, 1.25rem);
}

.aff-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1rem;
  height: 0.75rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12' fill='none'%3E%3Cpath d='M1.5 6.5l4 4 9-9' stroke='%23202224' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Our Programmes */
.library-nav.prog-nav {
  display: none;
  background: transparent;
  padding: 0;
  gap: 0;
}

.prog-nav a {
  position: relative;
  padding: clamp(1.1rem, 2.2vw, 1.75rem) 0;
  border-left: 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  font-weight: 500;
  white-space: normal;
}

.prog-nav a:hover {
  background: transparent;
  color: var(--brand);
}

.prog-nav a.is-active {
  color: var(--brand);
}

.prog-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 57%;
  height: 3px;
  background: var(--brand);
}

.prog-section {
  scroll-margin-top: 8rem;
}

@media (min-width: 1024px) {
  .library-nav.prog-nav {
    display: flex;
    flex: 0 0 clamp(16rem, 34%, 25.5rem);
    width: clamp(16rem, 34%, 25.5rem);
  }
}


/* Industrial Visit Trip (CSS-only photo slider) */
.ivt-slider {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #c4c4c4;
}

.ivt-track {
  display: flex;
  transition: transform 0.4s ease;
}

.ivt-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 512 / 294;
}

.ivt-slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ivt-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ivt-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(0.7rem, 1.4vw, 1rem) clamp(0.9rem, 1.6vw, 1.15rem);
  background: rgba(158, 9, 6, 0.88);
  color: var(--white);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  pointer-events: none;
}

.ivt-cap {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ivt-slider:has(.ivt-radio:nth-of-type(1):checked) .ivt-cap:nth-child(1),
.ivt-slider:has(.ivt-radio:nth-of-type(2):checked) .ivt-cap:nth-child(2),
.ivt-slider:has(.ivt-radio:nth-of-type(3):checked) .ivt-cap:nth-child(3),
.ivt-slider:has(.ivt-radio:nth-of-type(4):checked) .ivt-cap:nth-child(4),
.ivt-slider:has(.ivt-radio:nth-of-type(5):checked) .ivt-cap:nth-child(5),
.ivt-slider:has(.ivt-radio:nth-of-type(6):checked) .ivt-cap:nth-child(6),
.ivt-slider:has(.ivt-radio:nth-of-type(7):checked) .ivt-cap:nth-child(7),
.ivt-slider:has(.ivt-radio:nth-of-type(8):checked) .ivt-cap:nth-child(8) {
  display: flex;
}

.ivt-arrows {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.ivt-nav {
  display: none;
}

.ivt-slider:has(.ivt-radio:nth-of-type(1):checked) .ivt-nav:nth-child(1),
.ivt-slider:has(.ivt-radio:nth-of-type(2):checked) .ivt-nav:nth-child(2),
.ivt-slider:has(.ivt-radio:nth-of-type(3):checked) .ivt-nav:nth-child(3),
.ivt-slider:has(.ivt-radio:nth-of-type(4):checked) .ivt-nav:nth-child(4),
.ivt-slider:has(.ivt-radio:nth-of-type(5):checked) .ivt-nav:nth-child(5),
.ivt-slider:has(.ivt-radio:nth-of-type(6):checked) .ivt-nav:nth-child(6),
.ivt-slider:has(.ivt-radio:nth-of-type(7):checked) .ivt-nav:nth-child(7),
.ivt-slider:has(.ivt-radio:nth-of-type(8):checked) .ivt-nav:nth-child(8) {
  display: contents;
}

.ivt-arrow {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: -1.2rem;
  border-radius: 999px;
  background: rgba(32, 34, 36, 0.7);
  color: var(--white);
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s ease-in-out;
}

.ivt-arrow:hover {
  background: var(--brand);
}

.ivt-prev {
  left: 0.9rem;
}

.ivt-next {
  right: 0.9rem;
}

.ivt-slider:has(.ivt-radio:nth-of-type(2):checked) .ivt-track { transform: translateX(-100%); }
.ivt-slider:has(.ivt-radio:nth-of-type(3):checked) .ivt-track { transform: translateX(-200%); }
.ivt-slider:has(.ivt-radio:nth-of-type(4):checked) .ivt-track { transform: translateX(-300%); }
.ivt-slider:has(.ivt-radio:nth-of-type(5):checked) .ivt-track { transform: translateX(-400%); }
.ivt-slider:has(.ivt-radio:nth-of-type(6):checked) .ivt-track { transform: translateX(-500%); }
.ivt-slider:has(.ivt-radio:nth-of-type(7):checked) .ivt-track { transform: translateX(-600%); }
.ivt-slider:has(.ivt-radio:nth-of-type(8):checked) .ivt-track { transform: translateX(-700%); }

/* Community Outreach (CSS-only photo slider) */
.co-slider {
  --gap: clamp(0.75rem, 1.6vw, 1.25rem);
  --vis: 4;
  --k: 0;
}

.co-viewport {
  overflow: hidden;
}

.co-track {
  display: flex;
  gap: var(--gap);
  transition: transform 0.45s ease;
  transform: translateX(calc(-1 * min(var(--k), 8 - var(--vis)) * (100% + var(--gap)) / var(--vis)));
}

.co-track a {
  flex: 0 0 calc((100% - (var(--vis) - 1) * var(--gap)) / var(--vis));
}

.co-track img {
  display: block;
  width: 100%;
  aspect-ratio: 275 / 204;
  object-fit: cover;
}

.co-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.co-slider:has(.co-radio:nth-of-type(2):checked) { --k: 1; }
.co-slider:has(.co-radio:nth-of-type(3):checked) { --k: 2; }
.co-slider:has(.co-radio:nth-of-type(4):checked) { --k: 3; }
.co-slider:has(.co-radio:nth-of-type(5):checked) { --k: 4; }
.co-slider:has(.co-radio:nth-of-type(6):checked) { --k: 5; }
.co-slider:has(.co-radio:nth-of-type(7):checked) { --k: 6; }
.co-slider:has(.co-radio:nth-of-type(8):checked) { --k: 7; }

.co-controls {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-top: clamp(1.1rem, 2vw, 1.75rem);
}

.co-progress {
  position: relative;
  flex: 1 1 auto;
  height: 3px;
}

.co-progress::before {
  content: "";
  position: absolute;
  inset: 1px 0;
  background: var(--line);
}

.co-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% * var(--vis) / 8);
  height: 3px;
  background: var(--brand);
  transition: transform 0.45s ease;
  transform: translateX(calc(min(var(--k), 8 - var(--vis)) * 100% / var(--vis)));
}

.co-navs {
  display: none;
}

.co-navs > span {
  display: none;
}

.co-slider:has(.co-radio:nth-of-type(1):checked) .co-navs > span:nth-child(1),
.co-slider:has(.co-radio:nth-of-type(2):checked) .co-navs > span:nth-child(2),
.co-slider:has(.co-radio:nth-of-type(3):checked) .co-navs > span:nth-child(3),
.co-slider:has(.co-radio:nth-of-type(4):checked) .co-navs > span:nth-child(4),
.co-slider:has(.co-radio:nth-of-type(5):checked) .co-navs > span:nth-child(5),
.co-slider:has(.co-radio:nth-of-type(6):checked) .co-navs > span:nth-child(6),
.co-slider:has(.co-radio:nth-of-type(7):checked) .co-navs > span:nth-child(7),
.co-slider:has(.co-radio:nth-of-type(8):checked) .co-navs > span:nth-child(8) {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.co-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}

.co-arrow-prev {
  border: 1px solid #e2e2e2;
  background: var(--white);
  color: var(--ink);
}

.co-arrow-next {
  background: var(--brand);
  color: var(--white);
}

.co-arrow-prev:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.co-arrow-next:hover {
  background: var(--brand-dark);
}

.co-navs-d {
  display: flex;
}

@media (max-width: 1023px) {
  .co-slider { --vis: 2; }
  .co-navs-d { display: none; }
  .co-navs-t { display: flex; }
}

@media (max-width: 639px) {
  .co-slider { --vis: 1; }
  .co-navs-t { display: none; }
  .co-navs-m { display: flex; }
}

/* BBA / BSc programme page (reuses .library-nav scroll-spy from js/main.js) */
.library-nav.section-tabs {
  display: flex;
  flex: none;
  flex-wrap: nowrap;
  gap: 0;
  width: auto;
  min-width: 0;
  padding: 0;
  overflow-x: auto;
  background: var(--white);
  border-radius: 2px;
  position: sticky;
  top: 5.6rem;
  z-index: 30;
  scrollbar-width: none;
}

.library-nav.section-tabs::-webkit-scrollbar {
  display: none;
}

.section-tabs a {
  position: relative;
  flex: 1 0 auto;
  width: auto;
  padding: clamp(1.1rem, 2.4vw, 1.9rem) clamp(1rem, 2vw, 1.5rem);
  border-left: 0;
  font-family: "Open Sans", sans-serif;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

.section-tabs a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: var(--line);
}

.section-tabs a:hover {
  background: transparent;
  color: var(--brand);
}

.section-tabs a.is-active {
  color: var(--brand);
  font-weight: 600;
}

.bba-section {
  scroll-margin-top: 9rem;
}

.bba-faq .faq-question:hover span:first-child {
  color: var(--brand);
}

.bba-faq .faq-item.is-open .faq-question span:first-child {
  color: var(--brand);
}

.bba-faq .faq-item.is-open .faq-answer {
  color: var(--brand);
}

.bba-faq .faq-icon {
  color: #9a9aa8;
  line-height: 0;
  transform: none !important;
}

.bba-faq .faq-item.is-open .faq-icon {
  color: var(--brand);
}

.bba-faq .faq-item.is-open .faq-plus-v {
  display: none;
}

.tm-more {
  display: none;
}

#tm-more-toggle:checked ~ .tm-more {
  display: block;
}

#tm-more-toggle:checked ~ .tm-more-btn {
  display: none;
}

#tm-more-toggle:focus-visible ~ .tm-more-btn {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
