/* ============================================
   FOOTER COMPLETE FIX - FINAL VERSION
   Fixes: Copyright left, Privacy Policy right, White icons
   ============================================ */

/* ============================================
   FOOTER BOTTOM - SAME LINE LAYOUT
   ============================================ */

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(15px, 3vw, 30px) clamp(20px, 4vw, 40px);
  border-top: 1px solid #ddd;
  
  /* CRITICAL: Single horizontal line */
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  
  gap: 2rem;
  width: 100%;
}

/* Copyright text - LEFT SIDE */
.footer-bottom p {
  color: #737373;
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 500;
  margin: 0 !important;
  padding: 0 !important;
  
  /* Single line, no wrapping */
  white-space: nowrap !important;
  flex-shrink: 0;
  flex-grow: 0;
  
  text-align: left !important;
  order: 1;
}

/* Privacy Policy - RIGHT SIDE */
.footer-bottom a {
  color: #5b7fff; /* Blue link */
  text-decoration: none;
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 600;
  transition: color 0.3s ease;
  margin: 0 !important;
  padding: 0 !important;
  
  /* Single line, no wrapping */
  white-space: nowrap !important;
  flex-shrink: 0;
  flex-grow: 0;
  
  /* Push to far right */
  margin-left: auto !important;
  text-align: right !important;
  order: 2;
}

.footer-bottom a:hover {
  color: #4158d0;
  text-decoration: underline;
}

/* ============================================
   SOCIAL ICONS - WHITE COLOR
   ============================================ */

.social-icons {
  display: flex;
  gap: clamp(8px, 1.5vw, 12px);
  margin-top: clamp(10px, 2vw, 20px);
  flex-wrap: wrap;
}

.social-icons a {
  width: clamp(34px, 5vw, 40px);
  height: clamp(34px, 5vw, 40px);
  border-radius: clamp(6px, 1vw, 8px);
  background-color: #262626;
  
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.social-icons a:hover {
  background-color: #f97316;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* WHITE ICONS - Font Awesome */
.social-icons a i,
.social-icons a .fa-brands {
  color: #ffffff !important;
  font-size: clamp(16px, 2.5vw, 20px);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* WHITE ICONS - SVG/Images */
.social-icons img {
  width: clamp(16px, 2.5vw, 20px);
  height: clamp(16px, 2.5vw, 20px);
  filter: brightness(0) invert(1);
}

/* ============================================
   FOOTER WRAPPER - COLUMNS
   ============================================ */

.footer-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 4vw, 40px);
  max-width: 1200px;
  margin: 0 auto clamp(20px, 4vw, 40px);
  width: 100%;
}

@media (min-width: 640px) {
  .footer-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Footer info section */
.footer-col.info {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vw, 20px);
}

/* ============================================
   DESKTOP (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  .footer-bottom {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 3rem;
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .footer-bottom p {
    font-size: 13px !important;
  }

  .footer-bottom a {
    font-size: 13px !important;
  }
}

/* ============================================
   TABLET (768px - 1023px)
   ============================================ */

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-bottom {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .footer-bottom p,
  .footer-bottom a {
    font-size: 12px !important;
    white-space: nowrap !important;
  }
}

/* ============================================
   MOBILE (below 768px)
   ============================================ */

@media (max-width: 767px) {
  .footer-bottom {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: 1.5rem;
    padding: 1.5rem;
    justify-content: center !important;
    align-items: center !important;
  }

  .footer-bottom p {
    font-size: 11px !important;
    max-width: 100%;
    text-align: center !important;
    order: 1;
  }

  .footer-bottom a {
    font-size: 11px !important;
    text-align: center !important;
    order: 2;
    margin-left: 0 !important;
  }

  .social-icons a {
    width: 34px !important;
    height: 34px !important;
  }

  .social-icons a i {
    font-size: 16px !important;
  }
}

/* Very small screens */
@media (max-width: 400px) {
  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem;
  }

  .footer-bottom p {
    max-width: 100%;
    order: 1;
  }

  .footer-bottom a {
    order: 2;
    margin-left: 0 !important;
  }
}

/* ============================================
   FORCE OVERRIDE CONFLICTING STYLES
   ============================================ */

.techup-footer .footer-bottom,
footer .footer-bottom,
.footer-wrapper + .footer-bottom {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

/* Prevent grid layout */
.footer-bottom {
  display: flex !important;
  grid-template-columns: unset !important;
}

@media (max-width: 767px) {
  .techup-footer .footer-bottom,
  footer .footer-bottom,
  .footer-wrapper + .footer-bottom {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
}

/* Remove default margins/padding */
.footer-bottom * {
  box-sizing: border-box;
}

.footer-bottom > * {
  display: inline-flex !important;
  align-items: center !important;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.social-icons a:focus {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

.footer-bottom a:focus {
  outline: 2px solid #5b7fff;
  outline-offset: 2px;
}

/* ============================================
   ADDITIONAL FOOTER STYLES
   ============================================ */

.techup-footer {
  background-color: #f5f5f5;
  padding: clamp(30px, 6vw, 60px) 5% clamp(15px, 3vw, 30px);
  font-family: var(--font-sans);
  color: #333;
  margin-top: auto;
  width: 100%;
}

.footer-logo {
  width: clamp(110px, 15vw, 150px);
  max-width: 100%;
  height: auto;
  margin-bottom: clamp(10px, 2vw, 15px);
}

.footer-col h4 {
  font-size: clamp(11px, 1.5vw, 13px);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 clamp(10px, 2vw, 20px) 0;
  color: #000;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: clamp(8px, 1.5vw, 12px);
}

.footer-col ul li a {
  color: #333;
  text-decoration: none;
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  /* color: var(--orange-accent, #f97316); */
  transform: translateX(4px);
}

.footer-col.info p {
  color: #333;
  font-size: clamp(12px, 1.5vw, 14px);
  line-height: 1.8;
  margin: 0;
}

/* Mobile: footer content center align */
@media (max-width: 639px) {
  .footer-col,
  .footer-col.info {
    text-align: center !important;
    align-items: center !important;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-col ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }
}

.footer-partner {
  width: 180px;
  margin-top: 12px;
}