@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* 
---------------------------------------------
reset
--------------------------------------------- 
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, div
pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q,
s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
figure, header, nav, section, article, aside, footer, figcaption {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

.grid:after { content: ''; display: block; clear: both; }
.grid-sizer, .grid-item { width: 50%; }
.grid-item { float: left; }
.grid-item img { display: block; max-width: 100%; }

.clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; }
.clearfix { display: inline-block; }
html[xmlns] .clearfix { display: block; }
* html .clearfix { height: 1%; }

ul, li { padding: 0; margin: 0; list-style: none; }
header, nav, section, article, aside, footer, hgroup { display: block; }
* { box-sizing: border-box; }

html, body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  background-color: #fff;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

a { text-decoration: none !important; }
h1, h2, h3, h4, h5, h6 { margin-top: 0px; margin-bottom: 0px; }
ul { margin-bottom: 0px; }

p {
  font-size: 15px;
  line-height: 30px;
  color: #2a2a2a;
}

/* Global img — NOTE: carousel images override this below */
img {
  margin-bottom: -3px;
  width: 100%;
  overflow: hidden;
}

/* 
---------------------------------------------
global styles
--------------------------------------------- 
*/
html, body { background: #fff; font-family: 'Montserrat', sans-serif; }
::selection { background: #03a4ed; color: #fff; }
::-moz-selection { background: #03a4ed; color: #fff; }

@media (max-width: 991px) {
  .mobile-top-fix { margin-top: 30px; margin-bottom: 0px; }
  .mobile-bottom-fix { margin-bottom: 30px; }
  .mobile-bottom-fix-big { margin-bottom: 60px; }
}

.page-section { margin-top: 120px; }

.section-heading h2 {
  font-size: 35px;
  margin-bottom: 25px;
  text-transform: capitalize;
  color: #2a2a2a;
  font-weight: 700;
  position: relative;
  z-index: 2;
  line-height: 44px;
}

.section-heading h6 {
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 500;
  color: #8d99af;
}

.main-white-button a {
  display: inline-block;
  background-color: #fff;
  font-size: 15px;
  font-weight: 400;
  color: #2a2a2a;
  text-transform: capitalize;
  padding: 12px 25px;
  border-radius: 7px;
  letter-spacing: 0.25px;
  transition: all .3s;
}
.main-white-button a i {
  margin-right: 10px;
  width: 22px;
  height: 22px;
  background-color: #8d99af;
  color: #fff;
  border-radius: 50%;
  display: inline-block;
  text-align: center;
  font-size: 12px;
  line-height: 22px;
}
.main-white-button a:hover { background-color: #8d99af; color: #fff; }

/* 
---------------------------------------------
header
--------------------------------------------- 
*/
.background-header {
  background-color: rgba(0, 26, 141, 0.92) !important;
  height: 80px !important;
  position: fixed !important;
  top: 0px; left: 0px; right: 0px;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.25) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.background-header .logo,
.background-header .main-nav .nav li a { color: #ffffff !important; }
.background-header .main-nav .nav li:hover a { color: #8d99af !important; }
.background-header .nav li a.active { color: #8d99af !important; }

.header-area {
  background-color: #92bde100;
  border-bottom: 1px solid rgba(250,250,250,0.2);
  position: fixed;
  top: 0px; left: 0px; right: 0px;
  z-index: 100;
  height: 100px;
  transition: all .5s ease 0s;
}

.fa-facebook-square { font-size: 2em; }

.sticky-social-bar {
  position: relative;
  display: flex;
  flex-direction: row;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 10px;
}

.social-icon { color: #2a2a2a; font-size: 24px; margin: 5px 0; text-align: center; transition: all 0.3s ease; }
.social-icon:hover { color: #8d99af; transform: scale(1.1); }

.inquiry-buttons {
  position: fixed;
  bottom: 30px; left: 30px;
  display: flex;
  gap: 15px;
  z-index: 9999;
  align-items: center;
}

.inquiry-item {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
}
.icon-only { width: 50px; height: 50px; border-radius: 15px; font-size: 20px; }
.text-button { padding: 0 20px; height: 50px; border-radius: 25px; font-weight: 700; font-size: 14px; letter-spacing: 1px; gap: 10px; }
.inquiry-item:hover { background-color: #ffffff; color: #2a2a2a; transform: translateY(-5px); }

.header-area .main-nav { min-height: 80px; background: transparent; }

.header-area .main-nav a.logo {
  background-image: url(../images/Rurexlogo.png);
  width: 207px; height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  margin-top: 20px;
  margin-left: -47px;
}

.background-header .main-nav a.logo {
  background-image: url(../images/Rurexlogoblack.png);
  width: 164px; height: 58px;
  display: inline-block;
  margin-top: 10px;
}

.background-header .main-nav .nav { margin-top: 20px !important; }

.header-area .main-nav .nav {
  float: right;
  margin-top: 30px;
  margin-right: 0px;
  background-color: transparent;
  transition: all 0.3s ease 0s;
  position: relative;
  z-index: 999;
}

.header-area .main-nav .nav li { padding-left: 30px; padding-right: 30px; }
.parent { position: relative; }

.hero-info-overlay { position: absolute; bottom: -84px; left: 50px; z-index: 10; }
.hero-locations { color: #ffffff; font-size: 16px; font-weight: 200px; letter-spacing: 2px; margin-bottom: -3px; margin-left: 9px; }

.fb-follow-link {
  display: flex; align-items: center; gap: 10px;
  color: #ffffff; text-decoration: none; margin-bottom: -5px;
  transition: color 0.3s ease, transform 0.3s ease;
}
.fb-follow-link i { font-size: 2em; line-height: 1; }
.fb-follow-link span { font-size: 20px; font-weight: 500; letter-spacing: 1px; }
.fb-follow-link:hover { color: #8d99af; transform: translateX(5px); }

.hero-social-link { margin-bottom: 20px; text-align: left; padding-left: 50px; }
.hero-social a { color: #ffffff; text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 10px; margin-bottom: -30px; }
.hero-social-link a { text-decoration: none; color: #fff; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.top-text.header-text { position: relative; min-height: 500px; }
.hero-social img { width: 25px; }
.hero-social-link .fa-facebook-square { font-size: 1.5em; }

.compact-footer {
  background-color: #001a8d;
  color: white;
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  z-index: 100;
  padding: 10px 60px;
  height: 60px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.compact-footer .copyright { margin: 0; font-size: 12px; opacity: 0.8; }
.compact-footer .footer-logo img { height: 35px; }

.header-area .main-nav .nav li a {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  transition: all 0.3s ease 0s;
  height: 40px;
  line-height: 40px;
  border: transparent;
  letter-spacing: 1px;
}
.header-area .main-nav .nav li a:hover { border-bottom: 2px solid #8d99af; }
.header-area .main-nav .nav li a.active {
  color: #fff !important;
  border-bottom: 2px solid #fff;
  padding-bottom: 2px;
  height: auto !important;
  line-height: 30px !important;
}
.background-header .main-nav .nav li:hover a,
.background-header .main-nav .nav li a.active { color: #8d99af !important; opacity: 1; }

.header-area .main-nav .nav li.has-sub { position: relative; padding-right: 15px; }
.header-area .main-nav .nav li.has-sub:after {
  font-family: FontAwesome;
  content: "\f107";
  font-size: 12px;
  color: #fff;
  position: absolute;
  right: 5px; top: 12px;
}
.background-header .main-nav .nav li.has-sub:after { color: #1e1e1e; }

.header-area .main-nav .nav li.has-sub ul.sub-menu {
  position: absolute;
  background-color: rgba(66,133,244,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 180px;
  text-align: center;
  border-radius: 20px;
  padding: 15px 0;
  top: 60px;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  border: 3px solid rgb(255,255,255);
  box-shadow: 0px 8px 32px rgba(0,0,0,0.1);
  z-index: 100;
}
.header-area .main-nav .nav li.has-sub ul.sub-menu li { margin-left: 0; padding-left: 0; padding-right: 0; }
.header-area .main-nav .nav li.has-sub ul.sub-menu li a:hover { background-color: rgba(255,255,255,0.1); color: #fff !important; }
.header-area .main-nav .nav li.has-sub ul.sub-menu li a { color: #ffffff !important; font-size: 14px; font-weight: 700; letter-spacing: 1px; display: block; padding: 10px 0; }
.header-area .main-nav .nav li.has-sub ul li a:hover { background: #fff; color: #f5a425 !important; padding-left: 25px; }
.header-area .main-nav .nav li.has-sub:hover ul.sub-menu { visibility: visible; opacity: 1; z-index: 1; transform: translateY(0%); transition-delay: 0s,0s,0.3s; }

.header-area .main-nav .menu-trigger {
  cursor: pointer;
  display: block;
  position: absolute;
  top: 33px;
  width: 32px; height: 40px;
  text-indent: -9999em;
  z-index: 99;
  right: 40px;
  display: none;
}
.background-header .main-nav .menu-trigger { top: 23px; }

.menu-trigger {
  display: none;
  cursor: pointer;
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  z-index: 9999;
  background: transparent;
  border: none;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.menu-trigger .bar {
  display: block;
  width: 28px; height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.35s ease;
  transform-origin: center;
}
.background-header .menu-trigger .bar { background-color: #1e1e1e; }
.menu-trigger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-trigger.active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-trigger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.header-area .main-nav .menu-trigger .bar {
  position: relative !important;
  display: block !important;
  top: auto !important; left: auto !important;
  width: 26px !important; height: 2px !important;
  background-color: #ffffff !important;
  border-radius: 2px !important;
  opacity: 1 !important;
  transition: transform 0.35s ease, opacity 0.2s ease !important;
  transform-origin: center !important;
  margin: 0 auto !important;
}
.header-area .main-nav .menu-trigger {
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  position: absolute !important;
  top: 20px !important; right: 15px !important;
  width: 40px !important; height: 40px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  z-index: 99999 !important;
}
.header-area .main-nav .menu-trigger .bar::before,
.header-area .main-nav .menu-trigger .bar::after { display: none !important; content: none !important; }

.header-area.header-sticky { min-height: 80px; }
.header-area .nav { margin-top: 30px; }
.header-area.header-sticky .nav li a.active { color: #8d99af; }

@media (max-width: 1200px) {
  .header-area .main-nav .nav li { padding-left: 12px; padding-right: 12px; }
  .header-area .main-nav:before { display: none; }
}

@media (max-width: 767px) {
  .menu-trigger { display: flex !important; }
  .header-area {
    background-color: #001a8d00 !important;
    height: 80px !important;
    padding: 0 20px !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2) !important;
  }
  .header-area .container { padding: 0 !important; position: relative; }
  .header-area .main-nav a.logo {
    background-image: url(../images/Rurexlogo.png) !important;
    width: 164px !important; height: 49px !important;
    margin-top: 15px !important; margin-left: -10px !important;
    float: left;
  }
  .header-area .main-nav .menu-trigger { display: flex !important; }
  .header-area .main-nav .menu-trigger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg) !important; background-color: #ffffff !important; }
  .header-area .main-nav .menu-trigger.active .bar:nth-child(2) { opacity: 0 !important; transform: scaleX(0) !important; }
  .header-area .main-nav .menu-trigger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg) !important; background-color: #ffffff !important; }

  .header-area .main-nav .nav {
    display: none;
    float: none !important;
    width: 100% !important;
    position: fixed !important;
    top: 70px; left: 0; right: 0;
    background: rgb(0 10 60 / 26%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin: 0 !important;
    padding: 10px 0 20px !important;
    z-index: 9998;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .header-area .main-nav .nav.open { display: block !important; animation: rxSlideDown 0.3s ease forwards; }
  @keyframes rxSlideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

  .header-area .main-nav .nav li { width: 100% !important; padding: 0 !important; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .header-area .main-nav .nav li:last-child { border-bottom: none; }
  .header-area .main-nav .nav li a { display: block !important; color: #fff !important; font-size: 13px !important; letter-spacing: 2px !important; padding: 14px 25px !important; height: auto !important; line-height: 1.4 !important; border: none !important; background: transparent !important; }
  .header-area .main-nav .nav li a:hover, .header-area .main-nav .nav li a.active { background: rgba(255,255,255,0.08) !important; padding-left: 35px !important; border-bottom: none !important; color: #fff !important; }

  .header-area .main-nav .nav li.has-sub { padding-right: 0 !important; position: relative; }
  .header-area .main-nav .nav li.has-sub:after { right: 20px !important; top: 14px !important; font-size: 14px !important; color: rgba(255,255,255,0.6) !important; transition: transform 0.3s ease; }
  .header-area .main-nav .nav li.has-sub.sub-open:after { transform: rotate(180deg); }
  .header-area .main-nav .nav li.has-sub > a { padding-right: 40px !important; }
  .header-area .main-nav .nav li.has-sub ul.sub-menu { position: static !important; visibility: visible !important; opacity: 1 !important; width: 100% !important; border-radius: 0 !important; border: none !important; border-top: 1px solid rgba(255,255,255,0.08) !important; background: rgba(0,30,100,0.6) !important; backdrop-filter: none !important; box-shadow: none !important; padding: 0 !important; top: auto !important; display: none; overflow: hidden; }
  .header-area .main-nav .nav li.has-sub.sub-open ul.sub-menu { display: block !important; animation: rxFadeIn 0.25s ease forwards; }
  @keyframes rxFadeIn { from { opacity: 0; } to { opacity: 1; } }
  .header-area .main-nav .nav li.has-sub ul.sub-menu li { border-bottom: 1px solid rgba(255,255,255,0.05) !important; }
  .header-area .main-nav .nav li.has-sub ul.sub-menu li a { font-size: 12px !important; letter-spacing: 1.5px !important; padding: 12px 25px 12px 40px !important; color: rgba(255,255,255,0.85) !important; font-weight: 500 !important; }
  .header-area .main-nav .nav li.has-sub ul.sub-menu li a:hover { background: rgba(255,255,255,0.06) !important; padding-left: 50px !important; color: #fff !important; }

  .inquiry-buttons { bottom: 15px !important; left: 15px !important; gap: 10px !important; }
  .icon-only { width: 42px !important; height: 42px !important; font-size: 16px !important; }
  .text-button { height: 42px !important; font-size: 12px !important; padding: 0 14px !important; }
}

@media (min-width: 767px) {
  .header-area .main-nav .nav { display: flex !important; }
}

@media (min-width: 768px) {
  html, body { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
}

/* 
---------------------------------------------
Footer
--------------------------------------------- 
*/
.main-footer { position: relative; width: 100%; background-color: #fff; clear: both; z-index: 10; }
.main-footer.compact { position: fixed; bottom: 0; width: 100%; z-index: 999; }

.footer-bottom-bar { background-color: #001a8d; padding: 10px 50px; color: #fff; }
.footer-bottom-bar .copyright { margin: 0; font-size: 12px; color: #fff; margin-left: 1px; }
.footer-bottom-bar .container-fluid { display: flex; justify-content: space-between; align-items: center; max-width: 100% !important; margin: 0 auto; padding-right: 20px; }
.footer-logo { margin-right: -40px; transition: all 0.3s ease; }
.footer-logo img { height: 40px; filter: brightness(0) invert(1); }

/* 
---------------------------------------------
Pre Loader
--------------------------------------------- 
*/
.js-preloader {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 1; visibility: visible;
  z-index: 9999;
  transition: opacity 0.25s ease;
}
.js-preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }

@keyframes dot { 50% { transform: translateX(96px); } }
@keyframes dots { 50% { transform: translateX(-31px); } }

.preloader-inner { position: relative; width: 142px; height: 40px; background: #fff; }
.preloader-inner .dot { position: absolute; width: 16px; height: 16px; top: 12px; left: 15px; background: #8d99af; border-radius: 50%; transform: translateX(0); animation: dot 2.8s infinite; }
.preloader-inner .dots { transform: translateX(0); margin-top: 12px; margin-left: 31px; animation: dots 2.8s infinite; }
.preloader-inner .dots span { display: block; float: left; width: 16px; height: 16px; margin-left: 16px; background: #8d99af; border-radius: 50%; }


/* =============================================================
   ABOUT PAGE — Garrett-style alternating history layout
   with per-section multi-image carousel + scroll animations
   ============================================================= */

/* ── HERO ─────────────────────────────────────────────────── */
.about-hero {
  position: relative;
  height: 62vh;
  min-height: 380px;
  margin-top: 0;
  background-image: url('../images/home.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
}

/* ── SLIDING BACKGROUNDS ──────────────────────────────────────
   Each .bg-slide is stacked at z-index 0.
   banner-slide.js toggles the .active class to cycle through them.
   ──────────────────────────────────────────────────────────── */
.about-hero .bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.about-hero .bg-slide.active {
  opacity: 1;
}

/* ── GRADIENT OVERLAY — above slides, below text ─────────────
   z-index: 1 keeps it above the .bg-slide elements (z-index: 0)
   ──────────────────────────────────────────────────────────── */
.about-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.12) 0%, rgba(0,10,60,0.68) 100%);
}

/* ── TEXT — on top of everything ─────────────────────────────
   z-index: 2 keeps it above the overlay (z-index: 1)
   ──────────────────────────────────────────────────────────── */
.about-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 84px;
}

/* ── Your custom label size kept exactly as you set it ─────── */
.about-hero__label {
  display: block;
  font-size: 39px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgb(255, 255, 255);
  margin-bottom: 14px;
}

.about-hero__title {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0;
}

/* ── WRAPPER ──────────────────────────────────────────────── */
.history-wrapper {
  margin-top: 0;
  padding-bottom: 80px;
}

/* ── BLOCK GRID ───────────────────────────────────────────── */
.history-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  overflow: hidden;
}

.history-block--reverse { direction: rtl; }
.history-block--reverse > * { direction: ltr; }

.history-block:nth-child(odd)  .history-block__text { background: #ffffff; }
.history-block:nth-child(even) .history-block__text { background: #f4f6fb; }

/* ── CAROUSEL ─────────────────────────────────────────────── */
.hb-carousel {
  position: relative;
  overflow: hidden;
  background: #c8d4e4;
  /* Fixed height so the container never shifts between slides.
     align-self: stretch fills the full grid row height. */
  min-height: 520px;
  align-self: stretch;
}

.hb-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.history-block:first-child .hb-slide:first-child img {
  object-fit: contain;
  background-color: #f0ece8; /* matches the warm off-white of the photo */
}

/* ALL slides — active or not — stay absolutely positioned.
   This is what stops the container from resizing per image. */
.hb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

/* Active slide: only opacity + pointer-events change, NOT position.
   Removing the old "position: relative" that caused height to jump. */
.hb-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Override the global img rule specifically for carousel slides */
.hb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin-bottom: 0;
  overflow: visible;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hb-carousel:hover .hb-slide.active img { transform: scale(1.04); }

/* Shimmer */
.hb-slide__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #c8d4e2 25%, #dce8f4 50%, #c8d4e2 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 3;
}
.hb-slide__shimmer.loaded { opacity: 0; }

@keyframes shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

/* Arrow buttons */
.hb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  border: none;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: #001a8d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}
.hb-carousel:hover .hb-arrow { opacity: 1; }
.hb-arrow--prev { left: 14px; }
.hb-arrow--next { right: 14px; }
.hb-arrow:hover { background: #001a8d; color: #fff; transform: translateY(-50%) scale(1.08); }

/* Dot indicators */
.hb-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.hb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.hb-dot.active { background: #fff; transform: scale(1.3); }

/* ── TEXT SIDE ────────────────────────────────────────────── */
.history-block__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 72px;
}

.history-block__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #001a8d;
  margin-bottom: 12px;
  line-height: 1;
}

.history-block__heading {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  color: #12163a;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 20px;
}

.history-block__body {
  font-size: 14.5px;
  line-height: 1.9;
  color: #3e4256;
  margin-bottom: 14px;
}
.history-block__body:last-of-type { margin-bottom: 0; }
.history-block__body strong { color: #12163a; }

/* ISO cert badge */
.history-block__cert {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 14px 20px;
  border: 1.5px solid #d4daea;
  border-radius: 10px;
  width: fit-content;
  font-size: 13px;
  font-weight: 600;
  color: #12163a;
}
.history-block__cert-img {
  height: 88px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0;
}

/* CTA button */
.history-block__cta {
  display: inline-block;
  margin-top: 30px;
  padding: 13px 34px;
  background: #001a8d;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.25s ease, transform 0.2s ease;
  width: fit-content;
}
.history-block__cta:hover { background: #0030cc; transform: translateY(-2px); }

/* ── SCROLL-REVEAL ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal[data-dir="left"]  { transform: translateX(-48px); }
.reveal[data-dir="right"] { transform: translateX(48px);  }
.reveal.revealed { opacity: 1; transform: translateX(0); }

.reveal.revealed .hb-carousel        { animation: imgReveal  0.65s ease forwards; }
.reveal.revealed .history-block__text { animation: textReveal 0.65s 0.18s ease both; }

@keyframes imgReveal  { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
@keyframes textReveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .history-block, .history-block--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    min-height: auto;
  }
  /* Override desktop min-height with explicit fixed height on mobile */
  .hb-carousel { height: 280px; min-height: 280px; }
  .hb-carousel__track { height: 100%; }
  .history-block__text { padding: 38px 26px; }
  .about-hero__content { padding: 0 26px; }
  .hb-arrow { opacity: 1 !important; width: 36px; height: 36px; font-size: 20px; }
  .reveal[data-dir="left"], .reveal[data-dir="right"] { transform: translateY(28px); }
}

@media (max-width: 575px) {
  .hb-carousel { height: 220px; min-height: 220px; }
  .history-block__text { padding: 28px 18px; }
  .history-block__heading { font-size: 20px; }
  .history-block__body { font-size: 13.5px; }
  .about-hero__content { padding: 0 20px; }
  .footer-bottom-bar { padding: 10px 15px !important; }
  .footer-logo img { height: 28px !important; margin-left: -13px; }
  .footer-bottom-bar .copyright { font-size: 10px !important; }
}

/* =============================================================
   hb-social-footer — Facebook link + locations
   Sits below the ISO cert badge inside .history-block__text.
   The existing fb-follow-link / hero-locations use white (#fff)
   designed for the dark hero. Here we override to dark colours
   so they're readable on the white/light text panel.
   ============================================================= */

.hb-social-footer {
  margin-top: 24px;
  padding-top: 20px;
  /* Subtle separator line above the social block */
  border-top: 1px solid #e0e6f0;
}

/* Override the global white colour — make the link dark */
.hb-social-footer .fb-follow-link {
  color: #12163a;
  margin-bottom: 0;
}

.hb-social-footer .fb-follow-link i {
  font-size: 1.6em;
}

.hb-social-footer .fb-follow-link span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hb-social-footer .fb-follow-link:hover {
  color: #001a8d;          /* brand blue on hover instead of grey */
  transform: translateX(5px);
}

/* Override the global white colour — make locations dark */
.hb-social-footer .hero-locations {
  color: #3e4256;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  margin-left: 0;
  margin-bottom: 0;
  margin-top: 8px;
}

/* Keep sticky-social-bar behaviour but remove any gap weirdness */
.hb-social-footer .sticky-social-bar {
  margin-bottom: 6px;
}

/* Mobile: slightly smaller text */
@media (max-width: 575px) {
  .hb-social-footer .fb-follow-link span { font-size: 13px; }
  .hb-social-footer .hero-locations      { font-size: 11px; letter-spacing: 1px; }
}
