/* ============================================================
   KSHATRIYA EXIM - Frontend (guest) theme footer styles
   Recreated 1:1 from the approved reference screenshot.
   Shared by includes/footer.php and includes/guest-footer.php
   ============================================================ */

:root {
  --ks-yellow: #ffd400;
  --ks-yellow-soft: #e6c200;
  --ks-divider: #8f8500;
  --ks-text-main: #ffffff;
  --ks-text-secondary: #d0d0d0;
}

.footer-wrapper {
  --title-font: "Fredoka", sans-serif;
  --body-font: "DM Sans", sans-serif;
  position: relative;
  overflow: hidden;
  background-color: #071008;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

/* Dark black/green transparent overlay so text stays clearly readable
   while the agricultural photo remains slightly visible underneath. */
.footer-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(1, 10, 4, 0.30) 0%,
      rgba(0, 14, 5, 0.38) 55%,
      rgba(0, 6, 2, 0.50) 100%
    );
}

.footer-wrapper > * {
  position: relative;
  z-index: 1;
}

/* Self-contained border-box so the footer renders identically with or
   without a global reset (logged-in pages do not load Bootstrap). */
.footer-wrapper,
.footer-wrapper *,
.footer-wrapper *::before,
.footer-wrapper *::after {
  box-sizing: border-box;
}

/* ---------- Scoped mini grid (Bootstrap 5 style) ---------- */
.footer-wrapper .container {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 576px) {
  .footer-wrapper .container { max-width: 540px; }
}
@media (min-width: 768px) {
  .footer-wrapper .container { max-width: 720px; }
}
@media (min-width: 992px) {
  .footer-wrapper .container { max-width: 960px; }
}
@media (min-width: 1200px) {
  .footer-wrapper .container { max-width: 1140px; padding: 0 30px; }
}
@media (min-width: 1300px) {
  .footer-wrapper .container { max-width: 1320px; padding: 0 30px; }
}
/* Wide desktops â€” matches the reference's generous side margins */
@media (min-width: 1400px) {
  .footer-wrapper .container { max-width: 1640px; padding: 0 40px; }
}

.footer-wrapper .row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
  width: 100%;
}
.footer-wrapper .row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}
@media (min-width: 768px) {
  .footer-wrapper .row { --bs-gutter-x: 30px; }
}
.footer-wrapper .g-5 {
  --bs-gutter-x: 3rem;
  --bs-gutter-y: 3rem;
}
@media (min-width: 768px) {
  .footer-wrapper .row.g-5 { --bs-gutter-x: 30px; }
}
.footer-wrapper .col-auto {
  flex: 0 0 auto;
  width: auto;
}
.footer-wrapper .list-unstyled {
  padding-left: 0;
  list-style: none;
}
.footer-wrapper .justify-content-center {
  justify-content: center !important;
}
.footer-wrapper .align-items-center {
  align-items: center !important;
}
@media (min-width: 768px) {
  .footer-wrapper .col-md-3 { flex: 0 0 auto; width: 25%; }
  .footer-wrapper .col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
  .footer-wrapper .col-md-5 { flex: 0 0 auto; width: 41.66666667%; }
  .footer-wrapper .col-md-6 { flex: 0 0 auto; width: 50%; }
}
@media (min-width: 992px) {
  .footer-wrapper .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
}
@media (min-width: 1200px) {
  .footer-wrapper .col-xl-3 { flex: 0 0 auto; width: 25%; }
  .footer-wrapper .col-xl-4 { flex: 0 0 auto; width: 33.33333333%; }
  .footer-wrapper .col-xl-5 { flex: 0 0 auto; width: 41.66666667%; }
  .footer-wrapper .justify-content-xl-between { justify-content: space-between !important; }
}

/* ---------- Layout rhythm (matches reference proportions) ---------- */
.footer-wrapper.footer-layout1 {
  padding: 80px 0 72px;
}
.footer-wrapper .footer-top {
  padding-bottom: 0;
}
.footer-wrapper .widget-area {
  padding-top: 135px;
  padding-bottom: 40px;
}

/* ============================================================
   TOP CONTACT INFORMATION SECTION
   ============================================================ */

/* Three equal contact columns on desktop */
@media (min-width: 992px) {
  .footer-wrapper .footer-top .row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 46px;
    align-items: stretch;
    margin-top: 0;
  }
  .footer-wrapper .footer-top .row > * {
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
    margin-top: 0;
  }
}

.footer-wrapper .media-style1 {
  display: flex;
  align-items: flex-start;
  height: 100%;
  padding-bottom: 34px;
  border-bottom: 2px solid var(--ks-divider);
  transition: border-color 0.4s ease;
}
.footer-wrapper .media-style1:hover {
  border-color: rgba(255, 212, 0, 0.65);
}

/* Circular yellow icon container (~68px) with dark icon */
.footer-wrapper .media-style1 .media-icon {
  width: 68px;
  height: 68px;
  min-width: 68px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--ks-yellow);
  margin-right: 28px;
  flex: none;
  line-height: 1;
}
.footer-wrapper .media-style1 .media-icon img {
  max-width: 48%;
  max-height: 48%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.footer-wrapper .media-style1 .media-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.footer-wrapper .media-style1 .media-title {
  color: var(--ks-text-main);
  text-transform: capitalize;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 14px 0;
  font-family: var(--title-font);
  line-height: 1.2;
}
.footer-wrapper .media-style1 .media-info {
  font-size: 18px;
  color: var(--ks-text-secondary);
  margin-bottom: 0;
  font-family: var(--body-font);
  font-weight: 400;
  line-height: 2;
}
.footer-wrapper .media-style1 .media-info a {
  color: var(--ks-text-main);
  transition: color 0.3s ease;
  text-decoration: none;
}
.footer-wrapper .media-style1 .media-info a:hover {
  color: var(--ks-yellow);
}

/* ============================================================
   LOWER CONTENT SECTION (About / Quick Links / Services)
   ============================================================ */

.footer-wrapper .widget {
  padding: 0;
  border: none;
  position: relative;
  margin-bottom: 0;
}
.footer-wrapper .footer-widget,
.footer-wrapper .footer-widget .widget {
  padding: 0;
  border: none;
  padding-bottom: 0;
  background-color: transparent;
}
.footer-wrapper .footer-widget {
  margin-bottom: 44px;
}

/* Column headings â€” white, bold, small yellow underline beneath */
.footer-wrapper .footer-widget .widget_title {
  position: relative;
  display: inline-block;
  color: var(--ks-text-main);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 48px 0;
  padding: 0 0 12px;
  border: none;
  text-transform: capitalize;
  font-family: var(--title-font);
  line-height: 1.15;
}
.footer-wrapper.footer-layout1 .widget_title::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background-color: var(--ks-yellow);
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

/* Widget area grid â€” reference keeps the columns slightly inset */
@media (min-width: 1200px) {
  .footer-wrapper .widget-area .row {
    display: grid;
    grid-template-columns: 4fr 3fr 4fr;
    gap: 0 60px;
    row-gap: 30px;
    width: 93%;
    margin: 0 auto;
  }
  .footer-wrapper .widget-area .row > * {
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
    margin-top: 0;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .footer-wrapper .widget-area .row {
    display: grid;
    grid-template-columns: 5fr 3fr 4fr;
    gap: 0 36px;
    row-gap: 30px;
    width: 96%;
    margin: 0 auto;
  }
  .footer-wrapper .widget-area .row > * {
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
    margin-top: 0;
  }
}

/* About paragraph */
.footer-wrapper .vs-widget-about .footer-text {
  color: var(--ks-text-secondary);
  margin-bottom: 46px;
  font-size: 17px;
  line-height: 1.85;
  font-family: var(--body-font);
  max-width: 520px;
}

/* Quick links + services lists */
.footer-wrapper .widget_categories ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-wrapper .widget_categories li {
  display: block;
  position: relative;
}
.footer-wrapper .footer-widget.widget_categories a {
  width: max-content;
  max-width: 100%;
  display: block;
  border: none;
  font-size: 17px;
  font-weight: 400;
  color: var(--ks-text-secondary);
  margin-bottom: 29px;
  padding: 0;
  background-color: transparent;
  position: relative;
  font-family: var(--body-font);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer-wrapper .footer-widget.widget_categories a:hover,
.footer-wrapper .footer-widget.widget_categories a:focus-visible {
  background-color: transparent;
  color: var(--ks-yellow);
}
.footer-wrapper .footer-widget.widget_categories li:last-child a {
  margin-bottom: 0;
}

/* ============================================================
   SOCIAL MEDIA ICONS
   ============================================================ */
.footer-wrapper .footer-social {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 25px;
}
.footer-wrapper .footer-social a {
  color: var(--ks-text-main);
  font-size: 19px;
  line-height: 1;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer-wrapper .footer-social a:hover,
.footer-wrapper .footer-social a:focus-visible {
  color: var(--ks-yellow);
  transform: translateY(-2px);
}

/* ============================================================
   BOTTOM COPYRIGHT BAR
   ============================================================ */
.footer-wrapper .copyright-wrap {
  text-align: center;
  padding: 40px 0 0;
}
.footer-wrapper .copyright-wrap .row {
  align-items: center;
}
.footer-wrapper .copyright-text {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--ks-text-main);
  font-family: var(--body-font);
}
.footer-wrapper .copyright-text i {
  font-size: 15px;
}
.footer-wrapper .copyright-text a {
  font-weight: 500;
  color: inherit;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-wrapper .copyright-text a:hover,
.footer-wrapper .copyright-text a:focus-visible {
  color: var(--ks-yellow);
}
.footer-wrapper .copyright-menu ul {
  margin: 0;
  display: flex;
  gap: 34px;
  align-items: center;
}
.footer-wrapper .copyright-menu li {
  margin-right: 0;
  display: inline-block;
}
.footer-wrapper .copyright-menu a {
  display: block;
  text-decoration: none;
  text-transform: capitalize;
  color: var(--ks-text-main);
  font-size: 17px;
  font-weight: 500;
  font-family: var(--body-font);
  transition: color 0.3s ease;
}
.footer-wrapper .copyright-menu a:hover,
.footer-wrapper .copyright-menu a:focus-visible {
  color: var(--ks-yellow);
}

/* ============================================================
   FULL-WIDTH YELLOW SOCIAL BAR (above the copyright line)
   Scoped exclusively to the public footer.
   ============================================================ */
.footer-wrapper .footer-social-bar {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 2px clamp(14px, 4vw, 60px);
  background: var(--ks-yellow);
  border-top: 2px solid rgba(0, 0, 0, 0.14);
  border-bottom: 2px solid rgba(0, 0, 0, 0.14);
}
.footer-wrapper .footer-social-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 14px;
  color: #0a1106;
  text-decoration: none;
  outline: none;
}
.footer-wrapper .footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  line-height: 1;
  color: #0a1106;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.footer-wrapper .footer-social-icon svg {
  display: block;
  width: 1em;
  height: 1em;
  max-width: 100%;
  fill: currentColor;
}
.footer-wrapper .footer-social-item:hover .footer-social-icon,
.footer-wrapper .footer-social-item:focus-visible .footer-social-icon {
  transform: translateY(-4px) scale(1.1);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
}

/* ---------- Hover dropdown: platform + account name ---------- */
.footer-wrapper .footer-social-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  z-index: 6;
  min-width: 150px;
  padding: 10px 14px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #0a1106;
  border: 1px solid rgba(255, 212, 0, 0.45);
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px) scale(0.94);
  transform-origin: bottom center;
  transition: opacity 0.28s ease, transform 0.28s ease,
    visibility 0.28s ease;
}
.footer-wrapper .footer-social-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -7px;
  border: 7px solid transparent;
  border-top-color: #0a1106;
}
.footer-wrapper .footer-social-platform {
  font-family: var(--title-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ks-yellow);
}
.footer-wrapper .footer-social-account {
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
}
.footer-wrapper .footer-social-item:hover .footer-social-tooltip,
.footer-wrapper .footer-social-item:focus-visible .footer-social-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}
/* Keep the first/last dropdown inside the viewport */
.footer-wrapper .footer-social-item:first-child .footer-social-tooltip {
  left: 0;
  transform: translate(0, 12px) scale(0.94);
  transform-origin: bottom left;
}
.footer-wrapper .footer-social-item:first-child:hover .footer-social-tooltip,
.footer-wrapper .footer-social-item:first-child:focus-visible
  .footer-social-tooltip {
  transform: translate(0, 0) scale(1);
}
.footer-wrapper .footer-social-item:first-child
  .footer-social-tooltip::after {
  left: 26px;
  margin-left: 0;
}
.footer-wrapper .footer-social-item:last-child .footer-social-tooltip {
  left: auto;
  right: 0;
  transform: translate(0, 12px) scale(0.94);
  transform-origin: bottom right;
}
.footer-wrapper .footer-social-item:last-child:hover .footer-social-tooltip,
.footer-wrapper .footer-social-item:last-child:focus-visible
  .footer-social-tooltip {
  transform: translate(0, 0) scale(1);
}
.footer-wrapper .footer-social-item:last-child .footer-social-tooltip::after {
  left: auto;
  right: 26px;
  margin-left: 0;
}

/* Breathing room between the yellow bar and the copyright line */
.footer-wrapper .copyright-wrap > .container {
  padding-top: 34px;
}
.footer-wrapper .copyright-text .footer-dev-sep {
  color: var(--ks-text-secondary);
  font-weight: 500;
}
.footer-wrapper .copyright-text .footer-dev-link {
  display: inline-block;
  margin-left: 2px;
  padding: 6px 16px;
  border: 1px solid var(--ks-yellow);
  border-radius: 999px;
  background: transparent;
  color: var(--ks-yellow);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: none;
  vertical-align: middle;
  transition: background-color 0.3s ease, color 0.3s ease,
    transform 0.3s ease, box-shadow 0.3s ease;
}
.footer-wrapper .copyright-text .footer-dev-link:hover,
.footer-wrapper .copyright-text .footer-dev-link:focus-visible {
  background: var(--ks-yellow);
  border-color: var(--ks-yellow);
  color: #071008;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(245, 197, 66, 0.25);
}
@media (max-width: 767px) {
  .footer-wrapper .footer-social-bar {
    gap: 4px;
    padding: 2px 8px;
  }
  .footer-wrapper .footer-social-item {
    padding: 0 8px;
  }
  .footer-wrapper .footer-social-icon {
    font-size: 30px;
  }
  .footer-wrapper .footer-social-tooltip {
    min-width: 136px;
    padding: 9px 12px 10px;
  }
  .footer-wrapper .footer-social-account {
    font-size: 13px;
  }
  .footer-wrapper .copyright-wrap > .container {
    padding-top: 26px;
  }
  .footer-wrapper .copyright-text {
    font-size: 15px;
  }
  .footer-wrapper .copyright-text .footer-dev-link {
    padding: 5px 13px;
    font-size: 12px;
    margin-top: 6px;
  }
}
@media (max-width: 480px) {
  .footer-wrapper .footer-social-bar {
    gap: 2px;
    padding: 2px 6px;
  }
  .footer-wrapper .footer-social-icon {
    font-size: 26px;
  }
  .footer-wrapper .footer-social-item {
    padding: 0 6px;
  }
  .footer-wrapper .footer-social-tooltip {
    min-width: 124px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer-wrapper .footer-social-icon,
  .footer-wrapper .footer-social-tooltip,
  .footer-wrapper .copyright-text .footer-dev-link {
    transition: none;
  }
}

/* ============================================================
   BACK TO TOP â€” circular yellow button with white ring
   ============================================================ */
.scrollToTop,
.scroll-btn,
.ks-footer__totop {
  position: fixed;
  right: 24px;
  bottom: 26px;
  opacity: 0;
  visibility: hidden;
  transition: opacity ease 0.4s, visibility ease 0.4s, bottom ease 0.4s;
  z-index: 950;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scrollToTop i,
.scroll-btn i,
.ks-footer__totop i {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ks-yellow);
  color: #161616;
  text-align: center;
  font-size: 18px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  transition: all ease 0.3s;
  border: 6px solid #ffffff;
  box-sizing: border-box;
}
.scrollToTop::before,
.scroll-btn::before,
.ks-footer__totop::before {
  content: "";
  position: absolute;
  inset: -4px;
  background-color: transparent;
  border-radius: 50%;
  z-index: 1;
  transition: all ease 0.4s;
}
.scrollToTop:hover i,
.scrollToTop:focus-visible i,
.scroll-btn:hover i,
.scroll-btn:focus-visible i,
.ks-footer__totop:hover i,
.ks-footer__totop:focus-visible i {
  background-color: var(--ks-yellow-soft);
  color: #161616;
  transform: translateY(-4px);
}
.scrollToTop.show,
.scroll-btn.show,
.ks-footer__totop.show {
  bottom: 26px;
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.footer-wrapper a:focus-visible,
.scrollToTop:focus-visible,
.scroll-btn:focus-visible,
.ks-footer__totop:focus-visible {
  outline: 2px solid var(--ks-yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: 992â€“1199 */
@media (max-width: 1199px) {
  .footer-wrapper .footer-widget { margin-bottom: 48px; }
  .footer-wrapper .footer-widget .widget_title { font-size: 23px; margin-bottom: 40px; }
  .footer-wrapper .media-style1 .media-icon { width: 62px; height: 62px; min-width: 62px; min-height: 62px; margin-right: 22px; }
  .footer-wrapper .media-style1 .media-title { font-size: 20px; }
  .footer-wrapper .media-style1 .media-info { font-size: 17px; line-height: 1.9; }
  .footer-wrapper .widget-area { padding-top: 64px; }
}

/* Small tablet / large mobile: up to 991 */
@media (max-width: 991px) {
  .footer-wrapper.footer-layout1 { padding: 56px 0 44px; }
  .footer-wrapper .widget-area { padding-top: 52px; }
  .footer-wrapper .footer-widget .widget_title { font-size: 22px; margin-bottom: 34px; }
  .footer-wrapper .footer-top .row {
    display: flex;
    gap: 34px 0;
  }
}

/* Mobile: up to 767 */
@media (max-width: 767px) {
  .footer-wrapper.footer-layout1 { padding: 44px 0 36px; }
  .footer-wrapper .container { padding: 0 20px; }
  .footer-wrapper .widget-area { padding-top: 44px; padding-bottom: 16px; }

  /* Contact blocks stack vertically; dividers span the column */
  .footer-wrapper .footer-top .row { gap: 30px 0; }
  .footer-wrapper .media-style1 { padding-bottom: 26px; }
  .footer-wrapper .media-style1 .media-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    margin-right: 18px;
  }
  .footer-wrapper .media-style1 .media-title { font-size: 19px; margin-bottom: 8px; }
  .footer-wrapper .media-style1 .media-info { font-size: 16px; line-height: 1.75; word-break: break-word; overflow-wrap: anywhere; }

  .footer-wrapper .footer-widget { margin-bottom: 40px; }
  .footer-wrapper .footer-widget:last-child { margin-bottom: 0; }
  .footer-wrapper .footer-widget .widget_title { font-size: 21px; margin-bottom: 30px; }
  .footer-wrapper.footer-layout1 .widget_title::after { width: 36px; }
  .footer-wrapper .vs-widget-about .footer-text { font-size: 16px; margin-bottom: 28px; }
  .footer-wrapper .footer-widget.widget_categories a { font-size: 16px; margin-bottom: 22px; }
  .footer-wrapper .footer-social { gap: 22px; }
  .footer-wrapper .footer-social a { font-size: 18px; }

  .footer-wrapper .copyright-wrap { text-align: left; }
  .footer-wrapper .copyright-wrap .row > .col-auto {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
  .footer-wrapper .copyright-wrap .row { row-gap: 12px; }
  .footer-wrapper .copyright-text { font-size: 15px; overflow-wrap: anywhere; }
  .footer-wrapper .copyright-menu ul { gap: 22px; flex-wrap: wrap; }
  .footer-wrapper .copyright-menu a { font-size: 15px; }

  /* Back to top stays accessible, smaller */
  .scrollToTop,
  .scroll-btn,
  .ks-footer__totop {
    right: 14px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
  .scrollToTop i,
  .scroll-btn i,
  .ks-footer__totop i {
    width: 52px;
    height: 52px;
    font-size: 15px;
    border-width: 4px;
  }
  .scrollToTop.show,
  .scroll-btn.show,
  .ks-footer__totop.show {
    bottom: 16px;
  }
}

/* Very small screens: up to 480 */
@media (max-width: 480px) {
  .footer-wrapper .container { padding: 0 16px; }
  .footer-wrapper.footer-layout1 { padding: 38px 0 32px; }
  .footer-wrapper .media-style1 { align-items: flex-start; }
  .footer-wrapper .media-style1 .media-icon { width: 52px; height: 52px; min-width: 52px; min-height: 52px; margin-right: 15px; }
  .footer-wrapper .media-style1 .media-title { font-size: 18px; }
  .footer-wrapper .media-style1 .media-info { font-size: 15px; }
  .footer-wrapper .footer-widget .widget_title { font-size: 20px; }
  .footer-wrapper .copyright-text { font-size: 14px; }
  .footer-wrapper .copyright-menu a { font-size: 14px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .footer-wrapper *,
  .scrollToTop,
  .scroll-btn,
  .ks-footer__totop {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
