/* === GLOBAL LINK VISIBILITY & HOVER FIXES === */
a, .card a {
  color: #0B1970; /* readable dark navy for normal state */
  text-decoration: none;
}

a:hover, .card a:hover, .card a.fw-bold:hover {
  color: #D65B26 !important;               /* bright orange hover color */
  background-color: #FFF3E6 !important;   /* light orange background */
  text-decoration: underline;
  transition: all 0.2s ease-in-out;
}

.fw-bold:hover {
  color: #D65B26 !important;
}

a:focus, a:active {
  outline: none;
  color: #B84A1D !important;
  background-color: #FFE5CC !important;
}


/* === BADGE VISIBILITY === */
.rc-badge {
  background: #E9EDF2;
  color: #333;
  border: 1px solid #CCC;
}

.rc-badge:hover {
  background: #D65B26;
  color: #FFF !important;
  border-color: #D65B26;
}


/* === CARD TITLE HOVER CLARITY === */
.rc-card-title:hover {
  color: #D65B26 !important;
}


/* ================================
   CKEDITOR IMAGE CENTERING & SCALE
   ================================ */

/* Make editor and rendered content consistent */
.ck-content img {
  max-width: 100%;
  height: auto;
}

/* Center single images */
.ck-content figure.image {
  display: block;
  margin: 1rem auto;
}

/* Captions */
.ck-content figure.image figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #6c757d;
}

/* Side image */
.ck-content figure.image.image-style-side {
  float: right;
  margin: 0 0 1rem 1rem;
  max-width: 40%;
}

/* Mobile fix */
@media (max-width: 768px) {
  .ck-content figure.image.image-style-side {
    float: none;
    margin: 1rem auto;
    max-width: 100%;
  }
}

/* optional 2-column gallery behavior */
@media (min-width: 992px) {
  .ck-content p > .image,
  .ck-content .image + .image {
    display: inline-block;
    width: 48%;
    vertical-align: top;
    margin: 0 1% 1rem;
  }
}

