/* Asia Core Group — Components (Mobile First) */

/* =========================================================
   Top Header Area
   ========================================================= */
.top_header_area {
  background: var(--acg-navy);
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--text-sm);
  padding: 10px 0;
  overflow: hidden;
}

.top_header_area .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
}

/* Bootstrap 3's .container clearfix (::before/::after, display: table) becomes
   real flex items inside flex containers and pushes the actual content inward.
   Neutralize the pseudo-elements on every container used as a flex parent. */
.top_header_area .container::before,
.top_header_area .container::after,
.navbar-default .container::before,
.navbar-default .container::after {
  content: none;
  display: none;
}

.top_header_area .top_nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  float: none !important;
  max-width: 100%;
}

/* Mobile: push the language switcher to the opposite edge */
.top_header_area .top_nav li:last-child {
  margin-inline-start: auto;
}

.top_header_area .top_nav li {
  float: none;
  padding: 0 12px;
  /* Logical start-side separator: in LTR it lands between the items just
     like an end-side border would, and in RTL it stays visually between
     the items instead of hugging the next item's start edge. */
  border-inline-start: solid 1px rgba(255, 255, 255, 0.18);
}

.top_header_area .top_nav li:first-child {
  padding-inline-start: 0;
  border-inline-start: none;
}

.top_header_area .top_nav li:last-child {
  padding-inline-end: 0;
}

.top_header_area .top_nav li a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition-fast);
  min-height: 0;
  max-width: 100%;
}

/* Mobile: truncate long values (email) so the row fits one line */
.top_header_area .top_nav li a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.top_header_area .top_nav li a[href^="mailto"] span {
  max-width: 34vw;
  display: inline-block;
  vertical-align: bottom;
}

.top_header_area .top_nav li a i {
  color: var(--acg-red-light);
  font-size: var(--text-base);
}

.top_header_area .top_nav li a:hover,
.top_header_area .top_nav li a:focus {
  background-color: transparent;
  color: var(--acg-white);
  text-decoration: none;
}

.top_header_area .top_nav li a.lang-ar {
  font-family: var(--font-arabic);
  font-weight: 700;
  letter-spacing: 0;
}

.top_header_area .social_nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  float: none !important;
}

/* Bootstrap 5's .navbar-nav defaults to flex-direction: column, which stacks
   the contact links and pushes social icons out of view on small screens.
   Keep both top-bar lists as tidy horizontal rows that wrap when narrow. */
.top_header_area .top_nav {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.top_header_area .social_nav {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.top_header_area .social_nav li {
  float: none;
}

.top_header_area .social_nav li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--acg-white);
  font-size: 13px;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.top_header_area .social_nav li a:hover,
.top_header_area .social_nav li a:focus {
  background: var(--acg-red);
  color: var(--acg-white);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Very small screens — tighten top-bar spacing to avoid overflow at tiny widths.
   At 480px the full row fits; below that the top nav wraps so the language
   switcher stays in view instead of being clipped by overflow-x hidden. */
@media (max-width: 479px) {
  .top_header_area {
    overflow-x: hidden;
  }

  .top_header_area .top_nav {
    flex-wrap: wrap;
  }

  .top_header_area .top_nav li {
    padding: 0 6px;
    flex: 0 1 auto;
    min-width: 0;
  }

  .top_header_area .top_nav li a {
    font-size: 10px;
    gap: 3px;
  }

  .top_header_area .top_nav li a[href^="mailto"] span {
    max-width: 28vw;
    font-size: 10px;
  }

  .top_header_area .top_nav li:last-child {
    margin-inline-start: auto;
  }

  .top_header_area .social_nav li a {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
}

/* Tablet and up */
@media (min-width: 768px) {
  .top_header_area .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .top_header_area .top_nav {
    float: left !important;
  }

  .top_header_area .top_nav li:last-child {
    margin-inline-start: 0;
  }

  .top_header_area .top_nav li a {
    min-height: 44px;
    padding: 8px 0;
    font-size: var(--text-sm);
  }

  .top_header_area .top_nav li a[href^="mailto"] span {
    max-width: none;
  }

  .top_header_area .social_nav {
    float: right !important;
    justify-content: flex-start;
  }

  .top_header_area .social_nav li a {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
}

/* =========================================================
   Main Navbar
   ========================================================= */
.navbar-default {
  background: var(--acg-bg);
  border: none;
  border-bottom: 1px solid var(--acg-border);
  margin-bottom: 0;
  border-radius: 0;
  z-index: 999;
  position: relative;
  transition: box-shadow var(--transition-base);
}

.navbar-default.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: var(--shadow-md);
  animation: headerSlideDown 0.35s ease;
}

@keyframes headerSlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.header-placeholder {
  display: none;
  height: 0;
}

.navbar-default.is-stuck + .header-placeholder {
  display: block;
}

.navbar-default .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.site-logo {
  float: left;
  font-size: 23px;
  font-weight: 400;
  padding: 8px 0;
  margin-right: auto;
}

.site-logo img {
  /* Height-based sizing: the logo artwork is ~1.56:1, so fixing the height
     keeps the box flush with the artwork instead of letterboxing it. */
  width: auto;
  height: 44px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-base);
}

.site-logo:hover img,
.site-logo:focus img {
  transform: scale(1.02);
}

.navbar-header {
  float: right;
  margin-left: var(--space-3);
}

.navbar-toggle {
  position: relative;
  float: left !important;
  padding: 9px 10px;
  margin: 0;
  background-color: transparent;
  background-image: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color var(--transition-fast);
}

.navbar-toggle .icon-bar {
  background-color: var(--acg-heading);
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-base), background-color var(--transition-base);
}

.navbar-toggle:hover,
.navbar-toggle:focus {
  background-color: var(--acg-bg-light);
}

.navbar-toggle:hover .icon-bar,
.navbar-toggle:focus .icon-bar {
  background-color: var(--acg-red);
}

.navbar-toggle.is-open .icon-bar:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.is-open .icon-bar:nth-child(3) {
  opacity: 0;
}

.navbar-toggle.is-open .icon-bar:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-collapse {
  float: none;
  width: 100%;
  max-height: none;
  border-top: none;
  box-shadow: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--acg-bg);
  border-bottom: 1px solid var(--acg-border);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar-collapse.collapse {
  display: none;
}

.navbar-collapse.in {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  box-shadow: var(--shadow-lg);
}

.navbar-default .navbar-nav {
  margin: 0;
  padding: var(--space-2) 0;
  list-style: none;
  text-transform: uppercase;
}

.navbar-default .navbar-nav > li {
  float: none;
  border-bottom: 1px solid var(--acg-border);
}

.navbar-default .navbar-nav > li:last-child {
  border-bottom: none;
}

.navbar-default .navbar-nav > li > a {
  color: var(--acg-heading);
  display: block;
  padding: 14px 15px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.navbar-default .navbar-nav > li > a::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--acg-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-base);
}

.navbar-default .navbar-nav > li > a:hover::after,
.navbar-default .navbar-nav > li > a:focus::after,
.navbar-default .navbar-nav > li.active > a::after,
.navbar-default .navbar-nav > li.open > a::after {
  transform: scaleX(1);
}

.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > li.open > a,
.navbar-default .navbar-nav > li.open > a:hover,
.navbar-default .navbar-nav > li.open > a:focus {
  color: var(--acg-red);
  background: transparent;
  text-decoration: none;
}

.navbar-default .navbar-nav > li.dropdown > a .caret {
  margin-inline-start: 6px;
  border-top-color: currentColor;
  border-bottom-color: currentColor;
}

/* Dropdown menu */
.navbar-default .dropdown-menu {
  left: auto;
  top: 100%;
  padding: 0;
  background: var(--acg-bg);
  position: static;
  float: none;
  box-shadow: none;
  border: none;
  border-radius: 0;
  z-index: 9999;
  padding-inline-start: 15px;
}

.navbar-default .dropdown-menu > li {
  border-bottom: solid 1px var(--acg-border);
  position: relative;
  float: none;
}

.navbar-default .dropdown-menu > li:first-child {
  border-top: solid 2px var(--acg-red);
}

.navbar-default .dropdown-menu > li:last-child {
  border-bottom: none;
}

.navbar-default .dropdown-menu > li > a {
  padding: 12px 15px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--acg-heading);
  display: block;
  transition: color var(--transition-fast), background-color var(--transition-fast), padding-inline-start var(--transition-fast);
}

.navbar-default .dropdown-menu > li > a:hover,
.navbar-default .dropdown-menu > li > a:focus,
.navbar-default .dropdown-menu > li.active > a {
  background: var(--acg-bg-light);
  color: var(--acg-red);
  padding-inline-start: 18px;
  text-decoration: none;
}

/* Tablet and up */
@media (min-width: 768px) {
  .site-logo img {
    height: 60px;
  }

  .navbar-default .container {
    min-height: 88px;
  }

  .navbar-header {
    display: none;
  }

  /* Order-based layout: menu at the inline start (left in LTR, right in RTL),
     logo at the inline end — flips automatically with document direction. */
  .navbar-default .container {
    justify-content: space-between;
  }

  .navbar-default .navbar-collapse {
    position: static;
    width: auto;
    /* Bootstrap 5 sets flex-basis:100% on .navbar-collapse; without this the
       menu occupies the whole row and the logo wraps to a second row. */
    flex: 0 0 auto;
    flex-basis: auto;
    float: none !important;
    order: 1;
    padding-left: 0;
    padding-right: 0;
    border-bottom: none;
    display: block !important;
    background: transparent;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .navbar-default .site-logo {
    order: 2;
    margin-right: 0;
    margin-left: 0;
  }

  .navbar-default .navbar-nav {
    padding: 0;
    /* Bootstrap 5 makes .navbar-nav a column flex container; float is ignored
       on flex items, so the row direction must be set explicitly. */
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .navbar-default .navbar-nav > li {
    border-bottom: none;
    flex: 0 0 auto;
  }

  .navbar-default .navbar-nav > li > a {
    padding: 34px 12px;
  }

  .navbar-default .navbar-nav > li.active > a {
    color: var(--acg-red);
  }

  .navbar-default .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding-left: 0;
    box-shadow: var(--shadow-lg);
    border-top: solid 2px var(--acg-red);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    animation: dropdownFade 0.25s ease;
  }

  @keyframes dropdownFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .navbar-default .dropdown-menu > li:first-child {
    border-top: none;
  }

  .navbar-default .dropdown-menu > li > a {
    padding: 12px 18px;
  }
}

/* Desktop and up */
@media (min-width: 992px) {
  .site-logo img {
    height: 72px;
  }

  .navbar-default .container {
    min-height: 96px;
  }

  .navbar-default .navbar-nav > li > a {
    padding: 38px 16px;
    font-size: 13px;
  }
}

/* Large screens: dropdown on hover */
@media (min-width: 1025px) {
  .navbar-default .navbar-nav > li:hover > .dropdown-menu {
    display: block;
  }
}

/* Flush the first/last menu items with the container edges (logical props flip in RTL) */
@media (min-width: 768px) {
  .navbar-default .navbar-nav > li:first-child > a {
    padding-inline-start: 0;
  }

  .navbar-default .navbar-nav > li:last-child > a {
    padding-inline-end: 0;
  }

  .navbar-default .navbar-nav > li:first-child > a::after {
    inset-inline-start: 0;
  }

  .navbar-default .navbar-nav > li:last-child > a::after {
    inset-inline-end: 0;
  }
}

/* Desktop: product subcategories open sideways */
@media (min-width: 768px) {
  .navbar-default .dropdown-submenu {
    position: relative;
  }
  .navbar-default .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -2px;
    margin-left: -1px;
    display: none;
    min-width: 220px;
  }
  .navbar-default .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
  [dir="rtl"] .navbar-default .dropdown-submenu > .dropdown-menu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: -1px;
  }
}

/* =========================================================
   Page Slider
   ========================================================= */
.page-slider {
  margin: 0;
  clear: both;
  position: relative;
  background: var(--acg-navy-dark);
}

.fullwidthbanner-container {
  width: 100%;
  position: relative;
  padding: 0;
  overflow: hidden;
}

.fullwidthabnner {
  position: relative;
  overflow: hidden;
  max-height: 560px;
}

.fullwidthabnner ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fullwidthabnner li {
  display: none;
  position: relative;
}

.fullwidthabnner li.is-active {
  display: block;
}

.fullwidthabnner li.slider-slide {
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.fullwidthabnner li.slider-slide.is-visible {
  opacity: 1;
}

.fullwidthabnner img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 280px;
  object-fit: cover;
}

.fullwidthabnner .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 12, 69, 0.82) 0%, rgba(12, 12, 69, 0.35) 70%);
  display: flex;
  align-items: center;
}

.fullwidthabnner .slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.fullwidthabnner .slide-content .container {
  padding-top: 40px;
  padding-bottom: 40px;
}

.fullwidthabnner .slide-content .eyebrow {
  display: inline-block;
  color: var(--acg-red-light);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.fullwidthabnner .slide-content h1,
.fullwidthabnner .slide-content h2 {
  color: var(--acg-white);
  font-size: var(--text-3xl);
  margin: 0 0 var(--space-4);
  max-width: 600px;
  line-height: 1.2;
}

.fullwidthabnner .slide-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lg);
  max-width: 520px;
  margin-bottom: var(--space-6);
}

.fullwidthabnner .slide-content .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Slider controls */
.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
  padding: 0 15px;
}

.slider-arrow {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--acg-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.slider-arrow:hover,
.slider-arrow:focus {
  background: var(--acg-red);
  border-color: var(--acg-red);
  transform: scale(1.08);
}

.slider-dots {
  position: absolute;
  bottom: 24px;
  inset-inline-start: 50%;
  translate: -50% 0;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dots button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
}

.slider-dots button::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.slider-dots button.active::after,
.slider-dots button:hover::after,
.slider-dots button:focus::after {
  background: var(--acg-red);
  border-color: var(--acg-red);
  transform: scale(1.15);
}

/* Tablet and up */
@media (min-width: 768px) {
  .fullwidthabnner {
    max-height: 620px;
  }

  .fullwidthabnner .slide-content .container {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .fullwidthabnner .slide-content h1,
.fullwidthabnner .slide-content h2 {
    font-size: var(--text-4xl);
  }

  .fullwidthabnner .slide-content p {
    font-size: var(--text-xl);
  }

  .slider-arrow {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .slider-controls {
    padding: 0 30px;
  }
}

/* Desktop and up */
@media (min-width: 992px) {
  .fullwidthabnner {
    max-height: 700px;
  }

  .fullwidthabnner .slide-content h1,
.fullwidthabnner .slide-content h2 {
    font-size: var(--text-5xl);
  }
}

/* =========================================================
   Section Titles
   ========================================================= */
.section-title-area {
  text-align: center;
  margin-bottom: var(--space-8);
}

/* Eyebrow and title must always sit on separate lines */
.section-title-area .section-eyebrow {
  display: block;
}

.section-eyebrow {
  display: block;
  color: var(--acg-red);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--acg-heading);
  margin: 0 0 var(--space-4);
  padding: 0;
  text-transform: uppercase;
  position: relative;
  display: block;
  text-align: center;
  /* No unicode-bidi here: plaintext reorders text in narrow/RTL layouts and
     breaks centering. Bidi isolation is applied to the inner text span. */
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--acg-red);
  /* Logical centering: inset-inline-start + translate(-50%) centers the
     underline regardless of direction and without physical left/right. */
  left: 50%;
  transform: translateX(-50%);
  bottom: -14px;
  border-radius: var(--radius-full);
}

.section-subtitle {
  color: var(--acg-text-light);
  font-size: var(--text-base);
  max-width: 640px;
  margin: var(--space-6) auto 0;
  line-height: var(--leading-relaxed);
}

/* Tablet and up */
@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-5);
  }

  .section-title::after {
    width: 70px;
    bottom: -16px;
  }
}

/* Desktop and up */
@media (min-width: 992px) {
  .section-title {
    font-size: var(--text-3xl);
  }

  .section-title::after {
    height: 5px;
    width: 80px;
    bottom: -18px;
  }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary,
.btn-red,
.sendbutton {
  color: var(--acg-white);
  background-color: var(--acg-red-button);
  border-color: var(--acg-red-button);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-red:hover,
.btn-red:focus,
.sendbutton:hover,
.sendbutton:focus {
  color: var(--acg-white);
  background-color: var(--acg-red-button-hover);
  border-color: var(--acg-red-button-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn-outline {
  color: var(--acg-red);
  background-color: transparent;
  border-color: var(--acg-red);
}

.btn-outline:hover,
.btn-outline:focus {
  color: var(--acg-white);
  background-color: var(--acg-red);
  border-color: var(--acg-red);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-outline-white {
  color: var(--acg-white);
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover,
.btn-outline-white:focus {
  color: var(--acg-navy);
  background-color: var(--acg-white);
  border-color: var(--acg-white);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 14px;
  min-height: 52px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--text-xs);
  min-height: 38px;
}

.btn .fa {
  transition: transform var(--transition-fast);
}

.btn:hover .fa,
.btn:focus .fa {
  transform: translateX(3px);
}

/* =========================================================
   Service Box v1
   ========================================================= */
.service-box-v1 {
  padding: var(--space-7) var(--space-5) var(--space-6);
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: var(--space-6);
  transition: border-color var(--transition-base), background-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  background: var(--acg-bg);
  box-shadow: var(--shadow-sm);
}

.service-box-v1:hover,
.service-box-v1:focus-within {
  background: var(--acg-bg);
  border-color: var(--acg-red);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-box-v1 .icon-circle {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--acg-red-alpha-12);
  color: var(--acg-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: var(--space-5);
  transition: background var(--transition-base), transform var(--transition-base);
}

.service-box-v1:hover .icon-circle,
.service-box-v1:focus-within .icon-circle {
  background: var(--acg-red);
  color: var(--acg-white);
  transform: scale(1.08);
}

.service-box-v1 h2,
.service-box-v1 h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  color: var(--acg-heading);
}

.service-box-v1 p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--acg-text-light);
  margin-bottom: 0;
}

/* Uniform heights for homepage services — dynamic per-row equal height.
   Flexbox wrapping rows stretch every column to the tallest card in that
   row, so heights adapt automatically at every breakpoint (no fixed height,
   no text clipping). */
.our-services .row {
  display: flex;
  flex-wrap: wrap;
}

/* Bootstrap 3 clearfix pseudo-elements would become flex items — neutralize */
.our-services .row::before,
.our-services .row::after {
  content: none;
  display: none;
}

.our-services .container > .row:last-child > [class*="col-"] {
  display: flex;
  margin-bottom: var(--space-6);
}
.our-services .container > .row:first-child > [class*="col-"] {
  display: block;
}
.our-services .service-card-link {
  display: flex;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.our-services .service-box-v1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 280px;
  margin-bottom: 0;
}
.our-services .service-box-v1 p {
  flex: 1;
}

.service-box-v1 .fa:not(.icon-circle .fa) {
  color: var(--acg-red);
  font-size: 36px;
  margin-bottom: 15px;
  transition: transform var(--transition-base);
}

/* Tablet and up */
@media (min-width: 768px) {
  .service-box-v1 {
    padding: var(--space-8) var(--space-6) var(--space-7);
  }

  .service-box-v1 .icon-circle {
    width: 90px;
    height: 90px;
    font-size: 36px;
  }

  .service-box-v1 h2,
  .service-box-v1 h3 {
    font-size: var(--text-xl);
  }
}

.service-box-v1 .service-image {
  margin: -24px -20px 20px;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.service-box-v1 .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-box-v1:hover .service-image img {
  transform: scale(1.05);
}

.service-detail .service-card-image {
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-detail .service-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* =========================================================
   Recent Work / Category Cards
   ========================================================= */
.recent-work {
  text-align: center;
}

.categories {
  display: flex;
  flex-wrap: wrap;
}

.recent-work-item {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.recent-work-item:hover,
.recent-work-item:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.recent-work-item em {
  display: block;
  overflow: hidden;
  position: relative;
}

.recent-work-item em img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.recent-work-item:hover em img,
.recent-work-item:focus-within em img {
  transform: scale(1.08);
}

.recent-work-description {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: 0;
  display: block;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  color: var(--acg-white);
  text-align: start;
  transition: background 0.3s ease;
}

.recent-work-item:hover .recent-work-description,
.recent-work-item:focus-within .recent-work-description {
  background: linear-gradient(0deg, var(--acg-red-alpha-92), rgba(224, 34, 34, 0.3));
  text-decoration: none;
  color: var(--acg-white);
}

.recent-work-description .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-1);
}

.recent-work-description strong {
  display: block;
  font-size: var(--text-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.recent-work-description b {
  display: block;
  font-size: var(--text-sm);
  font-weight: 400;
  margin-top: var(--space-1);
  color: rgba(255, 255, 255, 0.85);
}

/* Tablet and up */
@media (min-width: 768px) {
  .recent-work-item em img {
    height: 260px;
  }

  .recent-work-description {
    padding: var(--space-5) var(--space-6);
  }
}

/* =========================================================
   Products Page Category Card
   ========================================================= */
.category-card {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-6);
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.category-card:hover,
.category-card:focus-within {
  border-color: var(--acg-red);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover img,
.category-card:focus-within img {
  transform: scale(1.08);
}

.category-card .caption {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
  color: var(--acg-white);
  padding: var(--space-4) var(--space-5);
  text-align: start;
  transition: background 0.3s ease;
}

.category-card:hover .caption,
.category-card:focus-within .caption {
  background: linear-gradient(0deg, var(--acg-red-alpha-92), rgba(224, 34, 34, 0.3));
}

.category-card .caption .eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-1);
}

.category-card .caption h3 {
  color: var(--acg-white);
  margin: 0;
  font-size: var(--text-lg);
  text-transform: uppercase;
  font-weight: 700;
}

/* Tablet and up */
@media (min-width: 768px) {
  .category-card img {
    height: 280px;
  }

  .category-card .caption {
    padding: var(--space-5) var(--space-6);
  }

  .category-card .caption h3 {
    font-size: var(--text-xl);
  }
}

/* =========================================================
   Product Cards
   ========================================================= */
.product-card {
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  background: var(--acg-bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.product-card:hover,
.product-card:focus-within {
  border-color: var(--acg-red);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card .product-image {
  padding: var(--space-5);
  text-align: center;
  background: var(--acg-bg-light);
  border-bottom: 1px solid var(--acg-border);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card .product-image img {
  max-height: 150px;
  width: auto;
  margin: 0 auto;
  transition: transform var(--transition-base);
}

.product-card:hover .product-image img,
.product-card:focus-within .product-image img {
  transform: scale(1.05);
}

.product-card .product-body {
  padding: var(--space-5);
}

.product-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--acg-heading);
}

.product-card h3 a {
  color: inherit;
  transition: color var(--transition-fast);
}

.product-card h3 a:hover,
.product-card h3 a:focus {
  color: var(--acg-red);
  text-decoration: none;
}

.product-card p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--acg-text-light);
  margin-bottom: 0;
}

/* Tablet and up */
@media (min-width: 768px) {
  .product-card {
    margin-bottom: var(--space-7);
  }

  .product-card .product-image {
    padding: var(--space-6);
  }

  .product-card .product-image img {
    max-height: 165px;
  }

  .product-card .product-body {
    padding: var(--space-6);
  }

  .product-card h3 {
    font-size: var(--text-xl);
  }
}

/* =========================================================
   Client Grid / Carousel
   ========================================================= */
.our-clients {
  padding: var(--space-6) 0;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.client-grid-item {
  text-align: center;
  padding: var(--space-5);
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-md);
  background: var(--acg-bg);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.client-grid-item:hover,
.client-grid-item:focus-within {
  border-color: var(--acg-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.client-grid-item img {
  max-height: 55px;
  width: auto;
  display: inline-block;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter var(--transition-base), opacity var(--transition-base), transform var(--transition-base);
}

.client-grid-item:hover img,
.client-grid-item:focus-within img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

/* Tablet and up */
@media (min-width: 768px) {
  .our-clients {
    padding: var(--space-8) 0;
  }

  .client-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }

  .client-grid-item {
    min-height: 140px;
  }

  .client-grid-item img {
    max-height: 65px;
  }
}

/* Desktop and up */
@media (min-width: 992px) {
  .client-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-6);
  }

  .client-grid-item img {
    max-height: 70px;
  }
}

/* =========================================================
   Pre-Footer / Footer
   ========================================================= */
.pre-footer {
  background: var(--acg-navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-8) 0 var(--space-6);
}

.pre-footer .row {
  row-gap: var(--space-7);
}

.pre-footer h2 {
  font-size: var(--text-lg);
  color: var(--acg-white);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pre-footer p {
  margin-bottom: var(--space-3);
  line-height: var(--leading-relaxed);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.pre-footer address {
  line-height: var(--leading-relaxed);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
  font-style: normal;
}

.pre-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.pre-footer a:hover,
.pre-footer a:focus {
  color: var(--acg-red-light);
  text-decoration: none;
}

.footer-col {
  margin-bottom: var(--space-5);
}

.footer-col:last-child {
  margin-bottom: 0;
}

.footer-about strong {
  color: var(--acg-white);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
  margin-top: var(--space-4);
}

.footer-about strong:first-of-type {
  margin-top: 0;
}

.footer-about strong i {
  color: var(--acg-red);
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.footer-about address p {
  margin-bottom: var(--space-3);
}

.footer-about address p:last-child {
  margin-bottom: 0;
}

.quick_link {
  padding: 0;
  margin: 0;
  list-style: none;
}

.quick_link li {
  margin-bottom: var(--space-2);
}

.quick_link a {
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  padding-inline-end: 26px;
  display: inline-flex;
  align-items: center;
  line-height: 1.5;
  transition: color var(--transition-fast), padding-inline-end var(--transition-fast);
}

.quick_link a i {
  position: absolute;
  inset-inline-end: 0;
  font-size: 12px;
  color: var(--acg-red);
  transition: inset-inline-end var(--transition-fast);
}

.quick_link a:hover,
.quick_link a:focus {
  color: var(--acg-white);
  text-decoration: none;
  padding-inline-end: 30px;
}

.quick_link a:hover i,
.quick_link a:focus i {
  inset-inline-end: 4px;
}

.footer-contact p {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  align-items: flex-start;
}

.footer-contact p:last-child {
  margin-bottom: 0;
}

.footer-contact i {
  color: var(--acg-red);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer {
  background: var(--acg-navy);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  padding: var(--space-3) 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .copyright,
.footer .developer-credit {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.footer .copyright strong {
  color: var(--acg-white);
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  direction: ltr;
}

.footer .developer-credit a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer .developer-credit a:hover {
  color: var(--acg-white);
}

.footer .heart {
  color: var(--acg-red-light);
  display: inline-block;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    gap: var(--space-3);
  }

  .footer .developer-credit::before {
    content: "·";
    color: rgba(255, 255, 255, 0.35);
    margin-inline-end: var(--space-3);
  }

  .pre-footer {
    padding: var(--space-8) 0 var(--space-6);
  }

  .pre-footer .row {
    row-gap: 0;
  }

  .pre-footer h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
  }

  .footer-col {
    margin-bottom: 0;
  }
}

/* =========================================================
   WhatsApp Floating Button
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--acg-whatsapp);
  color: var(--acg-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-lg);
  z-index: 998;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  transform: scale(1.08);
  box-shadow: var(--shadow-xl);
  color: var(--acg-white);
  text-decoration: none;
}

.whatsapp-float--secondary {
  bottom: 88px;
  z-index: 997;
  opacity: 0.95;
}

.whatsapp-float--secondary:hover,
.whatsapp-float--secondary:focus {
  opacity: 1;
}

@media (max-width: 767px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

/* =========================================================
   Forms
   ========================================================= */
.form-control {
  border: 1px solid var(--acg-border-dark);
  color: var(--acg-text);
  border-radius: var(--radius-md);
  box-shadow: none;
  padding: 12px 14px;
  height: auto;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background: var(--acg-bg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-control:focus {
  box-shadow: 0 0 0 4px var(--acg-red-alpha-12);
  border-color: var(--acg-red);
  background: var(--acg-bg);
}

.form-control::placeholder {
  color: var(--acg-text-muted);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  color: var(--acg-heading);
  font-weight: 600;
  margin-bottom: var(--space-2);
  display: inline-block;
  font-size: var(--text-sm);
}

.form-group label .color-red {
  font-weight: 700;
}

/* Validation helpers */
.form-control.is-invalid {
  border-color: var(--acg-red);
}

.form-control.is-valid {
  border-color: var(--acg-success);
}

.form-feedback {
  font-size: var(--text-xs);
  margin-top: var(--space-2);
  color: var(--acg-error);
  display: none;
}

.form-control.is-invalid ~ .form-feedback {
  display: block;
}

.form-success {
  display: none;
  margin-top: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: rgba(22, 101, 52, 0.08);
  border: 1px solid rgba(22, 101, 52, 0.2);
  color: var(--acg-success);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.form-success.is-visible {
  display: block;
  animation: successFadeIn 0.4s ease;
}

.form-success i {
  color: var(--acg-success);
  font-size: 20px;
  margin-inline-end: var(--space-2);
  vertical-align: middle;
}

@keyframes successFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-note {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--acg-text-muted);
  line-height: var(--leading-relaxed);
}

.form-note i {
  color: var(--acg-red);
  margin-inline-end: var(--space-2);
}

/* Cleanly hide empty section subtitle placeholders */
.section-title-area h4:empty {
  display: none;
}

/* =========================================================
   Read More / Read Less
   ========================================================= */
.more {
  color: var(--acg-red);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition-fast);
}

.more:hover,
.more:focus {
  color: var(--acg-red-hover);
  text-decoration: none;
}

.more .fa {
  transition: transform var(--transition-fast);
}

.more:hover .fa,
.more:focus .fa {
  transform: translateX(3px);
}

/* =========================================================
   Preloader
   ========================================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--acg-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s var(--ease-out-expo), visibility 0.55s var(--ease-out-expo);
}

#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

.preloader-logo {
  position: relative;
  width: 150px;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  animation: preloaderLogoIn 0.7s var(--ease-out-expo) 0.1s forwards,
             preloaderLogoPulse 2.5s ease-in-out 0.8s infinite;
}

.preloader-logo img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.preloader-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--acg-red);
  animation: preloaderSpin 0.9s linear infinite;
}

.preloader-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.preloader-progress-track::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--acg-red), transparent);
  transform: translateX(-100%);
  animation: preloaderProgress 1.8s ease-in-out infinite;
}

@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes preloaderLogoIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes preloaderLogoPulse {
  0%, 100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.85;
    transform: translateY(0) scale(0.98);
  }
}

@keyframes preloaderProgress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}

/* Skeleton placeholders */
.skeleton {
  background: linear-gradient(90deg, var(--acg-bg-gray) 25%, var(--acg-bg-light) 50%, var(--acg-bg-gray) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-md);
}

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

/* =========================================================
   Touch Target Accessibility
   ========================================================= */

/* Scoped to ≥480px: below that the top bar deliberately tightens to
   28px targets so the row wraps instead of overflowing tiny screens
   (see the max-width:479px block above — these rules must NOT override
   it by source order). */
@media (min-width: 480px) {
  .top_header_area .top_nav li a {
    min-width: 44px;
    justify-content: center;
  }

  .top_header_area .social_nav li a {
    width: 44px;
    height: 44px;
  }
}

.navbar-toggle {
  width: 48px;
  height: 48px;
}

/* Ensure minimum touch target for common interactive elements */
.product-card h3 a,
.service-box-v1 h2,
.service-box-v1 h2 a,
.product-list-item,
.more,
.quick_link li a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.product-card h3 a,
.service-box-v1 h2,
.service-box-v1 h2 a {
  padding-top: 4px;
  padding-bottom: 4px;
}

.quick_link li a {
  min-height: 0;
  padding-top: 2px;
  padding-bottom: 2px;
}

/* =========================================================
   Pagination
   ========================================================= */
.pagination-wrap {
  margin-top: var(--space-8);
  text-align: center;
}

.pagination-wrap .page-numbers,
.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-3);
  margin: 0 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--acg-border);
  background: var(--acg-bg);
  color: var(--acg-text);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers:focus,
.pagination-wrap a:hover,
.pagination-wrap a:focus {
  background: var(--acg-red);
  border-color: var(--acg-red);
  color: var(--acg-white);
  text-decoration: none;
}

.pagination-wrap .page-numbers.current,
.pagination-wrap span.current {
  background: var(--acg-navy);
  border-color: var(--acg-navy);
  color: var(--acg-white);
}

/* =========================================================
   Modal / Lightbox
   ========================================================= */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.modal-body {
  padding: var(--space-6);
}

.modal-body .close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--acg-bg-light);
  color: var(--acg-heading);
  opacity: 1;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

[dir="rtl"] .modal-body .close {
  right: auto;
  left: var(--space-3);
}

.modal-body .close:hover,
.modal-body .close:focus {
  background: var(--acg-red);
  color: var(--acg-white);
}

/* =========================================================
   Product Gallery Thumbs
   ========================================================= */
.product-gallery-thumbs {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-5);
}

.product-gallery-thumbs a {
  width: 72px;
  height: 72px;
  border: 1px solid var(--acg-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  background: var(--acg-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.product-gallery-thumbs a:hover,
.product-gallery-thumbs a:focus {
  border-color: var(--acg-red);
  transform: translateY(-2px);
}

.product-gallery-thumbs img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
}

@media (min-width: 768px) {
  .product-gallery-thumbs a {
    width: 84px;
    height: 84px;
  }
}

/* =========================================================
   Featured Card (homepage variant 5)
   ========================================================= */
.featured-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-card .product-image {
  flex: 1;
  min-height: 260px;
}

.featured-card .product-image img {
  max-height: 240px;
}

@media (min-width: 768px) {
  .featured-card .product-image {
    min-height: 320px;
  }

  .featured-card .product-image img {
    max-height: 280px;
  }
}

@media (min-width: 992px) {
  .featured-card .product-image {
    min-height: 380px;
  }

  .featured-card .product-image img {
    max-height: 320px;
  }
}

/* =========================================================
   Global overflow guard (base.css owns body overflow-x)
   ========================================================= */

.row {
  margin-left: -15px;
  margin-right: -15px;
}

.container .container {
  padding-left: 0;
  padding-right: 0;
}

/* =========================================================
   Direction-aware link arrows
   ========================================================= */
.btn .fa {
  transition: transform var(--transition-fast);
}

.btn:hover .fa,
.btn:focus .fa {
  transform: translateX(3px);
}

/* RTL arrow flip lives in rtl.css (loads last) — single source. */

@media (prefers-reduced-motion: reduce) {
  .preloader-logo,
  .preloader-spinner,
  .preloader-progress-track::after,
  .skeleton,
  .navbar-toggle .icon-bar,
  .service-box-v1,
  .service-box-v1 .icon-circle,
  .product-card,
  .recent-work-item,
  .category-card,
  .client-grid-item {
    animation: none;
    transition: none;
  }
  #preloader {
    transition: opacity 0.01s;
  }
}
