

/* Brand tiles: display the actual logo permanently on home and about pages. */
.brand-box.style2 a img.brand-logo-static,
.brand-box.style2:hover a img.brand-logo-static {
  display: block; position: relative; inset: auto; margin: 0 auto;
  max-width: 150px; width: 100%; height: auto;
  opacity: 1; visibility: visible; transform: none;
  transition: none;
}

/* Mobile header containment across all seven pages */
@media (max-width: 1199.98px) {
  .th-header.header-layout14 .menu-area .container-fluid { width: 100%; max-width: 100%; padding-inline: 16px; }
  .th-header.header-layout14 .menu-area .row { flex-wrap: nowrap; align-items: center; justify-content: space-between; margin-inline: 0; }
  .th-header.header-layout14 .menu-area .row > .col-auto { padding-inline: 0 !important; flex: 0 0 auto; min-width: 0; }
  .th-header.header-layout14 .menu-area .row > .col-auto:first-child { flex: 0 1 auto; margin-right: 12px; }
  .th-header.header-layout14 .header-logo { max-width: min(44vw, 180px); }
  .th-header.header-layout14 .header-logo img { width: 100%; max-width: 160px; height: auto; display: block; }
  .th-header.header-layout14 .th-menu-toggle { position: relative; margin: 0; flex-shrink: 0; }
  .th-header.header-layout14 .menu-area { max-width: 100%; }
}
@media (max-width: 767.98px) {
  .th-header.header-layout14 .menu-area .container-fluid { padding-inline: 14px; }
  .th-header.header-layout14 .header-logo { max-width: min(48vw, 155px); }
  .th-header.header-layout14 .th-menu-toggle { width: 48px; height: 48px; line-height: 48px; border-radius: 10px; }
  .th-header.header-layout14 .menu-area .row > .col-auto.d-none.d-md-block { display: none !important; }
}
@media (max-width: 380px) {
  .th-header.header-layout14 .menu-area .container-fluid { padding-inline: 10px; }
  .th-header.header-layout14 .header-logo { max-width: 135px; }
}

/* RyBro – rule-based, no external API */
.rybro, .rybro * { box-sizing: border-box; }
.rybro {
  --rybro-bottom-gap: calc(env(safe-area-inset-bottom, 0px) + 96px);
  --rybro-right-gap: 22px;
  --ryblue: #1559eb;
  font-family: Arial, sans-serif;
  position: fixed;
  right: var(--rybro-right-gap);
  bottom: var(--rybro-bottom-gap);
  z-index: 10001;
  color: #13213b;
}
.rybro-launch {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 136px;
  height: 60px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1762ff 0%, #0b3ea7 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(3, 24, 74, 0.28);
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.rybro-launch::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0));
  z-index: -1;
}
.rybro-launch::after {
  content: "";
  position: absolute;
  top: 0;
  left: -65%;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.26), rgba(255,255,255,0));
  transform: skewX(-22deg);
  transition: left .45s ease;
}
.rybro-launch:hover::after,
.rybro-launch:focus-visible::after { left: 125%; }
.rybro-launch:hover,
.rybro-launch:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(3, 24, 74, 0.33);
  filter: brightness(1.03);
}
.rybro-launch svg {
  width: 35px;
  height: 35px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.16);
  flex-shrink: 0;
}
.rybro-launch span[aria-hidden="true"] { font-size: 14px; opacity: .95; }
.rybro-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(384px, calc(100vw - 32px));
  height: min(560px, calc(100dvh - 182px));
  min-height: 320px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(7, 22, 61, 0.25);
  overflow: hidden;
  border: 1px solid #d9e5fc;
}
.rybro-panel[hidden], .rybro[hidden] { display: none !important; }
.rybro-top {
  background: linear-gradient(135deg, #123a91, #0b2046);
  color: white;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.rybro-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  font-size: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.rybro-heading { flex: 1; line-height: 1.3; }
.rybro-heading strong, .rybro-heading small { display: block; color: white; }
.rybro-heading strong { font-size: 16px; }
.rybro-heading small { font-size: 11px; opacity: .86; }
.rybro-close {
  cursor: pointer;
  border: 0;
  background: rgba(255,255,255,.14);
  border-radius: 10px;
  color: white;
  width: 34px;
  height: 34px;
  font-size: 22px;
}
.rybro-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: linear-gradient(180deg, #f6f8fd 0%, #eef3fb 100%);
  scroll-behavior: smooth;
}
.rybro-message {
  max-width: 89%;
  border-radius: 16px;
  padding: 10px 13px;
  font-size: 13px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}
.rybro-message.bot {
  background: white;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 6px 16px rgba(19,44,73,.07);
}
.rybro-message.user {
  background: linear-gradient(135deg, #1b61ef, #1547bc);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.rybro-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-start;
  max-width: 100%;
}
.rybro-choice {
  background: white;
  color: #1748a7;
  border: 1px solid #a6bfec;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1.3;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.rybro-choice:hover, .rybro-choice:focus-visible {
  background: #e6efff;
  border-color: #8aa8df;
}
.rybro-choice:disabled { opacity: .5; cursor: default; }
.rybro-entry {
  display: flex;
  gap: 8px;
  padding: 11px;
  background: white;
  border-top: 1px solid #e6ebf3;
}
.rybro-input {
  border: 1px solid #d4dfec;
  border-radius: 12px;
  flex: 1;
  min-width: 0;
  padding: 12px;
  font-size: 13px;
  color: #14233d;
  background: white;
}
.rybro-send {
  border: 0;
  background: linear-gradient(135deg, #1756d9, #123fb6);
  color: #fff;
  border-radius: 12px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
}
.rybro-note {
  display: block;
  font-size: 10px;
  background: white;
  color: #62748b;
  text-align: center;
  padding: 0 12px 10px;
}
@media (max-width: 575px) {
  .rybro {
    --rybro-right-gap: 14px;
    --rybro-bottom-gap: calc(env(safe-area-inset-bottom, 0px) + 82px);
  }
  .rybro-launch {
    min-width: 124px;
    height: 56px;
    padding: 0 16px 0 12px;
    font-size: 14px;
  }
  .rybro-launch svg { width: 20px; height: 20px; padding: 5px; }
  .rybro-panel {
    bottom: 70px;
    width: min(384px, calc(100vw - 28px));
    height: min(560px, calc(100dvh - 152px));
  }
}
@media (max-width: 420px) {
  .rybro-panel {
    width: calc(100vw - 20px);
    right: -2px;
    border-radius: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rybro-log { scroll-behavior: auto; }
  .rybro-launch, .rybro-launch::after { transition: none; }
}

/* FINAL MOBILE HEADER: aligned inside viewport, no overflowing controls */
@media (max-width: 1199.98px) {
 html, body { max-width:100%; overflow-x: clip; }
 .th-header.header-layout1.header-layout14,
 .th-header.header-layout1.header-layout14 .sticky-wrapper,
 .th-header.header-layout1.header-layout14 .menu-area { width:100%; max-width:100%; left:0; right:0; box-sizing:border-box; }
 .th-header.header-layout1.header-layout14 .menu-area .container-fluid { width:100% !important; max-width:100% !important; padding:0 20px !important; margin:0 auto !important; box-sizing:border-box; }
 .th-header.header-layout1.header-layout14 .menu-area .row { display:flex !important; width:100% !important; max-width:100% !important; margin:0 !important; padding:0 !important; align-items:center !important; justify-content:space-between !important; flex-wrap:nowrap !important; gap:12px; }
 .th-header.header-layout1.header-layout14 .menu-area .row > .col-auto { padding:0 !important; margin:0 !important; width:auto !important; min-width:0 !important; flex:0 0 auto !important; }
 .th-header.header-layout1.header-layout14 .menu-area .row > .col-auto:first-child { flex:0 1 auto !important; min-width:0 !important; }
 .th-header.header-layout1.header-layout14 .menu-area .row > .col-auto:last-child { display:none !important; }
 .th-header.header-layout1.header-layout14 .header-logo { margin:0 !important; padding:0 !important; width:auto !important; max-width:min(190px, 52vw) !important; min-width:0 !important; }
 .th-header.header-layout1.header-layout14 .header-logo a { display:block; width:100%; }
 .th-header.header-layout1.header-layout14 .header-logo img { display:block; width:100% !important; max-width:100% !important; height:auto !important; object-fit:contain; }
 .th-header.header-layout1.header-layout14 .th-menu-toggle { display:flex !important; align-items:center; justify-content:center; position:static !important; inset:auto !important; transform:none !important; margin:0 !important; width:48px !important; min-width:48px !important; height:48px !important; line-height:1 !important; padding:0 !important; border-radius:10px !important; }
}
@media (max-width: 575.98px) {
 .th-header.header-layout1.header-layout14 .menu-area .container-fluid { padding:0 16px !important; }
 .th-header.header-layout1.header-layout14 .header-logo { max-width:min(164px, 49vw) !important; }
 .th-header.header-layout1.header-layout14 .th-menu-toggle { width:46px !important; min-width:46px !important; height:46px !important; }
}
@media (max-width: 359.98px) {
 .th-header.header-layout1.header-layout14 .menu-area .container-fluid { padding:0 12px !important; }
 .th-header.header-layout1.header-layout14 .header-logo { max-width:145px !important; }
}

/* October 2026 update: compact, right-aligned RyBro chat on phones. */
@media (max-width: 575.98px) {
  .rybro {
    --rybro-right-gap: 12px;
    --rybro-bottom-gap: calc(env(safe-area-inset-bottom, 0px) + 76px);
  }
  .rybro .rybro-panel {
    position: absolute;
    right: 0;
    left: auto;
    bottom: 68px;
    width: min(318px, calc(100vw - 48px));
    max-width: calc(100vw - 24px);
    height: min(420px, calc(100dvh - 175px));
    min-height: 0;
    max-height: calc(100dvh - 135px);
    border-radius: 16px;
  }
  .rybro .rybro-top { padding: 10px 12px; gap: 9px; }
  .rybro .rybro-avatar { width: 36px; height: 36px; font-size: 19px; flex-shrink: 0; }
  .rybro .rybro-log { padding: 11px 10px; gap: 8px; min-height: 0; }
  .rybro .rybro-entry { padding: 8px; gap: 6px; }
  .rybro .rybro-input { padding: 9px; }
  .rybro .rybro-send { padding-inline: 10px; }
  .rybro .rybro-note { padding: 0 8px 7px; }
}
@media (max-width: 359.98px) {
  .rybro .rybro-panel { width: calc(100vw - 38px); }
}

/* October 2026 update: matching team member cards and image heights. */
.team-area7 .row.gy-4 > [class*="col-"] { display: flex; }
.team-area7 .team-card7 {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.team-area7 .team-card7 .team-img {
  width: 100%;
  height: 340px;
  flex: 0 0 340px;
  overflow: hidden;
}
.team-area7 .team-card7 .team-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.team-area7 .team-card7 .team-content { flex: 1; }
@media (max-width: 767.98px) {
  .team-area7 .team-card7 .team-img { height: 320px; flex-basis: 320px; }
}

/* Mobile RyBro opens as a full-viewport chat, with its existing close button. */
@media (max-width: 767.98px) {
  .rybro .rybro-panel {
    position: fixed;
    inset: 0;
    right: 0;
    bottom: 0;
    left: 0;
    top: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    min-height: 0;
    border: 0;
    border-radius: 0;
    z-index: 10002;
  }
  .rybro .rybro-top {
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }
  .rybro .rybro-note {
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
}

/* RyBro mobile keyboard-safe, height-limited dialog: only chat scrolls. */
@media (max-width: 767.98px) {
  .rybro .rybro-panel {
    position: fixed;
    inset: auto auto auto 50%;
    transform: translateX(-50%);
    width: min(420px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    height: min(520px, calc(100dvh - 20px));
    max-height: none;
    min-height: 0;
    border: 1px solid #d9e5fc;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10002;
  }
  .rybro .rybro-top, .rybro .rybro-entry, .rybro .rybro-note { flex: 0 0 auto; }
  .rybro .rybro-top { padding-top: 10px; }
  .rybro .rybro-log { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .rybro .rybro-entry { min-height: 52px; }
  .rybro .rybro-input { font-size: 16px; min-width: 0; }
  .rybro .rybro-note { padding-bottom: 7px; }
}
