/* Local DRHS polish: deliberately scoped so existing Elementor layouts remain unchanged. */

/* Use the same centred content width for the site header as the page sections.
 * Banner/hero sections intentionally stay full-width. */
.navbar-header-wrap > .container-full {
  width: 100%;
  max-width: 1240px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

/* Keep the footer background full-width, while its widget content follows the
 * same centred site grid as the header and page content. */
.site-footer > .container-full,
.site-footer > .container {
  box-sizing: border-box;
  margin-right: auto;
  margin-left: auto;
  max-width: 1240px;
  padding-right: 20px;
  padding-left: 20px;
  width: 100%;
}

/* A concise, balanced copyright strip beneath the footer widgets. */
.site-footer .site-info {
  font-size: 13px;
  letter-spacing: 0.15px;
  padding: 22px 20px;
}

.site-footer .site-info .sep {
  color: #5fb6d5;
  display: inline-block;
  margin: 0 9px;
}

/* Premium footer treatment. The full-bleed background remains restrained while
 * all footer widgets stay on the shared content grid. */
.site-footer.dark {
  background:
    radial-gradient(circle at 88% 12%, rgba(47, 145, 184, 0.22), transparent 31%),
    linear-gradient(132deg, #061d30 0%, #0a314b 52%, #0d4968 100%);
  overflow: hidden;
}

.site-footer.dark::before {
  background: linear-gradient(90deg, #32b7e4, transparent 44%);
  content: '';
  height: 2px;
  left: 0;
  opacity: 0.82;
  position: absolute;
  right: 0;
  top: 0;
}

.site-footer .footer-sidebar {
  padding: 70px 0 34px;
  position: relative;
}

.site-footer .footer-sidebar:empty {
  display: none;
}

.site-footer .footer-sidebar .widget {
  margin-bottom: 34px;
}

/* The supplied footer logo has a dark mark, so give it a crisp light card
 * against the navy footer and keep its supporting description close by. */
.site-footer .footer-sidebar .widget_media_image {
  margin-bottom: 14px;
}

.site-footer .footer-sidebar .widget_media_image figure {
  background: #ffffff;
  border: 1px solid rgba(126, 214, 244, 0.7);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(0, 12, 22, 0.22);
  display: inline-flex;
  margin: 0;
  padding: 7px;
}

.site-footer .footer-sidebar .widget_media_image img {
  display: block;
  height: auto;
  max-width: 150px;
}

.site-footer .footer-sidebar .widget-title,
.site-footer .footer-sidebar .widget h1,
.site-footer .footer-sidebar .widget h2,
.site-footer .footer-sidebar .widget h3,
.site-footer .footer-sidebar .widget h4,
.site-footer .footer-sidebar .widget h5,
.site-footer .footer-sidebar .widget h6 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.35px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  position: relative;
  text-transform: uppercase;
}

.site-footer .footer-sidebar .widget-title::after,
.site-footer .footer-sidebar .widget h1::after,
.site-footer .footer-sidebar .widget h2::after,
.site-footer .footer-sidebar .widget h3::after,
.site-footer .footer-sidebar .widget h4::after,
.site-footer .footer-sidebar .widget h5::after,
.site-footer .footer-sidebar .widget h6::after {
  background: #46c4ee;
  bottom: 0;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  width: 38px;
}

.site-footer .footer-sidebar .widget,
.site-footer .footer-sidebar .widget p,
.site-footer .footer-sidebar .widget li {
  color: rgba(231, 244, 250, 0.78);
  font-size: 14px;
  line-height: 1.8;
}

.site-footer .footer-sidebar .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .footer-sidebar .widget a {
  color: rgba(241, 250, 253, 0.88);
  text-decoration: none;
  transition: color 160ms ease, padding-left 160ms ease;
}

.site-footer .footer-sidebar .widget a:hover,
.site-footer .footer-sidebar .widget a:focus {
  color: #55cef4;
  padding-left: 4px;
}

.site-footer .site-info {
  background: rgba(2, 19, 32, 0.42);
  border-top: 1px solid rgba(154, 222, 244, 0.2);
  color: rgba(234, 246, 251, 0.78);
  position: relative;
}

.site-footer .site-info::before {
  background: rgba(255, 255, 255, 0.1);
  content: '';
  height: 1px;
  left: max(20px, calc((100% - 1200px) / 2));
  position: absolute;
  right: max(20px, calc((100% - 1200px) / 2));
  top: -1px;
}

@media (max-width: 767px) {
  .site-footer .footer-sidebar {
    padding-top: 52px;
  }

  .site-footer .site-info {
    line-height: 1.7;
    padding: 18px 20px;
  }
}

/* Small brand line above the navigation, aligned to the site grid. */
.drhs-topbar {
  background: linear-gradient(112deg, rgba(5, 50, 78, 0.94) 0%, rgba(10, 76, 111, 0.86) 55%, rgba(23, 104, 139, 0.82) 100%);
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

.drhs-topbar__inner {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 7px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 1.2;
  text-transform: uppercase;
  position: relative;
}

/* A crisp separator inside the centred top-bar container. */
.drhs-topbar__inner::after {
  border-bottom: 1px solid #ffffff;
  bottom: 0;
  content: '';
  left: 20px;
  position: absolute;
  right: 20px;
  z-index: 2;
}

.drhs-topbar__social {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-left: auto;
  position: relative;
  z-index: 3;
}

.drhs-topbar__social a {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  font-size: 13px;
  height: 20px;
  justify-content: center;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
  width: 20px;
}

.drhs-topbar__social a:hover,
.drhs-topbar__social a:focus {
  color: #d9f4ff;
  transform: translateY(-1px);
}

/* A confident navy header gives the navigation an accessible contrast level
 * and pairs naturally with the existing DRHS logo. */
.navbar-header-wrap,
.navbar-header-wrap.navbar {
  background: linear-gradient(112deg, rgba(5, 50, 78, 0.94) 0%, rgba(10, 76, 111, 0.86) 55%, rgba(23, 104, 139, 0.82) 100%) !important;
  box-sizing: border-box;
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  border-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 8px 20px rgba(4, 31, 49, 0.23), inset 0 0px 0 rgba(255, 255, 255, 0.12);
}

.navbar-header-wrap .navbar-nav > li > a,
.navbar-header-wrap .navbar-nav > li > a:visited {
  color: #ffffff;
  font-size: calc(1rem - 2px);
  font-weight: 600;
  letter-spacing: 0.1px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.navbar-header-wrap .navbar-nav > li > a:hover,
.navbar-header-wrap .navbar-nav > li > a:focus {
  color: #d9f4ff;
}

/* A refined current-page state: compact accent instead of a tall solid block. */
.navbar-header-wrap .navbar-nav > li.active > a,
.navbar-header-wrap .navbar-nav > li.current-menu-item > a,
.navbar-header-wrap .navbar-nav > li.current-menu-ancestor > a {
  background: transparent !important;
  color: #f3a51c !important;
  box-shadow: none;
}

/* The imported slider's loading/progress strip does not suit the persistent
 * site header, so keep transitions clean without the visible bar. */
rs-progress {
  display: none !important;
}

/* RevSlider's imported "fullscreen" layout positions its wrapper at the top
 * of the viewport. On this site it must remain in document flow so the banner
 * starts after, never behind, the top bar and main header. */
.elementor-2600 #rev_slider_37_1_wrapper {
  inset: auto !important;
  left: 0 !important;
  margin: 0 !important;
  position: relative !important;
}

/* The imported Elementor hero has a -10px offset while the theme's sticky
 * navigation overlays the document flow. Reserve the header height so the
 * banner starts cleanly beneath the complete header stack. */
@media (min-width: 992px) {
  /* The desktop nav is fixed while the top bar stays in document flow. Reserve
   * its full 113px height on internal pages so featured banners begin exactly
   * below the header instead of being covered by it. */
  body:not(.home) .site-main.custom-container-page {
    padding-top: 113px;
  }

  /* Elementor's full-width page template places its content directly after
   * the fixed nav. Give that template the same reserved header space so its
   * first banner/section cannot sit underneath the navigation. */
  body:not(.home) #wrapper > .elementor {
    padding-top: 113px;
  }

  /* Contact Us uses the injected featured-image banner above its Elementor
   * layout, so it needs the header offset only once. */
  body.page-id-2790 .drhs-contact-page-banner {
    margin-top: 113px;
  }

  body.page-id-2790 #wrapper > .elementor {
    padding-top: 0;
  }

  .elementor-2600 > .elementor-element-67b3f2a {
    margin-top: 100px !important;
  }

  /* The home hero is deliberately full-bleed; normal page sections retain
   * the shared 1240px content container below it. */
  .elementor.elementor-2600 > .elementor-element.elementor-element-67b3f2a.e-con.e-con-boxed > .e-con-inner {
    max-width: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
  }
}

.navbar-header-wrap .navbar-brand,
.navbar-header-wrap .custom-logo-link {
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 3px 10px rgba(2, 30, 46, 0.22);
  padding: 9px 10px 8px;
}

.navbar-header-wrap .custom-logo {
  display: block;
}

@media (max-width: 991px) {
  .drhs-topbar__inner {
    padding: 7px 16px;
    font-size: 11px;
  }

  .drhs-topbar__inner::after {
    left: 16px;
    right: 16px;
  }

  .navbar-header-wrap .navbar-collapse {
    background: #083b5b;
  }

  .navbar-header-wrap .navbar-nav > li > a {
    padding-top: 11px;
    padding-bottom: 11px;
  }
}

/* Full-width banner added beneath the header on regular internal pages. */
.drhs-page-slider {
  width: 100%;
  overflow: hidden;
}

/* Internal pages use their own featured image, not the home Revolution
 * Slider. Keep every featured-image banner full-width, consistently compact,
 * and in normal document flow immediately after the header. */
body:not(.home) .page-featured-image {
  clear: both;
  height: 300px;
  margin: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

body:not(.home) .page-featured-image > img {
  display: block;
  height: 100%;
  object-fit: cover !important;
  object-position: center center !important;
  width: 100%;
}

/* Evaluation Studies' artwork is composed along the lower edge of its source
 * image. Bottom-align its crop so the artwork sits in the visual middle of
 * the shallow site banner. */
body.page-id-4150 .page-featured-image > img {
  object-position: center bottom !important;
}

@media (max-width: 767px) {
  body:not(.home) .page-featured-image {
    height: 190px;
  }
}

/* The imported home page sets several boxed sections to 1280px. Keep all
 * boxed Elementor content on the same 1240px desktop grid as the header,
 * without affecting full-width background sections. */
@media (min-width: 1200px) {
  .elementor .e-con.e-con-boxed > .e-con-inner {
    max-width: 1240px !important;
  }
}

/* Keep the navigation comfortably aligned with the logo on common desktop widths. */
@media (min-width: 992px) {
  .navbar-header-wrap,
  .navbar-header-wrap.navbar {
    min-height: 113px;
  }

  .navbar-header-wrap > .container-full {
    align-items: center;
    display: flex;
    min-height: 113px;
  }

  .navbar-header-wrap > .container-full > .row {
    width: 100%;
  }

  .navbar-header-wrap .row {
    align-items: center;
  }

  .navbar-header-wrap .navbar-nav > li > a {
    white-space: nowrap;
  }

  /* The fixed navigation should feel lighter than the full hero header. */
  .navbar-header-wrap.header-fixed-top,
  .navbar-header-wrap.navbar.header-fixed-top {
    min-height: 72px;
  }

  .navbar-header-wrap.header-fixed-top > .container-full {
    min-height: 72px;
  }

  .navbar-header-wrap.header-fixed-top .navbar-brand,
  .navbar-header-wrap.header-fixed-top .custom-logo-link {
    padding: 5px 7px 4px;
  }

  .navbar-header-wrap.header-fixed-top .custom-logo {
    max-height: 54px;
    width: auto;
  }

  .navbar-header-wrap.header-fixed-top .navbar-nav > li > a {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .site-footer #block-4 {
    padding-right: 100px;
  }
}

/* A consistent, comfortable reading size for all footer content. */
.site-footer .footer-sidebar .widget,
.site-footer .footer-sidebar .widget p,
.site-footer .footer-sidebar .widget li {
  font-size: 16px;
}

/* Visible keyboard focus is important and does not alter the normal design. */
#wrapper a:focus-visible,
#wrapper button:focus-visible,
#wrapper input:focus-visible,
#wrapper textarea:focus-visible,
#wrapper select:focus-visible {
  outline: 3px solid #f3a51c;
  outline-offset: 3px;
}

/* Avoid cumulative layout movement while Elementor images finish loading. */
.elementor img {
  height: auto;
}

/* Prevent long unbroken text from creating a horizontal scrollbar on small screens. */
@media (max-width: 767px) {
  #wrapper,
  .elementor,
  .elementor-widget-container {
    overflow-wrap: anywhere;
  }
}


/* Clear active-page state: compact orange indicator while keeping the menu text readable. */
.navbar-header-wrap .navbar-nav > .current-menu-item > .nav-link,
.navbar-header-wrap .navbar-nav > .current_page_item > .nav-link,
.navbar-header-wrap .navbar-nav > .active > .nav-link {
  color: #ffffff !important;
  position: relative;
}
.navbar-header-wrap .navbar-nav > .current-menu-item > .nav-link::after,
.navbar-header-wrap .navbar-nav > .current_page_item > .nav-link::after,
.navbar-header-wrap .navbar-nav > .active > .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 32px;
  height: 3px;
  transform: translateX(-50%);
  background: #ff6a22;
  border-radius: 2px;
}
