/* Magazine Layout Matching Floating Sidebar */
.floating-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: flex-end;
}

.sidebar-item {
  background: #003366;
  color: white !important;
  padding: 8px 6px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  border: none;
  border-radius: 0 !important;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateX(0);
  position: relative;
}

.sidebar-item i {
  font-size: 13px;
  font-weight: 600;
}

/* Tooltip */
.sidebar-item::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 32px;
  top: 0;
  bottom: 0;
  background: rgba(0,51,102,0.95);
  color: white;
  padding: 0 12px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1002;
  border-left: none;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  height: 100%;
}

.sidebar-item:hover::before {
  opacity: 1;
  visibility: visible;
}

.enquire-btn {
  background: #C8102E;
  border-left: none;
  animation: pulse 2s infinite;
  height: 32px;
  width: 100px;
  padding: 8px 12px;
  gap: 8px;
  flex-direction: row;
}

.enquire-btn i {
  font-size: 13px;
}

.enquire-btn .enquire-text {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

.enquire-btn::before {
  display: none;
}

.whatsapp-btn {
  background: #25D366;
}

.phone-btn {
  background: #003366;
}

.email-btn {
  background: #003366;
}

.admission-btn {
  background: #003366;
}

.brochure-btn {
  background: #003366;
}

.sidebar-item:hover {
  transform: scale(1.2);
  color: white !important;
  box-shadow: 0 0 12px rgba(0,51,102,0.4);
  z-index: 1001;
  text-decoration: none !important;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(200, 16, 46, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 16, 46, 0);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .sidebar-item {
    width: 28px;
    height: 28px;
    padding: 6px 4px;
  }
  
  .sidebar-item i {
    font-size: 11px;
  }
  
  .sidebar-item:hover {
    transform: scale(1.15);
  }
  
  .sidebar-item::before {
    right: 28px;
    font-size: 10px;
    padding: 0 10px;
  }
  
  .enquire-btn {
    height: 28px;
    width: 85px;
    padding: 6px 10px;
    gap: 6px;
  }
  
  .enquire-btn i {
    font-size: 11px;
  }
  
  .enquire-btn .enquire-text {
    font-size: 10px;
  }
}