/* Bootstrap 5.3 RTL integration and theme compatibility fixes. */
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="ltr"] body { direction: ltr; text-align: left; }

/* WordPress media should remain responsive. */
img { max-width: 100%; height: auto; }

/* Preserve the theme's old navbar visual rules while using Bootstrap 5 markup. */
.navbar-default .navbar-nav .nav-link { color: #8e8e8e; background: #fff; font-weight: 700; font-size: 17px; margin: 5px 2px; border-radius: 5px; }
.navbar-default .navbar-nav .nav-link:hover,
.navbar-default .navbar-nav .nav-link:focus,
.navbar-default .navbar-nav .nav-link.active { color: #ffb024; }
.navbar-default .dropdown-menu { text-align: start; }
.navbar-default .dropdown-item { white-space: normal; }

/* Bootstrap 3 used fixed 15px gutters; retain a close layout match. */
.row { --bs-gutter-x: 30px; }

/* Legacy form spacing not supplied by Bootstrap 5. */
.form-group { margin-bottom: 1rem; }

/* Let old custom CSS targeting these wrappers continue to work. */
.input-group-text { background: none; box-shadow: none; }

/* RTL carousel controls and directional components are handled by bootstrap.rtl.css. */
.carousel-item > img { width: 100%; height: auto; }
