:root {
  --primary-color: #1e3a8a;
  --primary-dark: #0f172a;
  --primary-light: #3b82f6;
  --secondary-color: #2563eb;
  --accent-color: #f59e0b;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --bg-light: #f8fafc;
  --bg-soft: #f1f5f9;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

.font-outfit {
  font-family: "Outfit", sans-serif;
}

.font-inter {
  font-family: "Inter", sans-serif;
}

.fs-7 {
  font-size: 0.875rem;
}
.fs-8 {
  font-size: 0.75rem;
}
.letter-spacing-1 {
  letter-spacing: 1px;
}

.text-justify {
  text-align: justify;
}
/* Colors & Buttons */
.text-primary {
  color: var(--primary-color) !important;
}
.bg-primary {
  background-color: var(--primary-color) !important;
}
.text-secondary {
  color: var(--secondary-color) !important;
}
.bg-secondary {
  background-color: var(--secondary-color) !important;
}
.text-accent {
  color: var(--accent-color) !important;
}
.bg-accent {
  background-color: var(--accent-color) !important;
}

.text-light-50 {
  color: rgba(255, 255, 255, 0.65) !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 82, 130, 0.2);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--primary-dark);
  border: none;
  transition: all 0.3s ease;
}
.btn-accent:hover,
.btn-accent:focus {
  background-color: #f59e0b;
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.transition {
  transition: all 0.3s ease;
}
.hover-white:hover {
  color: #fff !important;
}
.hover-accent:hover {
  color: var(--accent-color) !important;
}

/* Navbar */
.navbar {
  transition: all 0.3s ease-in-out;
}
.nav-link {
  color: var(--text-dark) !important;
  position: relative;
  transition: color 0.3s;
  font-weight: 600;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color) !important;
  opacity: 1;
}
.custom-nav-underline .nav-link::before {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  transition: width 0.3s ease;
  border-radius: 2px;
}
.custom-nav-underline .nav-link:hover::before,
.custom-nav-underline .nav-link.active::before {
  width: 60%;
}

/* Ensure caret is on the right and doesn't get underline styles */
.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.5em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Dropdown UI Improvement */
.dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item {
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.dropdown-item:last-child {
  margin-bottom: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--bg-soft);
  color: var(--primary-color);
  transform: translateX(5px);
}

.dropdown-item.active {
  background-color: var(--primary-color);
  color: #ffffff !important;
}

/* Hover Dropdown for Desktop */
@media (min-width: 992px) {
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-item.dropdown > .dropdown-menu {
    display: block; /* keep it in DOM but hidden */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    margin-top: -5px; /* Slight overlap to maintain hover */
    padding-top: 15px; /* Offset the overlap content-wise */
  }
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}
.animation-pulse {
  animation: pulse 2s infinite;
}

/* Sections */
section {
  padding: 30px 0;
  overflow-x: hidden;
}

footer {
  overflow-x: hidden;
}
.section-title {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 35px; /* Increased margin to prevent hiding */
  position: relative;
  display: inline-block; /* Back to inline-block for precise underline positioning */
}

.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 4px;
  bottom: -15px;
  left: 0;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 4px;
}

/* Center alignment adjustment */
.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Hero Section */
.hero-swiper {
  width: 100%;
  height: auto !important;
}
.hero-slide {
  position: relative;
  width: 100%;
  height: auto !important;
}
.hero-slide img {
  width: 100%;
  height: auto !important;
  display: block;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(15, 23, 42, 0.4) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.hero-swiper .swiper-pagination {
  bottom: 10px !important;
}
.swiper-button-next,
.swiper-button-prev {
  color: white !important;
}

/* Cards & Hover Effects */
.card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  overflow: hidden;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.card-img-wrapper {
  overflow: hidden;
}
.card-img-wrapper img {
  transition: transform 0.5s ease;
}

/* News & Events Card Fixes */
.news-swiper .swiper-slide {
  height: auto;
  display: flex;
}
.news-swiper .card {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.news-swiper .card-img-top {
  height: 220px;
  object-fit: cover;
  width: 100%;
}
.news-swiper .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.news-swiper .badge {
  width: fit-content;
}
.news-swiper .card-footer {
  margin-top: auto;
}

/* Feature Icon Box */
.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: rgba(49, 130, 206, 0.1);
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}
.feature-card {
  transition: all 0.3s ease;
}
.feature-card:hover .icon-box {
  background: var(--primary-color);
  color: white;
  transform: rotateY(180deg);
}

.highlight-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}
.highlight-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

/* Image Grids / Facilities */
.facility-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.facility-img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.facility-item:hover .facility-img {
  transform: scale(1.1);
}
.facility-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 1.5rem 1rem 0.8rem;
  color: white;
}
.facility-overlay h4 {
  font-size: 1.1rem;
}
.facility-overlay p {
  font-size: 0.8rem !important;
}

/* Testimonials */
.testimonial-card {
  background: white;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin: 15px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.03);
}
.quote-icon {
  position: absolute;
  top: -15px;
  right: 30px;
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.3;
  line-height: 1;
}

/* Timeline / Process */
.process-step {
  position: relative;
  text-align: center;
  padding: 20px;
  z-index: 1;
}
.process-step::after {
  content: "";
  position: absolute;
  top: 50px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: rgba(49, 130, 206, 0.2);
  z-index: -1;
}
@media (max-width: 991px) {
  .process-step::after {
    display: none;
  }
}
@media (max-width: 575px) {
  .step-number {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-width: 3px;
  }
  .process-step h5 {
    font-size: 0.95rem;
  }
}
.process-step:last-child::after {
  display: none;
}
.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
  border: 5px solid rgba(49, 130, 206, 0.2);
  transition: all 0.3s ease;
}
.process-step:hover .step-number {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-light);
  transform: scale(1.1);
}

/* Forms */
.form-control,
.form-select {
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
}
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
  border-color: var(--secondary-color);
  background-color: #fff;
}

/* Footer Links */
.footer-links a {
  color: #ffffff;
}
.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}
.btn-social {
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}
.btn-social:hover {
  background-color: var(--accent-color);
  color: var(--primary-dark) !important;
  border-color: var(--accent-color);
  transform: translateY(-3px);
}
.section-underline-sm::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

/* Floating Buttons */
.floating-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: none;
  font-size: 1.5rem;
}

.enquiry-btn {
  background-color: var(--primary-color);
}

.whatsapp-btn {
  background-color: #25d366;
}

.top-btn {
  background-color: var(--accent-color);
  color: var(--primary-dark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-btn:hover {
  transform: scale(1.1);
  color: white;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.enquiry-btn:hover {
  background-color: var(--primary-light);
}

.whatsapp-btn:hover {
  background-color: #1ebe57;
}

.top-btn:hover {
  background-color: #e6910a;
}

@media (max-width: 991px) {
  body {
    padding-top: 76px !important;
  }
  #mainNav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1040 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  }
  footer {
    padding-bottom: 80px !important;
  }
  /* Hide specific floating buttons on mobile as they are in bottom nav */
  .enquiry-btn, 
  .whatsapp-btn {
    display: none !important;
  }
  /* Move Go to Top button above the mobile bottom nav */
  .floating-container {
    bottom: 85px;
    right: 20px;
  }
  /* Disable fixed background attachment on mobile/tablet to prevent horizontal scroll bugs */
  #achievements {
    background-attachment: scroll !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
    .tab-responsive-text { font-size: 0.85rem !important; }
    .tab-responsive-title { font-size: 1.75rem !important; }
}