/* 🌅 Inner Banner Section */
.inner-banner-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

/* 🏞️ Background Image Container */
.inner-baner-container {
  position: relative;
  width: 100%;
  height: 420px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 4px solid #00a651;
}

/* Remove overlay for crystal-clear image */
.inner-baner-container::before {
  content: none;
}

/* 🎯 Banner Text Container */
.inner-banner-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  z-index: 2;
  padding: 0 20px;
  animation: fadeInUp 1.2s ease-out;
}

/* ✨ Main Title Styling */
.inner-title {
  font-size: 3.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  background: linear-gradient(90deg, #ffffff, #d1fff0, #a8ffe0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  font-family: "Poppins", "Montserrat", sans-serif;
  position: relative;
  transition: all 0.4s ease;
}

/* Subtle glowing animation on hover */
.inner-title:hover {
  transform: scale(1.03);
  text-shadow: 0 0 25px rgba(0, 255, 170, 0.6);
}

/* 🌈 Stylish underline effect */
.inner-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, #00a651, #00e6cc, #0099cc);
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 166, 81, 0.5);
  animation: lineGlow 2.5s infinite alternate;
}

/* ✨ Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineGlow {
  from {
    box-shadow: 0 0 8px rgba(0, 166, 81, 0.4);
  }
  to {
    box-shadow: 0 0 18px rgba(0, 230, 204, 0.8);
  }
}

/* 📱 Responsive Adjustments */
@media (max-width: 992px) {
  .inner-baner-container {
    height: 340px;
  }

  .inner-title {
    font-size: 2.4rem;
    letter-spacing: 1.2px;
  }
}

@media (max-width: 600px) {
  .inner-baner-container {
    height: 260px;
  }

  .inner-title {
    font-size: 1.9rem;
    letter-spacing: 1px;
  }

  .inner-title::after {
    width: 70px;
    height: 3px;
  }
}

































































/* =======================
   Home About Us Section
   ======================= */
.home-about-us {
  position: relative;
  padding: 70px 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 255, 128, 0.08), rgba(0, 128, 255, 0.1));
  font-family: 'Poppins', sans-serif;
  color: #fff;
  overflow: hidden;
  margin-bottom: 30px;
}

/* Glowing animated background */
.home-about-us::before,
.home-about-us::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  width: 300px;
  height: 300px;
  filter: blur(90px);
  animation: floatGlow 8s infinite alternate;
  z-index: 0;
}
.home-about-us::before {
  top: -120px; left: -80px;
  background: rgba(0, 255, 128, 0.5);
}
.home-about-us::after {
  bottom: -120px; right: -100px;
  background: rgba(0, 128, 255, 0.5);
  animation-delay: 3s;
}
@keyframes floatGlow {
  from { transform: translateY(0) translateX(0); }
  to { transform: translateY(-40px) translateX(40px); }
}

/* Container: image left, paragraph right */
.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
  position: relative;
}

/* Image */
.about-image {
  flex: 1 1 45%;
  max-width: 45%;
}
.about-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s, box-shadow 0.4s;
}
.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 255, 128, 0.4);
}

/* Paragraph Box */
.about-text-box {
  flex: 1 1 50%;
  max-width: 50%;
  padding: 25px 30px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(0, 255, 128, 0.85), rgba(0, 128, 255, 0.85));
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 255, 128, 0.2);
  animation: fadeInRight 1.2s ease-out;
  transition: all 0.4s ease-in-out;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.about-text-box p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  margin: 0;
}

/* Hover Effect */
.about-text-box:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 128, 255, 0.4);
  background: linear-gradient(135deg, rgba(0, 128, 255, 0.9), rgba(0, 255, 128, 0.9));
}

/* Animated Glow Border */
.about-text-box::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00ff80, #0080ff, #00ff80);
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  background-size: 300% 300%;
  animation: gradientMove 6s ease infinite;
}

.about-text-box:hover::before {
  opacity: 1;
}

/* Gradient Animation */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .about-text-box {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 20px;
    font-size: 1rem;
  }
}


/* Qualification cards below */
.regarding-us {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 20px;
}
.about-desc-text{
  color: black;
  font-size: 40px;
  font-weight: bold;
}
.qulifaction-content {
  flex: 1 1 45%;
  min-width: 220px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.qulifaction-content:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 255, 128, 0.3);
}

/* Icons */
.qualifaction-icon i {
  font-size: 40px;
  background: linear-gradient(135deg, #00ff80, #0080ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bounceIcon 2s infinite;
}
@keyframes bounceIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Titles and details */
.qualifaction-title h5 {
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0 5px;
  color: #ffffff;
}
.qulifaction-detail p {
  font-size: 15px;
  color: #dffaf1;
  line-height: 1.6;
}

/* Paragraph fade-in animation */
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .about-container {
    flex-direction: column;
  }
  .about-image, .about-text-box {
    max-width: 100%;
    flex: 1 1 100%;
    margin-bottom: 20px;
  }
  .regarding-us {
    flex-direction: column;
  }
  .qulifaction-content {
    min-width: 100%;
  }
}
@media (max-width: 480px) {
  .home-about-us { padding: 40px 15px; }
  .about-text-box { padding: 20px; }
  .about-text-box p { font-size: 1rem; line-height: 1.5; }
  .qualifaction-icon i { font-size: 35px; }
  .qulifaction-detail p { font-size: 14px; }


}



















































































































.home-fact-section {
  position: relative;
  background: linear-gradient(135deg, #004b6b, #00bfa5, #00e676);
  color: #fff;
  padding: 100px 0;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  width: 1355px;
  margin-top: 50px;
  margin-left: -30px;
  
}

/* Subtle animated overlay shimmer */
.home-fact-section .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(0, 255, 136, 0.15),
    transparent 70%
  );
  z-index: 0;
  animation: overlayPulse 8s infinite ease-in-out alternate;
}
@keyframes overlayPulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

/* ============================================
   FACT RIGHT CIRCLE BOX
   ============================================ */
.fact-right-inner-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 10px 0;
  z-index: 1;
}

.fact-inner-box {
  position: relative;
  width: 380px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #00e676, #00bfa5, #006d77);
  box-shadow: 0 0 40px rgba(0, 255, 128, 0.35);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 25px;

  animation: floatCircle 6s ease-in-out infinite;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}
.fact-inner-box:hover {
  transform: scale(1.05);
  box-shadow: 0 0 55px rgba(0, 255, 128, 0.6);
}

@keyframes floatCircle {
  0% {
    transform: translateY(0px);
    box-shadow: 0 0 40px rgba(0, 255, 128, 0.35);
  }
  50% {
    transform: translateY(-8px);
    box-shadow: 0 0 55px rgba(0, 255, 128, 0.6);
  }
  100% {
    transform: translateY(0px);
    box-shadow: 0 0 40px rgba(0, 255, 128, 0.35);
  }
}

/* ============================================
   INNER ELEMENTS (Text + Image)
   ============================================ */
.fact-inner-box figure.fact-image,
.fact-inner-box .fact-content {
  width: 300px;
  height: 85px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 1.2s ease forwards;
}
.fact-inner-box .fact-content:nth-child(1) {
  animation-delay: 0.2s;
}
.fact-inner-box figure.fact-image:nth-child(2) {
  animation-delay: 0.4s;
}
.fact-inner-box .fact-content:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image */
.fact-inner-box figure.fact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.fact-inner-box figure.fact-image img:hover {
  transform: scale(1.08);
}

/* Text block contrast */
.fact-inner-box .fact-content {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ============================================
   LEFT TEXT AREA
   ============================================ */
.home-fact-section .fact-section-head {
  position: relative;
  z-index: 1;
  text-align: left;
  padding-right: 20px;
}
.home-fact-section .fact-section-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #00e676, #00bfa5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 4s infinite linear;
}
@keyframes shimmerText {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

/* ============================================
   RESPONSIVE FIXES
   ============================================ */

/* --- Tablet (up to 992px) --- */
@media (max-width: 992px) {
  .home-fact-section {
    width: 100%;
    margin-left: 0;
    padding: 80px 20px;
  }
  .fact-inner-box {
    width: 320px;
  }
  .fact-inner-box figure.fact-image,
  .fact-inner-box .fact-content {
    width: 250px;
    height: 75px;
  }
}

/* --- Small Tablets / Large Phones (up to 768px) --- */
@media (max-width: 768px) {
  .home-fact-section {
    padding: 70px 20px;
  }
  .fact-right-inner-wrap {
    flex-direction: column;
    margin-top: 40px;
  }
  .fact-inner-box {
    width: 260px;
  }
  .fact-inner-box figure.fact-image,
  .fact-inner-box .fact-content {
    width: 220px;
    height: 70px;
    font-size: 14px;
  }
  .home-fact-section .fact-section-title {
    font-size: 1.8rem;
  }
}

/* --- Phones (up to 576px) --- */
@media (max-width: 576px) {
  .home-fact-section {
    
  }
  .home-fact-section .fact-section-head {
    text-align: center;
    padding: 0;
  }
  .home-fact-section .fact-section-title {
    font-size: 1.6rem;
  }
  .home-fact-section .fact-section-info {
    font-size: 14px;
  }
  .fact-right-inner-wrap {
    margin-top: 40px;
  }
  .fact-inner-box {
    width: 220px;
    gap: 15px;
    padding: 15px;
  }
  .fact-inner-box figure.fact-image,
  .fact-inner-box .fact-content {
    width: 380px;
    height: 60px;
    font-size: 13px;
  }
}

/* --- Small Phones (below 400px) --- */
@media (max-width: 400px) {
  .fact-inner-box {
    width: 190px;
  }
  .fact-inner-box figure.fact-image,
  .fact-inner-box .fact-content {
    width: 160px;
    height: 55px;
  }
}



















































































.nextgen-facilities-section {
  margin-top: 30px;
  margin-bottom: -60px;
  background: #f9fafc;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 20px;
  margin-top: -140px;
}

/* Container */
.nextgen-facilities-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header */
.nextgen-facilities-header {
  text-align: center;
  margin-bottom: 60px;
}

.nextgen-facilities-header h2 {
  font-size: 2.8rem;
  color: #000;
  font-weight: 700;
  letter-spacing: 1px;
}

.nextgen-facilities-divider {
  width: 90px;
  height: 4px;
  margin: 14px auto;
  background: linear-gradient(90deg, #00b4d8, #00ff9d);
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
}

/* Grid Layout */
.nextgen-facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-items: center;
}

/* Card */
.nextgen-facilities-card {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.5s ease;
  cursor: pointer;

  /* ✅ Center icon + text perfectly */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Animated Gradient Dotted Border */
.nextgen-facilities-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px dotted transparent;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, #00c853, #007bff, #00c853);
  background-size: 400% 400%;
  animation: borderFlow 6s linear infinite;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: 2;
  pointer-events: none;
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Overlay */
.nextgen-facilities-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  transition: background 0.4s ease;
}

.nextgen-facilities-card:hover::before {
  background: rgba(0, 0, 0, 0.55);
}

/* Inner Content */
.nextgen-facilities-card i,
.nextgen-facilities-card h4,
.nextgen-facilities-card p {
  position: relative;
  z-index: 3;
  transition: all 0.4s ease;
}

/* Icon */
.nextgen-facilities-card i {
  font-size: 42px;
  color: #00ffcc;
  margin-bottom: 10px;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.6);
}

/* Title */
.nextgen-facilities-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

/* Subtitle */
.nextgen-facilities-sub {
  font-size: 1rem;
  color: #e0ffe0;
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Hover Effects */
.nextgen-facilities-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 200, 83, 0.35);
}

.nextgen-facilities-card:hover i {
  color: #00b4d8;
  transform: scale(1.15);
}

/* Background Images */
.nextgen-facilities-card:nth-child(1) {
  background-image: url("/NaseebKhan/assests/class\ room.png");
}
.nextgen-facilities-card:nth-child(2) {
  background-image: url("/NaseebKhan/assests/Computer\ Lab.png");
}
.nextgen-facilities-card:nth-child(3) {
  background-image: url("/NaseebKhan/assests/Science.png");
}
.nextgen-facilities-card:nth-child(4) {
  background-image: url("/NaseebKhan/assests/Library.png");
}
.nextgen-facilities-card:nth-child(5) {
  background-image: url("/NaseebKhan/Teacher_Image/ground.png");
}
.nextgen-facilities-card:nth-child(6) {
  background-image: url("/NaseebKhan/assests/camera.png");
}
.nextgen-facilities-card:nth-child(7) {
  background-image: url("/NaseebKhan/Teacher_Image/groundd.png");
}
.nextgen-facilities-card:nth-child(8) {
  background-image: url("/NaseebKhan/assests/Dorimatory.png");
}

/* ✅ Responsive Design - smooth animation + layout on all devices */
@media (max-width: 1200px) {
  .nextgen-facilities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .nextgen-facilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .nextgen-facilities-card {
    height: 260px;
  }
}

@media (max-width: 576px) {
  .nextgen-facilities-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .nextgen-facilities-card {
    height: 230px;
    animation: borderFlow 8s linear infinite; /* keeps border moving smoothly on mobile */
  }
  .nextgen-facilities-card i {
    font-size: 36px;
  }
  .nextgen-facilities-title {
    font-size: 1.2rem;
  }
  .nextgen-facilities-sub {
    font-size: 0.95rem;
  }
}




















































/* =========================================================
   RESET FRAMEWORK CONFLICTS
   ========================================================= */
/* =========================================================
   SAFA GALLERY SECTION - NEXT GENERATION DESIGN
   ========================================================= */
.safa-gallery-section {
  background: linear-gradient(135deg, #e0f7fa, #f1f8e9, #ffffff);
  padding: 100px 0;
  font-family: "Poppins", sans-serif;
  position: relative;
  overflow: hidden;
}

.safa-gallery-container {
  max-width: 1300px;
  margin: auto;
  position: relative;
  z-index: 1;
}

/* ------------------ Header ------------------ */
.safa-gallery-header {
  text-align: center;
  margin-bottom: 60px;
}

.safa-title-divider {
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, #00bfa5, #00e676);
  border-radius: 8px;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px rgba(0, 191, 165, 0.4);
}

.safa-gallery-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #004b6b, #00bfa5, #00e676);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: capitalize;
  letter-spacing: 1px;
}

/* ------------------ Grid Layout ------------------ */
.safa-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding: 0 40px;
}

.safa-gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: #fff;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.safa-gallery-item:hover {
  transform: translateY(-10px) scale(1.03);
}

/* ------------------ Image + Overlay ------------------ */
.safa-gallery-img {
  position: relative;
  margin: 0;
}

.safa-gallery-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.5s ease;
}

.safa-gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* ------------------ Caption Overlay ------------------ */
.safa-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 191, 165, 0.1) 0%, rgba(0, 0, 0, 0.75) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 25px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.5s ease;
}

.safa-gallery-item:hover .safa-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Caption text */
.safa-caption h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #00e676, #00bfa5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.safa-caption p {
  font-size: 1rem;
  max-width: 90%;
  line-height: 1.6;
  opacity: 0.95;
}

/* ------------------ Responsive Design ------------------ */
@media (max-width: 992px) {
  .safa-gallery-grid {
    grid-template-columns: 1fr;
    padding: 0 25px;
  }

  .safa-gallery-img img {
    height: 350px;
  }

  .safa-caption h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 600px) {
  .safa-gallery-section {
    padding: 70px 0;
  }

  .safa-gallery-title {
    font-size: 2rem;
  }

  .safa-gallery-img img {
    height: 280px;
  }

  .safa-caption {
    padding: 20px;
  }
}


































/* ================================
   🌿 Next-Generation Hostel Docs
   ================================ */
.safa-hostel-docs {
  background: linear-gradient(135deg, #e0f7fa, #f1f8e9, #ffffff);
  padding: 30px 0;
  position: relative;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
  margin-top: -90px;
  margin-bottom: -60px;
}

.safa-hostel-docs::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle at 30% 20%, rgba(0, 230, 118, 0.12), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(0, 191, 165, 0.12), transparent 70%);
  animation: moveGradient 20s linear infinite;
  filter: blur(120px);
  z-index: 0;
}

@keyframes moveGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---------------- Header ---------------- */
.safa-docs-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.title-divider {
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, #00bfa5, #00e676);
  border-radius: 10px;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px rgba(0, 191, 165, 0.4);
}

.safa-docs-title {
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, #004b6b, #00bfa5, #00e676);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: capitalize;
  letter-spacing: 1px;
}

/* ---------------- Grid Layout ---------------- */
.safa-docs-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  z-index: 2;
  position: relative;
}

/* ---------------- Card ---------------- */
.safa-doc-card {
  position: relative;
  width: 340px;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  backdrop-filter: blur(15px) saturate(180%);
  box-shadow: 0 15px 45px rgba(0, 153, 204, 0.15);
  text-align: center;
  padding: 40px 25px;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.safa-doc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, #00a651, #0099cc, #00ffcc, #00a651);
  background-size: 400% 400%;
  animation: borderMove 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
}

@keyframes borderMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Background image inside card */
.safa-doc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
}

/* Icon and Content */
.safa-doc-icon {
  font-size: 2.6rem;
  color: #00a651;
  background: linear-gradient(135deg, #00a651, #0099cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  z-index: 2;
  position: relative;
}

.safa-doc-card h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #004b6b;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.safa-doc-card p {
  position: relative;
  z-index: 2;
}

.safa-doc-card a {
  color: #009688;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.safa-doc-card a:hover {
  color: #00bfa5;
}

/* Hover Effect */
.safa-doc-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 70px rgba(0, 153, 204, 0.25);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 992px) {
  .safa-docs-grid {
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .safa-doc-card {
    width: 90%;
  }
}











