.kapmi-image-wrapper img {
  transition: transform 0.8s ease;
}

.kapmi-image-wrapper:hover img {
  transform: scale(1.05);
}

.kapmi-quote {
  position: relative;
  background: #f0f7ff;
}

.kapmi-quote::before {
  content: "❝";
  font-size: 60px;
  color: #0a2c82;
  position: absolute;
  top: -10px;
  left: 20px;
  opacity: 0.2;
}

.kapmi-badge {
  letter-spacing: 0.5px;
}

.kapmi-vision-wrap {
  margin-top: 3rem;
  padding: 42px 34px;
  border-radius: 28px;
  background:
    radial-gradient(
      circle at top right,
      rgba(18, 78, 133, 0.1),
      transparent 28%
    ),
    linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
  border: 1px solid rgba(18, 78, 133, 0.12);
  box-shadow: 0 24px 50px rgba(10, 44, 130, 0.08);
}

.kapmi-section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(18, 78, 133, 0.12);
  color: #0a2c82;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.kapmi-section-title {
  margin-bottom: 12px;
  color: #0b1f3a;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.kapmi-section-copy {
  max-width: 700px;
  margin: 0 auto;
  color: #526173;
  font-size: 1rem;
  line-height: 1.8;
}

.kapmi-value-card {
  position: relative;
  padding: 30px 26px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(18, 78, 133, 0.08);
  box-shadow: 0 18px 40px rgba(11, 31, 58, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.kapmi-value-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(18, 78, 133, 0.04),
    rgba(18, 78, 133, 0)
  );
  pointer-events: none;
}

.kapmi-value-card:hover {
  transform: translateY(-8px);
  border-color: rgba(18, 78, 133, 0.22);
  box-shadow: 0 24px 44px rgba(11, 31, 58, 0.14);
}

.kapmi-value-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #124e85 0%, #1f6aa8 100%);
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 14px 28px rgba(18, 78, 133, 0.22);
}

.kapmi-value-title {
  margin-bottom: 12px;
  color: #0b1f3a;
  font-size: 1.35rem;
  font-weight: 700;
}

.kapmi-value-text {
  color: #526173;
  font-size: 0.98rem;
  line-height: 1.85;
}

@media (max-width: 992px) {
  .kapmi-about h2 {
    font-size: 1.8rem;
  }

  .kapmi-image-wrapper {
    margin-bottom: 1.5rem;
  }

  .kapmi-vision-wrap {
    padding: 32px 22px;
  }

  .kapmi-section-title {
    font-size: 1.9rem;
  }
}
.underline {
  width: 80px;
  height: 4px;
  background: #ffff;
  border-radius: 2px;
}
.mission-card {
  background: #ffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.icon-heading-wrapper {
  background: linear-gradient(135deg, #0a2c82, #1e3fa6);
  border-radius: 10px;
  padding: 15px;
}

.icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #fff;
}

.icon-heading-wrapper h4 {
  color: #fff;
  margin-bottom: 5px;
}

.mission-card p {
  color: #555;
  line-height: 1.6;
  margin-top: 15px;
}

.text_color {
  color: #0a2c82;
}

ul li {
  line-height: 1.6;
}
.year-badge {
  background: #0a2c82;
}
.logo-img {
  height: auto;
  width: auto;
  max-width: 150px;
}
/* .text-dark-gray
{
  background-color:#002349 ;
} */
.dark-gray {
  color: #002349;
}

.logo-img {
  height: auto;
  /* reduce height */
  width: auto;
  /* keeps aspect ratio */
  max-width: 150px;
  /* optional safeguard */
}

/* Reduce image size */
.principal-img {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.principal-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* ✅ Signature font style */
.signature-font {
  font-family: "Cedarville Cursive", cursive;
  font-size: 2em;
  /* slightly bigger for signature feel */
  font-weight: 400;
  color: #333;
  letter-spacing: 1px;
  /* adds natural spacing */
}

/* Heading underline */
.title-underline {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #007cb1, #00c6ff);
  margin: 10px auto 0;
  border-radius: 2px;
}
/* Hover shadow effect */
.hover-shadow {
  transition: all 0.5s ease;
}
.hover-shadow:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Animation setup */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.9s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth scroll activation */
.kapmi-vmgo {
  scroll-margin-top: 80px;
}

/* Card header styling */
.card-header {
  background: linear-gradient(135deg, #124e85, #144c80);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  border-bottom: none;
  padding: 1rem 1.25rem;
}

.card-header h4 {
  color: #fff;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.card {
  border-radius: 18px;
  background: #fff;
}

/* Subtle entrance delay for heading and cards */
.fade-up:nth-of-type(1) {
  --delay: 0s;
}
.fade-up:nth-of-type(2) {
  --delay: 0.2s;
}
.fade-up:nth-of-type(3) {
  --delay: 0.4s;
}
.fade-up:nth-of-type(4) {
  --delay: 0.6s;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .fade-up {
    animation-delay: 0s !important;
  }
  .card-header i {
    font-size: 1.8rem;
  }
}
.bg-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  width: 1200px;
}

/* Section background */
#down-section {
  background: linear-gradient(to bottom right, #f9fafb, #eef2f6);
}

/* Principal Card */
.principal-card {
  transition: all 0.4s ease;
}
.principal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Image Styling */
.principal-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: all 0.5s ease;
}
.principal-img-box {
  overflow: hidden;
  border-radius: 15px;
}
.principal-img:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Signature */
.signature-font {
  font-family: "Cedarville Cursive", cursive;
  color: #333;
}

/* Headings */
#down-section h2 {
  color: #212529;
  position: relative;
}
#down-section h2::after {
  content: "";
  width: 80px;
  height: 3px;
  background-color: #124e85;
  display: block;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .kapmi-vision-wrap {
    padding: 28px 18px;
  }

  .kapmi-section-title {
    font-size: 1.6rem;
  }

  .kapmi-value-card {
    padding: 24px 20px;
  }

  .principal-img {
    height: 260px;
  }
  #down-section h2 {
    font-size: 1.8rem;
  }
}

.team-card {
  transition: all 0.5s ease;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.image-container {
  position: relative;
  overflow: hidden;
  height: auto;
}

.team-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition:
    transform 0.6s ease,
    filter 0.4s ease;
}

.team-card:hover .team-img {
  transform: scale(1.08);
  filter: brightness(0.85);
}

.name-font {
  font-size: 18px;
  color: #1a1a1a;
  letter-spacing: 0.3px;
}

.name-font::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #002a50;
  margin: 6px auto 0 auto;
  transition: width 0.3s ease;
}

.team-card:hover .name-font::after {
  width: 70px;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

.fade-in-delay {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s 0.2s forwards;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.list-group-item {
  font-size: 16px;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.list-group-item:hover {
  background-color: #fffbea;
  transform: scale(1.01);
}

h3.alt-font {
  letter-spacing: 1px;
  text-transform: uppercase;
}
.btn:hover {
  background-color: #002349;
}
/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatAnimation {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 1s forwards;
}

.fade-up {
  opacity: 0;
  animation: fadeInUp 1.2s forwards;
}
/* .text-dark-gray
  {
    background-color: #002349;
  } */

/* ===== PDF Card Design ===== */
.pdf-card {
  transition: all 0.4s ease;
  position: relative;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pdf-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.pdf-card .pdf-icon {
  transition:
    transform 0.4s ease,
    color 0.3s ease;
  animation: floatAnimation 3s ease-in-out infinite;
}

.pdf-card:hover .pdf-icon {
  transform: rotate(-5deg) scale(1.2);
  color: #002349 !important;
}

.pdf-card h5 {
  transition: color 0.3s ease;
  font-size: 22px;
}

.pdf-card:hover h5 {
  color: #0d6efd;
}

/* ===== Glass Effect ===== */
.glass-effect {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ===== Floating background elements ===== */
.floating-bg,
.floating-bg-2 {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  z-index: 0;
}

.floating-bg {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #ffc107 0%, transparent 70%);
  top: 10%;
  left: -80px;
  animation: floatAnimation 6s ease-in-out infinite;
}

.floating-bg-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #0d6efd 0%, transparent 70%);
  bottom: 10%;
  right: -70px;
  animation: floatAnimation 5s ease-in-out infinite;
}

/* ===== Button hover effect ===== */
.hover-zoom {
  transition: all 0.3s ease;
}

.hover-zoom:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .pdf-card {
    margin-bottom: 1.5rem;
  }
  h2.display-5 {
    font-size: 1.8rem;
  }
}
.leadership-card {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.leadership-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.icon-circle {
  width: 100% !important;
  height: 250px !important;
  border-radius: 0% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #007bff, #00bcd4);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}
.leadership-card h5 {
  font-family: "Poppins", sans-serif;
}
/* Pill Tabs Design */
.nav-pills .nav-link {
  padding: 0.6rem 1.5rem;
  margin: 0 5px;
  font-weight: 500;
  color: #002247;
  transition: all 0.3s ease;
  border: 1px solid #007bff;
}
.nav-pills .nav-link:hover {
  background-color: #002247;
  color: #fff;
}
.nav-pills .nav-link.active {
  background-color: #002247;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Faculty Card Hover */
.faculty-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.faculty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.section-heading {
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
}

/* ------------------- UNDERLINE ANIMATION ------------------ */
.sphatik-title {
  display: inline-block;
  position: relative;
  padding-bottom: 5px;
}

/* animated underline */
.sphatik-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%) scaleX(0);
  width: 120px; /* underline width */
  height: 3px;
  background-color: #000;
  transform-origin: center;
  animation: underlineGrow 1s ease forwards;
  animation-delay: 1s; /* delay before underline appears */
}

@keyframes underlineGrow {
  from {
    transform: translateX(-50%) scaleX(0);
  }
  to {
    transform: translateX(-50%) scaleX(1);
  }
}

/* ------------------- SUBTITLE TYPING ANIMATION ------------------- */

.subtitle {
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
}

.letter-animate {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  box-sizing: content-box;
  animation:
    typing 3s steps(33, end) forwards,
    blink-caret 700ms step-end infinite;
  animation-delay: 1.3s; /* subtitle starts AFTER underline */
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 33ch;
  }
}

@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .subtitle {
    font-size: 14px;
  }
  .letter-animate {
    animation-duration: 3.5s;
  }
}

/* Bharath  */

section {
  padding-top: 110px;
  padding-bottom: 113px !important;
}

.fw-500 {
  font-weight: 700 !important;
}

.mb-60px {
  margin-bottom: 9px !important;
  margin-left: 181px !important;
}
.w-70 {
  width: 156% !important;
  font-size: 41px;
}

h4 {
  font-size: 1.375rem !important;
  line-height: 2.7rem !important;
}

.navbar {
  border-bottom: 2px solid #124e85 !important;
}
