/* ==========================================================
   HOPE 1: Global (all themes, including Claro admin)
   Replaces: Bootstrap Styles, Buttons, Layout Builder Styles,
   Dacast Videos. Content styles stay global so they also apply
   in CKEditor, Media Library and Layout Builder.
   ========================================================== */

/* ---------- Bootstrap Styles: background colours ---------- */
.bs-bg-white { background-color: #fff !important; color: #121c4d; }
.bs-bg-light-blue { background-color: #e6f0ff !important; color: #121c4d; }
.bs-bg-dark-blue { background-color: #121c4d !important; }
.bs-bg-dark-blue.field-content { color: #fff; margin-top: 5px; }
.bs-bg-dark-blue .field-content { color: #fff; padding: 10px; }
.bs-bg-orange { background-color: #f07d04 !important; }

/* ---------- Bootstrap Styles: text colours ---------- */
.bs-text-black :is(h2, h3, h4, h5, h6, p) { color: #000; }
.bs-text-black .bs_tooltip { background-color: #000 !important; }

.bs-text-white,
.bs-text-white :is(h2, h3, h4, h5, h6, p) { color: #fff; }

.bs-text-dark-blue,
.bs-text-dark-blue :is(h2, h3, h4, h5, h6, p) { color: #121c4d; }
.bs_input-circles .bs-text-white,
.bs_input-circles .bs-text-dark-blue,
.bs-text-white .bs_tooltip,
.bs-text-dark-blue .bs_tooltip { background-color: #121c4d !important; }

.bs-text-orange,
.bs-text-orange :is(h2, h3, h4, h5, h6, p) { color: #f07d04; }
.bs_input-circles .bs-text-orange,
.bs-text-orange .bs_tooltip { background-color: #f07d04 !important; }

.bs-text-light-blue,
.bs-text-light-blue :is(h2, h3, h4, h5, h6, p) { color: #e6f0ff; }
.bs_input-circles .bs-text-light-blue,
.bs-text-light-blue .bs_tooltip { background-color: #e6f0ff !important; }

/* ---------- Alerts ---------- */
#secondary-header { z-index: 405; padding-top: 5px; padding-bottom: 2px; line-height: 1.2em; background: none; }
.Information { background: #121c4d; color: #fff; padding-left: 20px; }
.Urgent { background: red; color: #fff; }
.Information p,
.Urgent p { color: #fff; padding-left: 20px; padding-top: 3px; padding-bottom: 3px; }
.RedAlert { background: red; color: #fff; padding-left: 20px; }
.YellowAlert { background: yellow; color: #000; padding-left: 20px; }
.GreenAlert { background: green; color: #fff; padding-left: 20px; }

/* ---------- Buttons ---------- */
:is(.primarybutton, .secondarybutton, .successbutton, .warningbutton,
    .dangerbutton, .infobutton, .lightbutton, .darkbutton) { font-weight: bold; }

a:is(.btn-primary, .btn-secondary, .btn-success, .btn-warning, .btn-danger, .btn-info, .btn-dark) { color: #fff; }
a.btn-primary { text-align: center; }
a.btn-secondary { padding-top: 5px; }
a:is(.btn-primary, .btn-secondary, .btn-success, .btn-warning, .btn-danger, .btn-info, .btn-light, .btn-dark):hover { text-decoration: none; }
a:is(.btn-primary, .btn-secondary, .btn-danger, .btn-dark):hover { color: #fff; }
a.btn-success:hover { color: #efefef; }
a:is(.btn-warning, .btn-info, .btn-light):hover { color: #000; }
a.btn-danger:hover { margin-top: 10px; }

a:is(.btn-primary, .btn-secondary, .btn-success, .btn-warning, .btn-danger, .btn-info, .btn-light, .btn-dark) h3 { padding-top: 10px; }
a:is(.btn-primary, .btn-success, .btn-warning, .btn-danger, .btn-info, .btn-dark) h3 { color: #fff; }
a:is(.btn-secondary, .btn-light) h3 { color: #000; }
a:is(.btn-secondary, .btn-success, .btn-danger) h3:hover { color: #fff; }
a:is(.btn-warning, .btn-info) h3:hover { color: #000; }

.btn-secondary { background: #a8d6e7; border: #a8d6e7; }
.btn-danger { background: red; border: red; }

/* Outline buttons */
.outlinebtn {
  border: 2px solid black;
  background-color: transparent;
  color: black;
  padding: 14px 28px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}
.success { border-color: #04aa6d; color: green; }
.success:hover { background-color: #04aa6d; color: #fff; }
.info { border-color: #2196f3; color: dodgerblue; }
.info:hover { background: #2196f3; color: #fff; }
.warning { border-color: #ff9800; color: orange; }
.warning:hover { background: #ff9800; color: #fff; }
.danger { border-color: #f44336; color: red; }
.danger:hover { background: #f44336; color: #fff; }
.default { border-color: #e7e7e7; color: black; }
.default:hover { background: #e7e7e7; }

/* ---------- Layout Builder and editor fixes ---------- */
.media-library-item__edit,
.media-library-item__remove { position: relative; height: 40px; margin-bottom: 30px; }
.layout-builder-block { background: rgba(0, 0, 0, 0); }
.layout-builder__link--rearrange { margin-right: 10px; }
.node-landing-page-layout-builder-form,
#block-dxpr-theme-local-tasks,
#block-dxpr-theme-help { margin-left: 2em; }
.ck-content { color: #000 !important; }
.ck-source-editing-area textarea { height: 100% !important; }

/* ---------- Links ---------- */
a, a:hover { color: #a35d01; }
.dark a { color: #fff; margin-top: 10px; font-size: 24px; }
.light a { color: #a35d01; margin-top: 10px; font-size: 18px; }

/* ---------- Banners ---------- */
.tall-banner { height: 500px !important; display: flex; align-items: center; }
.tall-banner :is(h2, h3, h4) { color: #fff; text-align: center; }
.tall-banner h2 { line-height: 1em; font-size: 3em; text-shadow: 2px 2px 4px #000; }
.tall-banner h3 { font-size: 2.5em; }
.tall-banner h4 { font-size: 2em; }

.block-inline-blocklarge-banner { text-align: center; height: 420px; }
.block-inline-blocklarge-banner :is(h2, p, h4) { color: #fff; text-align: center; }
.block-inline-blocklarge-banner h2 { font-size: 4em; padding-top: 30px; line-height: 1em; text-shadow: 2px 2px 4px #000; }
.block-inline-blocklarge-banner p { font-size: 1.5em; line-height: 1.5em; }
.block-inline-blocklarge-banner h4 { font-size: 2em; line-height: 1em; }
.btn .btn-primary .btn-lg p { text-align: center; }

.block-inline-blocklarge-banner-text-on-side { padding-left: 15%; padding-right: 15%; height: 420px; }
.block-inline-blocklarge-banner-text-on-side :is(h2, p, h4) { color: #fff; text-align: left; }
.block-inline-blocklarge-banner-text-on-side h2 { font-size: 4em; padding-top: 80px; line-height: 1em; text-shadow: 2px 2px 4px #000; }
.block-inline-blocklarge-banner-text-on-side p { font-size: 1.1em; line-height: 1.1em; }
.block-inline-blocklarge-banner-text-on-side h4 { font-size: 2em; line-height: 1em; }

.big-header h2 { font-size: 70px; color: #fff; font-weight: bold; }

/* ---------- Cards ---------- */
.block-inline-blockcard { border: 1px black solid; }
.block-inline-blockcard:hover {
  box-shadow: 0 5px 40px -10px rgba(0, 0, 0, 0.57);
  transition: all 0.4s ease 0s;
}
.block-field-blockblock-contentcardfield-heading {
  position: relative;
  color: #2b4d66;
  font-weight: 400;
  font-size: 1.2em;
  letter-spacing: 0.00125rem;
  line-height: 1.15;
  text-transform: uppercase;
  margin-top: 10px;
  margin-bottom: 1.25rem;
  padding-left: 1.5em;
  padding-right: 1.5em;
  padding-bottom: 0.75rem;
  transition: color 0.25s ease-in-out;
}
.block-field-blockblock-contentcardfield-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1.6em;
  display: block;
  width: 2.9375rem;
  height: 0.125rem;
  background-color: #d8d8d8;
}
.block-field-blockblock-contentcardbody { padding: 1.2em; }

.cards { height: 300px !important; }
.cards p { font-size: 30px; text-align: center; line-height: 100px; }
.cards h2 { font-size: 50px; text-align: center; line-height: 100px; }
.field--name-field-number { font-family: "Bebas Neue"; font-size: 48px; text-align: center; }
.field--name-field-description { font-family: "Open Sans"; font-size: 30px; text-align: center; }

/* ---------- Misc content ---------- */
.views-field-field-publication-date { font-size: 0.8em; margin-left: 10px; margin-top: -20px; }
.field--name-field-media-image { padding: 10px; }
.row > * { margin-bottom: 0; }            /* full-bleed images in no-gutter sections */
.verticalpadding { margin-top: 30px; margin-bottom: 30px; }
.dark-overlay { background: rgba(0, 0, 0, 0.4); }

h3 {
  font-family: "Crimson Text", serif;
  font-size: 1.5em;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  line-height: 1em;
  margin: 1em 0;
  color: #6b4c27;
  text-shadow: 1px 1px 0 #f9f7f4;
}

/* ---------- Video embeds (study guides use a taller box: see hope_2) ---------- */
#block-claro-content .field--name-field-media-oembed-video { padding-top: 0; }
:where(body:not(.page-node-type-study-guide)) .video-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}
/* The box takes the player's height (the player is 16:9, see HOPE 2);
   a fixed 60vh box left a black band under the video on phones. */
:where(body:not(.page-node-type-study-guide)) .video-container .responsive-iframe {
  position: relative;
}
.responsive-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
