@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Core Colors */
  --primary: #0a192f;
  --primary-light: #112240;
  --secondary: #e63946;
  --secondary-hover: #d62828;
  --accent: #FFD700;

  /* Neutral Colors */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f1f5f9;

  /* College Themes (Overridden via body class) */
  --theme-color: var(--primary);
  --theme-gradient: linear-gradient(135deg, var(--primary), var(--primary-light));

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows & Radius */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 25px 30px -5px rgba(0, 0, 0, 0.15), 0 0 40px rgba(230, 57, 70, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* College Theme Overrides */
body.theme-degree {
  --theme-color: #1e3a8a;
  /* Navy Blue */
  --theme-gradient: linear-gradient(135deg, #1e3a8a, #0f172a);
  --accent: #fbbf24;
  /* Golden */
}

body.theme-nursing {
  --theme-color: #0d9488;
  /* Teal */
  --theme-gradient: linear-gradient(135deg, #0d9488, #0f766e);
  --accent: #60a5fa;
  /* Soft Blue */
}

body.theme-law {
  --theme-color: #7f1d1d;
  /* Maroon */
  --theme-gradient: linear-gradient(135deg, #7f1d1d, #450a0a);
  --accent: #fbbf24;
  /* Gold */
}

body.theme-pharmacy {
  --theme-color: #166534;
  /* Green */
  --theme-gradient: linear-gradient(135deg, #166534, #064e3b);
  --accent: #f97316;
  /* Orange */
  --secondary: #2563eb;
  /* Blue */
}

/* --- Base Styles --- */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

a {
  text-decoration: none;
  color: var(--theme-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Utility Classes --- */
.text-primary-theme {
  color: var(--primary) !important;
}

.text-secondary-theme {
  color: var(--secondary) !important;
}

.text-accent-theme {
  color: var(--accent) !important;
}

.bg-primary-theme {
  background-color: var(--primary) !important;
}

.bg-secondary-theme {
  background-color: var(--secondary) !important;
}

.bg-theme {
  background: var(--theme-gradient) !important;
}

.text-theme {
  color: var(--theme-color) !important;
}

.section-padding {
  padding: clamp(60px, 8vw, 100px) 0;
}

.text-justify {
  text-align: justify !important;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  display: inline-block;
  position: relative;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: var(--theme-gradient);
  border-radius: 5px;
}

/* --- Premium Buttons --- */
.btn-premium {
  padding: 12px 30px;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-premium-red {
  background-color: var(--secondary);
  color: white;
  box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.btn-premium-red:hover {
  background-color: var(--secondary-hover);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(230, 57, 70, 0.4);
}

/* --- Premium Theme Buttons --- */
.btn-premium-theme {
  padding: 12px 30px;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  z-index: 1;
  color: white;
}

.theme-degree .btn-premium-theme {
  background: var(--accent);
  color: var(--theme-color);
  box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
}

.theme-nursing .btn-premium-theme {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 20px rgba(96, 165, 250, 0.3);
}

.theme-law .btn-premium-theme {
  background: #000000;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.theme-pharmacy .btn-premium-theme {
  background: var(--secondary);
  color: white;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-premium-theme:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

/* --- Navbar --- */
.main-nav {
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1050;
  transition: all 0.3s ease;
  border-bottom: 4px solid var(--theme-color);
}

/* --- College Specific Navbar Themes --- */
.theme-degree .main-nav,
.theme-law .main-nav,
.theme-pharmacy .main-nav,
.theme-nursing .main-nav {
  background: var(--theme-gradient) !important;
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.theme-degree .main-nav .brand-title,
.theme-law .main-nav .brand-title,
.theme-pharmacy .main-nav .brand-title,
.theme-nursing .main-nav .brand-title,
.theme-degree .main-nav .nav-link,
.theme-law .main-nav .nav-link,
.theme-pharmacy .main-nav .nav-link,
.theme-nursing .main-nav .nav-link {
  color: #ffffff !important;
}

.theme-law .main-nav .brand-subtitle,
.theme-pharmacy .main-nav .brand-subtitle,
.theme-nursing .main-nav .brand-subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
}

.theme-degree .main-nav .navbar-toggler,
.theme-law .main-nav .navbar-toggler,
.theme-pharmacy .main-nav .navbar-toggler,
.theme-nursing .main-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.theme-degree .main-nav .navbar-toggler-icon,
.theme-law .main-nav .navbar-toggler-icon,
.theme-pharmacy .main-nav .navbar-toggler-icon,
.theme-nursing .main-nav .navbar-toggler-icon {
  filter: invert(1) brightness(100%) !important;
}

.theme-degree .main-nav .nav-link:hover,
.theme-law .main-nav .nav-link:hover,
.theme-pharmacy .main-nav .nav-link:hover,
.theme-nursing .main-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.7) !important;
  transform: translateY(-1px);
}

.navbar-brand {
  padding: 0;
  display: flex;
  align-items: center;
  overflow: visible !important;
}

.logo-circle-container {
  background: white;
  border-radius: 50%;
  width: 60px;
  /* Slightly larger for better visibility */
  height: 60px;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  html {
    font-size: 14px;
  }

  h1,
  .display-4 {
    font-size: 1.8rem !important;
  }

  h2,
  .display-5 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.3rem !important;
  }

  p,
  .lead,
  .fs-5 {
    font-size: 0.95rem !important;
  }

  .btn {
    font-size: 0.85rem !important;
    padding: 8px 20px !important;
  }

  .navbar-brand {
    max-width: calc(100% - 45px) !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
  }

  .logo-circle-container {
    width: 34px;
    /* Increased from 34px for better legibility */
    height: 34px;
    min-width: 34px;
    margin-right: 8px;
    padding: 0;
  }

  .brand-title {
    font-size: 0.85rem !important;
    line-height: 1.1;
    white-space: normal !important;
    overflow: visible !important;
    letter-spacing: -0.4px !important;
    display: block !important;
    font-weight: 900;
    word-break: keep-all;
  }

  .navbar-toggler {
    padding: 4px !important;
    margin-left: -10px !important;
    border: none !important;
  }

  .brand-subtitle {
    font-size: 0.42rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    margin-top: 1px;
    opacity: 0.8;
    letter-spacing: 0;
  }

  .nav-link {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.5rem !important;
  }

  .navbar-nav {
    text-align: center !important;
    padding: 15px 0 !important;
  }

  .nav-item {
    width: 100% !important;
  }

  .nav-link::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 0;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 40px !important;
    /* Smaller, cleaner active line */
  }
}

.logo-circle-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0px;
  /* Kept permanently larger with minimal padding */
}

.brand-title {
  color: var(--primary);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  white-space: normal;
}

.brand-text-container {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-link {
  color: var(--text-main) !important;
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.3rem 0.5rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-item {
  margin-left: 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--theme-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 3px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--theme-color) !important;
  opacity: 1 !important;
}

.theme-degree .nav-link.active,
.theme-law .nav-link.active,
.theme-pharmacy .nav-link.active,
.theme-nursing .nav-link.active {
  color: var(--accent) !important;
}

.theme-degree .nav-link.active::after,
.theme-law .nav-link.active::after,
.theme-pharmacy .nav-link.active::after,
.theme-nursing .nav-link.active::after {
  background: var(--accent);
}

.dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.dropdown-item {
  font-family: var(--font-display);
  font-weight: 500;
  padding: 10px 20px;
  transition: all 0.2s ease;
}

@media (max-width: 991px) {
  .dropdown-item {
    white-space: normal !important;
    font-size: 0.85rem !important;
    padding: 12px 15px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 1.3;
  }
}

.dropdown-item:hover {
  background-color: var(--bg-main);
  color: var(--theme-color);
}

/* --- Ticker --- */
.ticker-wrapper {
  background: var(--primary);
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-label {
  background: var(--secondary);
  color: white;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-family: var(--font-display);
  z-index: 5;
}

.ticker-content {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-scroll {
  display: inline-block;
  padding-left: 100%;
  animation: scrollLeft 25s linear infinite;
}

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

.ticker-item {
  color: #e2e8f0;
  margin-right: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

.ticker-item:hover {
  color: var(--accent);
}

/* --- Premium Hero Slider --- */
.hero-slider {
  height: clamp(500px, 80vh, 800px);
  position: relative;
  background-color: var(--primary);
}

@media (max-width: 767px) {
  .hero-slider {
    height: 85vh !important;
  }
}

.hero-slider .carousel-item {
  height: 100%;
}

.hero-slider img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slider .carousel-item.active img {
  transform: scale(1.08);
}

.hero-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 1000px;
  z-index: 10;
}

.hero-caption h1 {
  color: #ffffff;
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

@media (max-width: 767px) {
  .hero-caption h1 {
    font-size: 1.8rem;
    word-wrap: break-word;
  }

  .hero-caption .badge {
    font-size: 0.7rem !important;
    white-space: normal;
    padding: 6px 10px !important;
    line-height: 1.4;
    max-width: 100%;
    display: inline-block;
  }

  img[style*="min-height: 600px"] {
    min-height: 350px !important;
  }
}

.hero-caption p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 400;
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-banner {
  display: inline-block;
  background-color: #dc3545;
  /* Crimson Red */
  color: #ffffff;
  padding: 10px 25px;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 3rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .hero-banner {
    padding: 6px 15px;
    letter-spacing: 1px;
    margin-bottom: 15px;
  }
}

@media (max-width: 575px) {
  .welcome-card-sm {
    padding: 10px !important;
    min-height: 60px;
    border-width: 0 0 0 3px !important;
  }

  .welcome-card-sm h6 {
    font-size: 0.7rem !important;
    line-height: 1.2;
  }

  .welcome-card-sm .rounded-circle,
  .welcome-card-sm .rounded-3,
  .welcome-card-sm .icon-circle {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    margin-right: 8px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .welcome-card-sm i {
    font-size: 0.85rem !important;
  }
}

/* --- Premium Cards --- */
.premium-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.premium-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
}

@media (max-width: 767px) {
  .premium-card {
    border-radius: var(--radius-md);
  }

  .premium-card .p-4 {
    padding: 15px !important;
  }

  .premium-card h4,
  .premium-card h5 {
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
  }

  .premium-card p {
    font-size: 0.7rem !important;
    line-height: 1.4 !important;
  }
}

.card-img-wrapper,
.card-img-container,
.image-wrapper {
  width: 100% !important;
  aspect-ratio: 3 / 2;
  /* Maintains the desktop rectangular shape on mobile */
  position: relative;
  overflow: hidden;
  background-color: #e2e8f0;
  /* Skeleton placeholder color */
  display: block;
}

.card-img-wrapper img,
.card-img-container img,
.image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  text-indent: -9999px;
  /* Hide alt text if image breaks, relying on placeholder */
}

.premium-card:hover .card-img-wrapper img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.9), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 25px;
}

.premium-card:hover .card-overlay {
  opacity: 1;
}

/* College Specific Page Header */
.college-page-header {
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  position: relative;
}

.college-page-header h1 {
  color: var(--accent) !important;
  font-size: clamp(1.5rem, 5vw, 4rem);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.college-page-header .breadcrumb-item,
.college-page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9rem;
  font-weight: 500;
}

.college-page-header .breadcrumb-item.active {
  color: var(--accent) !important;
}

/* --- Gallery Grid --- */
.kds-brick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.brick-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.brick-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.brick-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.brick-item:hover img {
  transform: scale(1.05);
}

/* --- Forms --- */
.form-control,
.form-select {
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background-color: #f8fafc;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
  background-color: white;
}

label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

/* --- Footer --- */
.main-footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 80px 0 30px;
  position: relative;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--theme-gradient);
}

.footer-heading {
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 30px;
  font-size: 1.4rem;
}

.footer-links a {
  color: #94a3b8;
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 60px;
  padding-top: 30px;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* --- Utility Classes --- */
.hover-up {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-up:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg) !important;
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.premium-card:hover .icon-circle {
  transform: scale(1.1) rotate(5deg);
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  color: white;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

/* --- Portal Links Ticker --- */
.portal-ticker {
  background: #f8fafc;
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.theme-degree .portal-ticker {
  background: linear-gradient(to right, #ffffff, #f0f7ff, #ffffff);
  border-top: 2px solid rgba(30, 64, 175, 0.1);
  border-bottom: 2px solid rgba(30, 64, 175, 0.1);
}

.portal-ticker-wrapper {
  display: flex;
  width: max-content;
  animation: scrollLeft 40s linear infinite;
}

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

.portal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 40px;
  min-width: 120px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.experience-badge-modern {
  position: absolute;
  top: 30px;
  right: 30px;
  background: white;
  padding: 15px 25px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  border-left: 5px solid var(--secondary);
  animation: floatBadge 3s ease-in-out infinite;
}

.experience-badge-modern .number {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1;
}

.experience-badge-modern .text {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--theme-color);
  font-family: var(--font-display);
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatHint {

  0%,
  100% {
    transform: translateX(-3px);
  }

  50% {
    transform: translateX(3px);
  }
}

.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
  z-index: 10;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-color);
  pointer-events: auto;
  transition: all 0.2s ease;
}

.nav-btn:active {
  transform: scale(0.9);
  background: white;
}


.portal-item:hover {
  transform: translateY(-5px);
}

.portal-item img {
  height: 60px;
  width: auto;
  margin-bottom: 10px;
  filter: grayscale(0.2);
  transition: filter 0.3s ease;
}

.portal-item:hover img {
  filter: grayscale(0);
}

.portal-item span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
}

/* --- Leadership & Principal Cards --- */
.leadership-card,
.principal-card {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  background: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.leadership-img-wrapper,
.principal-img-wrapper {
  width: 100%;
  aspect-ratio: 4/5;
  /* Consistent portrait shape */
  overflow: hidden;
  background: #f8fafc;
  position: relative;
}

/* Fallback for principal-img if not wrapped */
.principal-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  border-bottom: 5px solid var(--theme-color);
}

@media (max-width: 767px) {
  .principal-img {
    max-width: 280px;
    /* Reduced size for mobile */
    margin: 0 auto;
    display: block;
    border-radius: 20px;
    border-bottom: none;
    /* Cleaner look on mobile */
    box-shadow: var(--shadow-lg);
  }

  .principal-card {
    background: transparent !important;
    border: none !important;
  }
}

.leadership-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.leadership-card:hover,
.principal-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg) !important;
}

.leadership-card:hover .leadership-img {
  transform: scale(1.08);
}

.leadership-card .mt-auto,
.principal-card .p-4 {
  padding: 15px 10px;
}

@media (max-width: 767px) {

  .leadership-card h6,
  .principal-card h5 {
    font-size: 0.85rem !important;
  }

  .leadership-card p,
  .principal-card p {
    font-size: 0.65rem !important;
  }
}

.principal-message {
  position: relative;
  padding-left: 20px;
}

.principal-message::before {
  content: '"';
  position: absolute;
  left: -10px;
  top: -20px;
  font-size: 5rem;
  color: var(--theme-color);
  opacity: 0.1;
  font-family: serif;
}

/* --- Anti-Ragging Section --- */
.anti-ragging-card {
  background: linear-gradient(135deg, #fff5f5, #fff);
  border-left: 5px solid #e53e3e;
  border-radius: var(--radius-md);
  padding: 30px;
}

/* --- Important Links Grid --- */
.link-grid-item {
  background: white;
  padding: 25px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.link-icon-bg {
  width: 65px;
  height: 65px;
  background: rgba(30, 64, 175, 0.05);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.link-grid-item i {
  font-size: 2rem;
  color: var(--theme-color);
  transition: all 0.3s ease;
}

.link-grid-item h6 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0;
  transition: all 0.3s ease;
}

.link-grid-item:hover {
  background: var(--theme-color);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(30, 64, 175, 0.2);
}

.link-grid-item:hover .link-icon-bg {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(10deg);
}

.link-grid-item:hover i,
.link-grid-item:hover h6 {
  color: white !important;
}

/* Floating Apply Button for Mobile */
.apply-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: var(--secondary);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(230, 57, 70, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-transform: uppercase;
  border: 2px solid white;
}

.apply-float:hover {
  transform: scale(1.05);
  background-color: var(--secondary-hover);
  color: white;
}

@media (max-width: 575px) {
  .modal {
    padding-top: 5vh !important;
    /* Push it towards the top */
  }

  .modal-dialog {
    margin: 0 auto !important;
    display: flex !important;
    align-items: flex-start !important;
    min-height: auto !important;
  }

  .modal-content {
    border-radius: 15px !important;
  }

  .modal-header {
    padding: 12px 15px !important;
  }

  .modal-header .bg-white {
    width: 35px !important;
    height: 35px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 10px !important;
  }

  .modal-header img {
    height: 25px !important;
    width: auto !important;
  }

  .modal-title {
    font-size: 0.95rem !important;
    line-height: 1.2;
  }

  .modal-header p.small {
    font-size: 0.65rem !important;
  }

  .modal-body {
    padding: 15px !important;
  }

  .modal-body .bg-light {
    margin: -15px -15px 15px -15px !important;
    padding: 8px !important;
  }

  .modal-body .bg-light p {
    font-size: 0.7rem !important;
  }

  .form-floating {
    margin-bottom: 10px !important;
  }

  .form-control,
  .form-select {
    height: 45px !important;
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
  }

  .form-floating>label {
    font-size: 0.7rem !important;
    padding: 12px !important;
  }

  .form-floating>.form-control:focus~label,
  .form-floating>.form-control:not(:placeholder-shown)~label,
  .form-floating>.form-select~label {
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem) !important;
  }

  .btn-premium.py-3 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    font-size: 0.9rem !important;
  }
}

@media (min-width: 992px) {
  .apply-float {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .college-page-header {
    height: auto !important;
    min-height: 180px !important;
    padding: 30px 0 !important;
  }

  .college-page-header h1 {
    font-size: clamp(1.2rem, 9vw, 1.6rem) !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
  }

  .college-page-header .badge {
    font-size: 0.75rem !important;
    padding: 8px 15px !important;
    white-space: normal !important;
  }

  .college-page-header .breadcrumb-item,
  .college-page-header .breadcrumb-item a {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 767px) {
  /* ... existing mobile styles ... */

  /* Breadcrumb short names for mobile only */
  .college-page-header .breadcrumb-item:nth-child(2) a {
    font-size: 0 !important;
  }

  .theme-degree .college-page-header .breadcrumb-item:nth-child(2) a::after {
    content: "Degree College";
    font-size: 0.8rem !important;
  }

  .theme-nursing .college-page-header .breadcrumb-item:nth-child(2) a::after {
    content: "Nursing College";
    font-size: 0.8rem !important;
  }

  .theme-law .college-page-header .breadcrumb-item:nth-child(2) a::after {
    content: "Law College";
    font-size: 0.8rem !important;
  }

  .theme-pharmacy .college-page-header .breadcrumb-item:nth-child(2) a::after {
    content: "Pharmacy College";
    font-size: 0.8rem !important;
  }
}

.masonry-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
}

.masonry-item {
  flex: 1 1 auto;
  height: 180px;
  /* Even smaller height */
  min-width: 150px;
  /* Even smaller min-width */
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .masonry-gallery {
    gap: 8px;
  }

  .masonry-item {
    height: 120px;
    /* Very compact on mobile */
    min-width: 110px;
  }
}

/* --- Page Hero Section --- */
.page-hero {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)),
    url('../images/global_site_data/kds-global-gallery-image-1.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  margin-bottom: 0;
}

.page-hero h1 {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.page-hero .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
  content: " / ";
}

.page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-hero .breadcrumb-item a:hover {
  color: white;
}

.page-hero .breadcrumb-item.active {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 767px) {
  .page-hero {
    padding: 60px 0;
    background-attachment: scroll;
    /* Fixed background issues on mobile */
  }
}

/* Responsive Registrar Council Info */
.council-info {
  display: block;
  margin-top: 2px;
  color: #2a2626;
  font-weight: 500;
  font-size: 70%;
  /* Desktop */
}

@media (max-width: 767px) {
  .council-info {
    font-size: 90%;
    /* Mobile */
  }
}

/* --- Gallery Filter Buttons --- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 25px;
  border-radius: 50px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.filter-btn:hover {
  background: rgba(10, 25, 47, 0.05);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px rgba(10, 25, 47, 0.2);
}

/* Gallery Item Transitions */
.masonry-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.masonry-item.hide {
  display: none;
}

@media (max-width: 767px) {
  .gallery-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 18px;
    font-size: 0.75rem;
  }
}

.legacy-img-responsive {
  height: 500px;
  object-fit: cover;
}

@media (max-width: 767px) {
  .legacy-img-responsive {
    height: 300px;
  }

  .mobile-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    gap: 15px;
    margin: 0 -15px;
    padding: 0 15px 20px;
  }

  .mobile-slider>[class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    scroll-snap-align: center !important;
  }

  .mobile-slider::-webkit-scrollbar {
    display: none;
  }
}

/* --- Global Breadcrumb Style for College Headers --- */
.college-page-header .breadcrumb {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  list-style: none !important;
}

.college-page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5) !important;
  content: " / " !important;
  padding: 0 10px !important;
}

.college-page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.college-page-header .breadcrumb-item a:hover {
  color: #ffffff !important;
}

.college-page-header .breadcrumb-item.active {
  color: var(--accent) !important;
  font-weight: 600 !important;
}