.campus-section {
  position: relative;
  background-color: var(--lpu-black);
  background-image: linear-gradient(rgba(17, 17, 17, 0.85), rgba(17, 17, 17, 0.95)), url('https://images.unsplash.com/photo-1620706857370-e1b9770e8bb1?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--lpu-white);
  padding: 6rem 0;
}

/* iOS Safari doesn't support background-attachment: fixed properly */
@supports (-webkit-touch-callout: none) {
  .campus-section {
    background-attachment: scroll;
  }
}

.campus-section .section-badge {
  display: inline-block;
  background: rgba(232, 185, 25, 0.1);
  color: var(--lpu-orange);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(232, 185, 25, 0.3);
}

.campus-section .section-title {
  color: var(--lpu-white);
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.campus-section .section-subtitle.campus-sub {
  color: #cccccc;
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.campus-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.campus-interactive {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.campus-tabs {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.campus-tabs::-webkit-scrollbar {
  display: none;
}

.campus-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  backdrop-filter: blur(5px);
}

.campus-tab:hover {
  background: rgba(255,255,255,0.1);
  color: var(--lpu-white);
  transform: translateY(-2px);
}

.campus-tab.active {
  background: var(--lpu-orange);
  border-color: var(--lpu-orange);
  color: var(--lpu-black);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(232, 185, 25, 0.4);
}

.campus-gallery {
  width: 100%;
  height: 550px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-glass {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

.fade-in-image {
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1), continuousZoom 20s linear infinite forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 0.8; }
}

@keyframes continuousZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.gallery-glass-info {
  position: relative;
  z-index: 2;
  margin: 30px;
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--lpu-orange);
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transform: translateY(0);
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.gallery-glass-info h3 {
  color: var(--lpu-white);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.gallery-glass-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  font-family: var(--font-body);
}

@media (max-width: 900px) {
  .campus-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .campus-section .section-title {
    font-size: 2.2rem;
  }

  .campus-gallery {
    height: 400px;
  }
  
  .gallery-glass-info {
    margin: 20px;
    padding: 1.5rem;
  }
  
  .gallery-glass-info h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .campus-section {
    background-attachment: scroll;
    padding: 4rem 0;
  }

  .campus-section .section-title {
    font-size: 1.8rem;
  }

  .campus-gallery {
    height: 300px;
    border-radius: 10px;
  }

  .campus-tabs {
    gap: 0.6rem;
  }

  .campus-tab {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .gallery-glass-info {
    margin: 15px;
    padding: 1rem;
    max-width: calc(100% - 30px);
  }

  .gallery-glass-info h3 {
    font-size: 1.2rem;
  }

  .gallery-glass-info p {
    font-size: 0.9rem;
  }
}
