/* ---------- Base Colors ----------- */

body {
  color: #3b3b3b;
  background-color: #292929;
}

#page,
#main-wrapper {
  background-color: #fff;
}

/* ---------- Navigation ----------- */

#navbar-top {
  background-color: #055a8e;
}

#navbar-main {
  background-color: #1d84c3;
}

.nav-link {
  color: #e7e7e7;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus {
  color: #ffffff;
  text-decoration: none;
}

.region-primary-menu .menu-item a.is-active,
.region-primary-menu .menu-item--active-trail a {
  background-color: #fff;
}

/* ---------- Links (global) ----------- */
/* No underline anywhere. Hover feedback only via color. */

a,
a:visited,
.link {
  color: #0071b3;
  text-decoration: none;
}

a:hover,
a:focus,
.link:hover,
.link:focus {
  color: #018fe2;
  text-decoration: none;
}

a:active,
.link:active {
  color: #23aeff;
  text-decoration: none;
}

/* ---------- Titles ----------- */
/* Titles must look like titles, not links */

h1, h2, h3, h4, h5, h6 {
  color: #111; 
  font-weight: 700;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: inherit;
  text-decoration: none;
}

h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover,
h1 a:focus,
h2 a:focus,
h3 a:focus,
h4 a:focus,
h5 a:focus,
h6 a:focus {
  color: inherit;
  text-decoration: none;
}

/* ---------- Pagination ----------- */

.page-item.active .page-link {
  background-color: #0071b3;
  border-color: #0071b3;
}

.page-link,
.page-link:hover {
  color: #0071b3;
  text-decoration: none;
}

/* ---------- Sidebar ----------- */

.sidebar .block {
  background-color: #f6f6f2;
  border-color: #f9f9f9;
}

/* ---------- Buttons ----------- */

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0256b1;
  border-color: #0256b1;
}

/* ---------- Footer ----------- */

.site-footer {
  background-color: #292929;
}

/* ---------- Header Text ----------- */

.region-header,
.region-header a,
.region-header li a.is-active,
.region-header .site-branding__text,
.region-header .site-branding,
.region-header .site-branding__text a,
.region-header .site-branding a,
.region-secondary-menu .menu-item a,
.region-secondary-menu .menu-item a.is-active {
  color: #ffffff;
  text-decoration: none;
}

/* ---------- Tabs ----------- */

.tabs ul.primary li a.is-active,
.tabs ul.primary li.is-active a {
  background-color: #fff;
  border-bottom-color: #fff;
}

/* ---------- HERO (Carousel) ----------- */
/* Full width overlay + responsive headline + red hover bar (effect) */

.carousel-caption {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 40px;
  text-align: left;
  transform: none;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.60) 45%,
    rgba(0,0,0,0.00) 100%
  );
}

.carousel-caption h3 {
  max-width: 980px;
  margin: 0;
  font-weight: 800;
  line-height: 1.18;
  font-size: clamp(22px, 2.2vw, 34px);
}

/* Lock hero link color across states (prevents global link hover color) */
.carousel-caption h3 a,
.carousel-caption h3 a:visited,
.carousel-caption h3 a:hover,
.carousel-caption h3 a:focus,
.carousel-caption h3 a:active {
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 6px 16px rgba(0,0,0,0.85);
}

/* Red hover bar (not underline) */
.carousel-caption h3 a {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.carousel-caption h3 a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 4px;
  background-color: #bb1919;
  transition: width 0.25s ease;
}

.carousel-caption h3 a:hover::after,
.carousel-caption h3 a:focus::after {
  width: 100%;
}

/* ---------- Color Module RTL ----------- */

[dir="rtl"] .color-form .color-palette {
  margin-right: 20px;
}

[dir="rtl"] .color-form .form-item label {
  float: right;
}

[dir="rtl"] .color-form .color-palette .lock {
  right: -20px;
}

/* ===== FRONT PAGE TITLES (ONLY MAIN CONTENT) ===== */
/* Applies to the card grid only, avoids top/header bars like breaking news */

.path-frontpage main h2 a,
.path-frontpage main h3 a,
.path-frontpage main .node__title a,
.path-frontpage main .views-field-title a,
.path-frontpage main .field--name-title a {
 /* color: #111; */
  font-weight: 800;
  text-decoration: none;
}

/* Hover effect: red bar (not underline) */
.path-frontpage main h2 a,
.path-frontpage main h3 a,
.path-frontpage main .node__title a,
.path-frontpage main .views-field-title a,
.path-frontpage main .field--name-title a {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.path-frontpage main h2 a::after,
.path-frontpage main h3 a::after,
.path-frontpage main .node__title a::after,
.path-frontpage main .views-field-title a::after,
.path-frontpage main .field--name-title a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background-color: #d60000;
  transition: width 0.25s ease;
}

.path-frontpage main h2 a:hover::after,
.path-frontpage main h3 a:hover::after,
.path-frontpage main .node__title a:hover::after,
.path-frontpage main .views-field-title a:hover::after,
.path-frontpage main .field--name-title a:hover::after {
  width: 100%;
}
