.smart-crud-dialog {
  --bs-modal-width: min(1120px, calc(100vw - 48px));
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.smart-crud-modal {
  border: 0;
  border-radius: 10px;
  overflow: hidden;
}

.smart-crud-header,
.smart-crud-footer {
  background: var(--bs-body-bg);
  z-index: 3;
}

.smart-crud-header {
  background: linear-gradient(90deg, var(--bs-primary-bg-subtle), var(--bs-body-bg));
  border-bottom: 1px solid var(--bs-border-color);
  padding: 18px 22px;
}

.smart-crud-footer {
  border-top: 1px solid var(--bs-border-color);
  padding: 14px 22px;
}

.smart-crud-body {
  background: var(--bs-light);
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  padding: 18px;
}

.smart-form-section {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-left: 4px solid var(--bs-primary);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(12, 23, 54, 0.04);
}

.smart-form-section + .smart-form-section {
  margin-top: 14px;
}

.smart-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}

.smart-field-full {
  grid-column: 1 / -1;
}

.smart-field label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.smart-field .form-control,
.smart-field .form-select {
  min-height: 42px;
  background-color: var(--bs-body-bg);
}

.smart-field textarea.form-control {
  min-height: 86px;
}

.smart-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.smart-detail-item {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-left: 4px solid var(--bs-primary);
  border-radius: 8px;
  padding: 12px 14px;
}

@media (max-width: 991.98px) {
  .smart-form-grid,
  .smart-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .smart-crud-dialog {
    --bs-modal-width: calc(100vw - 16px);
    margin: 8px auto;
  }

  .smart-crud-body {
    max-height: calc(100vh - 180px);
    padding: 12px;
  }

  .smart-form-grid,
  .smart-detail-grid {
    grid-template-columns: 1fr;
  }
}

.smart-public-page {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.smart-public-page *,
.smart-public-page *::before,
.smart-public-page *::after {
  box-sizing: border-box;
}

.smart-public-page img,
.smart-public-page video,
.smart-public-page iframe {
  max-width: 100%;
  height: auto;
}

.smart-public-page section {
  scroll-margin-top: 86px;
}

.smart-public-header {
  z-index: 1030;
  transition: box-shadow .25s ease, transform .25s ease;
}

.smart-public-header .navbar {
  transition: background-color .25s ease, min-height .25s ease, padding .25s ease, box-shadow .25s ease;
}

.smart-public-header .navbar {
  min-height: 76px;
}

.smart-public-header.is-scrolled .navbar {
  box-shadow: 0 12px 34px rgba(12, 23, 54, .11);
}

.smart-public-header .nav-link {
  position: relative;
  isolation: isolate;
  border-radius: 999px;
  transition: color .25s ease, transform .25s ease;
}

.smart-public-header .nav-link::before {
  content: "";
  position: absolute;
  inset: .42rem .16rem;
  z-index: -1;
  border-radius: 999px;
  background: rgba(var(--bs-primary-rgb), .08);
  opacity: 0;
  transform: translateY(5px) scale(.86);
  transition: opacity .25s ease, transform .25s ease;
}

.smart-public-header .nav-link::after {
  content: "";
  position: absolute;
  left: .5rem;
  right: .5rem;
  bottom: .35rem;
  height: 2px;
  background: var(--bs-primary);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px) scaleX(.45);
  transform-origin: center;
  transition: opacity .25s ease, transform .25s ease;
}

.smart-public-header .nav-link:hover,
.smart-public-header .nav-link:focus {
  color: var(--bs-primary) !important;
  transform: translateY(-1px);
}

.smart-public-header .nav-link:hover::before,
.smart-public-header .nav-link:focus::before,
.smart-public-header .nav-link.active::before {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.smart-public-header .nav-link:hover::after,
.smart-public-header .nav-link:focus::after {
  opacity: .75;
  transform: translateY(0) scaleX(.76);
}

.smart-public-header .nav-link.active,
.smart-mobile-menu a.active {
  color: var(--bs-primary) !important;
}

.smart-public-header .nav-link.active::after {
  opacity: 1;
  transform: translateY(0) scaleX(1);
}

.smart-hero {
  padding-top: 76px;
}

.smart-hero-slide {
  min-height: min(820px, calc(100vh - 76px));
  background-size: cover;
  background-position: center;
  overflow: hidden;
  animation: smartHeroZoom 8s ease both;
}

.smart-hero-row {
  min-height: min(820px, calc(100vh - 76px));
  padding: 72px 0;
}

.carousel-item.active .smart-hero-kicker,
.carousel-item.active .smart-hero-title,
.carousel-item.active .smart-hero-subtitle,
.carousel-item.active .smart-hero-actions {
  animation: smartFadeUp .78s ease both;
}

.carousel-item.active .smart-hero-title {
  animation-delay: .08s;
}

.carousel-item.active .smart-hero-subtitle {
  animation-delay: .18s;
}

.carousel-item.active .smart-hero-actions {
  animation-delay: .28s;
}

.smart-hero .carousel-indicators {
  bottom: 28px;
}

.smart-hero .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  opacity: .55;
  transition: width .25s ease, opacity .25s ease;
}

.smart-hero .carousel-indicators .active {
  width: 28px;
  opacity: 1;
}

.smart-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.smart-gallery-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}

.smart-check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--bs-gray-700);
}

.smart-check-list li::before {
  content: "\ea5e";
  font-family: "tabler-icons";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--bs-success);
}

.smart-mobile-menu a:not(.btn) {
  position: relative;
  display: block;
  color: var(--bs-dark);
  font-weight: 600;
  padding: 10px 0 10px 18px;
  text-decoration: none;
  border-bottom: 1px solid var(--bs-border-color);
  transition: color .25s ease, padding-left .25s ease, background-color .25s ease;
}

.smart-mobile-menu a:not(.btn)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--bs-primary);
  opacity: .25;
  transform: translateY(-50%) scale(.7);
  transition: opacity .25s ease, transform .25s ease;
}

.smart-mobile-menu a:not(.btn):hover,
.smart-mobile-menu a:not(.btn):focus,
.smart-mobile-menu a:not(.btn).active {
  padding-left: 24px;
  color: var(--bs-primary);
  background-color: rgba(var(--bs-primary-rgb), .04);
}

.smart-mobile-menu a:not(.btn):hover::before,
.smart-mobile-menu a:not(.btn):focus::before,
.smart-mobile-menu a:not(.btn).active::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.smart-public-preloader {
  display: grid;
  place-items: center;
  background: var(--bs-body-bg);
  transition: opacity .3s ease, visibility .3s ease;
}

.smart-public-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.smart-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .62s ease, transform .62s ease;
  transition-delay: var(--smart-delay, 0ms);
}

.smart-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.smart-hover-card {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  will-change: transform;
}

.smart-hover-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(12, 23, 54, .12) !important;
  border-color: rgba(var(--bs-primary-rgb), .28) !important;
}

.smart-hover-card i {
  transition: transform .28s ease;
}

.smart-hover-card:hover i {
  transform: scale(1.08);
}

.smart-img-wrap {
  overflow: hidden;
}

.smart-news-card .smart-card-img {
  transition: transform .35s ease;
}

.smart-news-card:hover .smart-card-img,
.smart-gallery-card:hover .smart-gallery-img {
  transform: scale(1.06);
}

.smart-btn {
  transition: transform .25s ease, box-shadow .25s ease;
}

.smart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(12, 23, 54, .16);
}

.smart-btn-icon {
  display: inline-block;
  transition: transform .25s ease;
}

.smart-btn-arrow:hover .smart-btn-icon {
  transform: translateX(4px);
}

.smart-agenda-list {
  position: relative;
}

.smart-agenda-list::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--bs-border-color);
}

.smart-agenda-card {
  position: relative;
  background: var(--bs-body-bg);
}

.smart-gallery-card {
  cursor: pointer;
}

.smart-gallery-overlay {
  background: linear-gradient(180deg, rgba(12, 23, 54, 0), rgba(12, 23, 54, .82));
  opacity: .9;
  transform: translateY(8px);
  transition: opacity .28s ease, transform .28s ease;
}

.smart-gallery-card:hover .smart-gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.smart-gallery-item.is-hidden {
  display: none;
}

.smart-ppdb-card {
  background-image: radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 34%);
}

.smart-ppdb-modal {
  --bs-modal-margin: 1rem;
}

.smart-ppdb-modal .smart-ppdb-dialog {
  align-items: flex-start;
  height: calc(100dvh - 2rem);
  margin-bottom: 1rem;
  margin-top: 1rem;
  max-width: min(1040px, calc(100vw - 24px));
}

.smart-ppdb-modal .modal-content {
  border: 0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(12, 23, 54, .2);
}

.smart-ppdb-modal .modal-header {
  background-image: radial-gradient(circle at top right, rgba(255,255,255,.16), transparent 38%);
  flex: 0 0 auto;
  padding: 1.15rem 1.35rem;
}

.smart-ppdb-modal .modal-header .badge {
  margin-bottom: .35rem !important;
}

.smart-ppdb-modal .modal-title {
  font-size: 1.1rem;
}

.smart-ppdb-modal form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.smart-ppdb-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem !important;
}

.smart-ppdb-modal .form-label {
  font-weight: 700;
  margin-bottom: .35rem;
}

.smart-ppdb-modal .form-control,
.smart-ppdb-modal .form-select {
  min-height: 46px;
}

.smart-ppdb-modal textarea.form-control {
  min-height: 92px;
}

.smart-ppdb-modal .modal-footer {
  flex: 0 0 auto;
  padding: .9rem 1.25rem;
}

.smart-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1040;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(12, 23, 54, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.smart-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@keyframes smartFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes smartHeroZoom {
  from {
    background-size: 104%;
  }
  to {
    background-size: 108%;
  }
}

@media (max-width: 991.98px) {
  .smart-public-header .navbar {
    min-height: 68px;
  }

  .smart-hero {
    padding-top: 68px;
  }

  .smart-hero-slide {
    min-height: 70vh;
  }

  .smart-hero-row {
    min-height: 70vh;
    padding: 72px 0 56px;
  }

  .smart-hero .display-4 {
    font-size: 2.45rem;
  }
}

@media (max-width: 575.98px) {
  .smart-public-page section {
    scroll-margin-top: 74px;
  }

  .smart-hero-slide {
    min-height: auto;
  }

  .smart-hero-row {
    min-height: auto;
    padding: 70px 0 86px;
  }

  .smart-hero .display-4 {
    font-size: 1.95rem;
    line-height: 1.14;
  }

  .smart-hero .fs-5,
  .smart-public-page .fs-4 {
    font-size: 1rem !important;
  }

  .smart-hero .btn-lg {
    width: 100%;
  }

  .smart-hero .carousel-control-prev,
  .smart-hero .carousel-control-next {
    display: none;
  }

  .smart-card-img {
    height: 160px;
  }

  .smart-agenda-list::before {
    display: none;
  }

  .smart-back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smart-reveal,
  .smart-hover-card,
  .smart-btn,
  .smart-gallery-img,
  .smart-card-img,
  .smart-hero-slide,
  .carousel-item.active .smart-hero-kicker,
  .carousel-item.active .smart-hero-title,
  .carousel-item.active .smart-hero-subtitle,
  .carousel-item.active .smart-hero-actions {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
