* {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #0f0f0f;
  color: #fff;
}


/* Hero Section */
.student-hero-work {
  margin:40px auto;
  background: url('image/student-hero-bg.jpg') no-repeat center center/cover;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.student-hero-work::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  backdrop-filter: blur(4px);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.3);
}

.gradient-text {
  background: linear-gradient(90deg, #ff416c, #ff4b2b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-glow {
  color: #fcd34d;
  text-shadow: 0 0 10px #facc15, 0 0 20px #facc15;
}

.hero-subheading {
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

@media (max-width: 576px) {
  .display-4 {
    font-size: 1.2rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    margin-bottom: 1rem;
  }
  .student-hero-work {
  margin:80px auto;
  
}
}


/* Title Section */
.student-section-title {
  color: #ffc107;
  text-shadow: 0 0 20px #ffc107, 0 0 30px #fff;
  text-align: center;
  font-size: 2.8rem;

  position: relative;
}

.student-section-title::after {
  content: '';
  display: block;
  width: 90px;
  height: 4px;
  background: #ffc107;
  margin: 5px auto 10px;
  border-radius: 20px;
  box-shadow: 0 0 12px #ffc107;
}

/* Section Wrapper */
.student-category-section {
  margin-bottom:40px;
  padding: 0 10px;
}

/* Sub Section Title */
.student-category-title {
  text-align: left;
  font-size: 2.3rem;
  margin-bottom: 20px;
  color: #ffca28;
  text-shadow: 0 0 15px #ffca28;
  position: relative;
}


/* Image Grid Updated */
.student-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  justify-items: center;
  padding: 0 5px;
}

/* ===== Image Style ===== */
.student-image-grid video {
  width:100%;
  height: 200px;
  border-radius: 20px;
  padding: 8px;
  border: 1px solid #ffc107;
  box-shadow: 0 4px 20px rgba(255, 193, 7, 0.2);
  filter: grayscale(30%) brightness(0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin-bottom: 40px;
}

.student-image-grid img {
  width:200px;
  max-width:220px;
  height:200px;
  border-radius: 20px;
  padding: 8px;
  border: 1px solid #ffc107;
  box-shadow: 0 4px 20px rgba(255, 193, 7, 0.2);
  filter: grayscale(30%) brightness(0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin-bottom: 40px;
}

.student-image-grid img:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 25px rgba(255, 193, 7, 0.5);
  filter: grayscale(0%) brightness(1.1);
}

/* ===== Enlarged Modal View ===== */
.enlarged-image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: fadeIn 0.3s ease-in-out;
}

.enlarged-image-modal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* ===== Close Button ===== */
.close-btn {
  color: #fff;
  font-size: 38px;
  position: absolute;
  top: 30px;
  right: 50px;
  cursor: pointer;
  background: #ffc107;
  border-radius: 500px;
  padding: 8px 15px;
  transition: transform 0.2s;
}

.close-btn:hover {
  transform: rotate(90deg);
}


@media (max-width: 480px) {

  .student-section
  {
margin-top: -60px;
  }
   .student-section-title {
    font-size: 1.5rem;
    margin-top: 10px; /* kam margin */
  }

  .student-category-title {
    font-size: 1.4rem;
    margin: 10px 0; /* upar neeche dono kaam */
  }


  .student-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* tighter layout */
    gap: 15px; /* kam gap between images */
    padding: 0 5px;
  }

  .student-image-grid img {
    width: 100%;
    max-width: 100%; /* no unnecessary max limit */
    border-radius: 15px;
  }

  .student-category-section {
    margin-bottom: 20px; /* har section ke beech minimal space */
  }
}