/* Base theme overrides */
:root {
  --hiit-primary: #0d6efd;
  --hiit-dark: #0c2b5a;
  --hiit-accent: #22b07d;
  --hiit-surface: #f6f8fc;
  --bs-body-font-size: 1.125rem; /* 18px base font size */
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.6;
}
html {
  font-size: 18px; /* Professional base font size */
}
body { 
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; 
    color: #1b1f2a; 
    font-size: 1rem; /* 18px */
    line-height: 1.6;
    font-weight: 400;
}

/* Professional heading sizes */
h1, .h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
h2, .h2 { font-size: 2rem; font-weight: 600; line-height: 1.3; }
h3, .h3 { font-size: 1.75rem; font-weight: 600; line-height: 1.4; }
h4, .h4 { font-size: 1.5rem; font-weight: 500; line-height: 1.4; }
h5, .h5 { font-size: 1.25rem; font-weight: 500; line-height: 1.5; }
h6, .h6 { font-size: 1.125rem; font-weight: 500; line-height: 1.5; }

/* Enhanced paragraph and text */
p, .lead {
  font-weight: 400;
  line-height: 1.6;
}
.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* Professional button styles */
.btn {
  font-weight: 500;
  letter-spacing: 0.025em;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Form enhancements */
.form-control, .form-select {
  font-size: 1rem;
  font-weight: 400;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--hiit-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Navigation improvements */
.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
}

/* Topbar */
.topbar { 
  background: #0c2b5a; 
  color: #fff; 
  font-size: 0.9rem; 
  font-weight: 400;
  z-index: 10000 !important; 
  position: relative;
}
.topbar a { color: #fff; text-decoration: none; }
.navbar { z-index: 1030 !important; }
.navbar .nav-link { color: #0c2b5a; }
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--hiit-primary); }
.btn-accent { background: var(--hiit-accent); color: #fff; }
.btn-accent:hover { background: #199266; color: #fff; }

/* Hero */
.hero { background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%); }
.hero .search-box { background: #fff; border: 1px solid #e6e9ef; box-shadow: 0 10px 30px rgba(13, 110, 253, .08); }
.hero .headline { font-size: clamp(1.6rem, 2.5vw, 2.25rem); line-height: 1.2; }
.hero .subhead { color: #4c5567; }
.hero .bullet { display: inline-flex; align-items: center; gap: .5rem; margin-right: 1rem; margin-bottom: .5rem; color: #274060; font-size: .95rem; }
.hero .bullet .dot { width: .5rem; height: .5rem; background: var(--hiit-accent); border-radius: 50%; display: inline-block; }
.search-tag { background: #eef5ff; color: #0c2b5a; border-radius: 999px; padding: .375rem .75rem; font-size: .875rem; display: inline-block; }
.search-tag + .search-tag { margin-left: .5rem; }

/* Modern Search Section - College Vidya Style */
.hero-search { background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%); position: relative; overflow: hidden; }
.hero-search::before { content: ''; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(13, 110, 253, 0.05) 0%, transparent 70%); border-radius: 50%; }
.hero-search::after { content: ''; position: absolute; bottom: -30%; left: -5%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(34, 176, 125, 0.05) 0%, transparent 70%); border-radius: 50%; }
.hero-search .container { position: relative; z-index: 1; }

.modern-search-box { background: #ffffff; border: 2px solid #e6ebf3; box-shadow: 0 12px 40px rgba(13, 110, 253, 0.12); transition: all 0.3s ease; }
.modern-search-box:hover { box-shadow: 0 16px 50px rgba(13, 110, 253, 0.18); border-color: #cfe0ff; }
.modern-search-box:focus-within { border-color: #0d6efd; box-shadow: 0 16px 50px rgba(13, 110, 253, 0.25); }

.search-input-wrapper { position: relative; }
.search-input-wrapper .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #6b7280; pointer-events: none; z-index: 1; }
.search-input-wrapper .form-control { padding-left: 48px; background: transparent; font-size: 1rem; }
.search-input-wrapper .form-control:focus { box-shadow: none; outline: none; }

.chip-modern { background: #f0f4ff; color: #0c2b5a; border: 1px solid #e0e6f3; padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.875rem; cursor: pointer; transition: all 0.2s ease; font-weight: 500; }
.chip-modern:hover { background: #e6f0ff; border-color: #cfe0ff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15); }
.chip-modern:active { transform: translateY(0); }

.trust-indicators { padding: 1rem 0; }
.trust-item { display: flex; align-items: center; gap: 0.5rem; color: #4b5563; }
.trust-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: #22b07d; color: white; border-radius: 50%; font-size: 0.75rem; font-weight: bold; flex-shrink: 0; }

/* Search Illustration */
.search-illustration { position: relative; }
.illustration-card { background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%); border: 1px solid #e6ebf3; border-radius: 1.5rem; padding: 2rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.stat-card { background: #ffffff; border: 1px solid #e9eef5; border-radius: 1rem; padding: 1.5rem; text-align: center; transition: all 0.3s ease; animation: statCardPop 0.6s ease-out backwards; }
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(13, 110, 253, 0.15); border-color: #cfe0ff; }
.stat-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.stat-number { font-size: 1.75rem; font-weight: 700; color: #0c2b5a; margin-bottom: 0.25rem; }
.stat-label { font-size: 0.875rem; color: #6b7280; font-weight: 500; }

@keyframes statCardPop {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Responsive */
@media (max-width: 991px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stat-card { padding: 1rem; }
  .stat-icon { font-size: 1.5rem; }
  .stat-number { font-size: 1.5rem; }
}

@media (max-width: 576px) {
  .modern-search-box { padding: 0.5rem; }
  .chip-modern { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
  .trust-indicators { flex-direction: column; align-items: flex-start !important; }
}

/* Hero Carousel with Animated Graphics */
#heroCarousel { 
  position: relative; 
  overflow: hidden; 
  z-index: 1 !important; 
  margin-top: 0 !important;
}

/* Ensure carousel content stays below navbar */
.carousel-inner,
.carousel-item {
  position: relative;
  z-index: 1 !important;
}

/* Fix for any content that might be overlapping */
main,
.section {
  position: relative;
  z-index: 1;
}
#heroCarousel .carousel-item { position: relative; min-height: 500px; }
#heroCarousel .carousel-inner { position: relative; z-index: 1; }

/* Animated Background Graphics */
.hero-graphics { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }

/* Floating Shapes */
.floating-shape { position: absolute; border-radius: 50%; opacity: 0.15; animation: float 20s infinite ease-in-out; }
.floating-shape.shape-1 { width: 300px; height: 300px; background: linear-gradient(135deg, #0d6efd 0%, #22b07d 100%); top: -100px; right: -50px; animation-delay: 0s; animation-duration: 25s; }
.floating-shape.shape-2 { width: 200px; height: 200px; background: linear-gradient(135deg, #22b07d 0%, #0d6efd 100%); bottom: -50px; left: 10%; animation-delay: 2s; animation-duration: 20s; }
.floating-shape.shape-3 { width: 150px; height: 150px; background: linear-gradient(135deg, #0d6efd 0%, #7cb0ff 100%); top: 40%; right: 15%; animation-delay: 4s; animation-duration: 22s; }

/* Animated Dots */
.animated-dots { position: absolute; width: 100%; height: 100%; }
.dot-particle { position: absolute; width: 8px; height: 8px; background: #0d6efd; border-radius: 50%; opacity: 0.3; animation: dotFloat 15s infinite ease-in-out; }
.dot-particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.dot-particle:nth-child(2) { top: 60%; left: 20%; animation-delay: 2s; width: 6px; height: 6px; }
.dot-particle:nth-child(3) { top: 30%; right: 15%; animation-delay: 4s; background: #22b07d; }
.dot-particle:nth-child(4) { bottom: 25%; right: 25%; animation-delay: 6s; width: 10px; height: 10px; }
.dot-particle:nth-child(5) { top: 70%; left: 30%; animation-delay: 3s; background: #7cb0ff; }
.dot-particle:nth-child(6) { top: 15%; right: 30%; animation-delay: 5s; width: 7px; height: 7px; }

/* Geometric Lines */
.geometric-lines { position: absolute; width: 100%; height: 100%; }
.line-element { position: absolute; background: linear-gradient(90deg, transparent, #0d6efd, transparent); height: 2px; opacity: 0.2; animation: lineSlide 12s infinite ease-in-out; }
.line-element:nth-child(1) { top: 25%; width: 200px; left: -200px; animation-delay: 0s; }
.line-element:nth-child(2) { top: 55%; width: 150px; right: -150px; animation-delay: 3s; animation-direction: reverse; }
.line-element:nth-child(3) { top: 75%; width: 180px; left: -180px; animation-delay: 6s; background: linear-gradient(90deg, transparent, #22b07d, transparent); }

/* Gradient Overlay Animation */
.gradient-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(34, 176, 125, 0.05) 100%); animation: gradientShift 15s infinite alternate ease-in-out; }

/* Carousel Caption Enhancement */
#heroCarousel .carousel-caption { position: relative; z-index: 2; text-shadow: 0 2px 8px rgba(0,0,0,0.1); }
#heroCarousel .carousel-item.active .carousel-caption { animation: fadeInUp 0.8s ease-out; }

/* Animations */
@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(5deg); }
  50% { transform: translate(-15px, 20px) rotate(-3deg); }
  75% { transform: translate(30px, 10px) rotate(4deg); }
}

@keyframes dotFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-30px) scale(1.2); opacity: 0.6; }
}

@keyframes lineSlide {
  0% { transform: translateX(0); opacity: 0; }
  50% { opacity: 0.2; }
  100% { transform: translateX(100vw); opacity: 0; }
}

@keyframes gradientShift {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pulse Effect for Buttons */
#heroCarousel .btn { position: relative; overflow: hidden; transition: all 0.3s ease; }
#heroCarousel .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3); }
#heroCarousel .btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(255,255,255,0.3); transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; }
#heroCarousel .btn:hover::before { width: 300px; height: 300px; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-shape { transform: scale(0.6); }
  .dot-particle { width: 6px; height: 6px; }
  #heroCarousel .carousel-item { min-height: 400px; }
}

/* CV-like pills and chips */
.form-control.rounded-pill, .form-select.rounded-pill { padding-left: 1rem; padding-right: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; background: #f0f4ff; color: #274060; border: 1px solid #e0e6f3; padding: .375rem .75rem; border-radius: 999px; font-size: .875rem; cursor: pointer; }
.chip.active { background: #e6f0ff; border-color: #cfe0ff; color: #0c2b5a; box-shadow: inset 0 0 0 1px #bcd2ff; }
.filters-sticky { position: sticky; top: 64px; z-index: 101; background: #fff; border-bottom: 1px solid #eef2f7; }
.filters-sticky .inner { padding: .75rem 0; }
.trust-badges { display: flex; gap: 1rem; flex-wrap: wrap; }
.trust-badges .item { display: inline-flex; align-items: center; gap: .5rem; color: #4c5567; font-size: .9rem; }
.trust-badges .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--hiit-accent); }
.hero-badges img { max-height: 32px; filter: grayscale(100%); opacity: .9; }
.hero-img { height: 62vh; min-height: 360px; }

/* Feature grid */
.feature-card { border: 1px solid #e9eef5; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.06); }

/* Mega menu */
.dropdown-mega { 
  position: static; 
  z-index: 10001 !important; 
}

/* Ensure mega menu stays above all content */
.dropdown-menu-mega {
  z-index: 10002 !important;
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  margin-top: 0 !important;
  transform: none !important;
  will-change: transform, opacity;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Ensure dropdowns stay above content */
.dropdown-menu {
  z-index: 10003 !important;
  margin: 0;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  min-width: 200px;
}

/* Fix for carousel z-index */
#heroCarousel,
.carousel,
.carousel-inner,
.carousel-item {
  position: relative;
  z-index: 1 !important;
}
.dropdown-menu-mega { 
  left: 0; 
  right: 0; 
  border: none; 
  border-radius: 0; 
  padding: 1.25rem 0; 
  box-shadow: 0 8px 24px rgba(0,0,0,.1); 
  z-index: 1100 !important; 
  position: absolute; 
  margin-top: 0 !important;
  transform: none !important;
  will-change: transform, opacity;
}
.dropdown-menu-mega .col { padding: 0 1rem; }
.dropdown-menu-mega a { color: #1b1f2a; text-decoration: none; display: block; padding: .375rem 0; }
.dropdown-menu-mega a:hover { color: var(--hiit-primary); }

/* Hover dropdown for courses mega menu */
.dropdown-mega:hover > .dropdown-menu { 
  display: block; 
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}
.dropdown-mega .dropdown-menu { 
  margin-top: 0; 
  transition: all 0.3s ease; 
  z-index: 1101 !important; 
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  display: block !important;
}
.dropdown-mega:hover > .nav-link { 
  color: var(--hiit-primary); 
  position: relative;
  z-index: 1102;
}

/* All dropdown menus should be above content */
.navbar { z-index: 1090 !important; position: relative; }
.dropdown-menu { 
  z-index: 1100 !important; 
  margin-top: 0 !important;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.dropdown:hover > .dropdown-menu {
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Testimonials */
.testimonial-card { border: 1px solid #e9eef5; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.06); }

/* FAQ */
.accordion-button:not(.collapsed) { background: #eef5ff; color: #0c2b5a; }

/* Footer */
footer a { text-decoration: none; color: #0c2b5a; }
footer a:hover { color: #0d6efd; }

/* College Vidya Style Footer */
footer { background: #1e2a3a; }
footer a { transition: all 0.3s ease; }
footer a:hover { color: #fff !important; opacity: 1 !important; }
footer .social-icon-cv { transition: all 0.3s ease; }
footer .social-icon-cv:hover { background: rgba(255,255,255,0.2) !important; transform: translateY(-2px); }

/* Newsletter Section */
.footer-newsletter { background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%); position: relative; z-index: 1; }
.newsletter-form .form-control { 
  border: none; 
  border-radius: 50px 0 0 50px; 
  padding: 0.75rem 1.5rem; 
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
}
.newsletter-form .form-control:focus { 
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3); 
  background: #fff;
}
.newsletter-form .btn { 
  border-radius: 0 50px 50px 0; 
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: none;
  border: none;
}
.newsletter-form .btn:hover {
  background: #fff;
  color: #0d6efd;
  transform: translateX(2px);
}

/* Footer Stats */
.footer-stats { position: relative; z-index: 1; }
.stat-box { 
  background: rgba(13, 110, 253, 0.15); 
  border: 1px solid rgba(13, 110, 253, 0.3);
  border-radius: 12px; 
  padding: 1rem; 
  text-align: center;
  transition: all 0.3s ease;
}
.stat-box:hover {
  background: rgba(13, 110, 253, 0.25);
  border-color: rgba(13, 110, 253, 0.5);
  transform: translateY(-3px);
}
.stat-number { 
  font-size: 1.5rem; 
  font-weight: 700; 
  color: #0d6efd; 
  margin-bottom: 0.25rem;
}
.stat-label { 
  font-size: 0.75rem; 
  color: rgba(255, 255, 255, 0.8); 
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact Items */
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}
.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}
.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(13, 110, 253, 0.2);
  border: 1px solid rgba(13, 110, 253, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0d6efd;
}
.contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact-text strong {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}
.contact-text span,
.contact-text a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-text a:hover {
  color: #0d6efd;
}

.footer-main { border-bottom: 1px solid rgba(255, 255, 255, 0.1); position: relative; z-index: 1; }
.footer-brand h4 { font-size: 1.75rem; }
.footer-contact svg { color: #0d6efd; }
.footer-contact a:hover { color: #0d6efd !important; text-decoration: underline; }

/* Social Icons */
.social-icon { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  width: 40px; 
  height: 40px; 
  background: rgba(255, 255, 255, 0.1); 
  border-radius: 50%; 
  color: #fff; 
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-icon:hover { 
  background: #0d6efd; 
  color: #fff; 
  transform: translateY(-3px); 
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
  border-color: #0d6efd;
}

/* Footer Links */
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { 
  color: rgba(255, 255, 255, 0.7); 
  transition: all 0.3s ease; 
  display: inline-block;
  position: relative;
}
.footer-links a:hover { 
  color: #fff; 
  padding-left: 5px;
}
.footer-links a::before {
  content: '→';
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: all 0.3s ease;
}
.footer-links a:hover::before {
  left: -10px;
  opacity: 1;
}

/* Footer Bottom */
.footer-bottom { 
  background: rgba(0, 0, 0, 0.2); 
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom a { 
  color: rgba(255, 255, 255, 0.7); 
  transition: color 0.3s ease;
}
.footer-bottom a:hover { 
  color: #fff; 
}

/* Footer Accreditations */
.footer-accreds { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.5rem; 
}
.footer-accreds .tile { 
  background: rgba(255, 255, 255, 0.1); 
  padding: 0.5rem 0.75rem; 
  border-radius: 0.25rem; 
  font-size: 0.75rem; 
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.footer-accreds .tile:hover {
  background: rgba(13, 110, 253, 0.2);
  border-color: #0d6efd;
  color: #fff;
}

@media (max-width: 768px) {
  html { font-size: 16px; } /* Slightly smaller on mobile */
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.75rem; }
  h3, .h3 { font-size: 1.5rem; }
}

/* Metrics strip */
.metric { display: flex; align-items: center; gap: .75rem; justify-content: center; }
.metric .icon { width: 42px; height: 42px; border-radius: 50%; background: #eef5ff; display: inline-flex; align-items: center; justify-content: center; color: var(--hiit-primary); font-weight: 700; }
.metric .value { font-size: 1.25rem; font-weight: 700; }
.metric .label { color: #6b7280; font-size: .95rem; }

/* Logo/Accreditation carousel */
.logo-tile { background: #fff; border: 1px solid #e9eef5; border-radius: .5rem; height: 72px; display: flex; align-items: center; justify-content: center; padding: .75rem; }
.logo-tile img { max-height: 48px; max-width: 100%; object-fit: contain; filter: grayscale(10%); }

/* Side categories section */
.side-categories .nav-link { background: #fff; border: 1px solid #e6ebf3; margin-bottom: .5rem; border-radius: .75rem; color: #0c2b5a; display: flex; justify-content: space-between; align-items: center; }
.side-categories .nav-link.active { border-color: #cfe0ff; background: #eef5ff; color: #0c2b5a; box-shadow: inset 0 0 0 1px #bcd2ff; }
.course-tile { border: 1px solid #e9eef5; border-radius: .75rem; overflow: hidden; background: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.course-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.06); }
.course-tile .head { padding: .5rem .75rem; font-size: .8rem; color: #6b7280; display: flex; justify-content: space-between; }
.course-tile .body { padding: .75rem; min-height: 108px; display: flex; align-items: center; justify-content: center; text-align: center; }
.course-tile .foot { padding: .5rem .75rem; background: #f8fbff; border-top: 1px solid #e9eef5; text-align: center; }

/* Support platform section */
.support-strip { border: 1px solid #e6ebf3; border-radius: .75rem; background: #fff; }
.support-tile { text-align: center; padding: 1rem .5rem; }
.support-tile .num { color: var(--hiit-primary); font-weight: 700; font-size: .95rem; }
.support-tile .icon { width: 40px; height: 40px; border-radius: .5rem; display: inline-flex; align-items: center; justify-content: center; background: #eef5ff; color: #0c2b5a; margin-bottom: .25rem; }
.promo-card { border: 1px solid #e6ebf3; border-radius: .75rem; overflow: hidden; background: #fff; }
.promo-card .body { padding: 1rem; }
.carousel-dots { text-align: center; margin-top: .5rem; }
.carousel-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: #c7d5f1; display: inline-block; margin: 0 .2rem; }
.carousel-dots .dot.active { background: var(--hiit-primary); }

/* Experts section */
.experts-section { background: #0b1424; color: #e8eefb; }
.experts-section .section-lead { color: #9fb2d9; }
.expert-card { background: #0f1b31; border: 1px solid #1f2c49; border-radius: .75rem; overflow: hidden; }
.expert-card .meta { display: flex; justify-content: space-between; font-size: .8rem; color: #9fb2d9; padding: .5rem .75rem; }
.expert-card .photo { background: #182743; }
.expert-card .body { padding: .75rem; }
.badge-soft { background: #122144; color: #9fb2d9; border: 1px solid #203157; border-radius: 999px; padding: .15rem .5rem; font-size: .75rem; }
.btn-consult { background: #2563eb; color: #fff; }
.btn-consult:hover { background: #1e4fc4; color: #fff; }

/* Stories (Trusted Voices) */
.stories-section .subtitle { color: #64748b; }
.story-card { background: #fff; border: 1px solid #e6ebf3; border-radius: 1.25rem; padding: .5rem; position: relative; }
.story-frame { border-radius: 1rem; overflow: hidden; background: #0d6efd0a; }
.story-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; color: #0d6efd; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.story-badge { position: absolute; left: .75rem; top: .5rem; font-size: .75rem; background: #fff; border: 1px solid #e6ebf3; border-radius: 999px; padding: .1rem .5rem; color: #64748b; }
.story-cta { text-align: center; }

/* In the News section */
.news-section .kicker { color: #2563eb; font-weight: 600; font-size: .9rem; }
.press-card { border: 1px solid #e6ebf3; border-radius: .75rem; overflow: hidden; background: #fff; display: flex; flex-direction: column; height: 100%; }
.press-card .thumb { background: #eef3ff; }
.press-card .brand { padding: .5rem .75rem; border-top: 1px solid #e9eef5; font-weight: 700; color: #111827; }
.press-card .body { padding: .75rem; font-size: .95rem; color: #4b5563; }
.logo-pill { border: 1px solid #e6ebf3; border-radius: .75rem; background: #fff; padding: .5rem .75rem; display: inline-flex; align-items: center; justify-content: center; height: 44px; }

/* Students chosen section */
.chosen-section { background: #0b1424; color: #e8eefb; }
.chosen-section .big-num { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 800; letter-spacing: .02em; color: #7cb0ff; }
.chosen-section .cta-pill { background: #1e40af; color: #fff; border: none; padding: .4rem .9rem; border-radius: .75rem; font-weight: 600; }
.chosen-tile { background: #0f1b31; border: 1px solid #1f2c49; border-radius: .75rem; padding: .5rem; text-align: center; }
.chosen-tile .avatar { border-radius: .5rem; background: #182743; }
.chosen-tile .logo { margin-top: .35rem; border-top: 1px solid #1f2c49; padding-top: .35rem; color: #cbd5e1; font-size: .8rem; }

/* Footer accreditations */
.footer-accreds { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: .6rem; }
.footer-accreds .tile { background: #fff; border: 1px solid #e9eef5; border-radius: .65rem; height: 50px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #0c2b5a; letter-spacing: .2px; box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: transform .15s ease, box-shadow .15s ease; animation: popIn .35s ease both; }
.footer-accreds .tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13,110,253,.15); }
.footer-accreds .tile.badge { color: #0b1324; }
@keyframes popIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
footer .accred-wrap { background: linear-gradient(180deg,#f7faff 0%, #ffffff 60%); border: 1px solid #eef3ff; border-radius: .75rem; padding: .75rem; }
@media (max-width: 768px) { .footer-accreds { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* About page enhancements */
.card-soft { background: #fff; border: 1px solid #e6ebf3; border-radius: .75rem; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.card-soft .card-body { padding: 1rem; }
.timeline .step { position: relative; padding-left: 1.5rem; }
.timeline .step::before { content: ""; position: absolute; left: .4rem; top: .35rem; width: .5rem; height: .5rem; border-radius: 50%; background: #0d6efd; box-shadow: 0 0 0 4px #e9f1ff; }
.timeline .step .box { border: 1px solid #e6ebf3; border-radius: .75rem; background: #fff; padding: .75rem .9rem; }
.pill-badge { display: inline-block; padding: .15rem .6rem; border: 1px solid #d7e3ff; background: #f5f9ff; color: #0c2b5a; border-radius: 999px; font-size: .75rem; }
.partners-grid .item { border: 1px solid #e6ebf3; background: #fff; border-radius: .75rem; padding: 1rem; text-align: center; height: 100%; display:flex; align-items:center; justify-content:center; }

/* About Page Animations & Enhancements */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.fade-in-up { animation: fadeInUp 0.8s ease-out; }
.slide-in-left { animation: slideInLeft 0.8s ease-out; }
.slide-in-right { animation: slideInRight 0.8s ease-out; }
.scale-in { animation: scaleIn 0.6s ease-out; }
.pulse-animation { animation: pulse 2s infinite; }
.float-animation { animation: float 3s ease-in-out infinite; }

/* Card Hover Effects */
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.card-hover:hover::before {
  left: 100%;
}

.card-hover:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

/* Timeline Enhanced */
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 4px solid #fff;
  box-shadow: 0 0 0 4px #e3f2fd, 0 4px 8px rgba(0,0,0,0.1);
  z-index: 2;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 20px;
  width: 2px;
  height: calc(100% + 20px);
  background: linear-gradient(180deg, #667eea 0%, #e3f2fd 100%);
  z-index: 1;
}

.timeline-item:last-child::after {
  display: none;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Icon Box */
.icon-box {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin: 0 auto 1rem;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.icon-box:hover {
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Achievement Cards */
.achievement-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: all 0.4s ease;
}

.achievement-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.achievement-card:hover::after {
  opacity: 1;
}

/* Stats Counter Animation */
.stat-counter {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: inline-block;
}

/* Glowing Border */
.glow-border {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #667eea, #764ba2) border-box;
  border-radius: 16px;
}

/* Leadership Card */
.leadership-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.leadership-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.leadership-card:hover::before {
  transform: scaleX(1);
}

.leadership-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important;
}

/* Responsive Animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Auto Scroll Animation for Accreditations */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.scroll-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.scroll-content {
  display: flex;
  gap: 1rem;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.scroll-content:hover {
  animation-play-state: paused;
}

/* Accreditation Logo Box */
.accred-logo-box {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px 20px;
  min-width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.accred-logo-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-color: #0d6efd;
}

.accred-logo-box img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
}

/* Course Page Styles */
.bg-gradient-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  position: relative;
  overflow: hidden;
  z-index: 1 !important;
}

.bg-gradient-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.3;
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.icon-box:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.accordion-button:not(.collapsed) {
  background-color: #f8f9fa;
  color: #0d6efd;
  font-weight: 600;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0,0,0,.125);
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* Fix for hero carousel and sections overlapping navbar */
#heroCarousel,
.bg-gradient-primary,
section:first-of-type,
main > section:first-child,
header.bg-light {
  margin-top: 0 !important;
}

/* Ensure proper spacing for content after navbar */
.navbar + * {
  margin-top: 0;
}

@media (min-width: 992px) {
  .sticky-sidebar {
    position: sticky;
    top: 100px;
    z-index: 1;
  }
}

/* Animated Gradient Background */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.bg-gradient-animated {
  background: linear-gradient(-45deg, #0d6efd, #0a58ca, #0dcaf0, #0d6efd);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

/* Form Styling */
.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
  background: linear-gradient(135deg, #0a58ca 0%, #0d6efd 100%);
}

/* Badge Styling */
.badge {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

/* Pulse Animation for CTA */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.btn-light.btn-lg {
  animation: pulse 2s infinite;
}

/* List Styling */
.list-unstyled li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.list-unstyled li:last-child {
  border-bottom: none;
}

/* Card Shadow Variations */
.shadow-sm {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Tech Icon Box */
.tech-icon-box {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  margin: 0 auto;
}

.tech-icon-box:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.tech-icon-box i {
  transition: transform 0.3s ease;
}

.tech-icon-box:hover i {
  transform: scale(1.1);
}

/* Small Icon Box for Sidebar */
.icon-box-sm {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* Accordion Enhancements */
.accordion-item {
  border-radius: 8px !important;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.accordion-button {
  font-size: 1rem;
  padding: 1rem 1.25rem;
}

.accordion-button i {
  font-size: 1.2rem;
}

@media (max-width: 576px) {
  .hero-img { height: 46vh; }
  .carousel-caption { bottom: 1.5rem; }
  .carousel-caption h1, .carousel-caption h2 { font-size: 1.5rem; }
}
