
:root {
  /* Palette */
  --ink:        #1a1d2b;
  --ink-soft:   #2d3348;
  --indigo:     #2d3561;
  --indigo-dark:#21294d;
  --saffron:    #c65d07;
  --saffron-soft:#e88c3c;
  --marigold:   #d97706;
  --ghee:       #f5e6c8;
  --parchment:  #faf5ea;
  --paper:      #fffcf7;
  --terracotta: #9c4b35;
  --sage:       #3f5d4c;
  --clay:       #b0775c;
  --warm-gray:  #6b6560;
  --stone:      #a39b93;

  /* Typography */
  --font-display: "THICCCBOI", "Manrope", sans-serif;
  --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --section-gap: clamp(3.5rem, 7vw, 6rem);

  /* Border */
  --radius-sm: 0.35rem;
  --radius-md: 0.6rem;
  --radius-lg: 0.9rem;

  /* Shadow: restrained, diffuse */
  --shadow-soft: 0 12px 30px rgba(26,29,43,0.06);
  --shadow-medium: 0 20px 50px rgba(26,29,43,0.08);
}

/* ── Global resets over Sandbox ── */
html { scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  padding-top: 0 !important;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1, h2, h3 { font-weight: 700; }
h4, h5, h6 { font-weight: 600; }

.text-muted { color: var(--warm-gray) !important; }

a { color: var(--saffron); transition: color 0.25s ease; }
a:hover { color: var(--terracotta); }

/* ── Paper grain overlay ── */
.paper-grain {
  position: relative;
}
.paper-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 0;
}
.paper-grain > * { position: relative; z-index: 1; }

/* ── Override Sandbox primary color to saffron ── */
.btn-primary,
.bg-primary,
.badge.bg-primary,
.icon-list.bullet-primary i,
.bullet-primary:before,
.text-primary,
.link-primary,
a.link-primary:hover,
.navbar-light .navbar-nav .nav-link.active,
.accordion-wrapper .card-header button:before,
.accordion-wrapper .card-header button:hover,
.more.hover.link-primary,
.icon-list.bullet-soft-primary i,
.btn.btn-soft-primary {
  --sandbox-primary: var(--saffron);
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--saffron);
  --bs-btn-border-color: var(--saffron);
  --bs-btn-hover-bg: var(--terracotta);
  --bs-btn-hover-border-color: var(--terracotta);
  --bs-btn-active-bg: var(--terracotta);
  --bs-btn-active-border-color: var(--terracotta);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  font-weight: 600;
  padding-left: 1.6rem;
  padding-right: 1.6rem;
}

.btn-outline-white {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

.btn-soft-primary {
  background: rgba(198,93,7,0.1) !important;
  color: var(--saffron) !important;
}
.btn-soft-primary:hover {
  background: rgba(198,93,7,0.18) !important;
}

.text-primary { color: var(--saffron) !important; }
.bg-primary   { background-color: var(--saffron) !important; }
.link-primary { color: var(--saffron) !important; }
.link-primary:hover { color: var(--terracotta) !important; }

.badge.bg-primary { background: var(--saffron) !important; color: #fff; }
.badge.bg-opacity-15 {
  background: rgba(198,93,7,0.14) !important;
  color: var(--saffron) !important;
}

.icon.btn-circle.btn-lg.btn-soft-primary {
  background: rgba(198,93,7,0.1);
  color: var(--saffron);
  border: 1px solid rgba(198,93,7,0.12);
}

/* ── Navbar ── */
.navbar.fixed-top {
  background: rgba(45, 53, 97, 0.98) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.navbar .nav-link {
  font-weight: 600;
  font-size: 0.85rem;
}
.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

/* ── Section spacing (tighter vertical rhythm) ── */
.section-spaced {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
.section-title {
  margin-bottom: var(--section-gap);
}

/* ── Eyebrow / section label ── */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--saffron);
  border-radius: 2px;
}
.section-eyebrow.centered::before,
.text-center .section-eyebrow::before { display: none; }
.text-center .section-eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--saffron);
  border-radius: 2px;
}

/* Hand-drawn style underline */
.ink-underline {
  position: relative;
  display: inline;
}
.ink-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.12em;
  background: var(--ghee);
  z-index: -1;
  border-radius: 0.1em;
  transform: rotate(-0.8deg);
}

/* ── Cards ── */
.card {
  border: 1px solid rgba(26,29,43,0.06);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card.lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

.card-flat {
  background: #fff;
  border: 1px solid rgba(26,29,43,0.06);
  border-radius: var(--radius-md);
  transition: border-color 0.25s ease, transform 0.3s ease;
}
.card-flat:hover {
  border-color: rgba(198,93,7,0.25);
  transform: translateY(-4px);
}

/* ── Hero ── */
.hero-overlay::after {
  background: rgba(33, 41, 77, 0.55) !important;
}
.hero-static-content {
  padding-top: 90px;
}
.hero-tagline {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ghee);
  border: 1px solid rgba(245, 230, 200, 0.35);
  padding: 0.45rem 1.1rem;
  border-radius: 50rem;
  background: rgba(26,29,43,0.35);
  backdrop-filter: blur(6px);
  display: inline-flex;
}
.hero-quote {
  font-family: "Georgia", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ghee);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}
.hero-lead {
  color: rgba(255,255,255,0.8);
  max-width: 680px;
}
.hero-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.45);
  opacity: 1;
  transition: all 0.3s ease;
}
.hero-swiper .swiper-pagination-bullet-active {
  background: var(--saffron);
  width: 28px;
  border-radius: 10px;
}
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  color: rgba(255,255,255,0.7) !important;
  width: 44px;
  height: 44px;
}
.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
  color: #fff !important;
}

/* ── Why choose / facility cards ── */
.feature-card {
  background: #fff;
  border: 1px solid rgba(26,29,43,0.05);
  border-radius: var(--radius-md);
  padding: 1.7rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}
.feature-card:hover {
  box-shadow: var(--shadow-soft);
  border-color: rgba(198,93,7,0.15);
  transform: translateY(-4px);
}
.feature-card .icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--parchment);
  color: var(--saffron);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}
.feature-card:hover .icon {
  background: var(--saffron);
  color: #fff;
}
.feature-card h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

/* ── Student polaroid cards ── */
.student-card {
  background: #fff;
  border: 1px solid rgba(26,29,43,0.07);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.6rem 1.2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
.student-card:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: var(--shadow-medium);
}
.student-card figure {
  margin: 0;
  border-radius: calc(var(--radius-md) - 2px);
  overflow: hidden;
  height: 170px;
}
.student-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.student-card:hover img { transform: scale(1.06); }
.student-card .name-tag {
  font-family: var(--font-display);
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.15rem;
  color: var(--ink);
}
.student-card .role {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--warm-gray);
  text-transform: uppercase;
}

/* ── Gallery ── */
/* ── Gallery: Sandbox portfolio item-link zoom overlay ── */
.item-link {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  color: var(--c-ink);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.3s ease;
  z-index: 5;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  text-decoration: none;
}
.item-link:hover {
  background: var(--c-saffron);
  color: #fff;
  transform: translateY(0);
}
figure.position-relative:hover .item-link,
figure.lift:hover .item-link {
  opacity: 1;
  transform: translateY(0);
}

/* ── Gallery: Video thumbnail with play icon ── */
.gallery-video-thumb {
  cursor: pointer;
}
.gallery-video-thumb .video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  color: var(--c-saffron);
  font-size: 1.3rem;
  transition: all 0.3s ease;
  z-index: 5;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  pointer-events: none;
}
.gallery-video-thumb:hover .video-play-icon {
  background: var(--c-saffron);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.1);
}

/* ── Gallery: post-category text-line (Sandbox portfolio style) ── */
.text-line {
  position: relative;
  padding-bottom: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.text-line::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* ── Gallery: post-title link style ── */
.post-title a.link-dark {
  color: var(--c-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.post-title a.link-dark:hover {
  color: var(--c-saffron);
}

/* ── Signature: Vintage Library Membership Card ── */
.membership-card-vintage {
  position: relative;
  background: linear-gradient(135deg, #e8dcc2 0%, #d4c5a9 100%);
  border: 1px solid #c8b895;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.25),
    0 18px 45px rgba(26,29,43,0.12);
  color: #3d3428;
  max-width: 560px;
  margin: 0 auto;
}
.membership-card-vintage::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(61,52,40,0.25);
  border-radius: 6px;
  pointer-events: none;
}
.membership-card-vintage .kraft-head {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #3d3428;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.membership-card-vintage .kraft-sub {
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b5e4f;
  margin-bottom: 1.8rem;
}
.membership-card-vintage .due-lines {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.5rem;
}
.membership-card-vintage .due-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3d3428;
}
.membership-card-vintage .due-line::before {
  content: "✓";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--saffron);
  color: #fff;
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.membership-card-vintage .stamp {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 74px;
  height: 74px;
  border: 2px solid var(--saffron);
  border-radius: 50%;
  color: var(--saffron);
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(14deg);
  opacity: 0.85;
}

/* ── FAQ ── */
.accordion-wrapper .card {
  border: 1px solid rgba(26,29,43,0.06) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}
.accordion-wrapper .card-header {
  background: #fff;
  border: none;
}
.accordion-wrapper .card-header button {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  padding: 1.2rem 1.5rem;
}
.accordion-wrapper .card-header button:not(.collapsed) {
  background: var(--parchment);
  color: var(--saffron);
}
.accordion-wrapper .card-body {
  padding: 0 1.5rem 1.3rem;
  color: var(--warm-gray);
}

/* ── Contact info card ── */
.info-card {
  background: #fff;
  border: 1px solid rgba(26,29,43,0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(26,29,43,0.08);
}
.info-row:last-child { border-bottom: none; }
.info-row .icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--parchment);
  color: var(--saffron);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hours-card {
  background: var(--indigo);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  padding: 2.5rem;
}
.hours-card .time {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--ghee);
}

/* ── Footer polish ── */
footer.bg-navy {
  background: var(--indigo-dark) !important;
}
footer .widget-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
footer .nav.social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
footer .nav.social a:hover {
  background: var(--saffron);
  color: #fff;
}
footer a { color: rgba(255,255,255,0.65); }
footer a:hover { color: var(--ghee); }

/* ── Modal polish ── */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(26,29,43,0.22);
}
.modal-body .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.modal-body .icon.btn-primary {
  background: var(--saffron) !important;
  border-color: var(--saffron) !important;
}

/* ── Sandbox meta / post-category / post-title ── */
.meta {
  font-size: 0.8rem;
  color: var(--warm-gray);
  letter-spacing: 0.03em;
}
.post-category {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { color: var(--saffron); }

/* ── link-body (Sandbox contact links) ── */
.link-body {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s ease;
}
.link-body:hover {
  color: var(--saffron);
}

/* ── Map wrapper ── */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}
.map-wrapper iframe {
  width: 100%;
  height: 400px;
}

/* ── Utilities ── */
.text-indigo { color: var(--indigo) !important; }
.text-saffron { color: var(--saffron) !important; }
.bg-parchment { background: var(--parchment) !important; }
.bg-paper     { background: var(--paper) !important; }
.bg-indigo    { background: var(--indigo) !important; }
.fs-22 { font-size: 1.1rem !important; }
.fs-26 { font-size: 1.3rem !important; }

/* ── Progress wrap (back to top) ── */
.progress-wrap {
  background: var(--saffron);
  box-shadow: 0 4px 20px rgba(198,93,7,0.35);
}
.progress-wrap svg.progress-circle path {
  stroke: #fff;
}
.offcanvas-body .navbar-nav .nav-link {
  color: #fff;

}
/* ── Responsive ── */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--indigo-dark);
  }
}
@media (max-width: 767px) {
  .section-spaced { --section-pad: 3.5rem; }
  .membership-card-vintage { padding: 1.7rem; }
  .membership-card-vintage .stamp {
    width: 60px;
    height: 60px;
    font-size: 0.55rem;
  }
  .map-wrapper iframe { height: 280px; }
  .overlap-grid .item figure { height: 200px !important; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
