

/* ===== Custom Bootstrap Overrides for CAR × NIMHANS ===== */

/* Fonts & Basics */
body {
  font-family: "Inria Sans", Helvetica;
  color: #000;
  background-color: #fff;
}

h1, h2, h3, h4, h5 {
  font-family: "Inria Sans", Helvetica;
  font-weight: 700;
}

.navbar {
  background-color: #000 !important;
}

/* Brand */
.navbar-brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.25rem;
}

/* Nav Wrapper */
.navbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px; /* your original gap */
  border-radius: 20px;
  border: 1px solid #ffffff;
  padding: 2px 15px; /* your original padding */
  background-color: transparent;
}

/* Nav Item — make each one occupy equal height and handle full hover area */
.nav-item {
  padding: 2px 15px;
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover/Active: fill full area with color (no flicker) */
.nav-item:hover,
.nav-item:focus-within {
  background-color: #ffffff;
}

/* Nav Link */
.navbar .nav-link {
  color: #fff !important;
  font-weight: 500;
  border-radius: 20px;
  padding: 8px 20px; /* consistent */
  display: block;
  width: 100%;
  text-align: center;
  transition: color 0.3s ease;
}

/* Change text color on hover via parent */
.nav-item:hover .nav-link,
.nav-item:focus-within .nav-link {
  color: #000000 !important;
}

/* Active Page State */
.navbar .nav-link.active,
.navbar .nav-link:focus,
.navbar .nav-link:active {
  /* background-color: #00a5ff !important;
  color: #fff !important; */
}

/* Hero Section */
.hero {
  background: radial-gradient(
    50% 50% at 55% 50%,
    rgba(0, 111, 255, 0.5) 0%,
    rgba(145, 0, 153, 0) 100%
  );
  color: #fff;
  padding: 5rem 0;
}
.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}
.hero span {
  color: #00a5ff;
}
.hero p {
  font-weight: 300;
  font-size: 1.1rem;
  color: #f0f0f0;
}

/* Buttons */
.btn-primary {
  background-color: #00a5ff;
  border-color: #00a5ff;
}
.btn-primary:hover {
  background-color: #0089f1;
  border-color: #0089f1;
}
.btn-outline-light {
  border-color: #ffffff80;
  color: #fff;
}
.btn-outline-light:hover {
  background-color: #00a5ff;
  border-color: #00a5ff;
}


.hero-text{
  padding-bottom: 80px;
}
.hero-section {
      padding: 80px 0 0 0;
    }
    .hero-text h1 {
      font-weight: 700;
      font-size: 2.5rem;
    }
    .hero-text p {
      font-size: 1rem;
      color: #555;
      margin-top: 20px;
      line-height: 1.6;
    }
    .btn-custom {
      margin-top: 20px;
      padding: 10px 25px;
      border-radius: 50px;
      border: 1px solid #000;
      background-color: #fff;
      color: #000;
      font-weight: 500;
      transition: all 0.3s;
    }
    .btn-custom:hover {
      background-color: #000;
      color: #fff;
    }
    .hero-image img {
      max-width: 100%;
      height: auto;
      border-radius: 20px;
    }
    @media (max-width: 768px) {
      .hero-section {
        text-align: center;
      }
      .hero-image {
        margin-bottom: 30px;
      }
    }





/* Repository Section */

.rectangle-box {
  width: 100%;
  height: 0;
  padding-bottom: 50%; /* Makes it a square */
  border: 10px solid #e5ebed;
  border-radius: 5px;
}

.text-justify {
  text-align: justify;
}

/* Background */
section.bg-dark {
  background-color: #050020 !important;
}

/* Text highlight */
h2 span.text-primary {
  color: #00a5ff !important;
}

/* Vertical dividers between columns */
.divider-row .col-md-2:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  transform: translateY(0);
  width: 4px;
  height: 80%;
  background-color: rgb(0 165 255)
}

.divider-text {
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px; /* controls vertical centering */
  text-align: center;
}

/* Hide dividers on mobile */
@media (max-width: 767.98px) {
  .divider-row .col-md-3::after {
    display: none;
  }
}


/* //third// */
.vision-card {
  background-color: #ffffff;
  border: 12px solid #e6eff6 !important;
}

.vision-card h5 {
  font-family: "Sora", Helvetica, sans-serif;
  font-weight: 600;
  font-size: 20px;
}

.vision-card p {
  font-family: "Sora", Helvetica, sans-serif;
  font-size: 15px;
  color: #000;
  text-align: justify;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .vision-card .col-lg-5 img {
    border-radius: 0 0 15px 15px;
  }
}
.vision-img {
  max-width: 60%;  /* makes image smaller */
  height: auto;
  border-radius: 10px;
}

.mb-lg-custom {
  margin-bottom: 3rem !important; /* applies only on large screens and above */
}

@media (max-width: 991.98px) {
  .mb-lg-custom {
    margin-bottom: 1.5rem !important; /* fallback for smaller screens if needed */
  }
}
/* //fourth// */

.bg-dark {
  background-color: #050020 !important;
}

/* Vertical bar as container for ellipses */
.vertical-bar {
  width: 9px;
  height: 280px; /* total bar height */
  background-color: #0e78ce;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* evenly space ellipses */
  align-items: center;
  padding: 10px 0; /* optional spacing at top and bottom */
}

.ellipse {
  width: 18px;
  height: 18px;
  background-color: #0e78ce;
  border-radius: 50%;
}

h3 {
  font-family: "Sora", Helvetica, sans-serif;
  font-weight: 400;
  font-size: 24px;
}

p {
  font-family: "Sora", Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
  .vertical-bar {
    height: 200px; /* shorter on mobile */
  }
}

.right-texts .custom-mb {
  margin-bottom: 4rem; /* increase as needed */
  font-family: "Sora", Helvetica, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
}

/* Optional: different spacing on mobile */
@media (max-width: 767.98px) {
  .right-texts .custom-mb {
    margin-bottom: 2rem; /* adjust mobile spacing */
  }
}
/* Mobile: add bullet points */
@media (max-width: 767.98px) {
  .right-texts .custom-mb {
    padding-left: 2rem; /* space for bullet */
    margin-bottom: 1.5rem; /* slightly smaller spacing on mobile */
  }

  .right-texts .custom-mb::before {
    content: "•"; /* bullet point */
    position: absolute;
    left: 0;
    color: #0e78ce; /* bullet color */
    font-size: 1.2rem;
    line-height: 1.6;
  }
}
/* Footer */
.footer {
  background: #000;
}

.footer .icon-wrapper {
  width: 50px;
  height: 50px;
  background-color: #000;
  border-radius: 10px;
}

.footer a:hover {
  text-decoration: underline;
}

.footer p,
.footer li {
  color: #ffffffcc;
}

.videocontent {
  position: relative;
  width: 100%;
  height: 80vh; /* or any specific height */
  overflow: hidden;
}

.videocontent video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
}

.videocontent .contentdiv {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding-top: 20%;
}

.py-5 {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
}