/* OBC event custom CSS */
.navbar {
    background-color: #ffffff !important;
}/* Shrink main full-article images */
.com-content-article .item-image img, 
.article-full-image img {
    max-width: 50% !important; /* Makes images take up half the article width */
    height: auto !important;     /* Keeps the image aspect ratio perfect */
    margin: 0 auto 1.5rem auto; /* Centers the image and adds space below it */
    display: block;
}

/* Shrink blog overview intro images (Optional) */
.blog-items .item-image img {
    max-width: 250px !important; /* Shrinks the smaller preview images */
    height: auto !important;
}
/*.prevent-break {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%; }/* Keeps it inside the module box */

/* Targets Joomla 6 core module headers, custom modules, and dashboard card layouts */
/*.card-header, 
.card-title, 
.rstpl-title,
.moduletable h1, .moduletable h2, .moduletable h3, .moduletable h4,
.module-title,
[class*="mod-"] h1, [class*="mod-"] h2, [class*="mod-"] h3, [class*="mod-"] h4 {
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}*/

.rscontact button.btn-primary.submit {
  background-color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
  color: #fff !important;
}

.rscontact button.btn-primary.submit:hover,
.rscontact button.btn-primary.submit:focus {
  background-color: #5c636a !important;
  border-color: #565e64 !important;
  color: #fff !important;
}
.rscontact button.btn-primary.submit {
  background-color: var(--bs-secondary) !important;
  border-color: var(--bs-secondary) !important;
  color: #fff !important;
}

.rscontact button.btn-primary.submit:hover,
.rscontact button.btn-primary.submit:focus {
  background-color: #5c636a !important;
  border-color: #565e64 !important;
  color: #fff !important;
}

.faq-accordion {
  margin-top: 2rem;
}

.faq-accordion h2 {
  margin-bottom: 1rem;
}

.faq-accordion details {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 0.75rem 1rem;
  background: #fff;
}

.faq-accordion summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-accordion p {
  margin: 0.75rem 0 0;
}
/* OBC Events page - right column module polish */

body .sidebar-right .module,
body .column-right .module,
body aside .module {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 18px 18px 14px;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

body .sidebar-right .module h3,
body .column-right .module h3,
body aside .module h3 {
    color: #f33a3a;
    font-size: 1.15rem;
    line-height: 1.25;
    margin: 0 0 12px;
    font-weight: 600;
}

body .sidebar-right .module h4,
body .sidebar-right .module h5,
body .sidebar-right .module h6,
body .column-right .module h4,
body .column-right .module h5,
body .column-right .module h6,
body aside .module h4,
body aside .module h5,
body aside .module h6 {
    font-size: 0.95rem;
    line-height: 1.25;
    margin: 0;
    font-weight: 500;
}

body .sidebar-right .module ul,
body .column-right .module ul,
body aside .module ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

body .sidebar-right .module li,
body .column-right .module li,
body aside .module li {
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding: 7px 0;
    margin: 0;
}

body .sidebar-right .module li:last-child,
body .column-right .module li:last-child,
body aside .module li:last-child {
    border-bottom: 0;
}

body .sidebar-right .module a,
body .column-right .module a,
body aside .module a {
    color: #555;
    text-decoration: none;
}

body .sidebar-right .module a:hover,
body .column-right .module a:hover,
body aside .module a:hover {
    color: #f33a3a;
}

/* Category counts should feel secondary */
body .sidebar-right .module .badge,
body .column-right .module .badge,
body aside .module .badge {
    background: #919c5d;
    font-weight: 400;
}
