footer {
  color: var(--text-light);
  background: #006f63;
  margin-top: 0;
  min-height: 430px;
}
.footer-links-contact-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 100px;
  padding-right: 10px;
}
.footer-top {
  background: #006f63;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 19px;
}
.footer-logo {
  max-width: 400px;
}
.footer-logo .brand {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
#logo-def {
  height: auto;
  margin-right: 8px;
}
#logo-sm {
  height: 38px;
  margin-top: -10px;
}
.footer-logo p {
  font-size: 17px;
  color: #fff;
  text-align: justify;
  font-weight: 600;
}
.social-icons {
  margin-top: 18px;
  margin-left: 8px;
  display: flex;
  gap: 8px;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  padding: 10px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}
.social-icons a:hover {
  background-color: var(--text-muted);
}
.social-icons a:hover svg path {
  fill: var(--teal);
}
.social-icons svg {
  height: 20px;
  width: auto;
}
.footer-contact h4,
.footer-links h4,
.footer-links h2,
.footer-support h4,
.footer-support h2,
.footer-services h2,
.footer-services h4 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 700;
}
.footer-links ul li,
.footer-support ul li,
.footer-services ul li {
  margin-bottom: 10px;
}
.footer-links a,
.footer-support a,
.footer-services a {
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  transition: color 0.3s ease;
  border: none;
  outline: none;
}
.footer-links a:hover,
.footer-support a:hover,
.footer-services a:hover {
  color: var(--highlight);
  text-decoration: none;
}
.footer-links a:focus,
.footer-support a:focus,
.footer-services a:focus,
.footer-links a:active,
.footer-support a:active,
.footer-services a:active {
  text-decoration: none;
  outline: none;
  border: none;
}
.footer-contact p {
  font-size: 17px;
  margin-bottom: 3px;
}
.footer-contact strong {
  display: inline-block;
  width: 50px;
}
.footer-center {
  background: #005f55;
  color: #fff;
  padding: 15px 20px;
  text-align: center;
}
.footer-center nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.footer-center strong,
.footer-center p,
.footer-center span,
.footer-address,
.contact-heading-footer,
.footer-phone {
  color: #fff;
  font-weight: 700;
}
.footer-center nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
  border: none;
  outline: none;
}
.footer-center nav a:hover {
  color: var(--highlight);
  text-decoration: none;
}
.footer-center nav a:focus,
.footer-center nav a:active {
  text-decoration: none;
  outline: none;
  border: none;
}
.footer-bottom {
  background: var(--secondary-dark);
  padding: 15px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  text-align: center;
}
.footer-section {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.links-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.links-footer-bottom svg {
  height: 28px;
  width: auto;
}
.apps {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}
.apps img {
  height: 40px;
  width: auto;
}
.country {
  display: flex;
  align-items: center;
  gap: 10px;
}
.custom-select {
  position: relative;
  width: 200px;
}
.custom-select select {
  display: none; /* Hide the real select */
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 36px 6px 12px;
  background-color: var(--text-light);
  color: var(--dark-gray);
  font-size: 14px;
  cursor: pointer;
  border: none;
  height: 36px;
  position: relative;
  user-select: none;
}
.custom-select-trigger::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 100%;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23ffffff" d="M13.06 16.06a1.5 1.5 0 0 1-2.12 0l-5.658-5.656a1.5 1.5 0 1 1 2.122-2.121L12 12.879l4.596-4.596a1.5 1.5 0 0 1 2.122 2.12l-5.657 5.658Z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}
.custom-select-trigger.active::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23ffffff" d="M10.94 7.94a1.5 1.5 0 0 1 2.12 0l5.658 5.656a1.5 1.5 0 1 1-2.122 2.121L12 11.121l-4.596 4.596a1.5 1.5 0 0 1-2.122-2.12l5.657-5.658Z"/></svg>');
}
.custom-select-trigger .flag-icon {
  font-size: 18px;
  line-height: 1;
}
.custom-options {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background-color: var(--text-light);
  border: 1px solid var(--gray-bg);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  margin-bottom: 2px;
}
.custom-options.active {
  display: block;
}
.custom-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--dark-gray);
  font-size: 14px;
  transition: background-color 0.2s ease;
}
.custom-option:hover {
  background-color: var(--gray-bg);
  color: var(--text-light);
}
.custom-option.selected {
  background-color: var(--teal-light);
  color: var(--text-light);
}
.custom-option .flag-icon {
  font-size: 18px;
  line-height: 1;
}
.footer-copyright {
  color: #f2f2f2;
  font-size: 12px;
}
.footer-copyright a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links a:focus-visible,
.footer-support a:focus-visible,
.footer-services a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

@media (max-width: 769px) {
  .footer-links a,
  .footer-support a,
  .footer-services a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
  }
}

@media (min-width: 1920px) and (max-width: 2000px) {
  .footer-top {
    padding: 50px 0px;
    gap: 28px;
    max-width: calc(1560px + 2rem);
    margin: auto;
  }
}
@media (max-width: 1919px) {
  .footer-top {
    padding: 38px 0;
    max-width: calc(1440px + 2rem);
    margin: auto;
  }
}
@media (max-width: 1550px) {
  .footer-top {
    max-width: 1350px;
  }
}
@media (max-width: 1770px) {
  .footer-links-contact-container {
    gap: 80px;
    padding-right: 14px;
  }
  .footer-contact h4,
  .footer-links h4,
  .footer-links h2,
  .footer-support h4,
  .footer-support h2,
  .footer-services h2,
  .footer-services h4 {
    font-size: 19px;
  }
  .footer-links a,
  .footer-support a,
  .footer-services a,
  .footer-contact p {
    font-size: 16px;
  }
}
@media (max-width: 1440px) {
  .footer-links-contact-container {
    gap: 65px;
  }
  .footer-top {
    padding: 40px 30px;
  }
}
@media (max-width: 1220px) {
  .footer-links-contact-container {
    gap: 55px;
  }
  .footer-contact h4,
  .footer-links h4,
  .footer-links h2,
  .footer-support h4,
  .footer-support h4,
  .footer-support h2,
  .footer-services h2,
  .footer-services h4 {
    margin-bottom: 10px;
    font-size: 18px;
  }
  .footer-links a,
  .footer-support a,
  .footer-services a,
  .footer-contact p,
  .footer-logo p {
    font-size: 15px;
  }
  .footer-top {
    padding: 36px 20px;
  }
}
@media (max-width: 1111px) {
  .footer-links-contact-container {
    gap: 40px;
    padding-right: 0;
  }
}
@media (max-width: 1046px) {
  .footer-links-contact-container {
    gap: 27px;
  }
  .footer-links a,
  .footer-support a,
  .footer-services a,
  .footer-contact p {
    font-size: 14.5px;
  }
}
@media (max-width: 1000px) {
  .footer-top {
    flex-direction: column;
    gap: 25px;
  }
  .footer-logo p {
    font-size: 17px;
  }
  .footer-logo {
    max-width: 700px;
  }
  #logo-def {
    height: 68px;
    width: auto;
  }
  .footer-links-contact-container {
    align-items: baseline;
    justify-content: space-between;
    gap: 0;
    width: 700px;
  }
  .footer-contact h4,
  .footer-links h4,
  .footer-links h2,
  .footer-support h4,
  .footer-support h2,
  .footer-services h2,
  .footer-services h4 {
    font-size: 19px;
  }
  .footer-links a,
  .footer-support a,
  .footer-services a,
  .footer-contact p {
    font-size: 15.5px;
  }
}
@media (min-width: 790px) and (max-width: 920px) {
  .links-footer-bottom {
    gap: 8px;
  }
  .links-footer-bottom svg {
    height: 24px;
  }
}
@media (max-width: 888px) {
  .footer-logo,
  .footer-links-contact-container {
    max-width: 650px;
  }
  #logo-def {
    height: 57px;
    width: auto;
  }
  .footer-logo p {
    font-size: 14px;
  }
  .footer-links a,
  .footer-support a,
  .footer-services a,
  .footer-contact p,
  .footer-center nav a {
    font-size: 13px;
  }
  .footer-links ul li,
  .footer-support ul li,
  .footer-services ul li {
    margin-bottom: 0;
  }
  .footer-center {
    padding: 12px 6px;
  }
  #geoDataDetails {
    display: none;
  }
  .footer-center nav {
    gap: 3px;
  }
}
@media (max-width: 769px) {
  .footer-top {
    padding: 24px 12px;
    gap: 16px;
  }
}
@media (max-width: 789px) {
  .footer-bottom {
    flex-direction: column-reverse;
    align-items: center;
    gap: 24px;
  }
  .footer-section {
    flex: 1 1;
  }
}
@media (max-width: 715px) {
  .footer-top {
    zoom: 0.92;
  }
}
@media (max-width: 630px) {
  .footer-links-contact-container {
    width: 100%;
    flex-wrap: wrap;
    gap: 26px;
  }
  .footer-contact h4,
  .footer-links h4,
  .footer-links h2,
  .footer-support h4,
  .footer-support h2,
  .footer-services h2,
  .footer-services h4 {
    font-size: 16px;
    margin-bottom: 5px;
  }
  .country {
    zoom: 0.93;
  }
  .footer-copyright {
    zoom: 0.95;
  }
  .apps,
  .links-footer-bottom {
    zoom: 0.82;
  }
}
@media (max-width: 485px) {
  .footer-links-contact-container {
    flex-direction: column;
  }
  .country {
    zoom: 0.9;
  }
  .apps,
  .footer-copyright,
  .links-footer-bottom {
    zoom: 0.78;
  }
  .footer-top {
    padding: 24px 12px;
    gap: 16px;
  }
}
@media (max-width: 350px) {
  .footer-bottom {
    padding: 15px 0;
  }
  .country,
  .apps {
    flex-direction: row;
  }
  #logo-def {
    height: 52px;
    width: auto;
  }
  .footer-links-contact-container {
    gap: 22px;
  }
  .footer-bottom {
    gap: 14px;
  }
  .apps,
  .footer-copyright,
  .links-footer-bottom {
    zoom: 0.72;
  }
  .country {
    zoom: 0.85;
  }
}
@media (max-width: 273px) {
  .footer-links-contact-container {
    gap: 18px;
  }
  .footer-links a,
  .footer-support a,
  .footer-services a,
  .footer-contact p {
    font-size: 12px;
  }
  .footer-logo p {
    font-size: 12.5px;
  }
  .footer-bottom {
    gap: 14px;
  }
  .apps,
  .footer-copyright,
  .links-footer-bottom {
    zoom: 0.65;
  }
  .country {
    zoom: 0.8;
  }
}
@media (max-width: 200px) {
  .footer-logo p {
    font-size: min(6.15vw, 14.15px);
  }
}

/* =========================================================
   UI SCALE FREEZE (BASE 1920)
   - 1920px wali footer layout ko lock rakho
   - 1921px+ par koi manual (2K/4K/8K) scaling rules apply na hon
   - Actual size ui-scale.css (zoom/transform) se handle hogi
   ========================================================= */
@media (min-width: 1921px) {
  html[data-ui-scale="on"] .footer-top {
    padding: 50px 0px !important;
    gap: 28px !important;
    max-width: calc(1560px + 2rem) !important;
    margin: auto !important;
  }

  html[data-ui-scale="on"] .footer-links-contact-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 100px !important;
    padding-right: 10px !important;
  }

  html[data-ui-scale="on"] .footer-logo {
    max-width: 400px !important;
  }

  html[data-ui-scale="on"] #logo-def {
    height: 60px !important;
    margin-right: 8px !important;
  }

  html[data-ui-scale="on"] #logo-sm {
    height: 38px !important;
    margin-top: -10px !important;
  }

  html[data-ui-scale="on"] .footer-logo p {
    font-size: 17px !important;
  }

  html[data-ui-scale="on"] .footer-contact h4,
  html[data-ui-scale="on"] .footer-links h4,
  html[data-ui-scale="on"] .footer-links h2,
  html[data-ui-scale="on"] .footer-services h2,
  html[data-ui-scale="on"] .footer-services h4 {
    margin-bottom: 15px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
  }

  html[data-ui-scale="on"] .footer-links a,
  html[data-ui-scale="on"] .footer-services a,
  html[data-ui-scale="on"] .footer-contact p {
    font-size: 17px !important;
  }

  html[data-ui-scale="on"] .footer-center {
    padding: 15px 20px !important;
    text-align: center !important;
  }

  html[data-ui-scale="on"] .footer-center nav {
    gap: 8px !important;
  }

  html[data-ui-scale="on"] .footer-center nav a {
    font-size: 15px !important;
  }

  html[data-ui-scale="on"] .footer-bottom {
    padding: 15px 20px !important;
    gap: 20px !important;
    font-size: 13px !important;
  }

  html[data-ui-scale="on"] .apps {
    font-size: 16px !important;
  }

  html[data-ui-scale="on"] .apps img {
    height: 40px !important;
    width: auto !important;
  }

  html[data-ui-scale="on"] .custom-select {
    width: 200px !important;
  }

  html[data-ui-scale="on"] .custom-select-trigger {
    font-size: 14px !important;
    height: 36px !important;
  }

  html[data-ui-scale="on"] .custom-option {
    font-size: 14px !important;
  }

  html[data-ui-scale="on"] .footer-copyright {
    font-size: 12px !important;
  }
}
html.rtl-active .custom-select-trigger::after {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  left: 0;
}
html.rtl-active .custom-select-trigger {
  padding: 6px 12px 6px 20px;
}
