/* --- Student Life Page Specific Styles --- */

/* Simplified Background */
body {
  background: #f8f9fa;
  position: relative;
}

[data-theme="dark"] body {
  background: #121212;
}

/* Content wrapper */
.content-wrapper {
  background: #ffffff;
  min-height: 100vh;
}

[data-theme="dark"] .content-wrapper {
  background: #1e1e1e;
}

/* Section backgrounds */
.section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 1200px;
}

[data-theme="dark"] .section {
  background: rgba(45, 45, 45, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Section heading */
.section-heading {
  text-align: center; 
  color: var(--color3); 
  margin-bottom: 2rem; 
  font-size: 2.2rem; 
  position: relative;
  padding-bottom: 1rem;
}

.section-heading:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--color1), var(--secondary));
  border-radius: 2px;
}

/* Features */
.feature { 
  padding: 2rem 1.5rem; 
  border-radius: 12px; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.06); 
  text-align: center; 
  transition: all 0.3s ease; 
  border-top: 4px solid var(--color1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

[data-theme="dark"] .feature {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 8px 20px rgba(0,0,0,0.1); 
}

/* Gallery styles */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 220px;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.8rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.caption-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.caption-desc {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Animation styles */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up {
  transform: translateY(30px);
}

.fade-in-left {
  transform: translateX(-30px);
}

.fade-in-right {
  transform: translateX(30px);
}

.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  justify-content: center;
  align-items: center;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
}

.modal-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #bbb;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .section-heading {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) { 
  .section-heading {
    font-size: 1.6rem;
  }
  
  .section {
    padding: 1.5rem;
  }
}