/* Abhaynagar Adarsha Gurukul — site-specific styles on top of TemplateMo 581 */

/* Navbar: the org name is much longer than the template's, so shrink the
   brand and menu spacing to keep them from overlapping */
.navbar-brand {
  /* scales with viewport so the long name always fits beside the logo */
  font-size: clamp(13px, 3.6vw, 18px);
}

.navbar .logo {
  width: 56px;
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (min-width: 992px) {
  .navbar-brand {
    font-size: clamp(14px, 1.45vw, 18px);
  }
}

@media (min-width: 992px) and (max-width: 1259px) {
  .navbar .logo {
    width: 44px;
  }

  .navbar-brand small {
    display: none;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    font-size: 14px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .navbar-nav .nav-item.ms-3 {
    margin-left: 0.5rem !important;
  }
}

/* Sub-page title band */
.page-header {
  background: linear-gradient(120deg, var(--custom-btn-bg-color), var(--primary-color));
  padding: 110px 0 50px 0;
}

.page-header h1 {
  color: var(--white-color);
  font-size: var(--h2-font-size);
  margin-bottom: 0;
}

.page-header .breadcrumb {
  margin: 10px 0 0 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a,
.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
}

/* Hero captions: our text is longer than the template's demo lines, so
   extend the white wedge up the left edge (triangle -> quad) and cap
   text size/width so every line stays on the white area */
#hero-slide .carousel-caption {
  clip-path: polygon(100% 100%, 100% 150px, 0 82%, 0 100%);
}

#hero-slide .carousel-caption h1 {
  font-size: clamp(26px, 2.9vw, 40px);
}

#hero-slide .carousel-caption p {
  max-width: 520px;
  margin-left: auto;
}

@media screen and (max-width: 580px) {
  #hero-slide .carousel-caption {
    clip-path: polygon(100% 100%, 100% 100px, 0 70%, 0 100%);
    padding-left: 40px;
  }

  #hero-slide .carousel-caption h1 {
    font-size: 26px;
  }

  #hero-slide .carousel-caption p {
    font-size: 14px;
  }
}

/* Content images (about/ouraim/docs) — natural height, unlike the
   template's custom-text-box-image which stretches to 100% column height */
.content-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-medium, 20px);
}

/* Gallery */
.gallery-thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--border-radius-medium, 20px);
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .3s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

/* Simple lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .85);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-overlay.show {
  display: flex;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

/* Donate / bank details */
.bank-details th {
  color: var(--secondary-color);
  white-space: nowrap;
  padding: 6px 14px 6px 0;
  text-align: left;
}

.bank-details td {
  color: var(--p-color);
  padding: 6px 0;
}

.donate-qr {
  max-width: 340px;
  border-radius: var(--border-radius-medium, 20px);
}

/* Documents list */
.doc-list .list-group-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-size: 18px;
}

.doc-list .bi-file-earmark-pdf {
  color: #c0392b;
  font-size: 26px;
}

.doc-list a {
  text-decoration: none;
  color: var(--secondary-color);
}

.doc-list a:hover {
  color: var(--primary-color);
}

/* Team */
.team-thumb img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--border-radius-medium, 20px);
}

/* Contact map */
.map-wrap iframe {
  width: 100%;
  min-height: 400px;
  border: 0;
  border-radius: var(--border-radius-medium, 20px);
}
