/* Responsive finishing rules shared by every page and both directions. */
html {scroll-padding-top:112px;-webkit-text-size-adjust:100%}
body {min-width:0}
img {max-width:100%}
iframe {max-width:100%;display:block}
.row > *, .footer-contact li > *, .contact-small-text {min-width:0}
h1,h2,h3,h4,p,.footer a,.contact-small-value {overflow-wrap:anywhere}
.hero-section {height:100vh;height:100svh;min-height:480px}
.hero-text-center {width:min(100%,740px);padding:112px 20px 40px}
.hero-title {font-size:clamp(1.9rem,4vw,3rem);line-height:1.3}
.hero-subtitle {line-height:1.7}
.page-title-section {margin-top:112px;padding-inline:16px}
.page-title-desc {max-width:760px}
.about-img,.member-photo {height:auto}
.contact-small-icon {flex-shrink:0}
.contact-small-card {height:100%}
.footer .footer-contact ul li {align-items:flex-start}
.footer .footer-contact ul li i {flex-shrink:0;margin-top:4px}
.footer .footer-contact ul li a {min-width:0}
.footer .copyright {padding-bottom:86px}
.sequence-slider .client-logo {max-width:min(100px,100%);max-height:60px;object-fit:contain}
.sequence-slider .client-logo-wrap {min-width:0}
@media (min-width:992px) {
  .custom-navbar .navbar-collapse {min-width:0}
  .navbar-nav .nav-link {white-space:nowrap}
}
@media (max-width:991.98px) {
  .custom-navbar .navbar-collapse {max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain}
  .custom-navbar .nav-link {min-height:44px;display:flex;justify-content:center;align-items:center}
  .nav-actions {margin-inline-start:0}
  .member-section {padding:132px 0 64px}
  .member-photo {max-width:430px;margin-inline:auto}
  .sequence-team .team-photo {width:100%;height:clamp(220px,40vw,360px);object-fit:cover}
}
@media (max-width:767.98px) {
  .page-title-section {margin-top:104px}
  .page-title-text {font-size:clamp(24px,5vw,32px);line-height:1.4}
  .hero-text-center {padding-top:104px}
  .hero-section {min-height:500px}
  .service-main-title {align-items:flex-start;flex-wrap:nowrap;line-height:1.5}
  .service-index {flex-shrink:0}
  .contact-form-card .form-control {font-size:16px}
  .contact-form-card {padding:22px 18px}
  .contact-map-card {height:280px;padding:0}
  .contact-small-card {padding:14px 16px}
  .sequence-slider .client-logo {max-width:min(80px,100%);max-height:50px}
  .sequence-clients .client-logo-wrap {padding-inline:4px}
  .footer .footer-logo-img {margin-inline:auto}
  .footer .footer-about .logo {justify-content:center}
  .footer .footer-about-text {margin-inline:auto}
}
@media (max-width:575.98px) {
  .custom-navbar .container {flex-wrap:wrap;column-gap:6px}
  .custom-navbar .navbar-brand {margin-inline-end:auto;max-width:80px}
  .nav-logo {height:54px;width:auto;max-width:80px}
  .nav-actions {gap:0}
  .nav-actions .lang-icon,.appearance-toggle {width:44px;height:44px}
  .navbar-toggler {min-width:44px;min-height:44px;padding:4px 6px}
  .navbar-toggler-icon {width:24px;height:24px}
  .custom-navbar .navbar-collapse {flex-basis:100%;width:100%}
  .about-section {padding-inline:12px}
  .team-card {padding:18px 18px 0}
  .team-name {font-size:clamp(20px,6vw,24px);line-height:1.3}
  .team-top {padding:14px}
  .member-section {padding:112px 0 48px}
  .member-list li {line-height:1.8}
  .contact-btn,.hero-btn,.team-view-btn {min-height:44px;max-width:100%;white-space:normal}
  .floating-action {bottom:max(18px,env(safe-area-inset-bottom))}
  .scroll-top-btn {left:max(18px,env(safe-area-inset-left))}
  .whatsapp-btn {right:max(18px,env(safe-area-inset-right))}
}
@media (max-height:500px) and (max-width:991.98px) {
  .custom-navbar {padding-block:6px}
  .nav-logo {height:44px}
  .custom-navbar .navbar-collapse {max-height:calc(100vh - 74px);max-height:calc(100dvh - 74px)}
}

/* The homepage manager portrait uses the same offset frame as About Us. */
.manager-photo-frame {position:relative;margin-inline-end:14px;margin-bottom:14px;border-radius:14px}
.manager-photo-frame::after {content:'';position:absolute;inset:18px -14px -14px 18px;border:1px solid var(--brand);border-radius:14px;z-index:1;opacity:.7;pointer-events:none}
html[dir=rtl] .manager-photo-frame::after {inset:18px 18px -14px -14px}
.manager-photo-frame .about-img {position:relative;z-index:2;display:block;width:100%;height:auto;border-radius:14px}
