/* =========================================================
   FOOTER – CORPORATE & CONSISTENT
   ========================================================= */

/* Main content container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Ensure all sections respect container */
section {
  width: 100%;
}

/* Section inner containers */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 55px;
}

.footer {
  background: linear-gradient(180deg, #212529 0%, #1a1e21 100%);
  color: #adb5bd;
  position: relative;
  padding: 20px 0 6px;
  font-size: 0.95rem;
}

/* Top Accent Line */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* Headings */
.footer h5 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 18px;
  position: relative;
}

.footer h5::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--primary-color);
}

/* Text */
.footer p {
  line-height: 1.6;
  margin-bottom: 2px;
}

/* Badge */
.footer-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 20px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Social Icons */
.footer-social {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

/* Contact */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-contact i {
  color: var(--primary-color);
  margin-right: 8px;
}

/* Newsletter */
.footer-newsletter {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.footer-newsletter input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.9rem;
}

.footer-newsletter input::placeholder {
  color: #adb5bd;
}

.footer-newsletter button {
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-newsletter button:hover {
  opacity: 0.9;
}

/* Divider */
.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 16px 0 10px;
}

/* Bottom */
.footer-bottom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #adb5bd;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--primary-color);
}

.footer-policy {
  display: flex;
  gap: 15px;
}

/* Back to Top */
.footer-back-to-top {
  position: absolute;
  top: 18px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-back-to-top:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    text-align: center;
    margin: 12px 0 8px !important;
  }

  .footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .footer-policy {
    justify-content: center;
  }

  .footer-back-to-top {
    right: 50%;
    transform: translateX(50%);
  }

  .footer-newsletter {
    flex-direction: column;
  }
}
/* =========================================
   FOOTER – MOBILE COMPACT RECOMPOSITION
   ========================================= */
@media (max-width: 768px) {
  .footer {
    padding: 35px 0 20px;
    text-align: center;
  }

  .footer .row > div {
    margin-bottom: 22px;
  }

  /* Headings tighter */
  .footer h5 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .footer h5::after {
    width: 28px;
    bottom: -5px;
  }

  /* College description tighter */
  .footer p {
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  /* Badge center & compact */
  .footer-badge {
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 0.7rem;
    display: inline-block;
  }

  /* Social icons – tighter */
  .footer-social {
    justify-content: center;
    margin-top: 12px;
    gap: 10px;
  }

  .footer-social a {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  /* Quick links – compact list */
  .footer-links li {
    margin-bottom: 6px;
  }

  .footer-links a {
    font-size: 0.9rem;
  }

  /* Contact info tighter */
  .footer-contact li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  /* Newsletter – stacked & compact */
  .footer-newsletter {
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
  }

  .footer-newsletter input {
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .footer-newsletter button {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  /* Divider spacing */
  .footer hr {
    margin: 22px 0 14px;
  }

  /* Bottom text */
  .footer-bottom {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0 10px;
  }
}
/* =========================================
   FOOTER – MOBILE CENTERED 2-COLUMN FIX
   ========================================= */
@media (max-width: 768px) {
  .footer .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* key change */
    gap: 12px; /* control spacing */
  }

  /* College info full width */
  .footer .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Quick Links & Contact Info – controlled width */
  .footer .col-lg-2,
  .footer .col-lg-3 {
    flex: 0 0 45%;
    max-width: 45%;
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Newsletter full width */
  .footer .col-lg-3:last-child {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 12px;
  }

  /* Ensure text aligns left inside blocks */
  .footer .col-lg-2,
  .footer .col-lg-3 {
    text-align: left;
  }

  .footer .col-lg-2 h5,
  .footer .col-lg-3 h5 {
    text-align: left;
  }

  .footer .col-lg-2 h5::after,
  .footer .col-lg-3 h5::after {
    left: 0;
    transform: none;
  }
}

/* =========================================
   FOOTER CREDIT LINK – HIGHLIGHT (NO HTML CHANGE)
   ========================================= */

.footer-bottom a {
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  transition: all 0.3s ease;
}

/* Animated underline on hover */
.footer-bottom a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer-bottom a:hover::after {
  transform: scaleX(1);
}

