/* Keep content from sliding under the fixed navbar */
body {
  padding-top: 70px; /* Adjust based on navbar height */
  background-color: #F5F5F5;
}

/* Navbar styling */
.custom-navbar {
  background: rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 70px;
  padding: .3rem 0;
  z-index: 1000;
}

/* Make hamburger icon visible on glassy background */
.navbar-toggler { border-color: rgba(0,0,0,.35); }
.navbar-toggler-icon {
  background-image:
    url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,0.85)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Brand container alignment */
.navbar-brand {
  display: flex;
  align-items: center;
  margin-top: 2px;
}

/* Logo box: thick border, rounded, and responsive */
.logo-box {
  margin-top: 0.5px;
  padding: clamp(3px, 1vw, 3px);         /* scales padding with screen size */
  border: clamp(3px, 0.9vw, 3px) solid black; /* thick but responsive border */
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  display: inline-block;
}

/* Make the logo image responsive inside the box */
.logo-box img {
  display: block;
  height: clamp(30px, 5.2vw, 55px);      /* scales up/down with screen */
  width: auto;
}

/* Nav link styles */
.navbar-nav .nav-link {
  color: black !important;
  font-weight: 500;
}
.navbar-nav .nav-link.active {
  color: orange !important;
  font-weight: 700;
}

/* Small devices adjustments */
@media (max-width: 576px) {
  .custom-navbar {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .logo-box {
    padding: clamp(4px, 1vw, 6px);
    border-width: clamp(4px, 0.7vw, 5px);
  }
}

/* ---------- About page content styles (unchanged) ---------- */
.about-hero h1 { letter-spacing: .2px; }
.about-hero p { max-width: 760px; margin: 0 auto; }

.card.soft{ border: 0; border-radius: 16px; }
.card.soft .card-body{ padding: 1.25rem 1.25rem; }
.card.shadow-sm{ border-radius: 16px; }

.stat .icon-wrap{
  font-size: 1.6rem;
  width: 48px; height: 48px;
  display:grid; place-items:center;
  border-radius: 50%;
  background: rgba(252,105,0,0.12);
  color: #fc6900;
  margin: 0 auto .75rem;
}

.team-card{ border: 0; border-radius: 16px; text-align: center; }
.team-avatar{
  width: 88px; height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff3e8;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  margin: 0 auto 1rem;
}
.team-avatar img{ width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 992px){
  .about-page .row.justify-content-center > [class*="col-lg-4"]{
    max-width: 360px;
  }
}

.about-page section{ scroll-margin-top: 80px; }
.guru-img { max-width: 100px; height: auto; border-radius: 12px; }
.guru-image { display: inline-block; }

.guru-photo {
  border: 3px solid black;
  border-radius: 8px;
  padding: 4px;
}

.guru-title {
  border: 2px solid black;
  border-radius: 50px;
  padding: 6px 14px;
  background-color: #ffe4e9;
}

/* ---------- Fix mobile collapse overlap & flashing ---------- */
@media (max-width: 991.98px) {
  /* Allow the dropdown panel to sit over the hero */
  .hero-section { overflow: visible; }

  /* OPEN state: fixed, full-width panel below navbar */
  .navbar-collapse.collapse.show {
    position: fixed;
    top: 70px;        /* height of your navbar */
    left: 0; right: 0;
    z-index: 1040;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    margin: 0 12px;
    padding: 12px 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* TRANSITION state: mirror OPEN styles to prevent flicker/flash */
  .navbar-collapse.collapsing {
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    z-index: 1040;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    margin: 0 12px;
    padding: 12px 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    /* kill Bootstrap's height animation to avoid layout jump */
    height: auto !important;
    transition: none !important;
  }

  /* Comfortable, consistent spacing for links in the panel */
  .navbar-nav .nav-link {
    color: #000 !important;
    padding: .65rem 0;
    font-weight: 600;
  }
  .navbar-nav .nav-link.active { color: orange !important; }
}
