:root {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
    margin-top: 0;
}

img,
svg {
    vertical-align: middle;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container,
.container-fluid {
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-right: auto;
    margin-left: auto;
}

.container {
    max-width: 1360px;
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(var(--bs-gutter-y) * -1);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
    margin-left: calc(var(--bs-gutter-x) * -0.5);
}

.row > * {
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
}

.g-2 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
}

.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-grid {
    display: grid !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.flex-column {
    flex-direction: column !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-stretch {
    align-items: stretch !important;
}

.text-center {
    text-align: center !important;
}

.text-end {
    text-align: right !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

.text-white {
    color: #fff !important;
}

.text-dark {
    color: #111827 !important;
}

.text-primary {
    color: #2859ff !important;
}

.text-warning {
    color: #c67b08 !important;
}

.text-secondary {
    color: #6b7280 !important;
}

.small,
small {
    font-size: 0.875em !important;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

.h1,
h1 {
    font-size: calc(1.375rem + 1.5vw);
}

.h2,
h2 {
    font-size: calc(1.325rem + 0.9vw);
}

.h3,
h3 {
    font-size: calc(1.3rem + 0.6vw);
}

.h4,
h4 {
    font-size: calc(1.275rem + 0.3vw);
}

.h5,
h5 {
    font-size: 1.25rem;
}

.h6,
h6 {
    font-size: 1rem;
}

.display-5 {
    font-size: calc(1.625rem + 4.5vw);
    font-weight: 700;
    line-height: 1.15;
}

.fw-bold {
    font-weight: 700 !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded-3 {
    border-radius: 1rem !important;
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

.border {
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
}

.card-body {
    flex: 1 1 auto;
    padding: 1.5rem;
}

.card-img-top {
    width: 100%;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    vertical-align: top;
    border-collapse: collapse;
}

.table-hover tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.align-middle th,
.align-middle td {
    vertical-align: middle !important;
}

.list-group {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
}

.list-group-flush > .list-group-item {
    border-width: 0 0 1px;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 1rem 1rem;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.list-unstyled {
    padding-left: 0;
    list-style: none;
}

.form-label {
    display: inline-block;
}

.form-control,
.form-select {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.95rem;
    background: #fff;
    color: inherit;
}

.form-control:focus,
.form-select:focus {
    outline: none;
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.75rem;
}

.form-check-input {
    float: left;
    margin-left: -1.75rem;
    margin-top: 0.25rem;
}

.form-check-label {
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    user-select: none;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0.75rem 1.1rem;
    line-height: 1.2;
}

.btn-sm {
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.95rem 1.35rem;
    font-size: 1.05rem;
}

.btn-light {
    background: #fff;
    color: #111827;
}

.btn-outline-light {
    background: transparent;
}

.alert {
    position: relative;
    padding: 1rem 1.15rem;
}

.alert-info {
    color: #114b5f;
}

.alert-primary {
    color: #17355e;
}

.alert-success {
    color: #0f5132;
}

.alert-danger {
    color: #842029;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.navbar > .container,
.navbar > .container-fluid {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-link {
    display: block;
}

.navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.collapse:not(.show) {
    display: none;
}

.collapse.show {
    display: block;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-auto { margin-left: auto !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }

.border-secondary {
    border-color: rgba(148, 163, 184, 0.24) !important;
}

.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

.row-cols-2 > * {
    flex: 0 0 auto;
    width: 50%;
}

@media (min-width: 576px) {
    .col-sm-6 { flex: 0 0 auto; width: 50%; }
}

@media (min-width: 768px) {
    .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
    .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
    .flex-md-row { flex-direction: row !important; }
}

@media (min-width: 992px) {
    .navbar-expand-lg {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .navbar-expand-lg .navbar-toggler {
        display: none;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }

    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
    .offset-lg-1 { margin-left: 8.333333%; }
    .mb-lg-0 { margin-bottom: 0 !important; }
    .p-lg-5 { padding: 3rem !important; }
    .text-lg-end { text-align: right !important; }
    .ms-lg-auto { margin-left: auto !important; }
}

@media (min-width: 1200px) {
    .col-xl-3 { flex: 0 0 auto; width: 25%; }
    .col-xl-4 { flex: 0 0 auto; width: 33.333333%; }
}
