/* === Footer Styles (Mobile First) === */
.footerimage {
  background-color: var(--dark-bg); /* Use variable from :root */
  color: var(--light-text); /* Use variable from :root */
  padding: 40px 0 20px;
  position: relative;
  width: 100%;
  margin-top: auto; /* Push to bottom when possible */
  margin-bottom: 62px; /* Account for mobile footer nav */
}

/* Container styles */
.footerimage .container-fluid {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Row and column layout */
.footerimage .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.footerimage .col-lg-4,
.footerimage .col-lg-2 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-bottom: 25px;
  text-align: center;
}

/* Header styling */
.footerheaderone {
  color: var(--light-text); /* Use variable from :root */
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
  position: relative;
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.footerheaderone::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-color); /* Use variable from :root */
  transition: var(--transition);
}

/* Footer description styling */
.footerdescone {
  color: var(--light-text); /* Use variable from :root */
  opacity: 0.8;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center;
}

/* Footer links styling */
.footeritemone {
  margin-bottom: 10px;
  text-align: center;
}

.footeritemone a {
  color: var(--light-text); /* Use variable from :root */
  opacity: 0.8;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  position: relative;
  padding-left: 0;
}

.footeritemone a:hover {
  color: var(--secondary-color); /* Use variable from :root */
  opacity: 1;
  padding-left: 5px;
}

/* Social links styling */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: center;
}

.socialicon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light-text); /* Use variable from :root */
  font-size: 16px;
  transition: var(--transition);
}

.socialicon:hover {
  background-color: var(--secondary-color); /* Use variable from :root */
  color: var(--dark-bg); /* Use variable from :root */
  transform: translateY(-3px);
}

/* Copyright section */
.copyright {
  text-align: center;
  padding-top: 25px;
  margin-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.copyright p {
  opacity: 0.7;
  color: var(--light-text); /* Use variable from :root */
}

.text-theme {
  color: var(--secondary-color); /* Use variable from :root */
  text-decoration: none;
  transition: var(--transition);
}

.text-theme:hover {
  color: var(--accent-blue); /* Use variable from :root */
  text-decoration: underline;
}

/* === Small Tablets === */
@media (min-width: 576px) {
  .footerimage {
    padding: 50px 0 25px;
  }
  
  .footerheaderone {
    font-size: 17px;
    margin-bottom: 20px;
  }
  
  .social-links {
    gap: 14px;
  }
  
  .socialicon {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
  
  .copyright {
    padding-top: 28px;
    margin-top: 28px;
    font-size: 14px;
  }
  
  .navbar {
    padding: 12px 20px;
  }
  
  .logo-image {
    height: 45px;
  }
  
  .mobile-menu {
    width: 60%;
  }
}

/* === Medium Tablets === */
@media (min-width: 768px) {
  .footerimage {
    padding: 60px 0 30px;
  }
  
  /* Maintain mobile center-aligned styling for tablets */
  .footerimage .col-lg-4,
  .footerimage .col-lg-2 {
    text-align: center;
  }
  
  .footerheaderone {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .footerheaderone::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footerdescone {
    text-align: center;
  }
  
  .footeritemone {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .socialicon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .navbar {
    padding: 15px 30px;
  }
  
  .logo-image {
    height: 50px;
  }
  
  .mobile-menu {
    width: 50%;
  }
}

/* === Large Tablets/Small Desktops === */
@media (min-width: 992px) {
  .footerimage {
    padding: 70px 0 35px;
    margin-bottom: 0; /* Remove extra margin since mobile footer nav is hidden */
  }
  
  .footerimage .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .footerimage .col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
  
  /* Continue with center alignment at larger sizes */
  .footerimage .col-lg-4,
  .footerimage .col-lg-2 {
    text-align: center;
  }
  
  .footerheaderone {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .footerheaderone::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footerdescone {
    text-align: center;
  }
  
  .footeritemone {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footeritemone a:hover {
    padding-left: 0;
    opacity: 1;
  }
}

/* === Desktops and Larger === */
@media (min-width: 1200px) {
  .footerimage {
    padding: 80px 0 40px;
  }
  
  .footerimage .container-fluid {
    padding: 0 50px;
  }
  
  .social-links {
    gap: 15px;
  }
}