:root {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;

  color: #fff;
}

a {
  color: #000000;
  text-decoration: none;
}

a:hover {
  color: #bd2440;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto", sans-serif;
}

/* HEADER */
.navbar {
  background: #fff !important;
  padding: 0px;
  color: #f8f9fb;
  z-index: 10000;
}

.navbar .navbar-brand img {
  max-height: 62px;
  object-fit: contain;
}

/* Toggler color */
.navbar-toggler {
  border-color: rgba(57, 49, 133, 0.15);
}

.navbar-nav a {
  font-weight: 600;
  color: #000;
}

/* Mobile navbar background color */
@media (max-width: 991px) {
  .navbar-collapse {
    background: #393185 !important;
    /* Dark Blue */
    padding: 15px;
    border-radius: 8px;
  }

  .navbar-nav .nav-link {
    color: #fff !important;
    /* Make text white */
    padding: 10px 0;
  }

  .navbar-nav .nav-link:hover {
    color: #ed1c24 !important;
    /* Red on hover */
  }
}
.campus-card:nth-child(6) {
  background: rgb(223 223 223);
}

.campus-card:nth-child(7) {
  background: #f1e1e1;
}

.campus-card:nth-child(8) {
  background: #e1fbed;
}

.campus-card:nth-child(9) {
  background: #e9ffce;
}
.wrapper {
  max-width: 1400px;
  margin: auto;
  padding: 50px 30px;
}

.main-section {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Left Side */
.left-panel {
  flex: 2;
}

.section-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  color: #000;
}

.section-title::after {
  content: "";
  width: 70px;
  height: 4px;
  background: #fff;
  position: absolute;
  left: 0;
  bottom: -10px;
  border-radius: 10px;
}

.campus-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Each card */
.campus-item {
  flex: 0 0 calc(50% - 6px); /* 2 per row */
  max-width: calc(50% - 6px);
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  font-size: 13px;
  box-sizing: border-box;
}

/* Desktop */
@media (min-width: 768px) {
  .campus-item {
    flex: 0 0 calc(25% - 12px); /* 4 per row */
    max-width: calc(25% - 12px);
  }
}

/* Light Background Colors for Campus Cards */

.campus-card:nth-child(1) {
  background: #fff4e6; /* Soft Peach */
}

.campus-card:nth-child(2) {
  background: #eaf7ff; /* Light Sky Blue */
}

.campus-card:nth-child(3) {
  background: #f3fbef; /* Soft Green */
}

.campus-card:nth-child(4) {
  background: #f8f0ff; /* Light Lavender */
}

.campus-card:nth-child(5) {
  background: #fff9e6; /* Light Yellow */
}

/* Right Side */
.right-panel {
  flex: 1;
  min-width: 320px;
}

.about-box {
  background: #6056c5;
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.about-box h2 {
  font-size: 30px;
  margin-bottom: 18px;
}

.about-box p {
  font-size: 18px;
  line-height: 1.9;
  color: #eef6ff;
  margin-bottom: 14px;
}

/* Responsive */
@media (max-width: 992px) {
  .main-section {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .section-title {
    font-size: 28px;
  }

  .about-box p {
    font-size: 16px;
  }
}

.hero {
  background: url("../img/ibs-banner.png") center / cover no-repeat;
  background-size: 100% 100%;
}

@media screen and (max-width: 786px) {
  .hero {
    background: url("../img/m-ibs-banner.png") center / cover no-repeat;
    background-size: contain;
    
  }
}
footer {
  background: rgba(227, 30, 36);
  padding: 15px 0px;
  margin-top: 20px;
}
.footer-links {
  text-align: center;
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links ul li {
  display: inline-block;
}

.footer-links ul li a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ed7575;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-links ul li a:hover {
  background: #ffffff;
  color: #0d1b2a;
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(255, 255, 255, 0.15);
}

@media (max-width: 576px) {
  .footer-links ul {
    gap: 10px;
  }

  .footer-links ul li a {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

.login-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
}
@media (max-width: 576px) {
  .login-section {
    position: relative;
    bottom: -15%;
  }
}
.login-card {
  width: 100%;
  max-width: 700px;
  background: #c9e2ff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.login-card h1 {
  font-size: 34px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
}

.login-subtitle {
  color: #000000;
  margin-bottom: 15px;
  font-size: 16px;
}

.form-label {
  font-weight: 600;
  color: #000000;
  margin-bottom: 8px;
}

.form-control {
  height: 52px;
  border-radius: 12px;
  border: 1px solid #d6dbe1;
  padding: 12px 16px;
  font-size: 15px;
  box-shadow: none;
}

.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}

.example-text {
  font-size: 13px;
  color: #000000;
  margin-top: 8px;
}

.btn-submit {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
  padding: 12px 35px;
  border-radius: 12px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(13, 110, 253, 0.25);
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.login-heading {
  font-size: 20px;
  font-weight: 600;
  color: #0d3b66;
  margin-bottom: 20px;
  border-left: 4px solid #0d6efd;
  padding-left: 10px;
}

@media (max-width: 576px) {
  .login-card {
    padding: 25px;
  }

  .login-card h1 {
    font-size: 28px;
  }
}

/* Section */
.about-section {
  margin: auto;
  background: #ffffff;
  padding: 10px;
}

/* Heading */
.about-title {
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  color: #000;
  margin-bottom: 35px;
  position: relative;
}

.about-title::after {
  content: "";
  width: 130px;
  height: 4px;
  background: #f70000;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
}

/* Cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.stat-card {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
}

.stat-number {
  font-size: 28px;
  font-weight: bold;
  color: #000;
}

.stat-text {
  font-size: 14px;
}

/* Single Card */
.stat-card {
  background: #f9f9f9;

  padding: 22px 15px;
  text-align: center;

  transition: 0.3s ease;

  border-top: 6px solid #2e3091;
  border-radius: 10px;
}

/* yellow top strip */
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: #ffd400;
}

/* Text */
.stat-text {
  font-size: 16px;
  font-weight: 700;
  color: #383838;

  line-height: 1.4;
}

/* Button */
.btn-box {
  text-align: center;
  margin-top: 35px;
}

.btn-admission {
  display: inline-block;
  background: #f70000;
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: 0.3s;
}

.btn-admission:hover {
  background: #d80000;
}
@media (max-width: 992px) {
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Mobile */
@media (max-width: 768px) {
  .about-title {
    font-size: 32px;
  }
}
.text-justify {
  text-align: justify;
}

/* GRID */
.campus-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

/* CARD */
.campus-card {
  background: #f8f9fa;
  border-radius: 12px;
  transition: 0.3s ease;
  overflow: hidden;
}

/* MAKE FULL CARD CLICKABLE */
.campus-card a {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: #000;
  height: 100%;
}

/* TEXT */
.campus-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* HOVER EFFECT */
.campus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .campus-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .campus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*--------------------------------------------------------------
# Back to Top Button (Glassmorphism + Glow)
--------------------------------------------------------------*/

#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  outline: none;
  cursor: pointer;
  background: rgb(46 48 145);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  box-shadow: 0 6px 20px rgb(158 154 225 / 40%);
  transition: all 0.3s ease;
}

#scrollToTopBtn:active {
  transform: translateY(0px);
}
