:root {
  --church-deep: #0f5f78;
  --church-soft: #176f88;
  --church-warm: #f49b55;
  --church-pearl: #f7fbff;
  --church-charcoal: #173246;
  --church-surface: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 18% 16%, #ffffff 0 24%, transparent 25%),
    radial-gradient(circle at 88% 82%, rgba(244, 155, 85, 0.1) 0 30%, transparent 30.5%),
    linear-gradient(180deg, var(--church-pearl) 0, #f3f7fb 55%, #ffffff 100%);
  color: #2a3a4a;
}

#main {
  position: relative;
  margin-top: 112px;
}

#main::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: min(420px, 65vw);
  height: min(420px, 65vw);
  background:
    radial-gradient(circle at 30% 30%, rgba(17, 103, 116, 0.12), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

section {
  padding-top: 70px;
  padding-bottom: 70px;
  position: relative;
}

.section-bg {
  background: linear-gradient(180deg, rgba(17, 103, 116, 0.03), rgba(17, 103, 116, 0.00));
}

.section-title h2 {
  color: var(--church-charcoal);
}

.section-title h2::after {
  background: linear-gradient(90deg, var(--church-soft), var(--church-warm));
  width: 58px;
  left: calc(50% - 29px);
}

#header {
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 14px 32px rgba(14, 56, 86, 0.09);
  border-bottom: 1px solid rgba(17, 103, 116, 0.12);
  backdrop-filter: blur(12px);
  padding: 12px 0;
}

#header .logo span,
#header .logo-text-full,
#header .logo-text-short {
  color: #082744;
  letter-spacing: 0.4px;
}

#header .logo img {
  filter: drop-shadow(0 4px 8px rgba(12, 45, 69, 0.2));
  animation: gentle-float 6s ease-in-out infinite alternate;
}

#header .logo {
  position: relative;
  padding-bottom: 10px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: max-content;
}

#header .logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #116774, #0f8fbf);
  opacity: 0.92;
  transform-origin: left center;
  transform: scaleX(1);
}

@media (max-width: 768px) {
  #header .logo::after {
    transform: scaleX(0.82);
  }

  #header .logo {
    gap: 6px;
  }

  #header .logo img {
    max-height: 36px;
  }
}

#header .logo img {
  max-height: clamp(34px, 7vw, 42px);
  width: auto;
}

#header .logo-text-full,
#header .logo-text-short {
  line-height: 1;
  white-space: nowrap;
}

.navbar a,
.navbar a:focus {
  font-size: 14px !important;
  letter-spacing: 0.2px;
  font-weight: 700 !important;
}

.navbar a.active,
.navbar a:hover,
.navbar li:hover>a {
  color: var(--church-soft) !important;
  border-color: transparent !important;
}

.mobile-nav-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(17, 103, 116, 0.1);
}

#navbar .mobile-nav-toggle:hover {
  color: var(--church-soft);
  background: rgba(17, 103, 116, 0.18);
}

.mobile-menu-offcanvas .offcanvas-header {
  background: linear-gradient(180deg, rgba(17, 103, 116, 0.07), rgba(255, 255, 255, 0));
}

.mobile-menu-offcanvas .list-group-item {
  border: none;
  border-bottom: 1px solid rgba(17, 103, 116, 0.08);
  padding-top: 14px;
  padding-bottom: 14px;
  color: #0e3a52;
}

#navbar.navbar-mobile,
.mobile-menu-offcanvas {
  border-left: 1px solid rgba(17, 103, 116, 0.12);
}

.appointment-btn,
.btn-primary,
.btn-outline-primary {
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 10px 24px rgba(17, 103, 116, 0.22);
}

.appointment-btn:hover,
.btn-primary:hover,
.btn-outline-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.landing-camp-shine {
  position: relative;
  overflow: hidden;
  font-weight: 800;
  color: #082744;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  box-shadow: 0 12px 28px rgba(17, 103, 116, 0.25);
  background: linear-gradient(120deg, #ffe6b5 0%, #f7f7ff 45%, #ffffff 100%);
  border: 1px solid rgba(17, 103, 116, 0.28);
}

.landing-camp-shine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.55) 35%, transparent 65%);
  transform: translateX(-130%);
  animation: shimmer 2.2s infinite;
}

.landing-camp-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.28);
  animation: glowpulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

.landing-camp-shine i {
  position: relative;
  z-index: 1;
  color: #116774;
}

.landing-camp-shine,
.landing-camp-shine > * {
  position: relative;
  z-index: 1;
}

.landing-camp-pill-wrap {
  margin-top: 1.35rem;
  margin-bottom: 0.3rem;
  display: inline-flex;
}

.landing-camp-invite {
  display: grid;
  justify-items: center;
  gap: .45rem;
  padding: .65rem 1.15rem .75rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(8, 39, 68, .62), rgba(17, 103, 116, .45));
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
  backdrop-filter: blur(8px);
}

.landing-camp-kicker,
.landing-camp-hint {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
}

.landing-camp-kicker {
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.landing-camp-kicker i { color: #ffd27d; }
.landing-camp-hint { font-size: .78rem; opacity: .9; }

@media (max-width: 575.98px) {
  .landing-camp-pill-wrap { margin-top: .9rem; }
  .landing-camp-invite { gap: .35rem; padding: .55rem .85rem .65rem; }
  .landing-camp-shine { padding: .68rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-camp-shine::before,
  .landing-camp-shine::after,
  .camp-bounce { animation: none !important; }
}

.camp-bounce {
  animation: camp-bounce 1.9s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-130%); }
  45%, 55% { transform: translateX(0%); }
  100% { transform: translateX(130%); }
}

@keyframes camp-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-6px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-3px);
  }
}

@keyframes glowpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 155, 85, 0.25); }
  60% { box-shadow: 0 0 0 16px rgba(244, 155, 85, 0); }
}

.login-icon {
  color: var(--church-charcoal) !important;
}

.login-icon:hover {
  color: var(--church-soft) !important;
}

.flash-messages {
  position: fixed;
  top: 94px;
  width: 100%;
  left: 0;
  right: 0;
  z-index: 992;
}

.flash-messages .alert {
  max-width: 680px;
  margin: 0 auto;
}

#footer {
  background: linear-gradient(180deg, #12273a 0, #0f3b57 100%);
  color: #dce7f2;
  position: relative;
}

#footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at 16% 12%, rgba(244, 155, 85, 0.24), transparent 46%);
  opacity: 0.7;
}

#footer .container-xxl,
#footer .container-xxl > div,
#footer .copyright,
#footer .footer-top,
#footer .social-links,
#footer a {
  position: relative;
  z-index: 1;
}

#footer a,
#footer .footer-top h4,
#footer .footer-links ul a {
  color: #dce7f2;
}

#footer .social-links a {
  background: rgba(255, 255, 255, 0.14);
}

#footer .social-links a:hover {
  background: var(--church-warm);
}

.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(23, 62, 88, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(23, 62, 88, 0.11);
}

.form-control,
.form-select,
.form-check-input {
  border-color: rgba(17, 103, 116, 0.28);
  border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--church-soft);
  box-shadow: 0 0 0 0.2rem rgba(23, 111, 136, 0.18);
}

table.table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(17, 103, 116, 0.08);
}

table.table thead th {
  background: #f2f8fc;
  color: #0e4b63;
  font-weight: 700;
}

table.table tbody tr:nth-child(odd) td {
  background: rgba(17, 103, 116, 0.04);
}

.modal-content {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(120deg, rgba(17, 103, 116, 0.12), rgba(17, 103, 116, 0));
}

main section:nth-child(even) .container > .section-title h2,
main section:nth-child(even) .section-title h2 {
  color: #0d4860;
}

.back-to-top {
  background: linear-gradient(135deg, var(--church-soft), var(--church-charcoal));
  border-radius: 14px;
  width: 44px;
  height: 44px;
}

.login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#hero {
  border-radius: 0;
}

.landing-hero-content {
  width: 100%;
}

.landing-hero-content .hero-welcome-box {
  display: inline-block;
  text-align: left;
}

.landing-hero-content .hero-welcome-title {
  line-height: 1.15;
}

.landing-about-image {
  width: 100%;
  max-width: 560px;
  height: clamp(260px, 44vw, 420px);
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 22px;
  border: 5px solid #ffffff;
  box-shadow: 0 18px 36px rgba(12, 45, 69, 0.18);
  margin-inline: auto;
  display: block;
}

.landing-feature-card {
  border-radius: 18px;
  border-bottom: 4px solid var(--church-soft);
  padding: 1.7rem 1.25rem;
  height: 100%;
}

.landing-leaders .member {
  background: #ffffff;
  border-radius: 20px;
}

.landing-leaders .member .pic {
  width: 170px;
  height: 170px;
  flex: 0 0 auto;
  border-radius: 18px;
  overflow: hidden;
}

.landing-leaders .member .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.landing-leaders .member .member-info {
  margin-left: 1rem;
}

@media (max-width: 992px) {
  .landing-hero-content {
    padding: 0 4px;
  }

  .landing-hero-content .hero-welcome-box {
    text-align: left;
  }

  .landing-about-image {
    max-width: 100%;
    height: clamp(220px, 58vw, 360px);
  }

  .landing-leaders .member {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 1rem;
  }

  .landing-leaders .member .pic {
    width: 132px;
    height: 132px;
    margin-bottom: 0.75rem;
  }

  .landing-leaders .member .member-info {
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  .landing-about-image {
    border-radius: 16px;
    height: clamp(200px, 60vw, 280px);
  }

  .landing-feature-card {
    margin-bottom: 0.75rem;
  }

  .landing-leaders {
    row-gap: 0.9rem;
  }
}


@media (max-width: 991px) {
  #main {
    margin-top: 84px;
  }

  section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .navbar {
    gap: 10px;
  }

  #footer .container-xxl {
    text-align: center;
  }

  #footer .row > div + div {
    margin-top: 26px;
  }

  #footer .social-links {
    justify-content: center;
    display: flex;
  }
}

@media (max-width: 768px) {
  .container,
  .container-xxl {
    padding-left: 16px;
    padding-right: 16px;
  }

  .card,
  .login-icon,
  .btn,
  .form-control,
  .form-select {
    border-radius: 12px;
  }

  .hero-welcome-box {
    max-width: 95%;
    margin: 0 auto;
  }

  .appointment-btn {
    padding: 9px 15px;
    margin-left: 0;
  }

  .mobile-menu-offcanvas .list-group-item-action:active {
    background: rgba(17, 103, 116, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes gentle-float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
  100% { transform: translateY(2px); }
}
