:root {
  --bs-body-font-family: 'Inter', system-ui, sans-serif;
  --gradient-accent: linear-gradient(90deg,#0d6efd,#6f42c1);
}
body {
  font-feature-settings: "kern","liga","clig","calt";
  scroll-behavior: smooth;
}
.page-content {
  margin-top: 72px;
}
.hero {
  min-height: 80vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(13,110,253,.08), transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(111,66,193,.1), transparent 70%);
  padding: 6rem 0 4rem;
}
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  color: transparent;
}
.stat-box {
  background: #fff;
  border: 1px solid #e5e5e9;
  border-radius: 1rem;
  padding: .75rem .5rem;
}
.stat-value {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
}
.stat-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .65;
}
.section-alt {
  background: #f8f9fb;
}
.program-box {
  transition: .25s;
  position: relative;
}
.program-box:hover {
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.1);
  transform: translateY(-4px);
}
.icon-circle {
  width: 48px;
  height: 48px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.25rem;
  border-radius: 50%;
}
.announcement-slider .carousel-item {
  min-height: 260px;
}
.announcement-card .card {
  transition: .25s;
}
.announcement-card .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.15);
}
.footer {
  background: #111a24;
}
.auth-body {
  background: linear-gradient(135deg,#0d6efd11,#6f42c111);
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.auth-card {
  border-radius: 1.25rem;
}
.dashboard-body {
  background: #f1f3f7;
  min-height: 100vh;
}
.view-announcement {
  transition: .25s;
}
.view-announcement:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background-image: linear-gradient(90deg,#0d6efd,#335dff);
  border: none;
}
.btn-primary:hover {
  background-image: linear-gradient(90deg,#0b5ed7,#244edc);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
}
#feedbackForm.was-validated .form-control:invalid {
  border-color: #dc3545;
}
@media (max-width: 991.98px) {
  .hero {
    padding-top: 7rem;
  }
}

/* ===== Staff Login (Barangay photo background + header, like Image 3) ===== */
.auth-body.brgy-bg {
  /* Dim overlay + Barangay Sabang photo (place at assets/img/brgy-sabang.jpg) */
  background-image:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url('../img/brgy-sabang.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.auth-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(6px);
  padding: .5rem 0;
}
.brand-circle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0ea5e9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-circle i { color:#fff; font-size:.9rem; }
.brand-circle-lg {
  width: 64px;
  height: 64px;
  font-size: 1.4rem;
  border-radius: 50%;
  background: #0ea5e9;
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.auth-stage {
  min-height: calc(100vh - 140px);
}
.login-card {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
}
.btn-login {
  background-color: #169c52;
  border-color: #169c52;
}
.btn-login:hover {
  background-color: #138749;
  border-color: #138749;
}
.xsmall {
  font-size: .75rem;
}
.auth-footer {
  padding: 1.25rem 0 1.75rem;
}
.input-group-text {
  border-right: 0;
}
.input-group .form-control {
  border-left: 0;
}
.input-group .form-control:focus {
  box-shadow: none;
}
/* Put this block at the very end of the file to ensure it wins the cascade */
.auth-body.brgy-bg {
  /* Force override using shorthand + !important to replace earlier .auth-body background */
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), url('../img/brgy-sabang.jpg') center / cover fixed no-repeat !important;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.auth-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(6px);
  padding: .5rem 0;
}
.brand-circle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0ea5e9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-circle i { color:#fff; font-size:.9rem; }
.brand-circle-lg {
  width: 64px;
  height: 64px;
  font-size: 1.4rem;
  border-radius: 50%;
  background: #0ea5e9;
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.auth-stage { min-height: calc(100vh - 140px); }
.login-card { width: 100%; max-width: 520px; border-radius: 16px; }
.btn-login { background-color: #169c52; border-color: #169c52; }
.btn-login:hover { background-color: #138749; border-color: #138749; }
.xsmall { font-size: .75rem; }
.auth-footer { padding: 1.25rem 0 1.75rem; }
.input-group-text { border-right: 0; }
.input-group .form-control { border-left: 0; }
.input-group .form-control:focus { box-shadow: none; }

/* Add or keep this near the end of your CSS so it overrides earlier rules */
.brand-circle,
.brand-circle-lg {
  border-radius: 999px;
  overflow: hidden;              /* clip to a perfect circle */
  background: #ffffff;           /* fallback */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-circle {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255,255,255,.65); /* subtle white ring like your screenshot */
}

.brand-circle-lg {
  width: 64px;
  height: 64px;
  border: 3px solid #e6f4ff;    /* soft ring on the big logo */
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Make the logo image fill the circle nicely */
.brand-circle img,
.brand-circle-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;             /* crop without distortion */
  display: block;
}