body {
  background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
  /*1b2d90*/
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  /* Enables vertical scrolling */
  overflow-x: hidden;
  /* Prevents horizontal scroll */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  scroll-behavior: smooth;
  /* Smooth scroll */
}


html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Edge */
}

/* Wrapper that expands content height */
.content-wrapper {
  display: flex;
  flex-direction: column;
  /* min-height: 100vh; */
  flex: 1;
}

/* Ensure footer stays at bottom if content is short */
main {
  flex: 1;
}

.hero-banner {
  position: relative;
  background-image: url('../images/library.png');
  background-size: cover;
  background-position: center;
  height: 300px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  animation: morphBanner 2s ease-out forwards;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: inherit;
  background-size: inherit;
  background-position: inherit;

  filter: blur(2px);
  transform: scale(1.1);

  z-index: 0;
}


.custom-banner-text {
  position: relative;
  z-index: 2;
}

.hero-banner {
 position: relative;
  z-index: 1;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  animation: morphBanner 2s ease-out forwards;
}

@keyframes morphBanner {
  0% {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    opacity: 0;
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
  }
}

.custom-banner-text h2 {
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  font-weight: bold;
}

.custom-banner-text p {
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  font-weight: bold;
}

.navbar-nav .nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #0d6efd; /* Bootstrap primary blue */
}

/* Optional: add underline animation on hover */
.navbar-nav .nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #0d6efd;
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.step-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 25px rgba(0,0,0,0.2);
  cursor: pointer;
}


.step-img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.step-card:hover .step-img {
  transform: scale(1.08) rotate(-1deg);
}

.text-justify {
  text-align: justify;
}


.section-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

.section-divider path {
  fill: #f8f9fa; /* light background transition */
}

.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.show {
  opacity: 1;
  transform: translateY(0);
}


/* Map Section */
.map-container {
  max-width: 800px;
  width: 100%;
}

.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  position: relative;
  height: 0;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* BOOK CARD */
.book-card {
  width: 100%;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  pointer-events : auto;
  position: relative;
  z-index: 1;
}

/* hover effect */
.book-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

/* COVER CONTAINER */
.book-cover-wrapper {
  width: 100%;
  aspect-ratio: 2 / 3;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* BOOK COVER IMAGE */
.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  image-rendering: auto;
  transition: transform 0.3s ease;
}

.book-grid-item {
  display: block;
  justify-content: center;
}

/* image zoom on hover */
.book-cover {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.book-card:hover .book-cover {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* subtle overlay effect */
.book-cover-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
}

.book-card:hover .book-cover-wrapper::after {
  background: rgba(0,0,0,0.05);
}

/* fallback padding helper */
.book-cover-wrapper::before {
  content: "";
  display: block;
  padding-top: 150%;
}

/* TEXT AREA */
.book-card .card-body {
  flex-grow: 1;
  padding: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* TEXT */
.book-card h6 {
  font-size: 0.9rem;
  margin: 6px 0 4px;
}

.book-card p {
  font-size: 0.8rem;
  margin: 2px 0;
}

/* BUTTON */
.book-card button {
  margin-top: 6px;
  font-size: 0.75rem;
  padding: 3px 6px;
}

/* UNAVAILABLE BANNER */
.unavailable-banner {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 4px;
  border-radius: 0 0 8px 8px;
  pointer-events: none;
  z-index: 50;
}

/* optional rotated banner style */
.rotate-banner {
  transform: rotate(-25deg);
  font-size: 1rem;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* Global content */
main, section, .container, .container-fluid {
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Cards */
.card {
  background-color: var(--card-bg) !important;
  color: var(--text-color) !important;
}

/* Tables */
.table {
  background-color: var(--card-bg) !important;
  color: var(--text-color) !important;
}

.table th,
.table td {
  border-color: var(--border-color) !important;
}

/* Footer */
footer {
  background-color: var(--nav-bg);
  color: var(--nav-text);
}

