/*
Override bootstrap defaults
*/
body { background-color: #f7f7f7; }
a { color: #0A4499; }
a, a:hover { text-decoration: none;}

/* fix some odd ends */
.social-links *, .social-links *:before, .social-links *:after, #header-menu-items *, #header-menu-items *:before, #header-menu-items *:after, .menu_close *, .menu_close *:before, .menu_close *:after, .sidemenu *, .sidemenu *:before, .sidemenu *:after, .menu-close *, .menu-close *:before, .menu-close *:after, .tf_close *, .tf_close *:before, .tf_close *:after {
    -webkit-box-sizing: initial;
    -moz-box-sizing: initial;
    box-sizing: border-box;
}

.row.gap-default { --bs-gutter-x: default; }

/* change colors */
.btn-primary, .btn-outline-primary:hover {
	background-color: #700000;
	border-color: #500000;
}
.btn-check:active+.btn-primary, .btn-check:checked+.btn-primary, .btn-primary.active, .btn-primary:active, .show>.btn-primary.dropdown-toggle, .btn-check:focus+.btn-primary, .btn-primary:focus {
	background-color: #500000;
	border-color: #300000;
}
.btn-primary:hover {
	color: #9e0000;
	border-color: #9e0000;
	background-color: #920000;
}
.btn-outline-primary {
	color: #9e0000;
	border-color: #9e0000;
	background: none;
}
.btn-check:focus+.btn-primary, .btn-primary:focus { box-shadow: 0 0 0 0.25rem rgb(157 45 0 / 50%); }

ul, li {margin-bottom: 0;}

.row .row.row-fat { --bs-gutter-x: 0; }

.full, select#category { width: 100% !important; }

h1.border-bottom, h2.border-bottom, h3.border-bottom, h4.border-bottom, h5.border-bottom, h6.border-bottom { border-bottom: 5px solid #998542 !important; padding-bottom: 0.75rem; }

.modal.fade .modal-dialog { -webkit-transition: -webkit-transform 0.3s ease-out; -moz-transition: -moz-transform 0.3s ease-out; -o-transition: -o-transform 0.3s ease-out; transition: transform 0.3s ease-out; }
.modal.in .modal-dialog { -webkit-transform: unset; -ms-transform: unset; transform: unset; }

ol, ul { padding-left: 0; }
#content ol, #content ul { margin-bottom: 1rem; }

/* negative margins */
.mt-n1 { margin-top: -0.25rem!important; }
.mt-n2 { margin-top: -0.5rem!important; }
.mt-n3 { margin-top: -1rem!important; }
.mt-n4 { margin-top: -1.5rem!important; }
.mt-n5 { margin-top: -3rem!important; }
.mb-n1 { margin-bottom: -0.25rem!important; }
.mb-n2 { margin-bottom: -0.5rem!important; }
.mb-n3 { margin-bottom: -1rem!important; }
.mb-n4 { margin-bottom: -1.5rem!important; }
.mb-n5 { margin-bottom: -3rem!important; }
.ms-n1 { margin-left: 0.25rem!important; }
.ms-n2 { margin-left: 0.5rem!important; }
.ms-n3 { margin-left: 1rem!important; }
.ms-n4 { margin-left: 1.5rem!important; }
.ms-n5 { margin-left: 3rem!important; }
.me-n1 { margin-right: 0.25rem!important; }
.me-n2 { margin-right: 0.5rem!important; }
.me-n3 { margin-right: 1rem!important; }
.me-n4 { margin-right: 1.5rem!important; }
.me-n5 { margin-right: 3rem!important; }

/* fix some container issues with bootstrap & themify */

/* X-Small devices (portrait phones, less than 576px) */
.d-cell { display: table-cell !important; }
/* No media query for `xs` since this is the default in Bootstrap */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
	.d-sm-cell { display: table-cell !important; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
	.d-md-cell { display: table-cell !important;  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
	.d-lg-cell { display: table-cell !important; }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
	.container, .container-lg, .container-md, .container-sm, .container-xl { max-width: 1160px; }
	.d-xl-cell { display: table-cell !important; }
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
	.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl { max-width: 1160px; }
	.d-xxl-cell { display: table-cell !important; }
}
