body {
  margin: 0;
  padding: 0;
}

.nextgen-footer {
  position: relative;
  background: radial-gradient(circle at 30% 20%, #0f0f0f, #3d3d3d, #a29bfe);
  color: #fff;
  overflow: hidden;
  width: 100%;
  padding-top: 60px;
  font-family: 'Poppins', sans-serif;
}

/* Animated overlay */
.ng-footer-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.07), transparent 70%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05), transparent 70%);
  animation: ngFooterGlow 12s infinite alternate ease-in-out;
  z-index: 0;
}

@keyframes ngFooterGlow {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0.8; transform: scale(1.05); }
}

/* Layout */
.ng-top-footer {
  position: relative;
  z-index: 1;
}

.ng-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 25px;
}

.ng-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

/* Columns */
.ng-col {
  flex: 1 1 250px;
  min-width: 230px;
}

/* Footer Logo */
.ng-footer-logo img {
  width: 150px;
  transition: transform 0.4s ease;
}
.ng-footer-logo img:hover {
  transform: scale(1.05);
}

/* Text Widget */
.ng-textwidget {
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}

/* Social Icons */
.ng-footer-social-links ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin-top: 20px;
  padding: 0;
}
.ng-footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  font-size: 16px;
  transition: all 0.4s ease;
}
.ng-footer-social-links a:hover {
  background: #00c853;
  transform: translateY(-5px) rotate(8deg);
  box-shadow: 0 0 15px rgba(0,200,83,0.5);
}

/* Widget Titles */
.ng-widget-title {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
  position: relative;
}
.ng-widget-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #00e676;
  margin-top: 8px;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.ng-widget-title:hover::after {
  width: 80px;
}

/* Links */
.ng-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ng-widget ul li {
  margin-bottom: 10px;
}
.ng-widget ul li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}
.ng-widget ul li a:hover {
  color: #00e676;
  padding-left: 5px;
}

/* School Hours */
.school-time span {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #00e676;
}
.school-time p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* Bottom Bar */
.nextgen-footer::after {
  content: '© 2025 Safa Public School | All Rights Reserved';
  display: block;
  text-align: center;
  padding: 25px 15px;
  margin-top: 50px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(4px);
}

/* ===============================
   Responsive Fixes (Mobile & Tablet)
   =============================== */

/* Tablet screens */
@media (max-width: 1024px) {
  .nextgen-footer {
    width: 100%;
    margin: 0;
    padding-top: 50px;
  }
  .ng-container {
    padding: 0 20px;
  }
  .ng-row {
    justify-content: center;
  }
}

/* Mobile screens */
@media (max-width: 768px) {
  .nextgen-footer {
    width: 100%;
    margin: 0;
    padding: 40px 0;
  }

  .ng-container {
    padding: 0 15px;
  }

  .ng-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .ng-col {
    flex: 1 1 100%;
    min-width: unset;
  }

  .ng-widget-title::after {
    margin: 8px auto 0;
  }

  .ng-footer-social-links ul {
    justify-content: center;
  }

  .ng-footer-logo img {
    width: 120px;
  }

  .ng-textwidget {
    font-size: 13px;
    line-height: 1.6;
    padding: 0 10px;
  }

  .school-time span {
    font-size: 14px;
  }

  .nextgen-footer::after {
    font-size: 12px;
    margin-top: 30px;
  }
}

/* Extra small screens (under 480px) */
@media (max-width: 480px) {
  .nextgen-footer {
    padding: 35px 0;
  }

  .ng-footer-logo img {
    width: 100px;
  }

  .ng-footer-social-links a {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .ng-widget-title {
    font-size: 16px;
  }

  .ng-widget ul li a {
    font-size: 13px;
  }
}
